		/****************************************************************
		*								*
		*	Written by Dave Myron for Excell Data Corporation.	*
		*								*
		****************************************************************/


		// Variables
		var aryDivs = new Array();	
		var aryMenuON = new Array();
		var aryMenuOFF = new Array();
		
		aryDivs[0] = "divJobsAtExcell";	
		aryDivs[1] = "divServices";	
		aryDivs[2] = "divAboutExcell";	
		aryDivs[3] = "divPartners";	
		aryDivs[4] = "divContactUs";
		
		// These next two arrays are used to pass variables to changeImage to swap out the menu headers upon rollover
		aryMenuON[0] = "'imgJobsAtExcell','objMenuJobsAtExcell_ON'";
		aryMenuON[1] = "'imgServices','objMenuServices_ON'";
		aryMenuON[2] = "'imgAboutExcell','objMenuAboutExcell_ON'";
		aryMenuON[3] = "'imgPartners','objMenuPartners_ON'";
		aryMenuON[4] = "'imgContact','objMenuContact_ON'";
		
		aryMenuOFF[0] = "'imgJobsAtExcell','objMenuJobsAtExcell_OFF'";
		aryMenuOFF[1] = "'imgServices','objMenuServices_OFF'";
		aryMenuOFF[2] = "'imgAboutExcell','objMenuAboutExcell_OFF'";
		aryMenuOFF[3] = "'imgPartners','objMenuPartners_OFF'";
		aryMenuOFF[4] = "'imgContact','objMenuContact_OFF'";
		
		statusOfMenu = -1;  // Used for tracking of mouse.
		
		var hideMenu;
		
		
		// DOM and Is
		function Is() {
		  var agent = navigator.userAgent.toLowerCase();
		  this.major = parseInt(navigator.appVersion);
		  this.minor = parseFloat(navigator.appVersion);
		  this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
		  this.ns2 = (this.ns && (this.major == 3));
		  this.ns3 = (this.ns && (this.major == 3));
		  this.ns4b = (this.ns && (this.minor < 4.04));
		  this.ns4 = (this.ns && (this.major >= 4));
		  this.ie = (agent.indexOf("msie") != -1);
		  this.ie3 = (this.ie && (this.major == 2));
		  this.ie4 = (this.ie && (this.major >= 4));
		  this.op3 = (agent.indexOf("opera") != -1);
		  this.win = (agent.indexOf("win")!=-1);
		  this.mac = (agent.indexOf("mac")!=-1);
		  this.unix = (agent.indexOf("x11")!=-1);
		}
	
		var is = new Is();
		
		if(is.ns4) {
			 doc = "document";
			 sty = "";
			 htm = ".document";
			 vis = "show";
			 hide = "hide";
		} else if(is.ie4) {
			 doc = "document.all";
			 sty = ".style";
			 htm = "";
			 vis = "visible";
			 hide = "hidden";
		}
		
		
		// Netscape Resize Bug fix
		if (is.ns4) {
		   origWidth = innerWidth;
		   origHeight = innerHeight;
		}
		function reDo() {
		if (innerWidth != origWidth || innerHeight != origHeight)
		   location.reload();
		}
		if (is.ns4) onresize = reDo;
	
		
		// Mouse Tracking for menu
		function mouseTrack(e) {
			if (is.ie4) {
				window.mouseX = event.clientX + document.body.scrollLeft;
				window.mouseY = event.clientY + document.body.scrollTop;
			} else {
				window.mouseX = e.pageX; 
				window.mouseY = e.pageY;
			}
		}
		
		function menuBorder() {
			menuItem = eval(doc + "." + aryDivs[0] + sty);
			is.ns4 ? window.menuTop = menuItem.top : window.menuTop = menuItem.pixelTop;
			is.ns4 ? window.menuLeft = menuItem.left : window.menuLeft = menuItem.pixelLeft;
			is.ns4 ? window.menuRight = menuItem.left + menuItem.width : window.menuRight = menuItem.pixelLeft + menuItem.pixelWidth;
			is.ns4 ? window.menuBottom = menuItem.top + menuItem.height : window.menuBottom = menuItem.pixelTop + menuItem.pixelHeight;
		}
		
		function animateMenu() {			
			if (window.currentMenu > -1) {
				if (window.menuTop < window.mouseY && window.mouseY < window.menuBottom) {
					if (window.menuLeft < window.mouseX && window.mouseX < window.menuRight) {
						inBorder = true;					
					} else {
						inBorder = false;
					}	
				} else {
					inBorder = false;
				}
				
				if (inBorder) {					
					if (statusOfMenu == 1) {
						clearTimeout(hideMenu);
						statusOfMenu = 0;
					}
				} else {					
					if (statusOfMenu == 0) {
						clearTimeout(hideMenu);
						hideMenu = setTimeout("hideLayer("+window.currentMenu+")",750);
						statusOfMenu = 1;
					}					
				}
			}
			//****REM to remove the timeout feture on the menu --Zaron Thompson 4/17/01*****
			//setTimeout("animateMenu()",2000);
		}
		
		
		// used to show one layer, hide the rest
		function showLayer(layer) {
			for (i=0; i<aryDivs.length; i++) {
				currentDiv = eval(doc + "." + aryDivs[i] + sty);
				//****REM to remove the menu from popping up--Zaron Thompson 9/17/01*****
				if ( layer != i ) {
				//	currentDiv.visibility = hide;
				//	currentDiv.z = i;
					eval("changeImage(null,"+aryMenuOFF[i]+")");
				} else {
				//	currentDiv.visibility = vis;
				//	currentDiv.z = 100;
				//	window.currentMenu = i;
				//	clearTimeout(hideMenu);
					//****REM to remove the timeout feture on the menu --Zaron Thompson 4/17/01*****
					//if (statusOfMenu == -1 && window.currentMenu == i) {						
					//	hideMenu = setTimeout("hideLayer("+window.currentMenu+")",3000);	// Set the timeout for hideLayer only the first time they roll over
					//} else {
					//	hideMenu = setTimeout("hideLayer("+window.currentMenu+")",1500);
					//}
					eval("changeImage(null,"+aryMenuON[i]+")");		// Swap the header image out
					statusOfMenu = 1;
				}				
			}
		}
		
		function hideLayer(layer) {
			currentDiv = eval(doc + "." + aryDivs[layer] + sty);
			currentDiv.visibility = hide;
			currentDiv.z = layer;
			eval("changeImage(null,"+aryMenuOFF[layer]+")");		// Swap the header image back
			window.currentMenu = -1;
			statusOfMenu = -1;
			clearTimeout(hideMenu);
		}
	
		
		// rollover code and preload of images
		
		function preload(imgObj,imgSrc) {
			if (document.images) {
				eval(imgObj+' = new Image()');
				eval(imgObj+'.src = "'+imgSrc+'"');
			}
		}
	
		function changeImage(layer,imgName,imgObj) {
			if (is.major > 3) {
				if (document.layers && layer!=null) {
					eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src');
				} else {
					document.images[imgName].src = eval(imgObj+".src");
				}
			}
		}
		
		preload("objMenuJobsAtExcell_ON","/images/menu_jobsAtExcell_ON.gif");
		preload("objMenuJobsAtExcell_OFF","/images/menu_jobsAtExcell_OFF.gif");
		preload("objMenuServices_ON","/images/menu_services_ON.gif");
		preload("objMenuServices_OFF","/images/menu_services_OFF.gif");
		preload("objMenuAboutExcell_ON","/images/menu_aboutExcell_ON.gif");
		preload("objMenuAboutExcell_OFF","/images/menu_aboutExcell_OFF.gif");
		preload("objMenuPartners_ON","/images/menu_partners_ON.gif");
		preload("objMenuPartners_OFF","/images/menu_partners_OFF.gif");
		preload("objMenuContact_ON","/images/menu_contact_ON.gif");
		preload("objMenuContact_OFF","/images/menu_contact_OFF.gif");
		preload("objApplyNow_ON","/images/menu_jae_ApplyNow_over.gif");
		preload("objApplyNow_OFF","/images/menu_jae_ApplyNow.gif");
		preload("objSearch_ON","/images/menu_jae_Search_over.gif");
		preload("objSearch_OFF","/images/menu_jae_Search.gif");
		preload("objTestimonials_ON","/images/menu_jae_Testimonials_over.gif");
		preload("objTestimonials_OFF","/images/menu_jae_Testimonials.gif");
		preload("objBenefits_ON","/images/menu_jae_Benefits_over.gif");
		preload("objBenefits_OFF","/images/menu_jae_Benefits.gif");
		preload("objpresmsg_ON","/images/menu_jae_presmsg_over.gif");
		preload("objpresmsg_OFF","/images/menu_jae_presmsg.gif");
		preload("objCCS_ON","/images/menu_serv_CCS_over.gif");
		preload("objCCS_OFF","/images/menu_serv_CCS.gif");
		preload("objTSG_ON","/images/menu_serv_TSG_over.gif");
		preload("objTSG_OFF","/images/menu_serv_TSG.gif");
		preload("objTSS_ON","/images/menu_serv_TSS_over.gif");
		preload("objTSS_OFF","/images/menu_serv_TSS.gif");
		preload("objcompucom_ON","/images/menu_ae_compucom_over.gif");
		preload("objcompucom_OFF","/images/menu_ae_compucom.gif");
		preload("objAwards_ON","/images/menu_ae_Awards_over.gif");
		preload("objAwards_OFF","/images/menu_ae_Awards.gif");
		preload("objNews_ON","/images/menu_ae_News_over.gif");
		preload("objNews_OFF","/images/menu_ae_News.gif");
		preload("objDiversity_ON","/images/menu_ae_diversity_over.gif");
		preload("objDiversity_OFF","/images/menu_ae_diversity.gif");
		preload("objManagement_ON","/images/menu_ae_Management_over.gif");
		preload("objManagement_OFF","/images/menu_ae_Management.gif");
		preload("objCulture_ON","/images/menu_ae_Culture_over.gif");
		preload("objCulture_OFF","/images/menu_ae_Culture.gif");
		preload("objClients_ON","/images/menu_part_Clients_over.gif");
		preload("objClients_OFF","/images/menu_part_Clients.gif");
		preload("objMicrosoft_ON","/images/menu_part_Microsoft_over.gif");
		preload("objMicrosoft_OFF","/images/menu_part_Microsoft.gif");

		
		
		// initialize the layers - Called onLoad
		function init() {
			
						
			window.currentMenu = -1;
			
			menuBorder();
			
			if (is.ns4) {document.captureEvents(Event.MOUSEMOVE);}
    		document.onmousemove = mouseTrack;
			
			animateMenu();
			
			
		} 