/***********************************************
* 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 prezivari=new Array()
prezivari[0]='<a href="index.php?what=prezivari"><div align="center" style="font-weight:bold;padding-bottom:5px;">&#1048;&#1089;&#1093;&#1088;&#1072;&#1085;&#1072; &#1087;&#1088;&#1077;&#1078;&#1080;&#1074;&#1072;&#1088;&#1072;</div></a>'
prezivari[1]='<a href="index.php?what=telad">&#1058;&#1077;&#1083;&#1072;&#1076; &#1080; &#1112;&#1091;&#1085;&#1072;&#1076;</a>'

prezivari[3]='<a href="index.php?what=muzare">&#1050;&#1088;&#1072;&#1074;&#1077; &#1084;&#1091;&#1079;&#1072;&#1088;&#1077;</a>'
prezivari[4]='<a href="index.php?what=jagnje">&#1032;&#1072;&#1075;&#1114;&#1072;&#1076;</a>'

//Contents for menu 2, and so on
var svinje=new Array()
svinje[0]='<a href="index.php?what=svinje"><div align="center" style="font-weight:bold;padding-bottom:5px;"> &#1048;&#1089;&#1093;&#1088;&#1072;&#1085;&#1072; &#1089;&#1074;&#1080;&#1114;&#1072;</div></a>'
svinje[1]='<a href="index.php?what=prasad">&#1055;&#1088;&#1072;&#1089;&#1072;&#1076;</a>'
svinje[2]='<a href="index.php?what=tovne">&#1058;&#1086;&#1074;&#1085;&#1077; &#1089;&#1074;&#1080;&#1114;&#1077;</a>'
svinje[3]='<a href="index.php?what=priplodne">&#1055;&#1088;&#1080;&#1087;&#1083;&#1086;&#1076;&#1085;&#1077; &#1089;&#1074;&#1080;&#1114;&#1077;</a>'

var zivina=new Array()
zivina[0]='<a href="index.php?what=zivina"><div align="center" style="font-weight:bold;padding-bottom:5px;"> &#1048;&#1089;&#1093;&#1088;&#1072;&#1085;&#1072; &#1078;&#1080;&#1074;&#1080;&#1085;&#1077;</div></a>'
zivina[1]='<a href="index.php?what=pilici">&#1055;&#1080;&#1083;&#1080;&#1115;&#1080;</a>'
zivina[2]='<a href="index.php?what=koke">&#1050;&#1086;&#1082;&#1077; &#1085;&#1086;&#1089;&#1080;&#1113;&#1077;</a>'
zivina[3]='<a href="index.php?what=curke">&#1035;&#1091;&#1088;&#1082;&#1077;</a>'
zivina[4]='<a href="index.php?what=golubovi">&#1043;&#1086;&#1083;&#1091;&#1073;&#1086;&#1074;&#1080;</a>'

var prodaja=new Array()

prodaja[1]='<a href="index.php?what=prodaja">&#1055;&#1088;&#1086;&#1076;&#1072;&#1112;&#1072;</a>'
prodaja[2]='<a href="index.php?what=distribucija">&#1044;&#1080;&#1089;&#1090;&#1088;&#1080;&#1073;&#1091;&#1094;&#1080;&#1112;&#1072;</a>'

var proizvodi=new Array()

proizvodi[1]='<a href="index.php?what=potpune">&#1055;&#1086;&#1090;&#1087;&#1091;&#1085;&#1077; &#1089;&#1084;&#1077;&#1096;&#1077;</a>'
proizvodi[2]='<a href="index.php?what=dopunske">&#1044;&#1086;&#1087;&#1091;&#1085;&#1089;&#1082;&#1077; &#1089;&#1084;&#1077;&#1096;&#1077; - &#1083;&#1080;&#1085;&#1080;&#1112;&#1072; &#1057;&#1059;&#1055;&#1045;&#1056;</a>'
<!--proizvodi[3]='<a href="index.php?what=vitaminski">&#1042;&#1080;&#1090;&#1072;&#1084;&#1080;&#1085;&#1089;&#1082;&#1086;-&#1084;&#1080;&#1085;&#1077;&#1088;&#1072;&#1083;&#1085;&#1077; &#1087;&#1088;&#1077;&#1076;&#1089;&#1084;&#1077;&#1096;&#1077; &#1080; &#1076;&#1086;&#1076;&#1072;&#1094;&#1080;</a>' -->

var proizvodnja=new Array()
proizvodnja[1]='<a href="index.php?what=kapaciteti">&#1055;&#1088;&#1086;&#1080;&#1079;&#1074;&#1086;&#1076;&#1085;&#1080; &#1082;&#1072;&#1087;&#1072;&#1094;&#1080;&#1090;&#1077;&#1090;&#1080;</a>'
proizvodnja[2]='<a href="index.php?what=najvisi-standardi">&#1055;&#1088;&#1086;&#1080;&#1079;&#1074;&#1086;&#1076;&#1114;&#1072; &#1087;&#1086; &#1085;&#1072;&#1112;&#1074;&#1080;&#1096;&#1080;&#1084; &#1089;&#1090;&#1072;&#1085;&#1076;&#1072;&#1088;&#1076;&#1080;&#1084;&#1072;</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor='#F5E3C6'  //menu bgcolor
var disappeardelay=50  //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