

/***********************************************

* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)

* This notice MUST stay intact for legal use

* Visit http://www.dynamicdrive.com/ for full source code

***********************************************/



//Contents for menu 1

var fullPath = 'http://' + window.location.hostname + '/';

var class_for_menu_1 = 'class="mnu1"';

var class_for_menu_2 = 'class="mnu2"';

var class_for_menu_3 = 'class="mnu3"';

var class_for_menu_4 = 'class="mnu4"';

var menu1=new Array()

menu1[0]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/overview.php">Overview</a>'

menu1[1]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/our-history.php">Our History</a>'

menu1[2]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/our-values.php">Our Values</a>'

menu1[3]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/key-personnel.php">Our Team</a>'

menu1[4]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/news-resources.php">News & Resources</a>'

menu1[5]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/lowcost-solutions.php">Low Cost Solutions</a>'

menu1[6]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/clients.php">Clients</a>'

menu1[7]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/careers.php">Careers</a>'



var menu2=new Array()

menu2[0]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/overview.php">Overview</a>'

menu2[1]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/sourcing.php">Sourcing</a>'

menu2[2]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/totaltalent.php">Total Talent ID</a>'

menu2[3]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/diversity.php">Diversity</a>'

menu2[4]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/compensation.php">Compensation</a>'

menu2[5]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/competitor.php">Competitor</a>'

menu2[6]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/functions.php">Functions/Industry</a>'

menu2[7]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/real-time.php">Real-time</a>'

menu2[8]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/ownership.php">Ownership</a>'

menu2[9]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'research/custom.php">Custom</a>'



var menu3=new Array()

menu3[0]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/overview.php">Overview</a>'

menu3[1]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/service-levels.php">Service Levels</a>'

menu3[2]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/passive-candidate.php">Passive Candidate</a>'

menu3[3]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/candidate-evaluation.php">Candidate Evaluation</a>'

menu3[4]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/candidate-development.php">Candidate Development</a>'

menu3[5]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/candidate-transition.php">Candidate Transition</a>'

menu3[6]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/recruiter-education.php">Recruiter Education</a>'

menu3[7]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/contract.php">Contract Recruiter Staffing</a>'

menu3[8]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/resume-response.php">Resume Response</a>'

menu3[9]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'recruiting/custom.php">Custom</a>'



var menu4=new Array()

menu4[0]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/overview.php">Overview</a>'

menu4[1]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/talent-portfolio.php">Talent Portfolio Audit</a>'

menu4[2]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/employer-branding.php">Employer Branding</a>'

menu4[3]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/career-marketing.php">Career Marketing</a>'

menu4[4]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/social-media.php">Social Media</a>'

menu4[5]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/referral-programs.php">Employee Referral Programs</a>'

menu4[6]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'innovation/custom.php">Custom</a>'





var menuwidth='165px' //default menu width

var menubgcolor=''  //menu bgcolor

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)

var hidemenu_onclick="yes" //hide menu when user clicks within menu?

var imgid = "";



/////No further editting needed



var ie4=document.all

var ns6=document.getElementById&&!document.all



if (ie4||ns6)

document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu(imgid)" onMouseout="dynamichide(event,imgid)"></div>')



function getposOffset(what, offsettype){

var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;

var parentEl=what.offsetParent;

while (parentEl!=null){

totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;

parentEl=parentEl.offsetParent;

}

return totaloffset;

}





function showhide(obj, e, visible, hidden, menuwidth){

if (ie4||ns6)

dropmenuobj.style.left=dropmenuobj.style.top="-500px"

if (menuwidth!=""){

dropmenuobj.widthobj=dropmenuobj.style

dropmenuobj.widthobj.width=menuwidth

}

if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")

obj.visibility=visible

else if (e.type=="click")

obj.visibility=hidden

}



function iecompattest(){

return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function clearbrowseredge(obj, whichedge){

var edgeoffset=0

if (whichedge=="rightedge"){

var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15

dropmenuobj.contentmeasure=dropmenuobj.offsetWidth

if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)

edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth

}

else{

var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset

var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18

dropmenuobj.contentmeasure=dropmenuobj.offsetHeight

if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?

edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight

if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?

edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge

}

}

return edgeoffset

}



function populatemenu(what){

if (ie4||ns6)

dropmenuobj.innerHTML=what.join("")

}





function dropdownmenu(obj, e, menucontents, menuwidth, top_gg, left_gg, imgid){



if (window.event) event.cancelBubble=true

else if (e.stopPropagation) e.stopPropagation()

clearhidemenu()

dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv

populatemenu(menucontents)



if (ie4||ns6){

showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)



dropmenuobj.x=getposOffset(obj, "left")

dropmenuobj.y=getposOffset(obj, "top")

dropmenuobj.x=dropmenuobj.x + (left_gg * 1);

dropmenuobj.y=dropmenuobj.y + (top_gg * 1);

dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"

dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"

imagechange(imgid,'ovr');

}



return clickreturnvalue()

}



function clickreturnvalue(){

if (ie4||ns6) return false

else return true

}



function contains_ns6(a, b) {

while (b.parentNode)

if ((b = b.parentNode) == a)

return true;

return false;

}



function dynamichide(e,imgid){

if (ie4&&!dropmenuobj.contains(e.toElement))

delayhidemenu()

else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))

delayhidemenu()

imagechange(imgid,'out')

}



function hidemenu(e){

if (typeof dropmenuobj!="undefined"){

if (ie4||ns6)

dropmenuobj.style.visibility="hidden"

}

}



function delayhidemenu(imgid){

if (ie4||ns6)

delayhide=setTimeout("hidemenu()",disappeardelay)

imagechange(imgid,'out')

}



function clearhidemenu(imgid){

if (typeof delayhide!="undefined")

clearTimeout(delayhide)

imagechange(imgid,'ovr');

}



if (hidemenu_onclick=="yes")

document.onclick=hidemenu





function imagechange(imgid1,ovrORout){

	imgid = imgid1;

	var GetId = "";

	var SRC = "";

	if(ovrORout == "ovr"){

		var CLS_NAM = "";

		switch(imgid){

			case 1:

				GetId = "set1";

				SRC = "images/set1ovr.jpg";

				changeImage(GetId,SRC,GetId);

				break;

			case 2:

				GetId = "set2";

				SRC = "images/set2ovr.jpg";

				changeImage(GetId,SRC,GetId);

				break;

			case 3:

				GetId = "set3";

				SRC = "images/set3ovr.jpg";

				changeImage(GetId,SRC,GetId);

				break;

			case 4:

				GetId = "set4";

				SRC = "images/set4ovr.jpg";

				changeImage(GetId,SRC,GetId);

				break;

		}

	}else if(ovrORout == "out"){

		var CLS_NAM = "top-nav";

		switch(imgid){

			case 1:

				GetId = "set1";

				SRC = "images/set1.jpg";

				changeImage(GetId,SRC,CLS_NAM);

				break;

			case 2:

				GetId = "set2";

				SRC = "images/set2.jpg";

				changeImage(GetId,SRC,CLS_NAM);

				break;

			case 3:

				GetId = "set3";

				SRC = "images/set3.jpg";

				changeImage(GetId,SRC,CLS_NAM);

				break;

			case 4:

				GetId = "set4";

				SRC = "images/set4.jpg";

				changeImage(GetId,SRC,CLS_NAM);

				break;

		}	

	}

		

}

function changeImage(GetId,SRC,CLS_NAM){

	document.getElementById(GetId).className = CLS_NAM;

	eval("document.images." + GetId + ".src = SRC");

	

}
