ready = "yes";

if(document.all || document.layers)
{	
	document.write("<DIV ID='NSbuffer' STYLE='top:0;left:0;width:2;height:2;position:absolute;visibility:hidden;z-index:1;'></DIV>"+
		"<DIV ID='about' STYLE='top:84;left:283;width:130px;position:absolute;visibility:hidden;z-index:22;'>"+
			"<TABLE ID='about_tbl' CELLPADDING=5 CELLSPACING=0 BORDER=0 bgcolor=#CC3E2E width=130 onmouseOut='hideMenuIE();'><TR><TD valign=top>"+						
				"<a class='dropnav' href='../about/index.html'>company overview</a><br>"+
				"<a class='dropnav' href='../about/ceointerview.htm'>ceo interview</a><br>"+
				"<a class='dropnav' href='../about/jobs.htm'>careers</a><br>"+
				"<a class='dropnav' href='../about/contact.htm'>contact us</a>"+
				"</TD></TR></TABLE></DIV>"+						
		"<DIV ID='products' STYLE='top:84;left:345;width:130px;position:absolute;visibility:hidden;z-index:22;'>"+
			"<TABLE ID='products_tbl' CELLPADDING=5 CELLSPACING=0 BORDER=0 bgcolor=#CC3E2E width=130 onmouseOut='hideMenuIE();'><TR><TD valign=top>"+	
				"<a class='dropnav' href='../products/index.html'>product overview</a><br>"+						
				"<a class='dropnav' href='../products/v35.htm'>eMax v. 3.5</a><br>"+						
				"<a class='dropnav' href='../products/parse.htm'>MaxParser</a><br>"+
				"<a class='dropnav' href='../products/inquiry.htm'>MaxDynaForm</a><br>"+			
				"<a class='dropnav' href='../products/candidate.htm'>MaxAlert</a><br>"+
				"<a class='dropnav' href='../products/MaxViewPage.htm'>MaxView</a><br>"+
				"<a class='dropnav' href='../products/maxcrm.htm'>MaxCRM</a><br>"+
				"<a class='dropnav' href='../autoresponder.htm'>AutoResponder</a><br>"+
				"</TD></TR></TABLE></DIV>"+	
		"<DIV ID='solutions' STYLE='top:84;left:426;width:130px;position:absolute;visibility:hidden;z-index:22;'>"+
			"<TABLE ID='solutions_tbl' CELLPADDING=5 CELLSPACING=0 BORDER=0 bgcolor=#CC3E2E width=130 onmouseOut='hideMenuIE();'><TR><TD valign=top>"+
				"<a class='dropnav' href='../solutions/index.html'>solutions overview</a><br>"+
				"<a class='dropnav' href='../solutions/automotive.htm'>automotive</a><br>"+
				"<a class='dropnav' href='../solutions/insurance.htm'>insurance</a><br>"+ 
				"<a class='dropnav' href='../solutions/finance.htm'>finance</a><br>"+ 
				"<a class='dropnav' href='../solutions/franchise.htm'>franchising</a><br>"+ 
			    "</TD></TR></TABLE></DIV>"+	
		"<DIV ID='services' STYLE='top:84;left:509;width:130px;position:absolute;visibility:hidden;z-index:22;'>"+
			"<TABLE ID='services_tbl' CELLPADDING=5 CELLSPACING=0 BORDER=0 bgcolor=#CC3E2E width=130 onmouseOut='hideMenuIE();'><TR><TD valign=top>"+		
				"<a class='dropnav' href='../services/index.html'>services overview</a><br>"+				
				"<a class='dropnav' href='../services/content.htm'>content</a><br>"+
				"<a class='dropnav' href='../services/data.htm'>data</a><br>"+
				"<a class='dropnav' href='../services/consulting.htm'>consulting</a><br>"+
				"</TD></TR></TABLE></DIV>"+
		"<DIV ID='relationships' STYLE='top:84;left:586;width:130px;position:absolute;visibility:hidden;z-index:22;'>"+
			"<TABLE ID='relationships_tbl' CELLPADDING=5 CELLSPACING=0 BORDER=0 bgcolor=#CC3E2E width=130 onmouseOut='hideMenuIE();'><TR><TD valign=top>"+
				"<a class='dropnav' href='../relations/index.html'>relationships overview</a><br>"+
				"<a class='dropnav' href='../relations/clients.htm'>clients</a><br>"+		
				"<a class='dropnav' href='../relations/alliances.htm'>alliances</a><br>"+		
			"</TD></TR></TABLE></DIV>" )
	}

function mouseMove(e)
{
  if((document.all) && (ready == "yes") && (ie5 == 0))
  {
		x=event.x;
		y=event.y;  
    menuOff(x,y);   
	} 
  
	if((document.layers) && (ready == "yes"))
  {
		x=e.pageX;
		y=e.pageY;		  
    menuOff(x,y);    
	}
}

if (document.all)
{
	document.onmousemove = mouseMove;
	layerRef = "document.all";
	layerStyle = ".style"; 
}
if (document.layers)
{
	document.onmousemove = mouseMove;
	document.captureEvents(Event.MOUSEMOVE);
	layerRef = "document.layers";
	layerStyle = ""; 
}

function showLayer(layerName)
{

  eval(layerRef+'["'+layerName+'"]'+layerStyle+'.visibility="visible"')  
  if(ie5)
  {
    activeMenu = eval("document.all." + layerName + "_tbl");  
  }
}

function hideLayer(layerName)
{
	eval(layerRef+'["'+layerName+'"]'+layerStyle+'.visibility="hidden"');   
}

function moveLayer(layerName,top,left)
{
  eval(layerRef+'["'+layerName+'"]'+layerStyle+'.top=top')
  eval(layerRef+'["'+layerName+'"]'+layerStyle+'.left=left') 
}

function rem()
{
	if(document.all || document.layers)
  {
	 hideLayer("about");
	 hideLayer("products");	
	 hideLayer("solutions");	 
	 hideLayer("services");	
	 hideLayer("relationships");	 
     resetRollOver();  
	}
}

function menuOn(lName)
{
	if(document.all || document.layers)
  {
	  rem();
	  menuName = lName;
	  showLayer(lName);
	}
}

function menuOff(xcord,ycord)
{

	//right   
	if(menuName == "about" && xcord > 354){rem();}	
	if(menuName == "products" && xcord > 440){rem();}
	if(menuName == "solutions" && xcord > 540){rem();}	
	if(menuName == "services" && xcord > 636){rem();}
	if(menuName == "relationships" && xcord > 706){rem();}
	
 	//left 
	if(menuName == "about" && xcord < 283){rem();}
	if(menuName == "products" && xcord < 345){rem();}
	if(menuName == "solutions" && xcord < 426){rem();}	
	if(menuName == "services" && xcord < 509){rem();}
	if(menuName == "relationships" && xcord < 586){rem();}
	  
 	//top	
	if(menuName == "about" && ycord < 10){rem();}
	if(menuName == "products" && ycord < 10){rem();}
	if(menuName == "solutions" && ycord < 10){rem();}
	if(menuName == "services" && ycord < 10){rem();}
	if(menuName == "relationships" && ycord < 10){rem();}
	
  	//bottom	
	if(menuName == "about" && ycord > 220){rem();}
	if(menuName == "products" && ycord > 220){rem();}
	if(menuName == "solutions" && ycord > 220){rem();}
	if(menuName == "services" && ycord > 220){rem();}
	if(menuName == "relationships" && ycord > 220){rem();}
	
}

