/* This is the start of the code for the layers */

var sCurrentLayer = "";
//var sOldLayer = "";
function showNow() {
	if (sCurrentLayer != "") 
		document.getElementById(sCurrentLayer).style.visibility = 'visible';
	//if (sOldLayer != "" && sOldLayer != sCurrentLayer)
	//	document.getElementById(sOldLayer).style.visibility = 'hidden';
}

function show(object) {
   	if (isIE5 || isNS6) {
		//sOldLayer = sCurrentLayer;
		sCurrentLayer = object;
    	setTimeout("showNow()", 400);		
	}
   //if (isNS4)
   //   eval('document.' + object + '.visibility = "visible"');
}

function hideNow(object) {
	if (object != sCurrentLayer)
		document.getElementById(object).style.visibility = 'hidden';
}

function hide(object) {
   if (object == sCurrentLayer) {
		sCurrentLayer = "";
   }
   if (isIE5 || isNS6) {
   		setTimeout("hideNow('"+ object +"')", 400);
   }
  // if (isNS4){
  //    eval('document.' + object + '.visibility = "hidden"');}
}