//lyr1="<div> <a class='navText' href='company.php'>About Us</a> </div>  <div> <a  class='navText' href='departments.php'> Departments </a></div>  <div> <a  class='navText' href='location.php'> Locations </a> </div>";
lyr1="<div id='ecomDiv'> <table width='50%' border='0' cellpadding='0' cellspacing='0' background='images/nav_bg.jpg'>  <tr>     <td width='6' class='navText'> </td> <td valign='top' width='106' class='navText'><a onMouseOver='setDDactive('ecomDiv', '', true);' onMouseOut='setDDTimeout('ecomDiv');' class='navText' href='company.php'>    <div style='width: 106px;padding-left: 10px;padding-top: 3px'>About   Us</div>   </a><a onMouseOver='setDDactive('ecomDiv', '', true);' onMouseOut='setDDTimeout('ecomDiv');' class='navText' href='departments.php'>    <div style='width: 106px;padding-left: 10px;padding-top: 3px'>Departments</div>   </a><a onMouseOver='setDDactive('ecomDiv', '', true);' onMouseOut='setDDTimeout('ecomDiv');' class='navText' href='location.php'>    <div style='width: 106px;padding-left: 10px;padding-top: 3px'>Locations</div></a></td> <td width='4' class='navText'> </td></tr></table></div>";
lyr2="<div style='background-image: images/nav_bg.jpg'> <a class='navText' href='clients.php'>Our Clients</a> </div><div> <a class='navText' href='javascript:void(0);' onClick='window.open('client-service1.htm','newWin', 'scrollbars=yes,status=no,width=750,height=500,menubar=no,toolbar=no,left=5,top=10');'>      Clients Servies </a> </div> <div> <a class='navText' href='javascript:void(0);' onClick='window.open('zones.htm','newWin', 'scrollbars=yes,status=no,width=570,height=500,menubar=no,toolbar=no,left=5,top=10');'>      Zonewise List </a> </div>";
function reDo() 
{
  window.location.reload();
} 

window.onresize = reDo;

//************************************************************************************************************
 
//Define global variables 
var timerID = null; 
var timerOn = false; 
var timecount = 1000; // Change this to the time delay that you desire 
var what = null; 
var newbrowser = true; 
var check = false; 

//************************************************************************************************************

function init() 
{
  	if (document.layers)
 	{
  	layerRef="document.layers";
  	styleSwitch="";
  	visibleVar="show";
  	screenSize = window.innerWidth;
 	 what ="ns4";
  	}
  	else if(document.all)
	 {
  	layerRef="document.all";
	  styleSwitch=".style";
 	 visibleVar="visible";
 	 screenSize = document.body.clientWidth + 18;
	  what ="ie4";
 	 }
	  else if(document.getElementById)
	 {  layerRef="document.getElementByID";
	  styleSwitch=".style";
	  visibleVar="visible";
	  what="dom1";
	  }
	  else {
	  what="none";
	  newbrowser = false;
	  }
	 check = true;
 } 
//**************************************************************************************************************

// Toggles the layer visibility on
 function showLayer(layerName)
 {  
	//alert(layerName);
	if(check)
	 {
	  if (what =="none")
	  {
	   return;
	  }
	  else if (what == "dom1")
	  {
	   //alert(what);
	   document.getElementById(layerName).style.visibility="visible";
	  }
	  else
	  {
	  //alert(what);
	  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	  }
	}
	else
	{
	 return;
	}
  } 

//**************************************************************************************************************

// Toggles the layer visibility off
 function hideLayer(layerName)
 {
 	//alert(layerName);
	 if(check)
	 {
	   if (what =="none")
	   {
	    return;
	   }
	   else if (what == "dom1")
	   {
	    document.getElementById(layerName).style.visibility="hidden";
	   }
	   else
	   {
	    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
	   }
	 }
	 else
	 {
	  return;
	 }
  } 

