
var isOver; //Hide timeout id container
var TimeOutInterval=100; //How long from mouse is gone until menu disappears (Milliseconds) (Min. 100)

function showByLink(object,mlink) {
	if(isExplorer){
		//alert((isMac)?86:24)
		var mObj = document.getElementById('butt'+object);
		mObj.innerHTML=eval("str"+object);
		mObj.style.left = mlink.style.left;
		//--> før ændringerne i april 2003: --> mObj.style.top = mlink.style.top + (isWindows)?86:24;
		mObj.style.top = mlink.style.top + (isWindows)?111:49;
		if(isWindows) mObj.style.visibility='visible';
	}else{
		var mObj = eval("document.butt" +object);
		mObj.x=mlink.x;
		mObj.y=mlink.y+24;
		mObj.document.write(eval("str"+object));
		mObj.document.close();
		mObj.visibility='show';
		return false;
	}
}

function hide(object) {
	if(isExplorer){
		if (document.getElementById("butt"+object)) isOver=setTimeout("document.getElementById('butt"+object+"').style.visibility='hidden';",TimeOutInterval);
	}else{
		if(eval("document.butt" +object)) isOver=setTimeout("document.butt"+object+".visibility='hide';",TimeOutInterval);
	}
}

function popupOut(obj,lgID){
	if(isExplorer)
		obj.style.backgroundColor='#E4E4E4';
}

function popupOver(obj,lgID){
	window.clearTimeout(isOver);
	if(isExplorer)
		obj.style.backgroundColor='#9ACC99';
}

