ns4=(document.layers)?true:false;
ie4=(document.all)?true:false;
gecko = (navigator.userAgent.toLowerCase().indexOf('gecko') != -1);


function getRealLeft(el) {
    xPos = el.offsetLeft;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
    }
    return xPos;
}

function getRealTop(el) {
    yPos = el.offsetTop;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        yPos += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
    }
    return yPos;
}

function hidemenu(e) {
 if (MenuObj.cursid != "") {   
        if (ns4) {
                img = document.images[MenuObj.cursid];
                menu = document["menu_" + MenuObj.cursid];
                
                imgX = img.x;
                imgY = img.y;
                imgH = img.height;                      
                imgW = img.width;

				menuX = menu.pageX;
                menuY = menu.pageY;       
                menuW = menu.clip.right;        
		        menuH = menu.clip.bottom;

            //e.pageY and e.pageX are the current mouse location
			// mouse above the image (e.pageY < imgY)
			// mouse is below the menu (e.pageY > menuY)

		   if 	(((e.pageY < imgY) || (e.pageY > (menuY+menuH)))
		   		 || ((e.pageY > imgY) && (e.pageY < imgY+imgH) && ((e.pageX < imgX) || (e.pageX > imgX + imgW)))
		   		 || ((e.pageY > menuY) && (e.pageY < menuY+menuH) && ((e.pageX < menuX) || (e.pageX > menuX + menuW)))

		  )  {

                hidediv(MenuObj.cursid);
              }
        } else if (gecko) {
		img = document.images[MenuObj.cursid];
                menu = document.getElementById("menu_" + MenuObj.cursid);

                imgX = img.x;
                imgY = img.y;
                imgH = img.height;
                imgW = img.width;

menuH =  menu.offsetHeight;
menuW = menu.offsetWidth;

menuY = parseInt(menu.style.top);
menuX = parseInt(menu.style.left);

		//e.pageY and e.pageX are the current mouse location
		// mouse above the image (e.pageY < imgY)
		// mouse is below the menu (e.pageY > menuY)

		if (((e.pageY < imgY) || (e.pageY > menuY+menuH))
		|| ((e.pageY > imgY) && (e.pageY < imgY+imgH) && ((e.pageX < imgX) || (e.pageX > imgX + imgW)))
		|| ((e.pageY > menuY) && (e.pageY < menuY+menuH) && ((e.pageX < menuX) || (e.pageX > menuX + menuW)))
		)  {

                hidediv(MenuObj.cursid);
		}

	}
        else {
                hidediv(MenuObj.cursid);
        }

}  
}

function showdiv(sid, hasmenu){

	    if (MenuObj.cursid != "") {
            hidediv(MenuObj.cursid);                
        }
        document.images[sid].src =  MenuObj.imgdir + sid + "_over.gif";        
        MenuObj.cursid = sid;				
                        if (ns4) {
                                 divsid=eval("document.menu_"+sid);
                                 
                                 windowwidth = window.innerWidth;
                                 imageloc = document.images[sid].x;
                                 imagewidth = document.images[sid].width;
                                 imageheight = document.images[sid].height;                                 
                                 imagetop = document.images[sid].y;
				divwidth = eval("document.menu_"+sid + ".offsetWidth")
                        }
                        if (ie4) {
                                divsid=eval("menu_"+sid+".style");
                                 windowwidth = document.body.clientWidth;
                                imageloc = getRealLeft(document.all["s_" + sid]);
                                imagewidth = document.all["s_" + sid].width;
                                imageheight = document.all["s_" + sid].height;
                                divwidth= eval("menu_"+sid+".offsetWidth")

                            imagetop =  getRealTop(document.all["s_" + sid]);
                        }

			if (gecko) {
				divsid=eval("document.getElementById('menu_"+sid+"').style");
	        	        windowwidth = window.innerWidth;
        	        	imageloc = document.images[sid].x;
      	          		imagewidth = document.images[sid].width;
        	    	    	imageheight = document.images[sid].height;
                		imagetop = document.images[sid].y;
				divwidth=eval("document.getElementById('menu_"+sid+"').offsetWidth")
			}


                                divsid.left= (imageloc+imagewidth-divwidth+1);
                divsid.top= imagetop + imageheight -1;
 if (ns4) {
	divsid.visibility="show";
 }
if (ie4) { 
	divsid.visibility="visible";
}
if (gecko) {
	divsid.visibility="visible";
}
//        }       
      if (ie4) window.event.cancelBubble = true;
}       

function subover(subrow) {
        subrow.style.backgroundColor = MenuObj.mocolor;
	if (ie4) {
        	subrow.style.cursor = 'hand';
	} else if (gecko) {
		subrow.style.cursor = 'pointer';
	}
}

function subout(subrow) {
        subrow.style.backgroundColor = MenuObj.bgcolor;
}

