
//////////////show and hide routine////////////////////////
var timer = 0;
var currmenu ="";

function show(currElem) {
	hide();
	// do IE4 and IE5
	if ((document.all && !document.getElementById) || (document.all && document.getElementById)) {
		menuObj = eval("document.all." + currElem + ".style")
		// menuObj.pixelTop = -147
		// menuObj.visibility = "visible";
		menuObj.display = "block";
	}
	
	else {
		// do NS6
		if (document.getElementById && !document.all) {
		menuObj = eval("document.getElementById(\"" + currElem + "\").style");
		// menuObj.top = -147;
		// menuObj.visibility = "visible";
		menuObj.display = "block";
		}
		// do NS4
		else{
		menuObj = eval("document." + currElem)
		menuObj.top = -147
		}
	}
}

function hide() {
	if (timer!=0 && currmenu!=""){
		// do IE4 and IE5
		if ((document.all && !document.getElementById) || (document.all && document.getElementById)) {
			menuObj = eval("document.all." + currmenu + ".style")
			// menuObj.pixelTop = -197
			// menuObj.visibility = "hidden";
			menuObj.display = "none";
		}
		
		else {
			// do NS6
			if (document.getElementById && !document.all) {
			menuObj = eval("document.getElementById(\"" + currmenu + "\").style");
			// menuObj.top = -197;
			// menuObj.visibility = "hidden";
			menuObj.display = "none";
			}
			// do NS4
			else{
			menuObj = eval("document." + currmenu)
			menuObj.top = -197
			}
		}
	}
}

function wait(currElem) {
	currmenu = currElem;
	timer = setTimeout('hide()',500);
}

function clearTimer() {
	clearTimeout(timer);
	timer=0;
}




