// JavaScript Document


/* fonction show/hide */

function switchNews(obj) {
	var el = document.getElementById(obj);
	if(el.style.visibility != "visible")
		el.style.visibility = "visible";
	else
		el.style.visibility = "hidden";
}


/* menu */

startList = function() {
	if (document.all&&document.getElementById) {
		cssdropdownRoot = document.getElementById("nav");
		for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
			node = cssdropdownRoot.childNodes[x];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" msieFix";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" msieFix", "");
				}
			}
		}
	}
}

if (window.attachEvent)
	window.attachEvent("onload", startList)
else
	window.onload=startList;


/* pop-up */

var newWin = null;  
function popUp(strURL, strType, strHeight, strWidth) {  
 if (newWin != null && !newWin.closed)  
   newWin.close();  
 var strOptions="";  
 if (strType=="console")  
   strOptions="resizable,height="+  
     strHeight+",width="+strWidth;  
 if (strType=="fixed")  
   strOptions="status,height="+  
     strHeight+",width="+strWidth;  
 if (strType=="elastic")  
   strOptions="toolbar,menubar,scrollbars,"+  
     "resizable,location,height="+  
     strHeight+",width="+strWidth;  
 newWin = window.open(strURL, 'newWin', strOptions);  
 newWin.focus();  
}