// JScript source code
var intval = null;
var overUndermenu = false;
var activeUnderMenu = null;
function showUnderMenu(elm,nr) {
	clearInterval(intval)
	

	
	aTag = elm
	leftpos = 0;
	toppos = 0;
	do {
		aTag = aTag.offsetParent; 
		leftpos += aTag.offsetLeft;
		toppos += aTag.offsetTop;
	} while (aTag.tagName.toUpperCase() != "BODY");
	
	
	for (i=0; i< document.all.length; i++) {
		if (document.all[i].tagName.toUpperCase() == "SELECT" || document.all[i].tagName.toUpperCase() == "OBJECT") {
			document.all[i].style.visibility = "hidden";
		}
	}
	
	if (activeUnderMenu != null) {
		popDownAlert();
	}	
	
	document.getElementById("underMenu"+ nr).style.top = aTag.offsetTop + toppos + 28;
	document.getElementById("underMenu"+ nr).style.left = aTag.offsetLeft + leftpos - 2;
	document.getElementById("underMenu"+ nr).style.visibility = "visible";	
	activeUnderMenu = nr;
	
	
			
}
function hideUnderMenu(nr) {
		intval = setInterval(popDownAlert,250);
}
function popDownAlert() {
	
	if (!overUndermenu) {
		document.getElementById("underMenu"+ activeUnderMenu).style.visibility = "hidden";
	
		for (i=0; i< document.all.length; i++) {
			if (document.all[i].tagName.toUpperCase() == "SELECT" || document.all[i].tagName.toUpperCase() == "OBJECT") {
				document.all[i].style.visibility = "visible";
			}
		}
	}
	activeUnderMenu = null;
	clearInterval(intval);
}
function regOverUndermenu(nr) {
	clearInterval(intval)
	overUndermenu = true;
}
function deRegOverUndermenu(nr) {
	overUndermenu = false;
	intval = setInterval(popDownAlert,250);

}
