// JavaScript Document
objBackup="";
ssObjBackup="";
interVal="";
ssInterVal="";
i=10;
	function openSearch(q) {
		theUrl="http://www.google.com/custom?cof=GIMP%3A%23963100%3BLC%3A%23963100%3BGL%3A0%3BGALT%3A%23576273%3B&domains=expliciter.fr&sitesearch=expliciter.fr&q="+q;
		theFeatures	= "status=no,toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,left=0,top=0,width=800,height=400";
		window.open(theUrl,"recherche",theFeatures);
	}
	function openPdf(theUrl) {
		theFeatures	= "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=0,top=0,width=800,height=600";
		window.open(theUrl,"fichier",theFeatures);
		return false;
	}
	function openContact() {
		theFeatures	= "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes,left=0,top=0,width=550,height=260";
		window.open("contact.php","contact",theFeatures);
	}	
	function rollMenu(obj, act) {
		if(objBackup=="" && act=="over") {
			showObj(obj)
			imageRollOver(obj, act)
		}
		if(objBackup!=obj && objBackup!="" && act=="over") {
			 hideObj(objBackup)
			 if(ssObjBackup!="") {
				 stopCount()
			  	hideObj(ssObjBackup)
				initObj()
			}
			 imageRollOver(objBackup, "out")
			 showObj(obj)
			 imageRollOver(obj, act)
			//alert(i+", "+obj+", "+objBackup)			 
		}	
		objBackup=obj
	}
	function rollSousMenu(obj) {
		if(obj!=ssObjBackup) {
			if(ssObjBackup!="")	hideObj(ssObjBackup)
			objDiv=objBackup+"Div";
			objDiv=document.getElementById(objDiv);			
			objDiv.style.filter="alpha(opacity=100)"
			showObj(obj)
			ssObjBackup=obj;
		}
	}
	function initObj() {
		ssObjBackup=""
	}
	function startCount() {
		ssInterVal=setTimeout("hideObj(ssObjBackup);initObj()",700)
	}
	function stopCount() {
		if(ssInterVal) clearTimeout(ssInterVal)
	}
	function showObj(obj) {
			i=70;
			objDiv=obj+"Div";
			objDiv=document.getElementById(objDiv);			
			objDiv.style.filter="alpha(opacity="+i+")"
			objDiv.style.visibility="visible";
			interVal=setInterval("setOpacity(objDiv,i++)",1);
	}
	function hideObj(obj) {
			objDiv=obj+"Div";
			objDiv=document.getElementById(objDiv);
			interVal=setInterval("setOpacity(objDiv,i--)",1);
			objDiv.style.visibility="hidden";
	}
	function setOpacity(obj,i) {
		if(ie5) {
			if(i<=100) obj.style.filter="alpha(opacity="+i+")";
			else clearInterval("interVal");
		}
	}
	function imageRollOver(obj,act) {
		path="_images/";
		ext=".gif";
		document.images[obj].src=path+obj+"_"+act+ext;
	}
