function checkBrowser(){this.ver=navigator.appVersion;this.agt=navigator.userAgent.toLowerCase();this.win=0;this.mac=0;this.lin=1;if(this.agt.indexOf("win")!=-1){this.win=1;this.lin=0}if(this.agt.indexOf("mac")!=-1){this.mac=1;this.lin=0}this.lnx=0;if(this.lin){this.lnx=1}this.ice=0;this.exclude=1;this.op=(navigator.userAgent.indexOf("Opera")!=-1)?1:0;this.ie=0;this.ie4=0;this.ie5=0;this.ie6=0;this.op5=0;this.op6=0;this.op7=0;this.ns4=0;this.ns6=0;this.ns7=0;this.mz7=0;this.kde=0;this.saf=0;if(typeof navigator.vendor!="undefined"&&navigator.vendor=="KDE"){var a=this.agt;var d=a.split("konqueror/");var c=d[1].split("; ");var b=parseFloat(c[0]);if(b>=2.2){this.kde=1;this.ns6=1;this.exclude=0}}else{if(this.agt.indexOf("webtv")!=-1){this.exclude=1}else{if(typeof window.opera!="undefined"){this.exclude=0;if(/opera[\/ ][5]/.test(this.agt)){this.op5=1}if(/opera[\/ ][6]/.test(this.agt)){this.op6=1}if(/opera[\/ ][7-9]/.test(this.agt)){this.op7=1}}else{if(typeof document.all!="undefined"&&!this.kde){this.exclude=0;this.ie=1;if(typeof document.getElementById!="undefined"){this.ie5=1;if(this.agt.indexOf("msie 6")!=-1){this.ie6=1;dcm=document.compatMode;if(dcm!="BackCompat"){com=1}}}else{this.ie4=1}}else{if(typeof document.getElementById!="undefined"){this.exclude=0;if(this.agt.indexOf("netscape/6")!=-1||this.agt.indexOf("netscape6")!=-1){this.ns6=1}else{if(this.agt.indexOf("netscape/7")!=-1||this.agt.indexOf("netscape7")!=-1){this.ns6=1;this.ns7=1}else{if(this.agt.indexOf("gecko")!=-1){this.ns6=1;this.mz7=1}}}if(this.agt.indexOf("safari")!=-1||(typeof document.childNodes!="undefined"&&typeof document.all=="undefined"&&typeof navigator.taintEnabled=="undefined")){this.mz7=0;this.ns6=1;this.saf=1}}else{if((this.agt.indexOf("mozilla")!=-1)&&(parseInt(navigator.appVersion)>=4)){this.exclude=0;this.ns4=1;if(typeof navigator.mimeTypes["*"]=="undefined"){this.exclude=1;this.ns4=0}}}}}}}if(this.agt.indexOf("escape")!=-1){this.exclude=1;this.ns4=0}if(typeof navigator.__ice_version!="undefined"){this.exclude=1;this.ie4=0}}var bw=new checkBrowser();

