
//Contents for menu 1 editorial
var menu1=new Array()
menu1[0]='<a href="/newnewcalendar.cfm">Home</a>'
menu1[1]='<a href="/newnewcalendar.cfm?neighborhood=manhattan">Manhattan</a>'
menu1[2]='<a href="/newnewcalendar.cfm?neighborhood=Brooklyn">Brooklyn</a>'
menu1[3]='<a href="/newnewcalendar.cfm?neighborhood=Queens">Queens</a>'
menu1[4]='<a href="/newnewcalendar.cfm?neighborhood=Westchester">Westchester</a>'
menu1[5]='<a href="/newnewcalendar.cfm?neighborhood=Rockland">Rockland</a>'
menu1[6]='<a href="/newnewcalendar.cfm?neighborhood=Bronx">Bronx</a>'
menu1[7]='<a href="/newnewcalendar.cfm?neighborhood=Staten Island">Staten Island</a>'
menu1[8]='<a href="/newnewcalendar.cfm?neighborhood=Essex">Essex</a>'
menu1[9]='<a href="/newnewcalendar.cfm?neighborhood=Fairfield">Fairfield</a>'
menu1[10]='<a href="/newnewcalendar.cfm?neighborhood=Bergen">Bergen</a>'
menu1[11]='<a href="/newnewcalendar.cfm?neighborhood=Nassau">Nassau</a>'
menu1[12]='<a href="/newnewcalendar.cfm?neighborhood=Suffolk">Suffolk</a>'
menu1[13]='<a href="/newnewcalendar.cfm">See All Events</a>'
menu1[14]='<a href="/nregister.cfm">KIDding Around</a>'
//Contents for menu 2 multimedia
var menu2=new Array()

menu2[1]='<a href="/newbestbetsmain.cfm?catname=After%20School%20Activities&catid=7">After School Activities</a>'
menu2[2]='<a href="/newbestbetsmain.cfm?catname=Party%20Planning&catid=3">Birthday Parties</a>'
menu2[3]='<a href="/camps.cfm">Camp Guide</a>'
menu2[4]='<a href="/newbestbetsmain.cfm?catname=Education&catid=2">Education</a>'
menu2[5]='<a href="/newbestbetsmain.cfm?catname=Health&catid=4">Health</a>'
menu2[6]='<a href="/newbestbetsmain.cfm?catname=Outings&catid=5">Outings</a>'
menu2[7]='<a href="/newbestbetsmain.cfm?catname=Parenting%20Services&catid=6">Parenting Services</a>'
menu2[8]='<a href="/newbestbetsmain.cfm?catname=Shopping&catid=11">Shopping</a>'

//Contents for menu 2 message boards
var menu3=new Array()
menu3[0]='<a href="/newnewstories.cfm">Home</a>'
menu3[1]='<a href="/newnewstories.cfm?regionid=166">Child Raising </a>'
menu3[2]='<a href="/newnewstories.cfm?regionid=145">Consumer issues </a>'
menu3[3]='<a href="/newnewstories.cfm?regionid=146">Culture/Entertainment</a>' 
menu3[4]='<a href="/newnewstories.cfm?regionid=179">Editorials/Commentary </a>'
menu3[5]='<a href="/newnewstories.cfm?regionid=147">Education </a>'
menu3[6]='<a href="/newnewstories.cfm?regionid=148">Family Finances </a>'
menu3[7]='<a href="/newnewstories.cfm?regionid=149">Family Health & Safety </a>'
menu3[8]='<a href="/newnewstories.cfm?regionid=150">Family Travel </a>'
menu3[9]='<a href="/newnewstories.cfm?regionid=172">Food & Nutrition </a>'
menu3[10]='<a href="/newnewstories.cfm?regionid=177">Holidays </a>'
menu3[11]='<a href="/newnewstories.cfm?regionid=158">Interviews/Profiles </a>'
menu3[12]='<a href="/newnewstories.cfm?regionid=159">Parent-Run Businesses </a>'
menu3[13]='<a href="/newnewstories.cfm?regionid=182">Parenting </a>'
menu3[14]='<a href="/newnewstories.cfm?regionid=174">Parties </a>'
menu3[15]='<a href="/newnewstories.cfm?regionid=167">Pets </a>'
menu3[16]='<a href="/newnewstories.cfm?regionid=160">Pregnancy </a>'
menu3[17]='<a href="/newnewstories.cfm?regionid=161">Product Reviews </a>'
menu3[18]='<a href="/newnewstories.cfm?regionid=162">Single Parenting </a>'
menu3[19]='<a href="/newnewstories.cfm?regionid=163">Special Needs</a>' 
menu3[20]='<a href="/newnewstories.cfm?regionid=175">Sports/Recreation</a>' 
menu3[21]='<a href="/newnewstories.cfm?regionid=164">Technology</a>'
menu3[22]='<a href="/newnewstories.cfm?regionid=168">Teens</a>'
menu3[23]='<a href="/newnewstories.cfm?regionid=165">Womens Health </a>'
menu3[24]='<a href="/newnewstories.cfm">See All Stories</a>'

