function EcriMonSwf(){
	var file_name="swf/menu.swf";
	
					var EcriSwf="<object type='application/x-shockwave-flash' data="+file_name+" width='770' height='209' ><param name='movie' value='"+file_name+"'><param name='wmode' value='transparent' wmode='transparent'/><param name='quality' value='high'></object>";
					
					document.getElementById('animTop').innerHTML = EcriSwf;
		}
		var A=0;
		var KekOnFait="vazi ma grosse!";
		 function OuvreAnim(Time){
					if (KekOnFait!=='stop'){
							 document.getElementById("noir").style.display="block";
							 if(A<75){
							
								
								document.getElementById("noir").style.filter = 'alpha(opacity=' +A+')';
								document.getElementById("noir").style.MozOpacity = A/100;
								document.getElementById("noir").style.KhtmlOpacity = A/100;
								document.getElementById("noir").style.opacity = A/100;
								A=A+13;
								
								window.setTimeout("OuvreAnim('noir')",Time);
								}
							 if(A>75 || A==75){ 
										var larg = (document.body.clientWidth);
											if (larg<1170){
												var pos = 110;
											}else{
												var pos = (larg-950)/2;
											}
										document.getElementById("video").style.left = pos +7+'px';
										document.getElementById("video").style.display="block";
										KekOnFait='stop';
										
										
										
								}
						}
				
		}
		var Y=100;
		function FermeAnim(ID, Time){
					
					if (document.getElementById('noir').style.display=="block"){
							 if(Y>0){
							
								Y=Y-13;
								document.getElementById(ID).style.filter = 'alpha(opacity=' +Y+')';
								document.getElementById(ID).style.MozOpacity = Y/100;
								document.getElementById(ID).style.KhtmlOpacity = Y/100;
								document.getElementById(ID).style.opacity = Y/100;
								
								
								window.setTimeout("FermeAnim('video', "+Time+")",Time);
								}
								if(Y<0 || Y==0){ 
								Y=75;
								document.getElementById(ID).style.display="none";
								window.setTimeout("FermeAnim('noir', "+Time+")",30);
										if(document.getElementById('noir').style.display=="none"){
										EcriMonSwf();
										}
								}
					}	 
					
		}
		
function AnimReste (){
	if (document.getElementById("video").style.display=="block"){
		
		var larg = (document.body.clientWidth);
			if (larg<1170){
				var pos = 110;
			}else{
				var pos = (larg-950)/2;
			}
		document.getElementById("video").style.left = pos +7+'px';
	}
}