
/*
function changeShow(i)
   {
//var nb = Math.floor(Math.random() * 4)+1;
//  switch(nb){
   switch(i){
   	case 1:
		document.getElementById('show').src="/flash/morgan.swf";
		break;
	case 2:
		document.getElementById('show').src="/flash/margarita.swf";
		break;
	case 3:
		document.getElementById('show').src="/flash/azerty2.swf";
		break;
   	case 4:
		document.getElementById('show').src="/flash/azerty3.swf";
		break;
   }

  
}
*/




function PopupImg(sPicURL) { 
   window.open( "/js/popup.html?"+sPicURL, "",  
   "resizable=1,HEIGHT=200,WIDTH=200"); 
} 


//-->

//Ajout par Charlie
sfHover = function(idmenu) {
      if ( element = document.getElementById(idmenu) ){
        var sfEls = element.getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
                this.className+=" sfhover";
            }
            sfEls[i].onmouseout=function() {
                this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
            }
        }
      }
}

initMenu = function(){
    sfHover("nav");  
}

if (window.attachEvent) window.attachEvent("onload", initMenu);