/***********************************************
* 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
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="index.php?route=product/category&path=26">Ljubav</a>'
menu1[1]='<a href="index.php?route=product/category&path=27">Venčanje</a>'
menu1[2]='<a href="index.php?route=product/category&path=18">Rođenje</a>'
menu1[3]='<a href="index.php?route=product/category&path=25">Rođendan</a>'
menu1[4]='<a href="index.php?route=product/category&path=29">Slave</a>'
menu1[5]='<a href="index.php?route=product/category&path=28">Krštenja</a>'
menu1[6]='<a href="index.php?route=product/category&path=30">Godišnjice</a>'
menu1[7]='<a href="index.php?route=product/category&path=31">Čestitanja</a>'
menu1[8]='<a href="index.php?route=product/category&path=32">Poslovne prilike</a>'
menu1[9]='<a href="index.php?route=product/category&path=17">Zahvalnost</a>'
menu1[10]='<a href="index.php?route=product/category&path=24">Brz oporavak</a>'
menu1[11]='<a href="index.php?route=product/category&path=33">Saučešća</a>'
menu1[12]='<a href="index.php?route=product/category&path=34">Za svaki dan</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="index.php?route=product/category&path=36">Svi buketi</a>'
menu2[1]='<a href="index.php?route=product/category&path=37">Najprodavaniji</a>'
menu2[2]='<a href="index.php?route=product/category&path=38">Akcija</a>'
menu2[3]='<a href="index.php?route=product/category&path=39">Buketi od €20</a>'
menu2[4]='<a href="index.php?route=product/category&path=40">Dizajnirani</a>'
menu2[5]='<a href="index.php?route=product/category&path=41">Mix buketi</a>'
menu2[6]='<a href="index.php?route=product/category&path=42">Sezonsko cveće</a>'
menu2[7]='<a href="index.php?route=product/category&path=43">Astrološki buketi</a>'
menu2[8]='<a href="index.php?route=product/category&path=44">Bidermajeri</a>'
menu2[9]='<a href="index.php?route=product/category&path=45">Limitirana izdanja</a>'
menu2[10]='<a href="index.php?route=product/category&path=46">Korpe</a>'

var menu3=new Array()
menu3[0]='<a href="index.php?route=product/category&path=48">Ruža</a>'
menu3[1]='<a href="index.php?route=product/category&path=49">Ljiljan</a>'
menu3[2]='<a href="index.php?route=product/category&path=50">Kala</a>'
menu3[3]='<a href="index.php?route=product/category&path=51">Orhideja</a>'
menu3[4]='<a href="index.php?route=product/category&path=52">Iris</a>'
menu3[5]='<a href="index.php?route=product/category&path=53">Suncokret</a>'
menu3[6]='<a href="index.php?route=product/category&path=54">Gerber</a>'
menu3[7]='<a href="index.php?route=product/category&path=55">Hrizantema</a>'
menu3[8]='<a href="index.php?route=product/category&path=56">Amarilis</a>'
menu3[9]='<a href="index.php?route=product/category&path=57">Egzotično</a>'
menu3[10]='<a href="index.php?route=product/category&path=58">Cvetni mix</a>'
menu3[11]='<a href="index.php?route=product/category&path=59">Saksijske biljke</a>'
menu3[12]='<a href="index.php?route=product/category&path=60">Sezonsko cveće</a>'

var menu4=new Array()
menu4[0]='<a href="index.php?route=information/information&information_id=22">Bombonjere</a>'
menu4[1]='<a href="index.php?route=information/information&information_id=23">Vina</a>'
menu4[2]='<a href="index.php?route=information/information&information_id=24">Vaze</a>'
menu4[3]='<a href="index.php?route=information/information&information_id=25">Čestitke</a>'

var menu5=new Array()
menu5[0]='<a href="index.php?route=product/category&path=67">Od €20</a>'
menu5[1]='<a href="index.php?route=product/category&path=68">€20 - €50</a>'
menu5[2]='<a href="index.php?route=product/category&path=69">€50 - €80</a>'
menu5[3]='<a href="index.php?route=product/category&path=70">Preko €80</a>'

var menu6=new Array()
menu6[0]='<a href="index.php?route=information/information&information_id=16">Hoteli</a>'
menu6[1]='<a href="index.php?route=information/information&information_id=17">Restorani</a>'
menu6[2]='<a href="index.php?route=information/information&information_id=18">Firme</a>'
menu6[3]='<a href="index.php?route=information/information&information_id=19">Ambasade</a>'

var menu7=new Array()
menu7[0]='<a href="index.php?route=information/information&information_id=6">O nama</a>'
menu7[1]='<a href="index.php?route=information/contact">Kontakt</a>'
menu7[2]='<a href="index.php?route=information/information&information_id=7">Naručivanje i plaćanje</a>'
menu7[3]='<a href="index.php?route=information/information&information_id=8">Dostava</a>'
menu7[4]='<a href="index.php?route=information/information&information_id=9">Vaša pitanja</a>'
menu7[5]='<a href="index.php?route=information/information&information_id=10">Reminder servis</a>'
menu7[6]='<a href="index.php?route=information/information&information_id=11">Saveti</a>'
menu7[7]='<a href="index.php?route=information/information&information_id=12">Značenje cveća</a>'
menu7[8]='<a href="index.php?route=information/information&information_id=13">Reference</a>'
menu7[9]='<a href="index.php?route=information/information&information_id=14">Zaposlenje</a>'

var menu11=new Array()
menu11[0]='<a href="index.php?route=product/category&path=62">Crvena</a>'
menu11[1]='<a href="index.php?route=product/category&path=63">Bela</a>'
menu11[2]='<a href="index.php?route=product/category&path=64">Roze</a>'
menu11[3]='<a href="index.php?route=product/category&path=65">Žuta</a>'
menu11[4]='<a href="index.php?route=product/category&path=71">Oranž</a>'
menu11[5]='<a href="index.php?route=product/category&path=72">Plava</a>'

		
var menuwidth='162px' //default menu width
var menubgcolor='#007755'  //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





