
/***********************************************
* 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/about.php">Company Description</a>'
menu1[1]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/key-personel.php">Key Personnel</a>'
menu1[2]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/why-choose.php">Why Choose Qualigence?</a>'
menu1[3]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/fee-structure.php">Fee Structure</a>'
menu1[4]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/guarantee.php">Lowest Cost Guarantee</a>'
menu1[5]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/community.php">Community Involvement</a>'
menu1[6]='<a ' +  class_for_menu_1 + 'href="' + fullPath + 'about/marketing.php">Marketing Materials</a>'

var menu2=new Array()
menu2[0]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/recruitment.php">Quality Research</a>'
menu2[1]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/solutions.php">Quality Recruiting</a>'
menu2[2]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/intelligence.php">Quality Intelligence</a>'
menu2[3]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/education.php">Quality Education</a>'
menu2[4]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/passive.php">The Answer&reg; Recruitment Training Program</a>'
menu2[5]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/real-time.php">Real-Time Client Access System</a>'
menu2[6]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/customized.php">Customized Services</a>'
menu2[7]='<a ' +  class_for_menu_2 + 'href="' + fullPath + 'ability/how-to.php">How to Get Started</a>'

var menu3=new Array()
menu3[0]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'insight/industry.php">Industry Expert</a>'
menu3[1]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'insight/events.php">Industry Events</a>'
menu3[2]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'whitepaper-form.php">Whitepapers</a>'
menu3[3]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'insight/quarterly.php">Qualigence Emessages</a>'
menu3[4]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'insight/news.php">In The News</a>'
menu3[5]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'insight/testimonials.php">Testimonials</a>'
menu3[6]='<a ' +  class_for_menu_3 + 'href="' + fullPath + 'insight/archive.php">Archive</a>'

var menu4=new Array()
menu4[0]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'careers/team.php">Qualigence Team</a>'
menu4[1]='<a ' +  class_for_menu_4 + 'href="' + fullPath + 'careers/positions-available.php">Positions Available</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");
	
}