

function toggleLayer(whichLayer)
{	
	//if (navigator.userAgent="Konqueror"){}
	 if (document.getElementById)
	{
		// this is the way the standards work
		//disableAllbut(whichLayer);
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}



function disableAllbut(id)
{

var yes=check(id);
//toggleLayer(id);
if (check("submenu1")){toggleLayer("submenu1");}
if (check("submenu2")){toggleLayer("submenu2");}
if (check("submenu3")){toggleLayer("submenu3");}
if (check("submenu4")){toggleLayer("submenu4");}
if (check("submenu5")){toggleLayer("submenu5");}
if (!yes)toggleLayer(id);
}

function check(chkid){	 

if (document.getElementById)
	{
		// this is the way the standards work
		//disableAllbut(whichLayer);
		var style2 = document.getElementById(chkid).style;
		if (style2.display =="block") return true;
		
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[chkid].style;
		if (style2.display =="block") return true;
		
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[chkid].style;
		if (style2.display =="block") return true;
	}

return false;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function submitToOpen()
{
window.open('../lp_test.php', 'contactwin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=400')
}

