
//menu 1
var menu1=new Array()
menu1[0]='<a href="/"> One</a>'
menu1[1]='<a href="/"> Two</a>'
menu1[2]='<a href="/"> Three</a>'


//menu 2
var menu2=new Array()
menu2[0]='<a href="/about/"> History and Mission</a>'
menu2[1]='<a href="/about/governance.aspx"> Governance</a>'
menu2[2]='<a href="/about/contact.aspx"> Contact Us</a>'
menu2[3]='<a href="/about/faqs.aspx"> FAQs</a>'


//menu 3
var menu3=new Array()
menu3[1]='<a href="/certification/"> Overview</a>'
menu3[2]='<a href="/certification/coa.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> COA</a>'
menu3[3]='<a href="/certification/cot.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> COT</a>'
menu3[4]='<a href="/certification/comt.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> COMT</a>'
menu3[5]='<a href="/certification/ccoa.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> CCOA</a>'
menu3[6]='<a href="/certification/cdos.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> CDOS</a>'
menu3[7]='<a href="/certification/roub.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> ROUB</a>'
menu3[8]='<a href="/certification/osa.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> OSA</a>'
menu3[9]='<a href="/certification/certified.aspx"> Get Certified</a>'
menu3[10]='<a href="/certification/recertified.aspx"> Get Recertified</a>'

//menu 4
var menu4=new Array()
menu4[0]='<a href="/education/webinars.aspx">Webinars</a>'
menu4[1]='<a href="/education/"> Continuing Education</a>'
menu4[2]='<a href="/education/cehome.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Earn Credits at Home</a>'
menu4[3]='<a href="/education/cemeetings.aspx"> <img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Earn Credits at Meetings</a>'
menu4[4]='<a href="/CoA-OMP/list/"> Training Programs</a>'
menu4[5]='<a href="/education/trainingtools.aspx"> Training Tools</a>'
menu4[6]='<a href="/education/ceproviders.aspx"> CE Provider Application</a>'


//menu 5
var menu5=new Array()
//menu5[0]='<a href="/news/eyelights_0811.aspx"> News</a>'
menu5[0]='<a href="/news/eyelights_1211.aspx"> <em> Eye Lights </em> December 2011</a>'
menu5[1]='<a href="/news/eyelights.aspx"> <em>Eye Lights </em> Newsletter Archives</a>'
menu5[2]='<a href="/news/press_release.aspx"> Press Releases </a>'
menu5[3]='<a href="/news/feeds/RSS_main.aspx"> RSS </a>'


//menu 6
var menu6=new Array()
menu6[1]='<a href="http://public.jcahpo.org/JCAHPO/Events/List/Core/Events/Events.aspx?hkey=bf060db1-1269-4b6b-9943-5df537bcd1e0"> Continuing Education Programs</a>'
menu6[2]='<a href="/meetings/calendar.aspx"> Calendar</a>'
//menu6[3] = '<a href="http://www.jcahpo.org/ace2011/default.aspx"> ACE 2011</a>'


//menu 7
var menu7=new Array()
menu7[0]='<a href="/resources/"> Benefits of Certification</a>'
menu7[1]='<a href="/resources/certification_exam_content.aspx"> Certification Exam Content</a>'
menu7[2]='<a href="/resources/certification_verification.aspx"> Certification Verification</a>'
menu7[3]='<a href="/resources/recruitment.aspx"> Recruitment and Training </a>'
menu7[4]='<a href="/resources/find.aspx"> Find a Job </a>'


//menu 8
var menu8=new Array()
menu8[0]='<a href="/store/bookstore.aspx"> Bookstore</a>'
menu8[1]='<a href="/store/educational.aspx"> Educational Products</a>'
menu8[2]='<a href="/store/services.aspx"> Services</a>'
menu8[3]='<a href="/store/publications.aspx"> Free Publications</a>'
menu8[4]='<a href="/store/merchandise.aspx"> Merchandise</a>'

//menu 9
var menu9=new Array()
menu9[0]='<a href="/foundation/"> Home </a>'
menu9[1]='<a href="/foundation/about/"> About Foundation</a>'
menu9[2]='<a href="/foundation/scholarships/"> Scholarships & Awards </a>'
menu9[3]='<a href="/foundation/contributors/"> Contributors </a>'
menu9[4]='<a href="/foundation/contribute/"> Make a Contribution </a>'
menu9[5]='<a href="/foundation/special/"> Special Funds </a>'
menu9[6]='<a href="/foundation/bookstore/"> Bookstore </a>'
menu9[7]='<a href="/foundation/news/"> Focus Newsletter </a>'

//CCOA Test Menu
var menu22=new Array()
menu22[0]='<a href="/foundation/"> Test </a>'
menu22[1]='<a href="/foundation/about/"> Test</a>'
menu22[2]='<a href="/foundation/scholarships/">Test</a>'

//Annual Meeting Menu

//Registration
var menu31=new Array()
menu31[0]='<a href="#"> Register Online </a>'
menu31[1]='<a href="#"> Important Dates </a>'
menu31[2]='<a href="#"> Sold Out Courses </a>'
menu31[3]='<a href="#"> Cross-Reference Tool </a>'
menu31[4]='<a href="#"> Registration Information </a>'
menu31[5]='<a href="#"> On-Site Registration Form </a>'




var menuwidth='150px'
var menubgcolor='white'
var disappeardelay=300
var hidemenu_onclick="no"
		
var horizontaloffset=-40 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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=-500
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}