ypSlideOutMenu.Registry=[];ypSlideOutMenu.aniLen=250;ypSlideOutMenu.hideDelay=1000;ypSlideOutMenu.minCPUResolution=10;function ypSlideOutMenu(id,_2,_3,_4,_5,_6){this.ie=document.all?1:0;this.ns4=document.layers?1:0;this.dom=document.getElementById?1:0;this.css="";if(this.ie||this.ns4||this.dom){this.id=id;this.dir=_2;this.orientation=_2=="left"||_2=="right"?"h":"v";this.dirType=_2=="right"||_2=="down"?"-":"+";this.dim=this.orientation=="h"?_5:_6;this.hideTimer=false;this.aniTimer=false;this.open=false;this.over=false;this.startTime=0;this.gRef="ypSlideOutMenu_"+id;eval(this.gRef+"=this");ypSlideOutMenu.Registry[id]=this;var d=document;var _8="";_8+="#"+this.id+"Container{visibility:hidden;";_8+="left:"+_3+"px;";_8+="top:"+_4+"px;";_8+="overflow:hidden;z-index:10000;}";_8+="#"+this.id+"Container,#"+this.id+"Content{position:absolute;";_8+="width:"+_5+"px;";_8+="height:"+_6+"px;";_8+="clip:rect(0 "+_5+" "+_6+" 0);";_8+="}";this.css=_8;this.load();}}ypSlideOutMenu.writeCSS=function(){document.writeln("<style type=\"text/css\">");for(var id in ypSlideOutMenu.Registry){document.writeln(ypSlideOutMenu.Registry[id].css);}document.writeln("</style>");};ypSlideOutMenu.prototype.load=function(){var d=document;var _10=this.id+"Container";var _11=this.id+"Content";var _12=this.dom?d.getElementById(_10):this.ie?d.all[_10]:d.layers[_10];if(_12){var _13=this.ns4?_12.layers[_11]:this.ie?d.all[_11]:d.getElementById(_11);}var _14;if(!_12||!_13){window.setTimeout(this.gRef+".load()",100);}else{this.container=_12;this.menu=_13;this.style=this.ns4?this.menu:this.menu.style;this.homePos=eval("0"+this.dirType+this.dim);this.outPos=0;this.accelConst=(this.outPos-this.homePos)/ypSlideOutMenu.aniLen/ypSlideOutMenu.aniLen;if(this.ns4){this.menu.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT);}this.menu.onmouseover=new Function("ypSlideOutMenu.showMenu('"+this.id+"')");this.menu.onmouseout=new Function("ypSlideOutMenu.hideMenu('"+this.id+"')");this.endSlide();}};ypSlideOutMenu.showMenu=function(id){var reg=ypSlideOutMenu.Registry;var obj=ypSlideOutMenu.Registry[id];if(obj.container){obj.over=true;for(menu in reg){if(id!=menu){ypSlideOutMenu.hide(menu);}}if(obj.hideTimer){reg[id].hideTimer=window.clearTimeout(reg[id].hideTimer);}if(!obj.open&&!obj.aniTimer){reg[id].startSlide(true);}}};ypSlideOutMenu.hideMenu=function(id){var obj=ypSlideOutMenu.Registry[id];if(obj.container){if(obj.hideTimer){window.clearTimeout(obj.hideTimer);}obj.hideTimer=window.setTimeout("ypSlideOutMenu.hide('"+id+"')",ypSlideOutMenu.hideDelay);}};ypSlideOutMenu.hideAll=function(){var reg=ypSlideOutMenu.Registry;for(menu in reg){ypSlideOutMenu.hide(menu);if(menu.hideTimer){window.clearTimeout(menu.hideTimer);}}};ypSlideOutMenu.hide=function(id){var obj=ypSlideOutMenu.Registry[id];obj.over=false;if(obj.hideTimer){window.clearTimeout(obj.hideTimer);}obj.hideTimer=0;if(obj.open&&!obj.aniTimer){obj.startSlide(false);}};ypSlideOutMenu.prototype.startSlide=function(_21){this[_21?"onactivate":"ondeactivate"]();this.open=_21;if(_21){this.setVisibility(true);}this.startTime=(new Date()).getTime();this.aniTimer=window.setInterval(this.gRef+".slide()",ypSlideOutMenu.minCPUResolution);};ypSlideOutMenu.prototype.slide=function(){var _22=(new Date()).getTime()-this.startTime;if(_22>ypSlideOutMenu.aniLen){this.endSlide();}else{var d=Math.round(Math.pow(ypSlideOutMenu.aniLen-_22,2)*this.accelConst);if(this.open&&this.dirType=="-"){d=-d;}else{if(this.open&&this.dirType=="+"){d=-d;}else{if(!this.open&&this.dirType=="-"){d=-this.dim+d;}else{d=this.dim+d;}}}this.moveTo(d);}};ypSlideOutMenu.prototype.endSlide=function(){this.aniTimer=window.clearTimeout(this.aniTimer);this.moveTo(this.open?this.outPos:this.homePos);if(!this.open){this.setVisibility(false);}if((this.open&&!this.over)||(!this.open&&this.over)){this.startSlide(this.over);}};ypSlideOutMenu.prototype.setVisibility=function(_24){var s=this.ns4?this.container:this.container.style;s.visibility=_24?"visible":"hidden";};ypSlideOutMenu.prototype.moveTo=function(p){this.style[this.orientation=="h"?"left":"top"]=this.ns4?p:p+"px";};ypSlideOutMenu.prototype.getPos=function(c){return parseInt(this.style[c]);};ypSlideOutMenu.prototype.onactivate=function(){};ypSlideOutMenu.prototype.ondeactivate=function(){};

