
function hideDivs()
{
 var subMenus = new Array("content","image","content1","image1","content2","image2","content3","image3","content4","image4","content5","image5","content6","image6","content7","image7","content8","image8");

 for(var i=0;i<18;i++){
  var tmpDiv = document.getElementById(subMenus[i]);

  tmpDiv.style.display = "none";
 }
}

function ShowHide(thisdiv)
{
 if(document.all){
  document.getElementById(thisdiv).style.display = document.getElementById(thisdiv).style.display=='none'?"block":"none";
 }else{
  document.getElementById(thisdiv).style.display = document.getElementById(thisdiv).style.display=='none'?"block":"none";
 }
}



function PopupImage(img) { 
titre="Agrandissement"; 
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' on2blur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Mon image'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 

function aff_swf(url) {

	w=open("",'image','width=799,height=312,toolbar=no,scrollbars=no,resizable=no'); 
	w.document.write("<html><head>");
	w.document.write("<title>Film</title>");
	w.document.write("<link href=\"/style.css\" rel=\"stylesheet\" type=\"text/css\" />");
	w.document.write("</head>"); 
	w.document.write("<body on2blur='window.close()' onclick='window.close()' background=\"fenetrevideo.jpg\">");
	w.document.write("<div align=\"center\">&nbsp;<div class=\"anim_ecran\">");
	w.document.write("<object data=\"../loadervideos.swf?media_name=img/"+url+"\" type=\"application/x-shockwave-flash\" width=\"329\" height=\"185\" align=\"left\" title=\"\">"+"<param name=\"movie\" value=\"../loadervideos.swf?media_name=img/"+url+"\" />"+"<param name=\"quality\" value=\"high\">"+"<div class=\"flash_alt\"></div>"+"</object>");
	w.document.write("</div></div>");

	w.document.write("</body></html>"); 
	w.document.close(); 

    //var objDiv = document.getElementById("anim_ecran");
    // remove flash element
    //objDiv.removeChild(document.getElementById("flash-stand-droite"));
    // add the new element
    //var newObject = document.createElement("div");
    //newObject.setAttribute("id", "flash-stand-droite");
    //newObject.setAttribute("class", "flash");


//    objDiv.appendChild(newObject);
}
