/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var menu1=new Array()
menu1[0]='<a class="TopMenu" href="/foundation/intro.asp" target="maintext">NABP Newsletter</a>'
menu1[1]='<a class="TopMenu" href="/foundation/intro.asp#sn" target="maintext">State Newsletters</a>'
menu1[2]='<a class="TopMenu" href="/foundation/intro.asp#npc" target="maintext">Pharmacy Compliance</a>'
menu1[3]='<a class="TopMenu" href="http://pub.nabp.us" target="_blank">Publication Order Form</a>'

var menu2=new Array()
menu2[0]='<a class="TopMenu" href="/whoweare/publications.asp#modelact" target="maintext">Model Act</a>'
menu2[1]='<a class="TopMenu" href="/whoweare/publications.asp#survey" target="maintext">Survey of Pharmacy Law</a>'
//menu2[2]='<a class="TopMenu" href="/whoweare/publications.asp#nabplaw" target="maintext">NABPLAW</a>'
//menu2[2]='<a class="TopMenu" href="/whoweare/publications.asp#bmm" target="maintext">Board Member Manual</a>'
menu2[2]='<a class="TopMenu" href="http://pub.nabp.us" target="_blank">Publication Order Form</a>'
//menu2[4]='<a class="TopMenu" href="/whoweare/NABPLAWorderform.pdf" target="_blank">NABPLAW Order Form</a>'
menu2[3]='<a class="TopMenu" href="/ppad/intro.asp" title="Pharmacist and Pharmacy Achievement and Discipline&reg;" target="maintext">PPAD</a>'

var menu3=new Array()
menu3[0]='<a class="TopMenu" href="/whatsnew/enews.asp" target="maintext">e-News</a>'
menu3[1]='<a class="TopMenu" href="/whatsnew/newsreleases.asp" target="maintext">News Releases</a>'
//menu3[2]='<a class="TopMenu" href="http://www.dangerouspill.com//home.html" target="maintext">Counterfeit Drug Information</a>'
menu3[2]='<a class="TopMenu" href="/annualmeeting/CTFR.asp" target="maintext">Committee & Task Force Reports</a>'
menu3[3]='<a class="TopMenu" href="/annualmeeting/introres.asp" target="maintext">Resolutions</a>'
menu3[4]='<a class="TopMenu" href="/annualmeeting/intro105.asp" target="maintext">Annual Meeting Officer Reports</a>'
//menu3[5]='<a class="TopMenu" href="http://www.nabp.net/ftpfiles/AM/104thProceedings.pdf" target="_blank">Annual Meeting Proceedings</a>'
menu3[5]='<a class="TopMenu" href="/annualmeeting/pospaper.asp" target="maintext">Position Papers</a>'
menu3[6]='<a class="TopMenu" href="/whatsnew/archive.asp" target="maintext">Archives</a>'

var menu4=new Array()
//menu4[0]='<a class="TopMenu" href="/whatsnew/meetings/am105.asp" target="maintext">2009 Annual Meeting</a>'
menu4[0]='<a class="TopMenu" href="/whatsnew/meetings/2009symposium/2009symp.asp" target="maintext">2009 Symposium</a>'
menu4[1]='<a class="TopMenu" href="/whatsnew/meetings/am106.asp" target="maintext">106th Annual Meeting</a>'
menu4[2]='<a class="TopMenu" href="/whatsnew/meetings/am107.asp" target="maintext">2011 & 2012 Annual Meetings</a>'
menu4[3]='<a class="TopMenu" href="/whatsnew/meetings/intro.asp" target="maintext">District Meetings</a>'
menu4[4]='<a class="TopMenu" href="/whatsnew/meetings/105bedusessions.asp" target="maintext">Educational Sessions</a>'
//menu4[2]='<a class="TopMenu" href="/whatsnew/meetings/fec.asp" title="Fall Conference" target="maintext">Fall Conference</a>'