//Contents for menu 2 insider info 
var menu4=new Array()
menu4[0]='<a href="/sports">Get FREE Pages For Your Sports Team</a>'



//Contents for menu 2 shows tickets
var menu5=new Array()
menu5[0]='<a href="/newnewstories.cfm?regionid=225">Ask the Experts</a>'
menu5[1]='<a href="/newnewstories.cfm?regionid=189">Where To Guides</a>'
menu5[2]='<a href="/newnewstories.cfm?regionid=184">How-To Guides</a>'
menu5[3]='<a href="/camps.cfm">Camp Guide</a>'
menu5[4]='<a href="/ncontests.cfm">Contests</a>'
menu5[5]='<a href="/newarticle.cfm?colid=9126">Holiday Ideas</a>'
menu5[6]='<a href="/nregister.cfm">KIDding Around</a>'
//Contents for nycguide
var menu6=new Array()

menu6[0]='<a href="http://nymetroparents.com/blogs/bloggers.cfm">Parent Blog</a>'
menu6[1]='<a href="/sports">Team Central</a>'
menu6[2]='<a href="/photogal.cfm">Photo Gallery</a>'
menu6[3]='<a href="http://nymetroparents.com/board/newindex.cfm">Practical Parenting</a>'
//Contents for site features
var menu7=new Array()

menu7[0]='<a href="/ncontact.cfm">Contact Us</a>'
menu7[1]='<a href="/nadvertise.cfm">Advertising</a>'
menu7[2]='<a href="/naddcalendar.cfm">Submit Events</a>'
menu7[3]='<a href="/ncontact.cfm">Submit Listing</a>'
menu7[4]='<a href="/nregister.cfm">Get the Weekly Newsletter</a>'
menu7[5]='<a href="/nviewpage.cfm?colid=7906">Sign-Up Parenting Group</a>'





//Contents for contens
var menu8=new Array()
menu8[0]='<a href="http://www.broadwayworld.com/quiz.cfm">Broadway Quiz</a>'
menu8[1]='<a href="http://www.broadwayworld.com/contests.cfm">Contests</a>'
menu8[2]='<a href="http://www.broadwayworld.com/photogame.cfm">Photo IQ</a>'
menu8[3]='<a href="http://www.broadwayworld.com/tonygame.cfm">Tony Awards Quiz</a>'
menu8[4]='<a href="http://www.broadwayworld.com/mediakit.cfm">Advertising Info</a>'
menu8[5]='<a href="http://amazon.broadwayworld.com/">Broadway Store</a>'
menu8[6]='<a href="http://www.broadwayworld.com/contact.cfm">Contact Us</a>'
menu8[7]='<a href="http://www.broadwayworld.com/columns.cfm">Columns</a>'
menu8[8]='<a href="http://www.broadwayworld.com/forget.cfm">Forgot Login?</a>'
menu8[9]='<a href="http://www.broadwayworld.com/logos.cfm">Logo Archive</a>'
menu8[10]='<a href="http://www.cafepress.com/broadwayworld">Merchandise</a>'
menu8[11]='<a href="http://www.broadwayworld.com/regionalmain.cfm">Regional Sites</a>'
menu8[12]='<a href="http://www.broadwayworld.com/submitnews.cfm">Submit News</a>'
menu8[13]='<a href="http://www.broadwayworld.com/yourwebsite.cfm">Your Web Site</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


