

/////////////////////////// Fonctions Rollover, Menus et Lists - by JLT 12.09.2004  ///////////////////////////



////////// Function Rollover et Select Menu //////////

// ------------- Function utilisée sur la nav du haut ayant une simple séléction ---------------- //
var ImgNmeselected;
var ImgNme2selected;
function rollOver_simple(ImgNme){
	if (ImgNme == ImgNmeselected || ImgNme == ImgNme2selected)
		return;
     obj=(document.images)? document.images[ImgNme]:0;
	 MenuNme=(document.menuImg)? document.menuImg.name:"";
     if (MenuNme!=ImgNme)
	 obj.src=(obj.src.lastIndexOf('_on')!=-1)?obj.src.replace(/_on/gi,"_off"):obj.src.replace(/_off/gi,"_on");
     document.OnImg=obj;
}

function Select_menu_simple(ImgNme) {
ImgNmeselected = ImgNme;
    obj=(document.images)? document.images[ImgNme]:0;
	MenuNme=(document.menuImg)? document.menuImg.name:"";
    if (document.menuImg) document.menuImg.src=document.menuImg.src.replace(/_on/gi,"_off");
    obj.src=obj.src.replace(/_off/gi,"_on");	
    document.menuImg=obj;
}

// ------------- FIN Function utilisée sur la nav du haut ayant une simple séléction ---------------- //


// ------------- Function utilisée sur la nav du haut ayant une double séléction ---------------- //

function rollOver(ImgNme,ImgNme2){
	if (ImgNme == ImgNmeselected || ImgNme == ImgNme2selected)
		return;
     obj=(document.images)? document.images[ImgNme]:0;
	 obj2=(document.images)? document.images[ImgNme2]:0;
	 MenuNme=(document.menuImg)? document.menuImg.name:"";
	 MenuNme2=(document.menuImg2)? document.menuImg2.name:"";
     if ((MenuNme!=ImgNme)||(MenuNme2!=ImgNme2))
	 obj.src=(obj.src.lastIndexOf('_on')!=-1)?obj.src.replace(/_on/gi,"_off"):obj.src.replace(/_off/gi,"_on");
     document.OnImg=obj;
}

function Select_menu(ImgNme,ImgNme2) {
ImgNmeselected = ImgNme;
ImgNme2selected = ImgNme2;
    obj=(document.images)? document.images[ImgNme]:0;
	obj2=(document.images)? document.images[ImgNme2]:0;
	MenuNme=(document.menuImg)? document.menuImg.name:"";
	MenuNme2=(document.menuImg2)? document.menuImg2.name:"";
    if (document.menuImg) document.menuImg.src=document.menuImg.src.replace(/_on/gi,"_off");
    obj.src=obj.src.replace(/_off/gi,"_on");	
    document.menuImg=obj;
	if (document.menuImg2) document.menuImg2.src=document.menuImg2.src.replace(/_on/gi,"_off");
	obj2.src=obj2.src.replace(/_off/gi,"_on");
	document.menuImg2=obj2;
}

// ------------- FIN Function utilisée sur la nav du haut ayant une double séléction ---------------- //


////////// Function Menus Lists //////////


// ---- OLD FUNCTIONS ---- //

navigation=[];
navigation.checkedLayerPos=[];

function navigation_HideElement(menuName){
	ObjImg=dlib.images("imgList"+menuName);
	ObjImg.src=ObjImg.src.replace(/_on./gi,"_off.")
	if(dlib.layers("menu"+menuName).exist) dlib.layers("menu"+menuName).visible(false);
	navigation.activeMenu=0;
}