function loadIframe(b,a){if(bw.ie||bw.op){document.all[b].src=a}else{document.getElementById(b).src=a}}function getObj(a){if(bw.ie4){return document.all[a]}else{return document.getElementById(a)}}function showLayer(a){getObj(a).style.visibility="visible"}function hideLayer(a){getObj(a).style.visibility="hidden"}function displayOn(a){getObj(a).style.display="block"}function displayOff(a){getObj(a).style.display="none"}function overRow(b,a){getObj(b).className=a}function outRow(b,a){getObj(b).className=a}function getHeight(a){if(bw.ie){return document.all[a].clientHeight}else{return document.getElementById(a).offsetHeight}}function getWidth(a){if(bw.ie){return document.all[a].clientWidth}else{return document.getElementById(a).offsetWidth}}function setHeight(b,a){b.style.height=a}function getVisib(a){return getObj(a).style.visibility}function isVisible(a){if(a.style.visibility=="visible"){return true}return false}function isDisplay(a){if(getObj(a).style.display=="block"){return true}return false}function getBodyW(){return(bw.ie)?document.body.clientWidth:window.innerWidth}function getBodyH(){return(bw.ie)?document.body.clientHeight:window.innerHeight}function writeLayer(b,a){if(bw.op){writeLayerText(b,a)}getObj(b).innerHTML=a}function writeLayerText(b,a){getObj(b).innerText=a}function getInnHtml(a){return getObj(a).innerHTML}function add2WishList(b,a){loadHref="shopping-cart-box.asp?itemId="+b+"&subObjName="+a;loadIframe("wishCart",loadHref)}function add2Fav(b,a){if(bw.ie){window.external.AddFavorite(b,a)}else{if(bw.ns6&&(typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(a,b,"")}}}function fadeIn(){see+=11;if(document.all){obj.style.filter="alpha(opacity="+see+")"}else{obj.style.MozOpacity=see+"%"}if(see<maxGo){setTimeout("fadeIn()",100)}}function fadeOut(a){if(a){obj=a}see-=18;if(document.all){obj.style.filter="alpha(opacity="+see+")"}else{obj.style.MozOpacity=see+"%"}if(see>0){setTimeout("fadeOut()",100)}else{obj.style.visibility="hidden"}}function fill(a){if(a.toString().length<2){a="0"+a}return a}function printPage(a){document.printThis.docTitle.value=document.title;document.printThis.docCont.value=getObj("content-main").innerHTML;document.printThis.docLang.value=a;MM_openBrWindow("","printPg","menubar=yes,scrollbars=yes,resizable=yes","743","590","false");document.printThis.submit()}function accImgPrev(b,a,g,c,f,d){c=c+60;f=f+60;var e="../Includes/accImgPreview.asp?objId="+a+"&mainId="+a+"&objType="+g+"&imgName="+b+"&pageLang="+d;MM_openBrWindow(e,"imgBox","status=yes,resizable=yes",c,f,"false",33,33)}function accMapPrev(a,b){winW=900;winH=630;var c="../Includes/accMapPreview.asp?objCode="+a+"&pageLang="+b;MM_openBrWindow(c,"mapBox","menubar=yes,scrollbars=no,resizable=no,status=yes",winW,winH,"false",33,33)}function accMapTownPrev(a,b){winW=550;winH=450;var c="../Includes/accMap-island.asp?subObjTownCode="+a+"&pageLang="+b+"&noResize=True";MM_openBrWindow(c,"mapTwnBox","status=yes,resizable=yes",winW,winH,"false",33,33)}function wallImgPrev(a,b,e,c){var d="../Includes/wallpaperImgPreview.asp?imgID="+a+"&imgW="+b+"&imgH="+e+"&pageLang="+c;MM_openBrWindow(d,"wallBox","status=no,resizable=yes,scrollbars=yes",b-133,e-133,"false",18,18)}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_validateForm(){var k="";var d,b,a,l,g,e,c,h,j="",f=MM_validateForm.arguments;for(d=0;d<(f.length-2);d+=3){g=f[d+2];val=getObj(f[d]);k=getObj(f[d]);if(val){l=val.id;if((val=val.value)!=""){if(g.indexOf("isEmail")!=-1){b=val.indexOf("@");if(b<1||b==(val.length-1)){j+=" * "+l+" is not a valid e-mail address.\n"}}else{if(g!="R"){e=parseFloat(val);if(val!=""+e){j+=" * "+l+" mora sadržavati odgovarajuæi poštanski broj  \n"}if(g.indexOf("inRange")!=-1){b=g.indexOf(":");c=g.substring(8,b);h=g.substring(b+1);if(e<c||h<e){j+=" * "+l+" mora sadržavati odgovarajuæi poštanski broj "+c+" and "+h+".\n"}}}}}else{if(g.charAt(0)=="R"){j+=" * "+l+"\n";k.className="textinputError"}}}}if(j){alert("The required information is incomplete or contains errors:\n"+j)}document.MM_returnValue=(j=="")}function MM_openBrWindow(i,f,c,a,b,g,d,j){if(window.screen){if(g){if(g=="true"){var e=(screen.width-a)/2;var h=(screen.height-b)/2;c+=(c!="")?",":"";c+=",left="+e+",top="+h}else{c+=(c!="")?",":"";c+=",left="+d+",top="+j}}}window.open(i,f,c+((c!="")?",":"")+"width="+a+",height="+b)}var tipStart=0;var offsetfromcursorX=12;var offsetfromcursorY=10;var offsetdivfrompointerX=10;var offsetdivfrompointerY=14;var ie=document.all;var ns6=document.getElementById&&!document.all;var enabletip=false;var tipobj;var pointerobj;function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function ddrivetip(b,a,c){if(tipStart==0){return}if(ns6||ie){if(typeof a!="undefined"){tipobj.style.width=a+"px"}if(typeof c!="undefined"&&c!=""){tipobj.style.backgroundColor=c}tipobj.innerHTML=b;enabletip=true;return false}}function positiontip(i){if(tipStart==0){return}if(enabletip){var c=false;var d=(ns6)?i.pageX:event.clientX+ietruebody().scrollLeft;var b=(ns6)?i.pageY:event.clientY+ietruebody().scrollTop;var h=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;var a=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;var g=ie&&!window.opera?h-event.clientX-offsetfromcursorX:h-i.clientX-offsetfromcursorX;var f=ie&&!window.opera?a-event.clientY-offsetfromcursorY:a-i.clientY-offsetfromcursorY;var j=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000;if(g<tipobj.offsetWidth){tipobj.style.left=d-tipobj.offsetWidth+"px";c=true}else{if(d<j){tipobj.style.left="5px"}else{tipobj.style.left=d+offsetfromcursorX-offsetdivfrompointerX+"px";pointerobj.style.left=d+offsetfromcursorX+"px"}}if(f<tipobj.offsetHeight){tipobj.style.top=b-tipobj.offsetHeight-offsetfromcursorY+"px";c=true}else{tipobj.style.top=b+offsetfromcursorY+offsetdivfrompointerY+"px";pointerobj.style.top=b+offsetfromcursorY+"px"}tipobj.style.visibility="visible";if(!c){pointerobj.style.visibility="visible"}else{pointerobj.style.visibility="hidden"}}}function hideddrivetip(){if(tipStart==0){return}if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";pointerobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor="";tipobj.style.width=""}}function P7AniMagic(el,x,y,a,b,c,s){var xx,yy,i,g,elo=el,f="",m=false,d="",pa="px";if(document.layers||window.opera){pa=""}x=parseInt(x);y=parseInt(y);var t="g.p7Magic=setTimeout(\"P7AniMagic('"+elo+"',";if((g=getObj(el))!=null){d=(document.layers)?g:g.style}else{return}if(parseInt(s)>0){eval(t+x+","+y+","+a+","+b+","+c+',0)",'+s+")");return}xx=parseInt(d.left);if(isNaN(xx)){if(g.currentStyle){xx=parseInt(g.currentStyle.left)}else{if(document.defaultView&&document.defaultView.getComputedStyle){xx=parseInt(document.defaultView.getComputedStyle(g,"").getPropertyValue("left"))}}if(isNaN(xx)){xx=0}}yy=parseInt(d.top);if(isNaN(yy)){if(g.currentStyle){yy=parseInt(g.currentStyle.top)}else{if(document.defaultView&&document.defaultView.getComputedStyle){yy=parseInt(document.defaultView.getComputedStyle(g,"").getPropertyValue("top"))}}if(isNaN(yy)){yy=0}}if(c==1){x+=xx;y+=yy;m=true;c=0}else{if(c==2){m=false;if(g.p7Magic){clearTimeout(g.p7Magic)}}else{i=parseInt(a);if(g.p7Magic){clearTimeout(g.p7Magic)}if(xx<x){xx+=i;m=true;if(xx>x){xx=x}}if(xx>x){xx-=i;m=true;if(xx<x){xx=x}}if(yy<y){yy+=i;m=true;if(yy>y){yy=y}}if(yy>y){yy-=i;m=true;if(yy<y){yy=y}}}}if(m){d.left=xx+pa;d.top=yy+pa;eval(t+x+","+y+","+a+","+b+","+c+',0)",'+b+")")}}function initPage(){MM_preloadImages("../images/design/flagsround/en-on.gif","../images/design/flagsround/hr-on.gif","../images/design/flagsround/it-on.gif","../images/design/flagsround/de-on.gif","../images/design/flagsround/pl-on.gif");tipStart=1;if(ie||ns6){tipobj=document.all?document.all.dhtmltooltip:document.getElementById?document.getElementById("dhtmltooltip"):""}pointerobj=document.all?document.all.dhtmlpointer:document.getElementById?document.getElementById("dhtmlpointer"):"";document.onmousemove=positiontip}window.onload=initPage;
