
//Contents for menu 1 -- about
var menu1=new Array()
menu1[0]='<a href="company_overview.php">Company Overview</a>'
menu1[1]='<a href="worldwide_difference.php">Cambridge Difference</a>'
menu1[2]='<a href="locations.php">Locations</a>'
/*menu1[3]='<a href="management_team.php">Management Team</a>'*/
menu1[5]='<a href="careers.php">Careers</a>'
menu1[6]='<a href="life_cambridge.php" style="margin-left:10px">Life at Cambridge</a>'
menu1[7]='<a href="benefits.php" style="margin-left:10px">Benefits</a>'
menu1[8]='<a href="case_studies.php">Case Studies & Articles</a>'
menu1[9]='<a href="University_of_Maine.php" style="margin-left:10px">Case Study</a>'
menu1[10]='<a href="articles_information_week.php" style="margin-left:10px">Information Week</a>'

menu1[11]='<a href="articles_claims_magazine.php" style="margin-left:10px">Claims Magazine</a>'
menu1[12]='<a href="case_studies_corporate_express.php" style="margin-left:10px">Corporate Express</a>'
menu1[13]='<a href="case_studies_laidlaw.php" style="margin-left:10px">Laidlaw</a>'
menu1[14]='<a href="case_studies_mastercard.php" style="margin-left:10px">MasterCard</a>'

//Contents for menu 2 -- services
var menu2=new Array()
menu2[0]='<a href="auto_liability.php">Auto Liability</a>'
menu2[1]='<a href="consumer.php">Consumer</a>'
menu2[2]='<a href="general_liability.php">General Liability</a>'
menu2[3]='<a href="idm.php">Integrated Disability Management</a>'
menu2[4]='<a href="product_liability.php">Product Liability</a>'
menu2[5]='<a href="professional_liability.php">Professional Liability</a>'
menu2[6]='<a href="property.php">Property</a>'
menu2[7]='<a href="reinsurance.php">Reinsurance</a>'
menu2[8]='<a href="unemployment_compensation.php">Unemployment Compensation</a>'
menu2[9]='<a href="workers_compensation.php">Workers\' Compensation</a>'


//Contents for menu 3 -- Specialty/Risk Management
var menu3=new Array()
menu3[0]='<a href="customer_care_center.php">Customer Care Center</a>'
menu3[1]='<a href="finance_accounting.php">Finance and Accounting Services</a>'
menu3[2]='<a href="information_tools.php">Information Tools</a>'
menu3[3]='<a href="litigation_services.php">Litigation Services</a>'
menu3[4]='<a href="loss_control.php">Loss Control Services</a>'
menu3[5]='<a href="managed_care.php">Managed Care</a>'
menu3[6]='<a href="outcomes_management.php">Outcomes Management and Audit Consulting</a>'
menu3[7]='<a href="recovery_services.php">Recoveries Management</a>'
menu3[8]='<a href="special_investigations.php">Special Investigations</a>'
menu3[9]='<a href="structured_settlements.php">Structured Settlements and Medicare Set-Aside</a>'




//Contents for menu 4 -- News and information
var menu4=new Array()
//menu4[0]='<a href="press_room.php">Press Room</a>'
menu4[1]='<a href="press_room_2008.php">2008 Press Releases</a>'
menu4[2]='<a href="press_room.php">2007 Press Releases</a>'
menu4[3]='<a href="press_room2006.php">2006 Press Releases</a>'
menu4[4]='<a href="events.php">Events</a>'
menu4[5]='<a href="events_arch.php">Events Archive</a>'



var menuwidth='220px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////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()" 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 (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){
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.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

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){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