function hidediv(sid){

if (sid != "") {     
	document.images[sid].src = MenuObj.imgdir + sid + ".gif";
        if (ns4) divsid=eval("document.menu_"+ sid);
        if (ie4) divsid=eval("menu_"+sid+".style");
	if (gecko) divsid=eval("document.getElementById('menu_"+sid+"').style");
        if (ns4) divsid.visibility="hide";
        if (ie4) divsid.visibility="hidden";
	if (gecko) divsid.visibility="hidden";
        MenuObj.cursid = "";
}

}

function loadImage(imgname) {

	if (document.images) {
        		 imageObj1 = imgname ;
		         temp = eval(imageObj1 + " = new Image()");
        		 temp.src = MenuObj.imgdir + imageObj1 + ".gif";
				 
		         imageObj2 = imgname + "_over";
        		 temp = eval(imageObj2 + " = new Image()");
		         temp.src = MenuObj.imgdir +  imageObj2 + ".gif";
}
}

function go2(urlstr) {
        top.location.href = urlstr;
}                        

function ft_highlight(imgname) {

	  document.images["ft_" + imgname].src = MenuObj.imgdir + imgname + "_over.gif";

}
function ft_dim(imgname) {

	  document.images["ft_" + imgname].src = MenuObj.imgdir + imgname + ".gif";
	  
}

if (ns4) { 
         document.captureEvents(Event.MOUSEMOVE); 
    	 document.onmousemove = hidemenu;
} else {
        document.onmouseover = hidemenu;
}
             
                         
function JCMenu() {
	this.bgcolor	="#FFFFFF";
	this.bordercolor="#2e6196";
	this.mocolor	="#cccccc";
	this.imgdir   = "";
	this.toroot   = "";
	this.cursid   = ""
}

MenuObj = new JCMenu();


function JCSubMenu(menuName) {
	this.menuName = menuName;
	this.nameArray = new Array();
	this.linkArray = new Array();
	loadImage(menuName)
	this.addItem 	= JCSubMenu_addItem;
	this.writeMenu  = JCSubMenu_showItems;
	
}

function JCSubMenu_addItem(itemname, itemlink) {
//get the highest item
	ItemNum = this.linkArray.length;
	this.nameArray[ItemNum] = itemname;
	this.linkArray[ItemNum] = itemlink;
}



function JCSubMenu_showItems() {

	numItems = this.linkArray.length;
	if (ns4) {
		ot = '<layer name="menu_' + this.menuName + '" visibility="hide" onmouseout="hidediv(MenuObj.cursid)">';
		ct = '</layer>';
	}
	else if (ie4 || gecko) {
		ot = "<div id=\"menu_" + this.menuName + "\" style=\"position:absolute; visibility:hidden\" onmouseover=\"showdiv('" + this.menuName + "')\">";		
MenuObj.section + "_solutions"
		ct = '</div>';
	}
	document.write (ot);


	if (numItems > 0) {
document.write('<table border="0" cellspacing="0" cellpadding="0" bgcolor=' + jc_bgcolor + '>');
		for (i = 0; i < numItems; i++) {
		document.write("<tr><td colspan=3 height=1 bgcolor=#2e6196><img src=/images/clear.gif width=1 height=1></td></tr>");	
			suboverstr= (ie4 || gecko) ? " onMouseOver=\"subover(this)\" onMouseOut=\"subout(this)\" onClick=\"go2('" + MenuObj.toroot + this.linkArray[i] + "')\" " : '';
		   		 document.write('<tr' + suboverstr + '>');
			document.write("<td width=1 bgcolor=#2e6196><img src=/images/clear.gif width=1 height=1></td>");		 		  
  			document.write('<td><table border=0 cellspacing=0 cellpadding=3><tr><td><a class="menu" target="_top" href="' + MenuObj.toroot + this.linkArray[i] + '">' + this.nameArray[i] +	'</a></td></tr></table></td>');
			document.write("<td width=1 bgcolor=#2e6196><img src=/images/clear.gif width=1 height=1></td></tr>");		
		}
	document.write("<tr><td colspan=3 height=1 bgcolor=#2e6196><img src=/images/clear.gif width=1 height=1></td></tr></table>");	
	}
	
	document.write(ct);
}

MenuObj.section = jc_section
MenuObj.bordercolor= jc_bordercolor; 
MenuObj.bgcolor = jc_bgcolor;
MenuObj.mocolor = jc_mocolor;
MenuObj.imgdir  = jc_imgdir;
MenuObj.toroot  = jc_root;


tempmenu = new JCSubMenu(MenuObj.section + "_home");
tempmenu.writeMenu();

