// JavaScript Document
<!--
//---------------------------------------------- Menu
dynMenu = function(idMenu,delai) {
	cache = 0;
	table = document.getElementById(idMenu);
	dlTag = table.getElementsByTagName("dl");
	ddTag = table.getElementsByTagName("dd");
		if(ddTag) {
  			for(var i = 0;i < dlTag.length; i++) {
    			dlTag[i].onmouseover=dlTag[i].onfocus = function() {
      			clearTimeout(cache);
      			smenu = this.getElementsByTagName("dd")[0]
      			if(smenu) {
					cachetout();
					smenu.style.display="block"
				}
    		}
   		dlTag[i].onmouseout = function(){
    		if(delai)cache = setTimeout('cachetout()',delai);
  			}
   		}
	}
document.onclick = cachetout;
}
function cachetout(){
	for(var j = 0;j < ddTag.length; j++) {
		ddTag[j].style.display="none";
	}
}
//---------------------------------------------- onload
window.onload = function() {
			dynMenu("menu",500);
		}
//---------------------------------------------- Pop up
function ouvrir(url,l,h) {
hauteur = Math.round((screen.availHeight-h)/2);
largeur = Math.round((screen.availWidth-l)/2);
window.open(url, "00000000", "toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,menubar=0,top="+hauteur+",left="+largeur+",width="+l+",height="+h);
}
function ouvrirScroll(url,l,h) {
hauteur = Math.round((screen.availHeight-h)/2);
largeur = Math.round((screen.availWidth-l)/2);
window.open(url, "00000000", "toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,menubar=0,top="+hauteur+",left="+largeur+",width="+l+",height="+h);
}

/****************************** Placement du pied de page */
function getWindowHeight() {
    var windowHeight=0;
    if (typeof(window.innerHeight)=='number') {
        windowHeight=window.innerHeight -35;
    }
    else {
     if (document.documentElement&&
       document.documentElement.clientHeight) {
         windowHeight = document.documentElement.clientHeight;
    }
    else {
     if (document.body&&document.body.clientHeight) {
         windowHeight=document.body.clientHeight;
      }
     }
    }
    return windowHeight;
}

function setFooter() {
    if (document.getElementById) {
        var windowHeight=getWindowHeight();
        if (windowHeight>0) {
            var contentHeight=
            document.getElementById('conteneur').offsetHeight;
            var footerElement=document.getElementById('pied');
            var footerHeight=footerElement.offsetHeight;
        if (windowHeight-(contentHeight+footerHeight)>=0) {
            footerElement.style.position='relative';
            footerElement.style.top=
            (windowHeight-(contentHeight+footerHeight))+'px';
        }
        else {
            footerElement.style.position='static';
        }
       }
      }
}
//-->