	var subOpen=false;
	var the_timeout;
	
	function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

	
 	function showLayer(id)
	{
		document.getElementById(id).style.visibility="visible";
	}
	
	function hideLayer(id)
	{
		hideAllLayers();
		if(subOpen==false){
			document.getElementById('Layer1').style.visibility="hidden";
		
		}
	}
	
	function hideAllLayers()
	{
			document.getElementById('Layer1').style.visibility="hidden";
		subOpen=false;
	}
	
	function showSubLayer(id)
	{
				document.getElementById(id).style.visibility="visible";
	}

	function hideSubLayer(id)
	{
				document.getElementById(id).style.visibility="hidden";
				subOpen=false;
				the_timeout = setTimeout("hideLayer('Layer1');",100);
	}
	
	function placeLayer(){
	var width=document.body.offsetWidth;
	var table=780;
	var pos;
	pos=((width-table)/2);
	if(pos<=0)
	{
		pos=0;
	}
	document.getElementById("Layer1").style.left=pos+460;
	document.getElementById("Layer2").style.left=pos+460;
	
		}
	
	function pop1(url,name)
{
	window.open(url,name,'top=0,left=0,width=445,height=600');
}
