


//Contents for menu 1
var menu1=new Array()
menu1[0]='<IMG src="/images/site/none.gif" border=0 width=5><a href="http://www.destinationmaternity.com/Shop.asp?website_Id=1&mastercategory_Id=0"><IMG src="/images/site/bt_shop_mh.gif" border=0 ></a>'
menu1[1]='<IMG src="/images/site/none.gif" border=0 width=5><a href="http://www.destinationmaternity.com/Shop.asp?website_Id=5&mastercategory_Id=0"><IMG src="/images/site/bt_shop_mi.gif" border=0 ></a>'
menu1[2]='<IMG src="/images/site/none.gif" border=0 width=5><a href="http://www.destinationmaternity.com/Shop.asp?website_Id=6&mastercategory_Id=0"><IMG src="/images/site/bt_shop_pea.gif" border=0 ></a>'
menu1[3]='<IMG src="/images/site/none.gif" border=0 width=5><a href="http://www.destinationmaternity.com/Shop.asp?website_Id=8&mastercategory_Id=0"><IMG src="/images/site/bt_shop_dm.gif" border=0 ></a>'
menu1[4]='<IMG src="/images/site/none.gif" border=0 width=5><a href="http://www.destinationmaternity.com/Shop.asp?website_Id=7&mastercategory_Id=0"><IMG src="/images/site/bt_shop_eda.gif" border=0 ></a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="/HomeFeatures.asp?features=ViaCord"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Cord Blood Banking</a>'
menu2[1]='<a href="/HomeFeatures.asp?features=BabyPlus"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Prenatal Education</a>'
menu2[2]='<a href="/Home101.asp?pregnancy=dad"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Fatherhood 101</a>'
menu2[3]='<a href="/HomeFeatures.asp?features=futuretrust"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Start Saving for college</a>'


//Contents for menu 3
//menu3[0]='<p align=left><a href="/bodyhome.asp?SelectCase=ArticleLis"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Pregnancy Advice</a>'
//menu3[1]='<a href="/babyhome.asp?SelectCase=ArticleLis"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Baby Health Tips</a>'
var menu3=new Array()
menu3[0]='<a href="/homeMInfo.asp?SelectCase=TopicListArticlesPageLocation&PageLocationId=5"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Pregnancy</a>'
menu3[1]='<a href="/homeMInfo.asp?SelectCase=TopicListArticlesPageLocation&PageLocationId=6"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Baby</a>'
menu3[2]='<a href="/homeMInfo.asp?SelectCase=TopicListArticlesPageLocation&PageLocationId=7"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Child</a>'
menu3[3]='<a href="/homeMInfo.asp?SelectCase=TopicListArticlesPageLocation&PageLocationId=8"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Home</a>'

//menu3[4]='<a href="/homebInfo.asp?SelectCase=ArticleList&CategoryId=3&PageLp=1&SubCategoryId=13"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Mind and Body</a>'
//menu3[5]='<a href="/homeMInfo.asp?SelectCase=ArticleList&CategoryId=4&PageLp=1&SubCategoryId=19"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Your Pregnancy</a>'
//menu3[6]='<a href="/homeMInfo.asp?SelectCase=ArticleList&CategoryId=5&PageLp=1&SubCategoryId=25"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Health and Safety</a>'
//menu3[7]='<a href="/homeMInfo.asp?SelectCase=ArticleList&CategoryId=6&PageLp=1&SubCategoryId=31"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Your Baby</a>'
//menu3[8]='<a href="/homeMInfo.asp?SelectCase=ArticleList&CategoryId=8&PageLp=1&SubCategoryId=39"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Pregnancy Tracker</a>'
//menu3[9]='<a href="/homebInfo.asp?SelectCase=ArticleList&CategoryId=9&PageLp=1&SubCategoryId=47"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Babys Development</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="/HomeBabyName.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Search 1000s of baby names online</a>'
menu4[1]='<a href="/tools/dateduecalc.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Calculate my due date</a>'
menu4[2]='<a href="/tools/ovulationcalc.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Calculate my ideal ovulation</a>'
menu4[3]='<a href="/EmailSignUp.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Sign up for our newsletter</a>'




//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="/MapquestStoreLocator.asp?UserSelection=motherhood"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Motherhood</a>'
menu5[1]='<a href="../MapquestStoreLocator.asp?UserSelection=mimi"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Mimi Maternity</a>'
menu5[2]='<a href="../MapquestStoreLocator.asp?UserSelection=pea"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;A Pea in the Pod</a>'
menu5[3]='<a href="/store_spa.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Edamame Spa</a>'
menu5[4]='<a href="/store.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Destination Maternity</a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="/ExpertAdviceHome.asp?Expert=Infertility"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Infertility - Dr. John Jarrett</a>'
menu6[1]='<a href="/ExpertAdviceHome.asp?Expert=ChildSafty"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Child Safety - Debra Holtzman</a>'
menu6[2]='<a href="/Homechildrenshospital.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Get hints from childrens hospital</a>'

//Contents for menu 7, and so on
var menu7=new Array()
menu7[0]='<a href="/mindhome.asp" class="home"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Photographing Your Family</a>'
menu7[2]='<a href="/mindhome.asp" class="home"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Prenatal Education</a>'



//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="/personal/destination2a.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;My personal page</a>'
menu8[1]='<a href="/MessageBoards/DestinationMessageBoardForumMain.asp"><img src="/images/site/none.gif" border=0 width=15 height=7><img src="/images/site/mimiarrow_0506.gif" border=0>&nbsp;&nbsp;Message Board</a>'



var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //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)
}