tempmenu = new JCSubMenu("btn_clients");
    tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Clients/acsystalent.html'><img src= '/images/clear.gif' width=11 height=9 name='par' border=0>Available Talent</a>&nbsp;", "/it/Clients/acsystalent.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Clients/hire.html'><img src= '/images/clear.gif' width=11 height=9 name='pro' border=0>Hire a Consultant</a>&nbsp;", "/it/Clients/hire.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Clients/CustomerSurvey.asp'><img src= '/images/clear.gif' width=11 height=9 name='pro' border=0>Customer Survey</a>&nbsp;", "/it/Clients/customersurvey.asp");

	

tempmenu.writeMenu();

tempmenu = new JCSubMenu("btn_aboutus");
	
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Aboutus/aboutus.html'><img src= '/images/clear.gif' width=11 height=9 name='priv3' border=0>About Acsys IT</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Aboutus/aboutus.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Aboutus/history.html'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Company History</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Aboutus/history.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Aboutus/corevalues.html'><img src= '/images/clear.gif' width=11 height=9 name='priv5' border=0>Core Values</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Aboutus/corevalues.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Aboutus/vision.html'><img src= '/images/clear.gif' width=11 height=9 name='priv5' border=0>Vision</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Aboutus/vision.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Aboutus/careersacsys.html'><img src= '/images/clear.gif' width=11 height=9 name='priv5' border=0>Internal Opportunities</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Aboutus/careersacsys.html");
	
	
	tempmenu.writeMenu();

tempmenu = new JCSubMenu("btn_entsol");
	
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Enterprisesolutions/overview.html'><img src= '/images/clear.gif' width=11 height=9 name='priv3' border=0>Overview of Services</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Enterprisesolutions/overview.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Enterprisesolutions/sap.html'><img src= '/images/clear.gif' width=11 height=9 name='priv3' border=0>SAP</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Enterprisesolutions/sap.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Enterprisesolutions/peoplesoft.html'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>PeopleSoft</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Enterprisesolutions/peoplesoft.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Enterprisesolutions/oracle.html'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Oracle</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Enterprisesolutions/oracle.html");

	
		tempmenu.writeMenu();

tempmenu = new JCSubMenu("btn_busint");
	
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/BusinessIntelligence/overview.html'><img src= '/images/clear.gif' width=11 height=9 name='priv3' border=0>Overview of Services</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/BusinessIntelligence/overview.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/BusinessIntelligence/BIServiceLines.html#hyperion'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Hyperion</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/BusinessIntelligence/BIServiceLines.html#hyperion");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/BusinessIntelligence/BIServiceLines.html#cognos'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Cognos</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/BusinessIntelligence/BIServiceLines.html#cognos");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/BusinessIntelligence/BIServiceLines.html#microStrategy'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>MicroStrategy</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/BusinessIntelligence/BIServiceLines.html#microStrategy");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/BusinessIntelligence/BIServiceLines.html#businessObjects'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Business Objects</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/BusinessIntelligence/BIServiceLines.html#businessObjects");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/BusinessIntelligence/BIServiceLines.html#ETL'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>ETL/Data Warehousing</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/BusinessIntelligence/BIServiceLines.html#ETL");
	
	
			tempmenu.writeMenu();

tempmenu = new JCSubMenu("btn_consultants");
	
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/consultants/search.asp'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Search Opportunities</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/consultants/search.asp");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Consultants/referral.html'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Referral Program</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Consultants/referral.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Consultants/resources.html'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Resources</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Consultants/resources.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Consultants/submitresume.asp'><img src= '/images/clear.gif' width=11 height=9 name='priv4' border=0>Become a Consultant</a>&nbsp;<br clear=all><img src=images/clear.gif width=109 height=1>", "/it/Consultants/submitresume.asp");



tempmenu.writeMenu();

tempmenu = new JCSubMenu("btn_candidates");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Candidates/acsyscandidateadvantage.html'><img src= '/images/clear.gif' width=11 height=9 name='pre' border=0>The Acsys Candidate Advantage</a>&nbsp;", "/it/Candidates/acsyscandidateadvantage.html");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/consultants/search.asp'><img src= '/images/clear.gif' width=11 height=9 name='cal' border=0>Job Search</a>&nbsp;", "/it/consultants/search.asp");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Candidates/submitresume.asp'><img src= '/images/clear.gif' width=11 height=9 name='cal' border=0>Submit Resume</a>&nbsp;", "/it/Candidates/submitresume.asp");
	tempmenu.addItem("<a class='arialwhitefornav' target='_top' href='/it/Candidates/candidatebenefits.html'><img src= '/images/clear.gif' width=11 height=9 name='cal' border=0>Referral Program</a>&nbsp;", "/it/Candidates/candidatebenefits.html");

	tempmenu.writeMenu();
	
tempmenu = new JCSubMenu("btn_contactus");
	
	
tempmenu.writeMenu();










