
//Contents for menu 1 editorial
var menu1a=new Array()
menu1a[0]='<a href="/newbestbetsmain.cfm?catname=Party%20Planning&catid=3">Birthday Parties Home</a>'
menu1a[1]='<a href="/newbestbets.cfm?catname=Birthday%20Party%20Places&catid=175">Birthday Party Places</a>'
menu1a[2]='<a href="/newbestbets.cfm?catname=Party%20Entertainers%20and%20Planners&catid=176">Party Entertainers and Planners</a>'
menu1a[3]='<a href="/newbestbets.cfm?catname=Video%2FPhotography&catid=128">Party Supplies and Paraphernalia</a>'


//Contents for menu 2 editorial
var menu2a=new Array()
menu2a[0]='<a href="/newbestbetsmain.cfm?catname=After%20School%20Activities&catid=7">After School Activities Home</a>'
menu2a[1]='<a href="/newbestbets.cfm?catname=Academic%20Enrichment&catid=236">Academic Enrichment</a>'
menu2a[2]='<a href="/newbestbets.cfm?catname=Dance&catid=240">Dance</a>'
menu2a[3]='<a href="/newbestbets.cfm?catname=Gymnastics&catid=242">Gymnastics</a>'
menu2a[4]='<a href="/newbestbets.cfm?catname=Horseback%20Riding&catid=243">Horseback Riding</a>'
menu2a[5]='<a href="/newbestbets.cfm?catname=Martial%20Arts&catid=293">Martial Arts</a>'
menu2a[6]='<a href="/newbestbets.cfm?catname=Music&catid=246">Music</a>'
menu2a[7]='<a href="/newbestbets.cfm?catname=Sports&catid=248">Sports & Fitness</a>'
menu2a[8]='<a href="/newbestbets.cfm?catname=Swimming&catid=249">Swimming & Water Sports</a>'
menu2a[9]='<a href="/newbestbets.cfm?catname=Theater&catid=250">Theater</a>'


var menu3a=new Array()

menu3a[0]='<a href="/newbestbetsmain.cfm?catname=Education&catid=2">Education Home</a>'
menu3a[1]='<a href="/newbestbets.cfm?catname=Foreign%20Language%20Classes%2C%20Programs%20and%20Instruction&amp;catid=215">Foreign Language Classes</a>'
menu3a[2]='<a href="/newbestbets.cfm?catname=Preschools%2C%20Classes%2C%20Programs%20and%20Instruction%20&amp;catid=185">Pre-Schools</a>'
menu3a[3]='<a href="/newbestbets.cfm?catname=Private%20Schools%2C%20Classes%2C%20Programs%20and%20Instruction&amp;catid=186">Private Schools</a>'
menu3a[4]='<a href="/newbestbets.cfm?catname=Religious%20Classes%2C%20Programs%20and%20Instruction&amp;catid=180">Religious Schools</a>'
menu3a[5]='<a href="/newbestbets.cfm?catname=Test%20Preparation%2C%20Classes%2C%20Programs%20and%20Instruction&amp;catid=195">Test Preparation, Classes</a>'


var menu4a=new Array()
menu4a[0]='<a href="/camps.cfm">Camps</a>'


var menu5a=new Array()

menu5a[0]='<a href="/newbestbetsmain.cfm?catname=Health&catid=4">Health Home</a>'

menu5a[1]='<a href="/newbestbets.cfm?catname=Birth%20Centers%20and%20Services&amp;catid=131">Birth Centers and Services</a>'
menu5a[2]='<a href="/newbestbets.cfm?catname=Counselors%2C%20Tutors%2C%20Coaches%20and%20Doctors%2DMarriage%2C%20Family%2C%20Individual&amp;catid=142">Counseling</a>'
menu5a[3]='<a href="/newbestbets.cfm?catname=Dentists%20and%20Pediatric%20Dentistry&amp;catid=145">Dentists and Pediatric Dentistry</a>'

menu5a[4]='<a href="/newbestbets.cfm?catname=Health%20%26%20Beauty%2C%20Cosmetic%20Services&catid=209">Health & Beauty, Cosmetic Services</a>'
menu5a[5]='<a href="/newbestbets.cfm?catname=Hospitals%2C%20Medical%20Centers%20and%20Doctors&catid=156">Hospitals, Medical Centers and Doctors</a>'

menu5a[6]='<a href="/newbestbets.cfm?catname=Midwives&amp;catid=164">Midwives</a>'
menu5a[7]='<a href="/newbestbets.cfm?catname=Orthodontists&amp;catid=172">Orthodontists</a>'
menu5a[8]='<a href="/newbestbets.cfm?catname=Pediatricians%20and%20Doctors%20for%20Children&amp;catid=178">Pediatricians</a>'
menu5a[9]='<a href="/newbestbets.cfm?catname=Women%27s%20Health&amp;catid=221">Pregnancy & Womens Health</a>'


		
var menuwidth='165px' //default menu width
var menubgcolor='efefef'  //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

