var isNet4, isIE4, styleSwitch, layerRef, lastmenu;
var x=0;
var y=0;

	isNet4 = false;
	isIE4 = false;
	lastmenu = "";
	
	  if (navigator.appName == "Netscape")
	  {
	    isNet4 = true;
		layerRef = "document.layers";
		styleSwitch = "";
		document.onmousemove = mouseMove;
	    document.captureEvents(Event.MOUSEMOVE);
	  }
	  
	  if (navigator.appName == "Microsoft Internet Explorer")
	  {
	    isIE4 = true;
		layerRef = "document.all";
		styleSwitch = ".style";
		document.onmousemove = mouseMove;
	  }
	 
	  function showLayer(lname)
	  { 
	  if (lastmenu != "") resetLayer();  
		  if (lname != lastmenu) 
		  {
	       eval(layerRef+'[lname]'+styleSwitch+'.visibility="visible"');	
		     lastmenu = lname;
		  }
		  else
		  {
		    resetLayer();
		    lastmenu = "";
		  }
	  }


	  function hideLayer(lname)
	  {
	   eval(layerRef+'[lname]'+styleSwitch+'.visibility="hidden"');
	  }
	  
	  function resetLayer()
	  {
	   if (lastmenu != "") 
	   {
	     eval(layerRef+'[lastmenu]'+styleSwitch+'.visibility="hidden"');
	   }
	  }	  

	  function mouseMove(e)
	  {
		if(isIE4){
			x=event.x;
			y=event.y;
			}
		if(isNet4){
			x=e.pageX;
			y=e.pageY;
			}
/*
		if (lastmenu == 'lac' && (x > 600 || y < 65 || y > 160)) hideLayer('lac')
		if (lastmenu == 'sam' && (x > 800 || y < 65 || y > 160)) hideLayer('sam')
		if (lastmenu == 'can' && (x > 400 || y < 65 || y > 160)) hideLayer('can')	
		if (lastmenu == 'abouttd' && (x > 355 || y < 185 || y > 380)) hideLayer('abouttd');
		if (lastmenu == 'newCust' && (x > 355 || y < 210 || y > 265)) hideLayer('newCust');
		if (lastmenu == 'events' && (x > 355 || y < 225 || y > 355)) hideLayer('events');
		if (lastmenu == 'mfg' && (x > 355 || y < 260 || y > 320)) hideLayer('mfg');
		if (lastmenu == 'investors' && (x > 355 || y < 250 || y > 440)) hideLayer('investors');
		if (lastmenu == 'lacpress' && (x > 355 || y < 280 || y > 405)) hideLayer('lacpress'); 
		if (lastmenu == 'employment' && (x > 355 || y < 290 || y > 380)) hideLayer('employment'); 
		if (lastmenu == 'press' && (x > 355 || y < 300 || y > 543)) hideLayer('press');
		if (lastmenu == 'servicesnon' && (x > 355 || y < 335 || y > 610)) hideLayer('servicesnon');
		if (lastmenu == 'services_non_eng' && (x > 355 || y < 300 || y > 430)) hideLayer('services_non_eng');
		if (lastmenu == 'sitetools' && (x > 825 || x < 600 || y < 80 || y > 200)) hideLayer('sitetools');
*/		

		if (lastmenu == 'aboutb_div' && (x > 250 || y < 110 || y > 210)) hideLayer('aboutb_div');
		if (lastmenu == 'subs_div' && (x > 250 || y < 150 || y > 370)) hideLayer('subs_div')
		if (lastmenu == 'em_div' && (x > 250 || y < 223 || y > 283) ) hideLayer('em_div')
		if (lastmenu == 'news_div' && (x > 250 || y < 250 || y > 314) ) hideLayer('news_div')	
    
	}
	