function navigation_OpenMenu(menuName, leftCorrection, topCorrection){
	/* Check for activ element */
	if(navigation.activeMenu) navigation_HideElement(navigation.activeMenu)
	/* activ menuName*/
		
	ObjImg=dlib.images("imgList"+menuName);
	ObjImg.src=ObjImg.src.replace(/_off./gi,"_on.");	
	
	if(dlib.layers("menu"+menuName).exist){
		NS6Add=(dlib.navigator("NS6"))? -20:0; 
		dlib.layers("menu"+menuName).left(dlib.anchors("pos"+menuName).left()+((arguments.length==2)? leftCorrection:0));
		dlib.layers("menu"+menuName).bottom(dlib.anchors("pos"+menuName).top()+NS6Add);
		navigation.checkedLayerPos[menuName]=1;
		dlib.layers("menu"+menuName).visible(true);
	}
	dlib.layers("menu"+menuName).left(dlib.anchors("pos"+menuName).left()+((arguments.length==3)? leftCorrection:0));
	dlib.layers("menu"+menuName).bottom(dlib.anchors("pos"+menuName).top()+((arguments.length==3)? topCorrection:0));
	navigation.activeMenu=menuName;
}

function navigation_ActiveLyrHide(){
	if(dlib.layers("HideLayers").exist){
		if(!navigation.passHide){
			h=(document.all)? document.body.clientHeight:window.innerHeight; l=(document.all)? document.body.clientWidth:window.innerWidth;
			dlib.layers("HideLayers").innerHTML('<a href="#" onmouseover="navigation_hideMenu()"><img src="img/dot.gif" height='+h+' width='+l+' border=0></a>');
			navigation.passHide=1;
		}
		navigation.tmpActiv=navigation.activeMenu;		
		dlib.layers("HideLayers").visible(true);
	}
	else if(navigation.activeMenu) navigation_HideElement(navigation.activeMenu);	
}

function navigation_hideMenu(){
	if(navigation.activeMenu) navigation_HideElement(navigation.activeMenu);
	if(dlib.layers("HideLayers").exist) dlib.layers("HideLayers").visible(false);
}

// ---- FIN OLD FUNCTIONS ---- //





function displayLayer(obj,id)
{
	obj.className = "CompetenceOver";
	if(eval("id"))	
		document.getElementById(id).style.display = "block";
}

function hideLayer(obj,id)
{
	obj.className = "CompetenceOut";
	if(eval("id"))	
		document.getElementById(id).style.display = "none";
}

function displayLayerBuro(obj,id)
{
	obj.className = "BureauxOver";
	if(eval("id"))	
		document.getElementById(id).style.display = "block";
}

function hideLayerBuro(obj,id)
{
	obj.className = "BureauxOut";
	if(eval("id"))	
		document.getElementById(id).style.display = "none";
}

function displayLayerHome(obj,id)
{
	obj.className = "HomeOver";
	if(eval("id"))
	{
		Navigateur = navigator.appName; 
		if (Navigateur =='Netscape')
		{
			dlib.layers(id).top(dlib.anchors("topTD").top()-317);
		}
		document.getElementById(id).style.display = "block";
	}
}

function hideLayerHome(obj,id)
{
	obj.className = "HomeOut";
	if(eval("id"))	
		document.getElementById(id).style.display = "none";
}

/////////////////////////// FIN Fonctions Rollover, Menus et Lists - by JLT 12.09.2004.  ///////////////////////////

function printpage() {
window.print();  
}


///////////////////////////  Fonction popup ///////////////////////////

	function Sezame(page,larg,haut,scraul){
		var posXpop = (screen.availWidth-larg)/2
		var posYpop = (screen.availHeight-haut)/2
		param = "width="+larg+",height="+haut+",left="+posXpop+",top="+posYpop+",scrollbars="+scraul
		popup = window.open(page,"pop",param)
	}
	
	//open popup Legal Notice
	function openPopupMention(path){
		Sezame(path, 450, 450, "yes");
	}
	
	//open popup Legal Notice
	function openPopupSitemap(path){
		Sezame(path, 450, 405, "yes");
	}
	
///////////////////////////  FIN Fonction popup ///////////////////////////

///////////////////////////  Fonction re-root - by JLT 08.10.2004 ///////////////////////////

// re-root Sitemap
function onyva(hurle){	
		self.opener.top.location.href=hurle
	}

// re-root Select
function ouvrir(lien){
	if (lien)
	self.location.href=lien;

	return true;
}

///////////////////////////  FIN Fonction re-root - by JLT 08.10.2004 ///////////////////////////