  function hotColor(obj) {
    obj.style.color="white";
    obj.style.backgroundColor="#4765A2";
    return;
    }

  function regColor(obj) {
    obj.style.color="#4765A2";
    obj.style.backgroundColor="red";
    return;
    }

var menuApply=new Array();
menuApply[0]='<a href="jobs.asp" >View Jobs</a>'
menuApply[1]='<a href="apply.htm" >Post Resume</a>'
//menuApply[2]='<a href="http://public.bullhornstaffing.com/JobBoard/Standard/default.cfm?privateLabelID=1017" target="_new" >Login (Bullhorn)</a>'
//menuApply[3]='<a href=http://www.iplacement.com/viewjobs.asp >View Jobs</a>'
//menuApply[4]='<a href=http://www.iplacement.com/apply.asp >Post Resume</a>'
//menuApply[5]='<a href=http://www.iplacement.com/resbld.asp >Build Resume</a>'
//menuApply[6]='<a href=assessment.htm >Assessment Center</a>'
//menuApply[7]='<a href=fasq.htm >FAQs</a>'

var menuEmploy=new Array();
menuEmploy[0]='<a href=employees.htm >Welcome</a>'
menuEmploy[1]='<a href=benefits.htm >Benefits</a>'
menuEmploy[2]='<a href=forms.htm >Online Forms</a>'
menuEmploy[3]='<a href=referral.htm >Referral Program</a>'
menuEmploy[4]="<a href=empfaqs.htm >FAQ's</a>"

var menuClients=new Array();
menuClients[0]='<a href=RecruitmentProcess.htm >Recruitment Process</a>'
menuClients[1]='<a href=StrategicStaffing.htm >Strategic Staffing</a>'
menuClients[2]='<a href=FunctionalServices.htm >Functional Services</a>'
menuClients[3]='<a href=HumanResources.htm >Human Resources</a>'
menuClients[4]='<a href=OurApproach.htm >Our Approach</a>'
//menuClients[5]='<a href=casestudies.htm >Case Studies</a>'


var menuProfile=new Array();
menuProfile[0]='<a href=aboutus.htm >About Us</a>'
menuProfile[1]='<a href=whatwedo.htm >What We Do</a>'
menuProfile[2]='<a href=missionvision.htm >Mission & Vision</a>'
menuProfile[3]='<a href=whysource2.htm >Why Source2?</a>'
menuProfile[4]='<a href=management.htm >Management</a>'
menuProfile[5]='<a href=investors.htm >Investor Relations</a>'
menuProfile[6]='<a href=partners.htm >Partners</a>'

var menuwidth='165px' //default menu width
//var menubgcolor='#A4A8CB'  //menu bgcolor
var menubgcolor='#DDDDDD'  //menu bgcolor
              
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

var ie=document.all
var ns=document.getElementById&&!document.all

if (ie||ns)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></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 (ie||ns) 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=ie && !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=ie && !window.opera? iecompattest().scrollTop : window.pageYOffset
      var windowedge=ie && !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 (ie||ns) dropmenuobj.innerHTML=what.join("") }

function dropdownmenu(obj, e, menucontents, menuwidth){



  if (window.event) event.cancelBubble=true
  else if (e.stopPropagation) e.stopPropagation()
    clearhidemenu()

    dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv

    //regColor(dropmenuobj);

    populatemenu(menucontents)
    if (ie||ns){
      showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
      dropmenuobj.x=getposOffset(obj, "left")
      dropmenuobj.y=getposOffset(obj, "top")
      dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
      dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
      }
    return clickreturnvalue()
    }



function clickreturnvalue(){
  if (ie||ns) return false
  else return true
  }

function contains_ns(a, b) {
  while (b.parentNode)
  if ((b = b.parentNode) == a) return true;
  return false;
  }

function dynamichide(e){
  if (ie&&!dropmenuobj.contains(e.toElement))
  delayhidemenu()
  else if (ns&&e.currentTarget!= e.relatedTarget&& !contains_ns(e.currentTarget, e.relatedTarget))
  delayhidemenu()
  }

function hidemenu(e){
  if (typeof dropmenuobj!="undefined"){
    if (ie||ns)
      dropmenuobj.style.visibility="hidden"
    }
  }

function delayhidemenu(){
  if (ie||ns)
    delayhide=setTimeout("hidemenu()",disappeardelay)
  }

function clearhidemenu(){
  if (typeof delayhide!="undefined")
    clearTimeout(delayhide)
  }

if (hidemenu_onclick=="yes") document.onclick=hidemenu


