
/***********************************************
* 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 menu0=new Array()
menu0[menu0.length]='<a href="/about">About Dollies</a>'
menu0[menu0.length]='<a href="/about/clara_and_alex.html">About the Creators</a>'
menu0[menu0.length]='<a href="/book">Childrens Book</a>'
menu0[menu0.length]='<a href="/movie">Movie</a>'
menu0[menu0.length]='<a href="/about/contact.html">Contact Us</a>'
menu0[menu0.length]='<a href="http://claradolly.livejournal.com">Dolly Journal</a>'
menu0[menu0.length]='<a href="/about/all_dollies.html">Dolly Collection</a>'
menu0[menu0.length]='<a href="/about/news.html">News</a>'
menu0[menu0.length]='<a href="/guestbook">Guestbook</a>'
menu0[menu0.length]='<a href="/about/mailing_list.html">Mailing List</a>'
menu0[menu0.length]='<a href="/about/faq.html">FAQ</a>'


var menu1=new Array()
menu1[menu1.length]='<a href="/more_dollies/">All Dollies</a>'
menu1[menu1.length]='<a href="/friends/">Dolly Friends</a>'
menu1[menu1.length]='<a href="/more_dollies/bee_dollies.htm">Bee Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/caterpillar_dollies.htm">Caterpillar Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/catsuit_dollies.htm">Catsuit Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/cyclops_dollies.htm">Cyclops Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/gremlin_dollies.htm">Gremlin Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/mermaid_dollies.htm">Mermaid Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/monster_dollies.htm">Monster Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/claramonster_sketchbook.htm">Monster Claradolly&#8217;s Sketchbook</a>'
menu1[menu1.length]='<a href="/more_dollies/slug_dollies.htm">Slug Dollies</a>'
menu1[menu1.length]='<a href="/more_dollies/zombie_dollies.htm">Zombie Dollies</a>'


var menu2=new Array()
menu2[menu2.length]='<a href="/dolly_babies/">All Dolly Babies</a>'
menu2[menu2.length]='<a href="/dolly_babies/bee_baby.html">Bee Baby</a>'
menu2[menu2.length]='<a href="/dolly_babies/monster_baby.htm">Monster Baby</a>'
menu2[menu2.length]='<a href="/dolly_babies/gremlin_baby.htm">Gremlin Baby</a>'
menu2[menu2.length]='<a href="/dolly_babies/cyclops_baby.html">Cyclops Baby</a>'
menu2[menu2.length]='<a href="/dolly_babies/difficult_dolly.htm">Difficult Dolly</a>'
menu2[menu2.length]='<a href="/dolly_babies/happy_dolly.htm">Happy Dolly</a>'
menu2[menu2.length]='<a href="/dolly_babies/sensitive_dolly.htm">Sensitive Dolly</a>'
menu2[menu2.length]='<a href="/dolly_babies/thoughtful_dolly.htm">Thoughtful Dolly</a>'
menu2[menu2.length]='<a href="/dolly_babies/impatient_dolly.html">Impatient Dolly</a>'
menu2[menu2.length]='<a href="/dolly_babies/patient_dolly.html">Patient Dolly</a>'


var menu3=new Array()
menu3[menu3.length]='<a href="/wildlife/">All Wildlife</a>'
menu3[menu3.length]='<a href="/wildlife/bat_dollies.htm">Bat Dollies</a>'
menu3[menu3.length]='<a href="/wildlife/bubba.htm">Bubba</a>'
menu3[menu3.length]='<a href="/wildlife/cabbage_monster.htm">Cabbage Monster</a>'
menu3[menu3.length]='<a href="/wildlife/confused_penguin.htm">Confused Penguin</a>'
menu3[menu3.length]='<a href="/wildlife/duckie.htm">Duckie</a>'
menu3[menu3.length]='<a href="/wildlife/lumpy_eggy.htm">Lumpy &amp; Eggy</a>'
menu3[menu3.length]='<a href="/wildlife/mao_maos.htm">Mao Maos</a>'
menu3[menu3.length]='<a href="/wildlife/mayonnaise.htm">Mayonnaise</a>'
menu3[menu3.length]='<a href="/wildlife/smart_chicken.htm">Smart Chicken</a>'
menu3[menu3.length]='<a href="/wildlife/bubble_gum.html">Bubble Gum</a>'
menu3[menu3.length]='<a href="/wildlife/fish_dolly.html">Fish Dolly</a>'
menu3[menu3.length]='<a href="/wildlife/bug_dolly.html">Bug Dolly</a>'
menu3[menu3.length]='<a href="/wildlife/goat_dollies.html">Goat Dollies</a>'
menu3[menu3.length]='<a href="/wildlife/crabby.html">Crabby</a>'
menu3[menu3.length]='<a href="/wildlife/clammy.html">Clammy</a>'
	
var menuwidth='165px' //default menu width
var menubgcolor="#FFFF00"  //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){
alert ('something');
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

//EOF