function formatText(B,A){return B+""}cms=function(){this.Search=function(B){if(B.length>2){var A="?q="+encodeURIComponent(B);window.location.href="/hr/trazi/"+A}};this.SearchBaza=function(B){if(B.length>2){var A="?q="+encodeURIComponent(B);window.location.href="/hr/baza-proizvoda/trazi/"+A}}};var $CMS=new cms();$(function(){$("#search-q").keypress(function(F){if(F.which==13){$CMS.Search($(this).val());return false}});$("#search-baza").keypress(function(F){if(F.which==13){$CMS.SearchBaza($(this).val());return false}});$("#traziq,#brq").keypress(function(F){if(F.which==13){$("#pretrazi-clanove").click()}});$("#search-button").click(function(F){$CMS.Search($(this).parent().find("INPUT").eq(0).val());return false});$("#search-baza-btn").click(function(F){$CMS.SearchBaza($(this).parent().find("INPUT").eq(0).val());return false});function D(){var H=$(window).height();var G=$("#wrap").height();var F=410;if((H-F)>G){$("#wrap").height(H-F)}}$(window).resize(function(){D()});D();$("ul.mainMenu").superfish();$(".mainMenu .sf-sub-indicator").wrapInner("");$("#novosti-holder .inner DIV P a").bigTarget({hoverClass:"mousePointer",clickZone:"div:eq(0)"});var A=false;var C=0;var E=function(F){C=F;$(".novosti-naslovna IMG").hide();$(".novosti-naslovna IMG").eq(F).show();$(".novosti-naslovna #novosti-holder .inner DIV").hide();$(".novosti-naslovna #novosti-holder .inner DIV").eq(F).show();$(".novosti-naslovna #novosti-pager A").removeClass("selected");$(".novosti-naslovna #novosti-pager A").eq(F).addClass("selected");if(F==3){C=-1}};$(".novosti-naslovna IMG").each(function(F){$(this).click(function(){$(".novosti-naslovna #novosti-holder .inner DIV A").eq(F).click()})});$(".novosti-naslovna #novosti-pager A").each(function(F){$(this).click(function(){E(F);return false})});$(".novosti-naslovna").mouseenter(function(){A=true}).mouseleave(function(){A=false});setInterval(function(){if(!A){E(C+1)}},4000);if(!(typeof Cufon=="undefined")){if(!$.browser.msie){Cufon.replace("h1")}}$("#imenik-proizvoda .abeceda A.disabled").click(function(){return false});$(".email-encoded").each(function(){$a=$(this);$a.attr("href",$a.attr("href").replace("NOSPAMAT","@"));$a.text($a.text().replace("NOSPAMAT","@"))});$(".zakoni-cadial").find("LI").each(function(){var F=$(this);if(F.find("STRONG:first").length==1){F.append(" - pretraži NN")}});$("#novosti-naslovna-ostale .novosti-prikaz > DIV").hide();$("#novosti-naslovna-ostale .novosti-prikaz > DIV").eq(0).show();var B=1;$("#novosti-naslovna-ostale .novosti-prikaz > DIV").each(function(){if($(this).outerHeight()>B){B=$(this).outerHeight()}});$("#novosti-naslovna-ostale .novosti-prikaz").height(B);$("#novosti-naslovna-ostale LI A").each(function(F){$(this).click(function(){$("#novosti-naslovna-ostale LI A").removeClass("selected");$(this).addClass("selected");$("#novosti-naslovna-ostale .novosti-prikaz > DIV").hide();$("#novosti-naslovna-ostale .novosti-prikaz > DIV").eq(F).show();return false})});if($(".redArrowLinkShema").length>0){$(".redArrowLinkShema").on("click",function(F){window.open("/files/file/komora/tijela-komore.html","","resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=850,height=600");return false})}$("DIV.novi-zakoni .title").hover(function(){$(this).css("cursor","pointer")});$("DIV.novi-zakoni .title").click(function(){$("#zakoni").toggle()});$(".inner DL DD").hide();$(".inner DL DT").click(function(){$(".inner DL DT").removeClass("active");$(".inner DL DD").hide();$(this).addClass("active").next().show()})});