function CookiesMessage_Load(){var t=$.cookie("Ius_CookiesAccepted"),n;t!=undefined&&t||$("#divCookiesMessage").size()==0&&(n="",n+="<div id='divCookiesMessage' class='home-cookies-line margin-top-bottom'>",n+="<div class='container'>",n+="<div class='row cookies-line'>",n+="<div class='col-sm-9 cookies-container'>",n+="Portal koristi kolačiće (tzv. cookies) za pružanje boljeg korisničkog iskustva i funkcionalnosti. Postavke kolačića možete urediti u vašem internetskom pregledniku. <a href='/o-tvrtki/zastita-privatnosti' class='home-cookies-more' target='_blank'>Više...<\/a>",n+="<\/div>",n+="<div class='col-sm-3 cookies-right'>",n+="<a href='#' class='CookiesButton' onclick='CookiesMessage_Confirm();'><button type='button' class='form-button-ius form-button-ius-home form-button-ius-gray home-cookies-button'>U redu<\/button><\/a>",n+="<\/div>",n+="<\/div>",n+="<\/div>",n+="<\/div>",$(document.body).prepend(n))}function CookiesMessage_Confirm(){$.cookie("Ius_CookiesAccepted","true",{expires:7,path:"/"});$("#divCookiesMessage").remove()}function create(n){var i=document.createDocumentFragment(),t=document.createElement("div");for(t.innerHTML=n;t.firstChild;)i.appendChild(t.firstChild);return i}function isIE(){var n=navigator.userAgent.toLowerCase();return n.indexOf("msie")!=-1?parseInt(n.split("msie")[1]):!1}function ShowMessageBar(n,t,i,r){$("<div />",{id:t,html:i+" "+n}).hide().prependTo("body").slideDown("fast").delay(r).slideUp(function(){$(this).remove()})}(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}function i(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t.json?JSON.parse(n):n}catch(i){}}var r=/\+/g,t=n.cookie=function(r,e,o){var l,h,s,y;if(e!==undefined)return o=n.extend({},t.defaults,o),typeof o.expires=="number"&&(l=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+l)),e=t.json?JSON.stringify(e):String(e),document.cookie=[t.raw?r:encodeURIComponent(r),"=",t.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");var a=t.raw?u:f,v=document.cookie.split("; "),c=r?undefined:{};for(s=0,y=v.length;s<y;s++){var p=v[s].split("="),w=a(p.shift()),b=a(p.join("="));if(r&&r===w){c=i(b);break}r||(c[w]=i(b))}return c};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}});String.prototype.endsWith||(String.prototype.endsWith=function(n,t){var i=this.toString(),r;return(typeof t!="number"||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=n.length,r=i.indexOf(n,t),r!==-1&&r===t});$(function(){$(window).scroll(function(){var n=window.matchMedia("(max-width: 991.98px)"),t=window.location.href.endsWith("korisnicki-profil")||this.window.location.pathname=="/";n.matches!==!1||t?$(".scrollup").css("display","none"):$(this).scrollTop()>100?$(".scrollup").fadeIn():$(".scrollup").fadeOut()});$(".scrollup").click(function(){return $("html, body").animate({scrollTop:0},300),!1})})