/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="260px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[1]='<a href="http://www.flexadministrators.com/fsa/index.html">GENERAL INFORMATION</a>'
linkset[1]+='<hr>' //Optional Separator
linkset[1]+='<a href="http://www.flexadministrators.com/fsa/faq_medical.html">FREQUENTLY ASKED QUESTIONS - MEDICAL</a>'
linkset[1]+='<a href="http://www.flexadministrators.com/fsa/faq_depcare.html">FREQUENTLY ASKED QUESTIONS - DEPENDENT CARE</a>'
linkset[1]+='<a href="http://www.flexadministrators.com/fsa/2half.html">2½ MONTH EXTENSION</a>'
linkset[1]+='<a href="http://www.flexadministrators.com/fsa/reimexp.html">REIMBURSABLE/UNREIMBURSABLE EXPENSES</a>'
linkset[1]+='<a href="http://www.flexadministrators.com/fsa/howtofile.html">HOW TO FILE A CLAIM</a>'
linkset[1]+='<a href="http://www.flexadministrators.com/administrators/index.html">CHANGE IN STATUS INFO FOR ADMINISTRATORS</a>'
linkset[1]+='<a href="http://www.flexadministrators.com/fsa/flexcalc.html">FLEX PLAN CALCULATORS</a>'
linkset[1]+='<hr>' //Optional Separator
linkset[1]+='<a href="https://plus12.safe-order.net/flexadministrators/fsa/forms_participant.html">FLEX FORMS - PARTICIPANTS</a>'
linkset[1]+='<a href="https://plus12.safe-order.net/flexadministrators/fsa/administrators/forms_administrator.html">FLEX FORMS - ADMINISTRATORS</a>'

linkset[2]='<a href="http://www.flexadministrators.com/hra/index.html">GENERAL INFORMATION</a>'
linkset[2]+='<hr>' //Optional Separator
linkset[2]+='<a href="http://www.flexadministrators.com/hra/faq.html">FREQUENTLY ASKED QUESTIONS</a>'
linkset[2]+='<a href="http://www.flexadministrators.com/hra/howtofile.html">HOW TO FILE A CLAIM</a>'
linkset[2]+='<a href="http://www.flexadministrators.com/hra/eobs.html">SAMPLE EOB’S</a>'
linkset[2]+='<hr>' //Optional Separator
linkset[2]+='<a href="https://plus12.safe-order.net/flexadministrators/hra/forms.html">HRA FORMS</a>'

linkset[3]='<a href="http://www.flexadministrators.com/hsa/index.html">OVERVIEW OF HSA</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/how.html">HOW DOES AN HSA WORK?</a>'
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/top10.html">TOP 10 REASONS TO HAVE AN HSA</a>'
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/tax_benefits.html">TAX BENEFITS OF AN HSA</a>'
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/rules_regulations.html">RULES AND REGULATIONS</a>'
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/limits.html">LIMITS</a>'
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/eligibility.html">ELIGIBILITY</a>'
linkset[3]+='<a href="http://www.flexadministrators.com/hsa/hsa_and_limited_purpose_fsa.html">HSAS AND LIMITED PURPOSE FSAS</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="http://www.hsa223.com" target="_blank">FREQUENTLY ASKED QUESTIONS (external link)</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="http://www.mysourcecard.com/videos/finalHSA.asp" target="_blank">MY SOURCE CARD DEBIT CARD INFORMATIONAL VIDEO (external link)</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="https://plus12.safe-order.net/flexadministrators/hsa/forms.html">HSA FORMS</a>'

linkset[4]='<a href="http://www.flexadministrators.com/213/index.html">GENERAL INFORMATION</a>'

linkset[5]='<a href="http://www.flexadministrators.com/cobra/index.html">GENERAL INFORMATION</a>'
linkset[5]+='<a href="http://www.flexadministrators.com/cobra/stimulus_bill.html">ADMINISTRATION FOR THE COBRA STIMULUS BILL</a>'
linkset[5]+='<a href="http://www.flexadministrators.com/cobra/cobra_subsidy.html">COBRA SUBSIDY</a>'
linkset[5]+='<a href="http://www.millerjohnson.com/pubs/xprPubDetail.aspx?xpST=PubDetail&pub=1672">OTHER RESOURCES (external link)</a>'
linkset[5]+='<hr>' //Optional Separator
linkset[5]+='<a href="http://www.flexadministrators.com/cobra/faq_employees.html">FREQUENTLY ASKED QUESTIONS - EMPLOYEES</a>'
linkset[5]+='<a href="http://www.flexadministrators.com/cobra/administrators/faq_employers.html">FREQUENTLY ASKED QUESTIONS - EMPLOYERS</a>'
linkset[5]+='<hr>' //Optional Separator
linkset[5]+='<a href="https://plus12.safe-order.net/flexadministrators/cobra/forms.html">COBRA FORMS</a>'

linkset[6]='<a href="http://www.flexadministrators.com/mysourcecard/index.html">GENERAL INFORMATION</a>'
linkset[6]+='<hr>' //Optional Separator
linkset[6]+='<a href="http://www.flexadministrators.com/mysourcecard/faq.html">FREQUENTLY ASKED QUESTIONS</a>'
linkset[6]+='<hr>' //Optional Separator
linkset[6]+='<a href="https://plus12.safe-order.net/flexadministrators/mysourcecard/forms.html">mY SOURCE CARD FORMS</a>'

////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
//**** if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
//**** menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
//**** else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+147+"px" : window.pageXOffset+147+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight-144+"px" : window.pageYOffset+eventY-menuobj.contentheight-144+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY-144+"px" : window.pageYOffset+eventY-144+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",1000)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu