// Bibliothèque de scripts - IRIS Interactive 


//****************************************************************
// Fonction gérant le sous-titrage des <H2> en page d'accueil 
//****************************************************************

sfHover = function() {
	var sfEls = document.getElementById("content").getElementsByTagName("H2");
	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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


//****************************************************************
// Fonction d'import des animations Flash 
//****************************************************************

function RunFlash(swf, hauteur, largeur, nom) {
	document.write("<object width=\""+hauteur+"\" height=\""+largeur+"\" id=\""+nom+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\">\n");
	document.write("<param name=\"quality\" value=\"high\">\n");
	document.write("<param name=\"wmode\" value=\"transparent\">\n");
	document.write("<param name=\"movie\" value=\""+swf+"\">\n");
	document.write("<embed src=\""+swf+"\" quality=\"high\" wmode=\"transparent\" width=\""+hauteur+"\" height=\""+largeur+"\" name=\""+nom+"\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">\n");
	document.write("</object>\n");
}


//****************************************************************
// Affichage des POPUP 
//****************************************************************

function funcPopup(varUrl)
	{
	WinPopUpPlan = window.open (varUrl, "PopUpPlan", "height=400, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no");
	WinPopUpPlan.focus();
	var ScreenW = screen.availWidth;
	var ScreenH = screen.availHeight;
	WinPopUpPlan.moveTo((ScreenW-600)/2, (ScreenH-600)/2);
	}

function funcPopup2(varUrl,varWidth,varHeight)
	{
	WinPopUp = window.open (varUrl, "PopUp", "height="+varHeight+", width="+varWidth+", toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no");
	WinPopUp.focus();
	var ScreenW = screen.availWidth;
	var ScreenH = screen.availHeight;
	WinPopUp.moveTo((ScreenW-varWidth)/2, (ScreenH-varHeight)/2);
	}


//****************************************************************
// Affichage des POPUP de plans d'accès 
//****************************************************************

function funcPopupPlan(varUrl)
	{
	WinPopUpPlan = window.open (varUrl, "PopUpPlan", "height=550, width=520, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no");
	WinPopUpPlan.focus();
	var ScreenW = screen.availWidth;
	var ScreenH = screen.availHeight;
	WinPopUpPlan.moveTo((ScreenW-600)/2, (ScreenH-600)/2);
	}


//****************************************************************
// Fonction gérant l'affichage des blocs onClick 
//****************************************************************

function funcDisplayDiv(varObj)
{
if (varObj.style.display == "block")
	{
	varObj.style.display = "none";
	}
else if (varObj.style.display == "none")
	{
	varObj.style.display = "block";
	}
else
	{
	varObj.style.display = "none";
	}
}
