function InitializeRequest(n,t){document.body.style.cursor="wait",$get("boxprogress")&&($get("boxprogress").className="progress progressactive"),t!=null&&$get(t._postBackElement.id)&&($get(t._postBackElement.id).disabled=!0,$("#"+t._postBackElement.id).addClass("disabled"))}function EndRequest(n){document.body.style.cursor="auto",$get("boxprogress")&&($get("boxprogress").className=""),n!=null&&n._postBackSettings.sourceElement&&$get(n._postBackSettings.sourceElement.id)&&($get(n._postBackSettings.sourceElement.id).disabled=!1,$("#"+n._postBackSettings.sourceElement.id).removeClass("disabled"))}function Zone(n,t,i,r,u,f){var e=null;this.zoneElement=n,this.zoneIndex=t,this.webParts=[],this.uniqueID=i,this.isVertical=r,this.allowLayoutChange=u,this.allowDrop=!1,this.webPartTable=e,this.highlightColor=f,this.savedBorderColor=e!=null?e.style.borderColor:null,this.dropCueElements=[],this.AddWebPart=Zone_AddWebPart,this.GetWebPartIndex=Zone_GetWebPartIndex,this.ToggleDropCues=Zone_ToggleDropCues,this.UpdatePosition=Zone_UpdatePosition,this.Dispose=Zone_Dispose}function Zone_Dispose(){for(var n in this.webParts)this.webParts[n].Dispose()}function GetWindowWidth(){var n=0;return typeof window.innerWidth=="number"?n=window.innerWidth:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?n=document.documentElement.clientWidth:document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth),n}function GetWindowHeight(){return typeof window.innerWidth=="number"?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body&&document.body.clientHeight?document.body.clientHeight:0}function ResizeW(n){n==null&&(n=25);var t=GetWindowWidth();typeof maxwidth!="undefined"&&t>maxwidth||(control&&(control.width=t-n),typeof control2!="undefined"&&control2&&(control2.width=t-n))}function ResizeH(){var n=GetWindowHeight();typeof maxheight!="undefined"&&n>maxheight||(control&&(control.height=n-20),typeof control2!="undefined"&&control2&&(control2.height=n-20))}function KeyDownHandler(n,t){n.keyCode==13&&(n.returnValue=!1,n.cancel=!0,__doPostBack(t,""))}function createCookie(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()),document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var u=n+"=",r=document.cookie.split(";"),t,i=0;i<r.length;i++){for(t=r[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(u)==0)return t.substring(u.length,t.length)}return null}function eraseCookie(n){createCookie(n,"",-1)}function shiftOpacity(n,t){document.getElementById(n).style.opacity==0?opacity(n,0,100,t):(opacity(n,100,0,0),opacity(n,0,100,t))}function opacity(n,t,r,u){var e=Math.round(u/100),f=0;if(t>r)for(i=t;i>=r;i--)setTimeout("changeOpac("+i+",'"+n+"')",f*e),f++;else if(t<r)for(i=t;i<=r;i++)setTimeout("changeOpac("+i+",'"+n+"')",f*e),f++}function changeOpac(n,t){var i=document.getElementById(t).style;i.opacity=n/100,i.MozOpacity=n/100,i.KhtmlOpacity=n/100,i.filter="alpha(opacity="+n+")"}function HidePanel(n,t){n.style.visibility="Hidden",createCookie(t,!0,1)}function ShowPanel(n,t){n.style.visibility="Visible",createCookie(t,!0,1)}function PositionPanel(n){if(n){var r=document.all?document.body.scrollTop:pageYOffset,i=document.all?document.body.scrollLeft:pageXOffset,t=document.all?document.body.clientWidth:window.innerWidth;document.all||document.getElementById?(n.style.left=(parseInt(i)+parseInt(t)-parseInt(n.style.width))/2,n.style.top=r+405):document.layers&&(n.left=i+t-parseInt(n.width)-5,n.top=r+305)}}function SetObjectMaxHeight(n,t){n.style.height="100%",t.style.visibility="Hidden"}function SetObjectHeight(n,t){n.style.height=t}function RefreshParent(n){window.parent.location.href=n}function textCounter(n,t,i){var u=document.getElementById(t),f=document.getElementById(i);u&&(f&&u.value.length<=n?f.value="Posledni "+String(n-u.value.length)+" znak(y).":u.value=u.value.substring(0,n))}function setFooter(){var r,t,i,n,u;document.getElementById&&(r=GetWindowHeight(),r>0&&(t=document.getElementById("ctl00_ewpz1_mainTemplateCtrl"),i=t.offsetHeight,t.offsetHeight?i=t.offsetHeight:t.style.pixelHeight&&(i=t.style.pixelHeight),n=document.getElementById("footer"),n&&(u=n.offsetHeight,r-(i+u)>=0?(n.style.position="relative",n.style.top=r-(i+u)+"px"):n.style.position="static")))}function getElement(n){return document.getElementById?document.getElementById(n):document.all[n]}function getIFrameDocument(n){var t=null,i=getElement(n);return t=i.contentDocument?i.contentDocument:document.frames[n].document}function adjustFrameHeight(n){var i=getElement(n),t=getIFrameDocument(n);i.height=t.body.scrollHeight}function AutoComplete_PopulatedUrl(n){for(var r=n.get_completionList().childNodes,i=0;i<r.length;i++)r[i]._value!=""&&(r[i].innerHTML="<a href='"+r[i]._value+"'>"+r[i].innerHTML+"</a>")}function AutoComplete_ItemSelectedUrl(n){var i=n._selectIndex,r=n.get_completionList().childNodes;i>=0&&r[i]!=null&&r[i]._value!=""&&(window.location="/"+r[i]._value)}$(document).ready(function(){$(window).height()+100<$(document).height()&&$("#top-link-block").length&&$("#top-link-block").removeClass("hidden").affix({offset:{top:100}})}),function(n){var t=function(t,i){var r=n.extend({},n.fn.nivoSlider.defaults,i),f={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1},u=n(t),e,v,o,a,h,l;if(u.data("nivo:vars",f),u.css("position","relative"),u.addClass("nivoSlider"),e=u.children(),e.each(function(){var t=n(this),e="",i,r;t.is("img")||(t.is("a")&&(t.addClass("nivo-imageLink"),e=t),t=t.find("img:first")),i=t.width(),i==0&&(i=t.attr("width")),r=t.height(),r==0&&(r=t.attr("height")),i>u.width()&&u.width(i),r>u.height()&&u.height(r),e!=""&&e.css("display","none"),t.css("display","none"),f.totalSlides++}),r.randomStart&&(r.startSlide=Math.floor(Math.random()*f.totalSlides)),r.startSlide>0&&(r.startSlide>=f.totalSlides&&(r.startSlide=f.totalSlides-1),f.currentSlide=r.startSlide),f.currentImage=n(e[f.currentSlide]).is("img")?n(e[f.currentSlide]):n(e[f.currentSlide]).find("img:first"),n(e[f.currentSlide]).is("a")&&n(e[f.currentSlide]).css("display","block"),u.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat'),u.append(n('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:r.captionOpacity})),n(".nivo-caption",u).css("opacity",0),v=function(t){var r=n(".nivo-caption",u),i;f.currentImage.attr("title")!=""&&f.currentImage.attr("title")!=undefined?(i=f.currentImage.attr("title"),i.substr(0,1)=="#"&&(i=n(i).html()),r.css("opacity")!=0?r.find("p").stop().fadeTo(t.animSpeed,0,function(){n(this).html(i),n(this).stop().fadeTo(t.animSpeed,1)}):r.find("p").html(i),r.stop().fadeTo(t.animSpeed,t.captionOpacity)):r.stop().fadeTo(t.animSpeed,0)},v(r),o=0,!r.manualAdvance&&e.length>1&&(o=setInterval(function(){s(u,e,r,!1)},r.pauseTime)),r.directionNav&&(u.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'</a><a class="nivo-nextNav">'+r.nextText+"</a></div>"),r.directionNavHide&&(n(".nivo-directionNav",u).hide(),u.hover(function(){n(".nivo-directionNav",u).show()},function(){n(".nivo-directionNav",u).hide()})),n("a.nivo-prevNav",u).live("click",function(){if(f.running)return!1;clearInterval(o),o="",f.currentSlide-=2,s(u,e,r,"prev")}),n("a.nivo-nextNav",u).live("click",function(){if(f.running)return!1;clearInterval(o),o="",s(u,e,r,"next")})),r.controlNav){for(a=n('<div class="nivo-controlNav"></div>'),u.append(a),h=0;h<e.length;h++)r.controlNavThumbs?(l=e.eq(h),l.is("img")||(l=l.find("img:first")),r.controlNavThumbsFromRel?a.append('<a class="nivo-control" rel="'+h+'"><img src="'+l.attr("rel")+'" alt="" /></a>'):a.append('<a class="nivo-control" rel="'+h+'"><img src="'+l.attr("src").replace(r.controlNavThumbsSearch,r.controlNavThumbsReplace)+'" alt="" /></a>')):a.append('<a class="nivo-control" rel="'+h+'">'+(h+1)+"</a>");n(".nivo-controlNav a:eq("+f.currentSlide+")",u).addClass("active"),n(".nivo-controlNav a",u).live("click",function(){if(f.running||n(this).hasClass("active"))return!1;clearInterval(o),o="",u.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat'),f.currentSlide=n(this).attr("rel")-1,s(u,e,r,"control")})}r.keyboardNav&&n(window).keypress(function(n){if(n.keyCode=="37"){if(f.running)return!1;clearInterval(o),o="",f.currentSlide-=2,s(u,e,r,"prev")}if(n.keyCode=="39"){if(f.running)return!1;clearInterval(o),o="",s(u,e,r,"next")}}),r.pauseOnHover&&u.hover(function(){f.paused=!0,clearInterval(o),o=""},function(){f.paused=!1,o!=""||r.manualAdvance||(o=setInterval(function(){s(u,e,r,!1)},r.pauseTime))}),u.bind("nivo:animFinished",function(){f.running=!1,n(e).each(function(){n(this).is("a")&&n(this).css("display","none")}),n(e[f.currentSlide]).is("a")&&n(e[f.currentSlide]).css("display","block"),o!=""||f.paused||r.manualAdvance||(o=setInterval(function(){s(u,e,r,!1)},r.pauseTime)),r.afterChange.call(this)});var c=function(t,i,r){for(var u,f=0;f<i.slices;f++)u=Math.round(t.width()/i.slices),f==i.slices-1?t.append(n('<div class="nivo-slice"></div>').css({left:u*f+"px",width:t.width()-u*f+"px",height:"0px",opacity:"0",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(u+f*u-u)+"px 0%"})):t.append(n('<div class="nivo-slice"></div>').css({left:u*f+"px",width:u+"px",height:"0px",opacity:"0",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(u+f*u-u)+"px 0%"}))},p=function(t,i,r){for(var f=Math.round(t.width()/i.boxCols),u=Math.round(t.height()/i.boxRows),e,o=0;o<i.boxRows;o++)for(e=0;e<i.boxCols;e++)e==i.boxCols-1?t.append(n('<div class="nivo-box"></div>').css({opacity:0,left:f*e+"px",top:u*o+"px",width:t.width()-f*e+"px",height:u+"px",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(f+e*f-f)+"px -"+(u+o*u-u)+"px"})):t.append(n('<div class="nivo-box"></div>').css({opacity:0,left:f*e+"px",top:u*o+"px",width:f+"px",height:u+"px",background:'url("'+r.currentImage.attr("src")+'") no-repeat -'+(f+e*f-f)+"px -"+(u+o*u-u)+"px"}))},s=function(t,i,r,u){var e=t.data("nivo:vars"),f,a,o,s,h,nt,d,y,tt;if(e&&e.currentSlide==e.totalSlides-1&&r.lastSlide.call(this),(!e||e.stop)&&!u)return!1;if(r.beforeChange.call(this),u?(u=="prev"&&t.css("background",'url("'+e.currentImage.attr("src")+'") no-repeat'),u=="next"&&t.css("background",'url("'+e.currentImage.attr("src")+'") no-repeat')):t.css("background",'url("'+e.currentImage.attr("src")+'") no-repeat'),e.currentSlide++,e.currentSlide==e.totalSlides&&(e.currentSlide=0,r.slideshowEnd.call(this)),e.currentSlide<0&&(e.currentSlide=e.totalSlides-1),e.currentImage=n(i[e.currentSlide]).is("img")?n(i[e.currentSlide]):n(i[e.currentSlide]).find("img:first"),r.controlNav&&(n(".nivo-controlNav a",t).removeClass("active"),n(".nivo-controlNav a:eq("+e.currentSlide+")",t).addClass("active")),v(r),n(".nivo-slice",t).remove(),n(".nivo-box",t).remove(),f=r.effect,r.effect=="random"&&(a=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"],f=a[Math.floor(Math.random()*(a.length+1))],f==undefined&&(f="fade")),r.effect.indexOf(",")!=-1&&(a=r.effect.split(","),f=a[Math.floor(Math.random()*a.length)],f==undefined&&(f="fade")),e.currentImage.attr("data-transition")&&(f=e.currentImage.attr("data-transition")),e.running=!0,f=="sliceDown"||f=="sliceDownRight"||f=="sliceDownLeft"){c(t,r,e);var o=0,s=0,l=n(".nivo-slice",t);f=="sliceDownLeft"&&(l=n(".nivo-slice",t)._reverse()),l.each(function(){var i=n(this);i.css({top:"0px"}),s==r.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed)},100+o),o+=50,s++})}else if(f=="sliceUp"||f=="sliceUpRight"||f=="sliceUpLeft"){c(t,r,e);var o=0,s=0,l=n(".nivo-slice",t);f=="sliceUpLeft"&&(l=n(".nivo-slice",t)._reverse()),l.each(function(){var i=n(this);i.css({bottom:"0px"}),s==r.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed)},100+o),o+=50,s++})}else if(f=="sliceUpDown"||f=="sliceUpDownRight"||f=="sliceUpDownLeft"){c(t,r,e);var o=0,s=0,it=0,l=n(".nivo-slice",t);f=="sliceUpDownLeft"&&(l=n(".nivo-slice",t)._reverse()),l.each(function(){var i=n(this);s==0?(i.css("top","0px"),s++):(i.css("bottom","0px"),s=0),it==r.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},r.animSpeed)},100+o),o+=50,it++})}else if(f=="fold")c(t,r,e),o=0,s=0,n(".nivo-slice",t).each(function(){var i=n(this),u=i.width();i.css({top:"0px",height:"100%",width:"0px"}),s==r.slices-1?setTimeout(function(){i.animate({width:u,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({width:u,opacity:"1.0"},r.animSpeed)},100+o),o+=50,s++});else if(f=="fade")c(t,r,e),h=n(".nivo-slice:first",t),h.css({height:"100%",width:t.width()+"px"}),h.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")});else if(f=="slideInRight")c(t,r,e),h=n(".nivo-slice:first",t),h.css({height:"100%",width:"0px",opacity:"1"}),h.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")});else if(f=="slideInLeft")c(t,r,e),h=n(".nivo-slice:first",t),h.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"}),h.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){h.css({left:"0px",right:""}),t.trigger("nivo:animFinished")});else if(f=="boxRandom"){p(t,r,e);var rt=r.boxCols*r.boxRows,s=0,o=0,nt=w(n(".nivo-box",t));nt.each(function(){var i=n(this);s==rt-1?setTimeout(function(){i.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({opacity:"1"},r.animSpeed)},100+o),o+=20,s++})}else if(f=="boxRain"||f=="boxRainReverse"||f=="boxRainGrow"||f=="boxRainGrowReverse"){p(t,r,e);var rt=r.boxCols*r.boxRows,s=0,o=0,g=0,b=0,k=[];for(k[g]=[],nt=n(".nivo-box",t),(f=="boxRainReverse"||f=="boxRainGrowReverse")&&(nt=n(".nivo-box",t)._reverse()),nt.each(function(){k[g][b]=n(this),b++,b==r.boxCols&&(g++,b=0,k[g]=[])}),d=0;d<r.boxCols*2;d++){for(y=d,tt=0;tt<r.boxRows;tt++)y>=0&&y<r.boxCols&&(function(i,u,e,o,s){var h=n(k[i][u]),l=h.width(),c=h.height();(f=="boxRainGrow"||f=="boxRainGrowReverse")&&h.width(0).height(0),o==s-1?setTimeout(function(){h.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+e):setTimeout(function(){h.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+e)}(tt,y,o,s,rt),s++),y--;o+=100}}},w=function(n){for(var i,r,t=n.length;t;i=parseInt(Math.random()*t),r=n[--t],n[t]=n[i],n[i]=r);return n},y=function(n){this.console&&typeof console.log!="undefined"&&console.log(n)};return this.stop=function(){n(t).data("nivo:vars").stop||(n(t).data("nivo:vars").stop=!0,y("Stop Slider"))},this.start=function(){n(t).data("nivo:vars").stop&&(n(t).data("nivo:vars").stop=!1,y("Start Slider"))},r.afterLoad.call(this),this};n.fn.nivoSlider=function(i){return this.each(function(){var f=n(this),e;if(f.data("nivoslider"))return f.data("nivoslider");e=new t(this,i),f.data("nivoslider",e)})},n.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,controlNavThumbs:!1,controlNavThumbsFromRel:!1,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:!0,pauseOnHover:!0,manualAdvance:!1,captionOpacity:.8,prevText:"Prev",nextText:"Next",randomStart:!1,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}},n.fn._reverse=[].reverse}(jQuery)