//Contents for menu 1
var menu1=new Array()
menu1[0]='<DIV STYLE="font-size:11px; color:white; font-weight: bold;">&nbsp;&nbsp;&nbsp;Naše slečny:</DIV>'
menu1[1]='<a href="ahanny.html" TARGET="main">&nbsp;HANNY LEE Hekaba</a>'
menu1[2]='<a href="aadel.html" TARGET="main">&nbsp;ADELLI RICCI Eta Carinae</a>'
menu1[3]='<a href="acookie.html" TARGET="main">&nbsp;COOKIE Miss Krumlova</a>'
menu1[4]='<a href="aelli.html" TARGET="main">&nbsp;ELLI ROSE Miss Krumlova</a>'
menu1[5]='<DIV STYLE="font-size:11px; color:white; font-weight: bold;">&nbsp;&nbsp;&nbsp;Naši kluci:</DIV>'
menu1[6]='<a href="aomega.html" TARGET="main">&nbsp;OMEGA Inn Yoki-Go</a>'
menu1[7]='<a href="aglimmer.html" TARGET="main">&nbsp;GLIMMER GLOSS Kavito</a>'
menu1[8]='<a href="aangel.html" TARGET="main">&nbsp;Qoccle´s ANGEL EYES</a>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="vrhaktual.html" TARGET="main">&nbsp;AKTUÁLNÍ VRH</a>'
menu2[1]='<a href="vrhpripr.html" TARGET="main">&nbsp;Plánované vrhy</a>'
menu2[2]='<a href="vrharchiv.html" TARGET="main">&nbsp;Archiv vrhů</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="thuhanny.html" TARGET="thu">&nbsp;HANNY LEE</a>'
menu3[1]='<a href="thuomega.html" TARGET="thu">&nbsp;OMEGA I.</a>'
menu3[2]='<a href="thuomega2.html" TARGET="thu">&nbsp;OMEGA II.</a>'
menu3[3]='<a href="thuadel.html" TARGET="thu">&nbsp;ADELLI RICCI</a>'
menu3[4]='<a href="thubuddy.html" TARGET="thu">&nbsp;BUDDY</a>'
menu3[5]='<a href="thuangie.html" TARGET="thu">&nbsp;ANGIE</a>'
menu3[6]='<a href="thucookie.html" TARGET="thu">&nbsp;COOKIE</a>'
menu3[7]='<a href="thuglimm.html" TARGET="thu">&nbsp;GLIMMER GLOSS</a>'
menu3[8]='<a href="thuangel.html" TARGET="thu">&nbsp;ANGEL EYES</a>'
menu3[9]='<a href="thuelli.html" TARGET="thu">&nbsp;ELLI ROSE</a>'
menu3[10]='<a href="thuvrha1.html" TARGET="thu">&nbsp;Vrh *A*</a>'
menu3[11]='<a href="thuvrhb.html" TARGET="thu">&nbsp;Vrh *B*</a>'
menu3[12]='<a href="thuvrhc.html" TARGET="thu">&nbsp;Vrh *C*</a>'
menu3[13]='<a href="thuvrhd.html" TARGET="thu">&nbsp;Vrh *D*</a>'
menu3[14]='<a href="thuvrhe.html" TARGET="thu">&nbsp;Vrh *E*</a>'
menu3[15]='<a href="thuvrhf.html" TARGET="thu">&nbsp;Vrh *F*</a>'
menu3[16]='<a href="thuvrhaodch.html" TARGET="thu">&nbsp;Naše odchovy *A*</a>'
menu3[17]='<a href="thuvyst10.html" TARGET="thu">&nbsp;Výstavy 2010</a>'
menu3[18]='<a href="thuvyst09.html" TARGET="thu">&nbsp;Výstavy 2009</a>'
menu3[19]='<a href="thuvyst.html" TARGET="thu">&nbsp;Výstavy ostatní</a>'
menu3[20]='<a href="thuzivot.html" TARGET="thu">&nbsp;Život s jorky</a>'
menu3[21]='<a href="thuofoto.html" TARGET="thu">&nbsp;Ostatní fotky</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="kontakt.html" TARGET="main">&nbsp;Kennel MISS KRUMLOVA</a>'
menu4[1]='<a href="napis.html" TARGET="main">&nbsp;Napište nám přímo</a>'
menu4[2]='<a href="linky.html" TARGET="main">&nbsp;Odkazy</a>'
menu4[3]='<a href="http://www.blueboard.cz/kniha_0.php?hid=1nvbbspdhfkmr9hffhvrs5tj5eb3vk" TARGET="main">&nbsp;Návštěvní kniha</a>'
menu4[4]='<a href="cesta.html" TARGET="main">&nbsp;Jak k nám ...</a>'
menu4[5]='<a href="design.html" TARGET="main">&nbsp;Webmaster & Design</a>'

var menuwidth='180px' //default menu width
var menubgcolor='#605344'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?		
var horizontaloffset=-3 //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)
}