//**************************************************************************************************************
function posLayer(layerName)
{
	//alert(what + "--" + document.body.clientWidth);
	
		if (layerName=="layer1")
		{
			if (what =="none")
			   {
				return;
			   }
			else if (what =="ns4")
			   {
				//alert("ns4");
			   }
			else if (what =="ie4")
			   {
				//alert("ie4");
				//winWidth=document.body.clientWidth;
			   //document.getElementById(layerName).style.left="2";
			   //document.getElementById(layerName).style.top="-37";
			   document.getElementById(layerName).style.left="100";
			   document.getElementById(layerName).style.top="-100";
			   //alert("positioning");
			   document.getElementById(layerName).innerHTML=lyr1;
			   }
			else //netscape6
			   {	   	
			   //winWidth=window.innerHeight;
			   //document.getElementById(layerName).style.left="2";
			   //document.getElementById(layerName).style.top="-40";
			   document.getElementById(layerName).style.left="0";
			   document.getElementById(layerName).style.top="0";
			   document.getElementById(layerName).innerHTML=lyr1;
			   }
		}
	if (layerName=="layer2")
		{
			if (what =="none")
			   {
				return;
			   }
			else if (what =="ns4")
			   {
				//alert("ns4");
			   }
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				//alert(winWidth);
				//document.getElementById(layerName).style.left="435";
				document.getElementById(layerName).style.left=(winWidth/2.3);
			    document.getElementById(layerName).style.top="-93";
			   
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerWidth;
			   //alert(winWidth);
			   //document.getElementById(layerName).style.left="446";
			   document.getElementById(layerName).style.left=(winWidth/2.3);
			   document.getElementById(layerName).style.top="-100";
			   }
		}
}

//******************************************************************************
function clearLayer(layerName)
{
		if (layerName=="details")
		{
			
			if (what =="none")
			   {
				return;
			   }
			else if (what =="ns4")
			   {
				//alert("ns4");
			   }
			else if (what =="ie4")
			   {
				//alert("ie4");
				
			   document.getElementById(layerName).style.left=0;
			   document.getElementById(layerName).style.top=0;
			   document.getElementById(layerName).style.width=2;
			   document.getElementById(layerName).style.height=0;
			   document.getElementById(layerName).innerText="";
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.left=0;
			   document.getElementById(layerName).style.top=0;
			   document.getElementById(layerName).style.width=0;
			   document.getElementById(layerName).innerHTML="";
			   }
		}


}
//*******************************************************************************
function hideAll()
 {
  //alert("hiding");
  hideLayer('layer1');
  hideLayer('layer2');
  //hideLayer('layer3');
  //Put all layers used in the navigtion here.
  
  } 

//**************************************************************************************************************
function startTime()
 {
   if (timerOn == false)
    {
	  timerID=setTimeout( "hideAll()" , timecount);
	    timerOn = true;
	 }
 } 
//**************************************************************************************************************
function stopTime()
{
  if (timerOn)
 {
  clearTimeout(timerID);
  timerID = null;
  timerOn = false;
  }
} 

//***************************************************************************************************************

function onLoad()
 {
  
  init();
  hideAll();
 } 
//**************************************************************************************************************
function posLayernew(layerName,num)
{
	//alert(what + "--" + document.body.clientWidth);
	
		if (layerName=="details")
		{			   
			   document.getElementById(layerName).style.width=430;			   
		}		
		if (num=='1')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				document.getElementById(layerName).style.top="-460";
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-460";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
		}
	//=============2============================================================
	if (num=='2')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-440";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-440";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
		}
	//=============3============================================================
	if (num=='3')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-440";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-440";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
		}
	//=============4============================================================
	if (num=='4')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-440";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-440";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
		}
	//=============5============================================================
	if (num=='5')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-440";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-440";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   v
			   }
		}
	//=============6============================================================
	if (num=='6')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-440";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-440";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
		}
	//=============7============================================================
	if (num=='7')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-310";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.elecmech.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-310";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.elecmech.value;
			   }
		}
	//=============8============================================================
	if (num=='8')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-285";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.firesafe.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-285";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.firesafe.value;
			   }
		}
	//=============9============================================================
	if (num=='9')
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-310";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.elecmech.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-310";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.hkeep.value;
			   }
		}
	//=============10============================================================
	if (num=="10")
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-235";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.elecequip.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-235";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.elecequip.value;
			   }
		}
	//=============11============================================================
	if (num=="11")
		{
			if (what =="none")
			   {
				return;
			   }
			
			else if (what =="ie4")
			   {
				//alert("ie4");
				winWidth=document.body.clientWidth;
				document.getElementById(layerName).style.top="-210";				
				document.getElementById(layerName).style.left=winWidth/2.5;
			    document.getElementById(layerName).innerHTML=document.detailsform.drwater.value;
			   }
			else //netscape6
			   {	   	
			   winWidth=window.innerHeight;
			   document.getElementById(layerName).style.top="-210";
			   document.getElementById(layerName).style.left=winWidth/1.5;
			   document.getElementById(layerName).innerHTML=document.detailsform.drwater.value;
			   }
		}
}