

  	
		
//*** estabilsh clean slate for top nav image swap ***////

var img_flag=new Array(true, true, true, true, true, true);



	//*** preloads and sets up nav images as variables to easily reference**** //
	var imgServices = new Image(88,30); 
	imgServices.src = "/images/nav/services.gif"
	imgServices = "/images/nav/services.gif"
	
	var imgServicesOn = new Image(88,30); 
	imgServicesOn.src = "/images/nav/servicesOn.gif"
	imgServicesOn = "/images/nav/servicesOn.gif"
	
	var imgExpertise = new Image(93,30); 
	imgExpertise.src = "/images/nav/expertise.gif"
	imgExpertise = "/images/nav/expertise.gif"
	
	var imgExpertiseOn = new Image(93,30); 
	imgExpertiseOn.src = "/images/nav/expertiseOn.gif"
	imgExpertiseOn = "/images/nav/expertiseOn.gif"
	
	var imgProcess = new Image(85,30); 
	imgProcess.src = "/images/nav/process.gif"
	imgProcess = "/images/nav/process.gif"
	
	var imgProcessOn = new Image(85,30); 
	imgProcessOn.src = "/images/nav/processOn.gif"
	imgProcessOn = "/images/nav/processOn.gif"
	
	var imgKnowledgeCenter = new Image(151,30); 
	imgKnowledgeCenter.src = "/images/nav/knowledgecenter.gif"
	imgKnowledgeCenter = "/images/nav/knowledgecenter.gif"
	
	var imgKnowledgeCenterOn = new Image(151,30); 
	imgKnowledgeCenterOn.src = "/images/nav/knowledgecenterOn.gif"
	imgKnowledgeCenterOn = "/images/nav/knowledgecenterOn.gif"
	
	var imgCompany = new Image(65,30); 
	imgCompany.src = "/images/nav/company.gif"
	imgCompany = "/images/nav/company.gif"
	
	var imgCompanyOn = new Image(65,30); 
	imgCompanyOn.src = "/images/nav/companyOn.gif"
	imgCompanyOn = "/images/nav/companyOn.gif"
	

	
	

//*** toggle the top nav drop down menus **//////
	function toggleMenu(menuId)	{
	if (document.getElementById(menuId).style.display=='')	{
		document.getElementById(menuId).style.display='none';
	}
	else	{
	document.getElementById(menuId).style.display='';
	}
	}

//***** typical image Swap **//////////

	function imgSwap(img1, img2)	{
	document.images[img1].src = img2;
	}
	

//*** reset Flag variables ****//
 function ResetFlags()
 {
    for (var i=0; i<img_flag.length; i++)
 	  img_flag[i] = true;
	  
	  if(document.images)
	  	{
		document.images['services'].src= imgServices;
		document.images['expertise'].src= imgExpertise;
		document.images['process'].src= imgProcess;
		document.images['knowledgecenter'].src= imgKnowledgeCenter;
		document.images['company'].src= imgCompany;
		}
 }
 
 
 //*** swap the top nav images ONLY if the page does not reside within the ON section ***//
   
  function swapItFlagCheck(img1, img2, flag_name)
 {
    if (document.images)
    {
 	  if  (img_flag[flag_name]) 
 		 document.images[img1].src=img2;
    }
  }
  
 
 
 //*** setup the send an EMAIL TO A FRIEND function ***//
	
	function mailpage()
	{
  		mail_str = "mailto:?subject= I saw this on LucasGroup.com...";
  		mail_str += "&body=I thought you might be interested in this page on LucasGroup.com.  You can view the page here: " + location.href;
  		mail_str += "%0D%0A%0D%0ALucas Group, the leader in professional recruiting, is comprised of executive search consultants who have built a global reputation for excellence. Their recruiters have been successfully providing quality placements in multiple markets and industries for over 30 years."; 
  	location.href = mail_str;
	}
