//Content for menu 1
var menu1=new Array()
menu1[0]='<a href="https://secure.healthx.com/ameriben.aspx">Online Claims Lookup - Login</a>'
menu1[1]='<a href="https://secure.healthx.com/v3app/a/?6715140E180102070C1D182C0D02461D0C021C063104547816080F1B115C52250413185A09120411500C26531C5A5E5C5D1012774048645D030D445146477B48580A455A4C110A585D200F5F590B5007410E67010025130C0D0C0C171C3304500D100E00110A420D210806445A075C4A5E201753354850560D5611402E525154155D1C5201171D2C095A2F2A5D5D37460041501155542D5C5D441079555454405B59462858577D5C56515A53263440713054/">Online Claims Lookup - Registration</a>'

//Content for menu 2
var menu2=new Array()
menu2[0]='<a href="https://secure.healthx.com/ameribenprov.aspx">Online Claims Lookup - Login</a>'
menu2[1]='<a href="https://secure.healthx.com/v3app/a/?6715140E180102070C1D182C0D02461D0C021C06310454781517011F0C17443A4A111E1B1E08100C1D40241D17115107064F0823130767005C5B0D4811197E574C584D5C535950595D77435E500F01014A47251407615018481A0001572106040510551A125A590B745F040F43570716466C46516556480F0D5D410C7106550A155154100F56597713410116160C154E04375D115727562F5244187D57515D475A56375F5D5D012A555E2F5D2130357445571523575B595D/">Online Claims Lookup - Registration</a>'

//Content for menu 3
var menu3=new Array()
menu3[0]='<a href="http://employers.ameriben.com/tools.htm">Online Tools For Existing Clients</a>'
menu3[1]='<a href="http://employers.ameriben.com/reporting.htm">Reporting Packages</a>'
menu3[2]='<a href="http://employers.ameriben.com/topten.htm">Top 10 Reasons to Partner With AmeriBen</a>'
menu3[3]='<a href="http://www.iecgroup.com/home/AnnualManagementConference/Home.aspx" target="_blank">Annual Management Conference</a>'

//Content for menu 4
var menu4=new Array()
menu4[0]='<a href="index.htm">Top 10 Reasons to Partner With AmeriBen</a>'
menu4[1]='<a href="http://www.iecgroup.com/mgmtconf/Index.aspx" target="_blank">Annual Management Conference</a>'

//Content for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.ameriben.com/resources/claims.htm">Online Claims Lookup</a>'
menu5[1]='<a href="http://www.ameriben.com/resources/tools.htm">Tools & Calculators</a>'
menu5[2]='<a href="http://www.ameriben.com/resources/wellness.htm">Wellness Information</a>'
menu5[3]='<a href="http://www.ameriben.com/resources/hospital.htm">Hospital Information</a>'
menu5[4]='<a href="http://www.ameriben.com/resources/diet.htm">Diet & Nutrition</a>'
menu5[5]='<a href="http://www.ameriben.com/resources/dictionary.htm">Medical Terms Dictionary</a>'
menu5[6]='<a href="http://www.ameriben.com/resources/drug.htm">Rx & Drug Information</a>'
menu5[7]='<a href="http://www.ameriben.com/resources/networks.htm">Provider Networks</a>'

//Content for menu 6
var menu6=new Array()
menu6[0]='<a href="http://www.iecgroup.com/mgmtconf/Index.aspx">Visit Our Website</a>'
//menu6[0]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/Home.aspx">Conference Overview</a>'
//menu6[1]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/RegisterToday.aspx">Register Today</a>'
//menu6[2]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/GeneralInformationConferenceActivities.aspx">Conference Activities</a>'
//menu6[3]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/KeynotePresentations.aspx">Keynote Presentations</a>'
//menu6[4]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/AvailableWorkshops.aspx">Available Workshops</a>'
//menu6[5]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/OtherActivities.aspx">Other Activities</a>'
//menu6[6]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/ScheduleofEvents.aspx">Schedule of Events</a>'
//menu6[7]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/OurSponsors.aspx">Our Sponsors</a>'
//menu6[8]='<a href="http://www.sunvalley.com/SunValley/info/sp.fs.aspx" target="_blank">Sun Valley Flight Schedule</a>'
//menu6[9]='<a href="http://www.sunvalley.com/go/groups/AmeriBenIEC.html" target="_blank">Sun Valley Resort ~ Bookings</a>'
//menu6[10]='<a href="http://www.iecgroup.com/Home/AnnualManagementConference/AdditionalInformation.aspx">Additional Information</a>'
		
var menuwidth='165px' //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
