// JavaScript Document
startList = function() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("navBox");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	 }
}
window.onload=startList;

function showHide (IDID,status) {
	if(status=='open')
	{
		document.getElementById(IDID).style.display='block';
	}
	else
	{
		document.getElementById(IDID).style.display='none';
	}
	reformFloatingObjects();
}
function displayFormat (format) {
	 document.getElementById('format').innerHTML=format;
}
function getStatusHover(IDID) {
	var target = document.getElementById(IDID);
	if(IDID=='subPays')
	{
		if (target.className == "ActivePays") {
			target.className = "";
		}
		else target.className = "ActivePays";
	}
	else
	{
		//if (target.className == "ActiveVotreEspace") {
			target.className = "";
		//}
		//else target.className = "ActiveVotreEspace";
	}
}

var BOTTOM_MARGIN = "0%";
function reformFloatingObjects() {
	//reformFloatingObjectsImpl(document.getElementById("footer1"));
	reformFloatingObjectsImpl(document.getElementById("footer2"));
}
	function reformFloatingObjectsImpl(target) {
		target.style.marginBottom = "";
		var f = function() {
			target.style.marginBottom = BOTTOM_MARGIN;
		};
		window.setTimeout(f, 10);
	};
	
function ulOver() {
	var abc="";
	makeCall(true);
}

function ulOut() {
	makeCall(false);
}

function openWindow(pUrl, pWindowName) {
	var newWindow;
	var pFeature = 'height=248, width=450, toolbar=no, scrollbars=no';
	newWindow = window.open(pUrl, pWindowName, pFeature);
}

function thisMovie(movieName) {
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		return (isIE) ? window[movieName] : document[movieName];
}

function makeCall(str) {
	//alert(thisMovie("extint"));
	thisMovie("extint").asFunc(str);
}