var menu5=new Array()
menu5[0]='<a class="TopMenu" href="/whoweare/executive.asp" target="maintext">Executive Committee</a>'
menu5[1]='<a class="TopMenu" href="/whoweare/preamble.asp" target="maintext">Preamble and Mission Statement</a>'
menu5[2]='<a class="TopMenu" href="http://www.nabp.net/ftpfiles/NABP01/constitandbylaws.pdf" target="_blank">Constitution and Bylaws</a>'
menu5[3]='<a class="TopMenu" href="/whoweare/intro.asp" target="maintext">District Composition</a>'
menu5[4]='<a class="TopMenu" href="/whoweare/helpterms.asp" target="maintext">NABP Acronyms</a>'
menu5[5]='<a class="TopMenu" href="/whoweare/NABPLinking_Policy.pdf" target="_blank">NABP Linking Policy</a>'
menu5[6]='<a class="TopMenu" href="/whoweare/pssummaries.asp" target="maintext">Program/Services Fact Sheets</a>'

var menu6=new Array()
menu6[0]='<a class="TopMenu" href="/faq/faqinternetpharmacies.asp" title="Internet Pharmacies - Buying Medicine Online" target="maintext">Buying Medicine Online</a>'
menu6[1]='<a class="TopMenu" href="/faq/faqdmepos.asp" title="Durable Medical Equipment, Prosthetics, Orthotics, and Supplies" target="maintext">DMEPOS</a>'
menu6[2]='<a class="TopMenu" href="/faq/faqeltp.asp" title="Electronic Licensure Transfer Program&reg;" target="maintext">ELTP<sup>®</sup></a>'
menu6[3]='<a class="TopMenu" href="/faq/faqfpgec.asp" title="Foreign Pharmacy Graduate Examination Committee&#8482;"  target="maintext">FPGEC<sup>®</sup></a>'
menu6[4]='<a class="TopMenu" href="/faq/faqfpgee.asp" title="Foreign Pharmacy Graduate Equivalency Examination&reg;" target="maintext"> FPGEE<sup>®</sup></a>'
menu6[5]='<a class="TopMenu" href="/faq/faqtest.asp" title="North American Pharmacist Licensure Examination&#153; &amp; Multistate Pharmacy Jurisprudence Examination&reg;"  target="maintext">NAPLEX<sup>®</sup> & MPJE<sup>®</sup> </a>'
menu6[6]='<a class="TopMenu" href="/faq/faqpsam.asp" title="Pharmacist Self Assessment Mechanism&reg;" target="maintext">PSAM<sup>®</sup></a>'
//menu6[7]='<a class="TopMenu" href="/faq/faqpals.asp" title="Pharmacy Authenticated Licensure Service&#8482;" target="maintext"> PALS<sup>™</sup> Program </a>'
//menu6[8]='<a class="TopMenu" href="/faq/faqpcoa.asp" title="Pharmacy Curriculum Outcomes Assessment<sup>&trade;</sup>  (PCOA<sup>&reg;</sup>)" target="maintext"> PCOA<sup>®</sup></a>'
menu6[7]='<a class="TopMenu" href="/faq/faqprefpgee.asp" title="Pre-FPGEE&reg;"target="maintext">Pre-FPGEE<sup>®</sup></a>'
menu6[8]='<a class="TopMenu" href="/faq/faqprenaplex.asp" title="Pre-NAPLEX&reg;"target="maintext">Pre-NAPLEX<sup>®</sup></a>'
menu6[9]='<a class="TopMenu" href="/faq/faqpa.asp" title="Professional Affairs" target="maintext">Professional Affairs</a>'
menu6[10]='<a class="TopMenu" href="/faq/faqpub.asp" title="Publications" target="maintext">Publications</a>'
menu6[11]='<a class="TopMenu" href="/faq/faqvawd.asp" title="Verified-Accredited Wholesale Distributors&reg;" target="maintext">VAWD<sup>®</sup> </a>'
menu6[12]='<a class="TopMenu" href="/vipps/consumer/faq.asp" title="Verified Internet Pharmacy Practice Sites&trade; "target="maintext">VIPPS<sup>®</sup> </a>'


var menuwidth='850px' //default menu width
var menubgcolor='#F0F0FF'  //menu bgcolor
var disappeardelay=200  //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
