(function(window){if(typeof window.OpteraFocusParentHeadStyleInserted=='undefined'){window.OpteraFocusParentHeadStyleInserted=false;} window.OpteraFocus11=function(){var Focus={debug:false,modalsDismissed:{},ignoreConverted:true,initialize:function(){if(Focus.debug) console.log('initialize()');Focus.insertStyleIntoHead();Focus.registerFocusEvent();Focus.addClass(document.getElementsByTagName('body')[0],'OpteraFocusModal');},registerClickEvents:function(){var closer=Focus.iframeDoc.getElementsByClassName('mf-modal-close');var aTag=closer[0].getElementsByTagName('a');aTag[0].addEventListener('click',function(event){Focus.modalsDismissed["11"]=true;Focus.iframe.parentNode.removeChild(Focus.iframe);var overlays=document.getElementsByClassName('mf-modal-overlay-11');if(overlays.length){overlays[0].parentNode.removeChild(overlays[0]);}});var buttons=Focus.iframeDoc.getElementsByClassName('opteraform-button');if(buttons.length){buttons[0].addEventListener('click',function(event){Focus.convertVisitor();});}},toggleBarCollapse:function(collapser,useCookie){var svg=collapser.getElementsByTagName('svg');var g=svg[0].getElementsByTagName('g');var currentSize=svg[0].getAttribute('data-transform-size');var currentDirection=svg[0].getAttribute('data-transform-direction');var currentScale=svg[0].getAttribute('data-transform-scale');if(useCookie){if(Focus.cookies.hasItem('mf-bar-collapser-11')){var newDirection=Focus.cookies.getItem('mf-bar-collapser-11');if(isNaN(newDirection)){var newDirection=currentDirection;}}else{var newDirection=currentDirection;}}else{var newDirection=(parseInt(currentDirection)*-1);Focus.cookies.setItem('mf-bar-collapser-11',newDirection);} setTimeout(function(){g[0].setAttribute('transform','scale('+currentScale+') rotate('+newDirection+' '+currentSize+' '+currentSize+')');svg[0].setAttribute('data-transform-direction',newDirection);},500);var isTop=Focus.hasClass(Focus.iframeFocus,'mf-bar-top');if((!isTop&&newDirection==90)||(isTop&&newDirection==-90)){if(isTop){Focus.iframe.style.marginTop=0;}else{Focus.iframe.style.marginBottom=0;} Focus.removeClass(collapser,'mf-bar-collapsed');Focus.enableIframeResizer();}else{var iframeHeight=Focus.iframe.style.height;iframeHeight.replace('px','');var newMargin=(parseInt(iframeHeight)*-1)+'px';if(isTop){Focus.iframe.style.marginTop=newMargin;}else{Focus.iframe.style.marginBottom=newMargin;} Focus.addClass(collapser,'mf-bar-collapsed');Focus.disableIFrameResizer();}},registerFocusEvent:function(){if(Focus.debug) console.log('registerFocusEvent()');if(Focus.debug) console.log('show when visitor leaves');document.documentElement.addEventListener('mouseleave',Focus.engageVisitor);var elements=document.getElementsByTagName('a');for(var i=0,len=elements.length;i=120;if(Focus.debug){var debugMsg='Engage q2 minute, ';if(engage){debugMsg+='continue';}else{debugMsg+='engage in '+(120-(now-lastEngaged))+' seconds';} console.log(debugMsg);} break;case'q15min':engage=(now-lastEngaged)>=900;if(Focus.debug){var debugMsg='Engage q15 minute, ';if(engage){debugMsg+='continue';}else{debugMsg+='engage in '+(120-(now-lastEngaged))+' seconds';} console.log(debugMsg);} break;case'hourly':engage=(now-lastEngaged)>=3600;if(Focus.debug){var debugMsg='Engage hourly, ';if(engage){debugMsg+='continue';}else{debugMsg+='engage in '+(120-(now-lastEngaged))+' seconds';} console.log(debugMsg);} break;case'daily':engage=(now-lastEngaged)>=86400;if(Focus.debug){var debugMsg='Engage daily, ';if(engage){debugMsg+='continue';}else{debugMsg+='engage in '+(120-(now-lastEngaged))+' seconds';} console.log(debugMsg);} break;} if(!engage){return false;}} if(Focus.debug) console.log('engageVisitor()');Focus.createIframe();Focus.iframeDoc.open();Focus.iframeDoc.write("\x3cdiv\x3e\x3cstyle scoped\x3e\x2eoptera\x2dfocus \x7b\x0a font\x2dfamily\x3a Arial\x2c Helvetica\x2c sans\x2dserif\x3b\x0a color\x3a \x23000000\x3b\x0a \x7d\x0a\x0a \x0a \x2emf\x2dcontent a\x2emf\x2dlink\x2c \x2emf\x2dcontent \x2eopteraform\x2dbutton \x7b\x0a background\x2dcolor\x3a \x2359ba47\x3b\x0a color\x3a \x23ffffff\x3b\x0a \x7d\x0a\x0a \x2eopteraform\x2dinput\x3afocus\x2c select\x3afocus \x7b\x0a border\x3a 1px solid \x2359ba47\x3b\x0a \x7d\x3c\x2fstyle\x3e\x3cstyle scoped\x3e\x2emf\x2dmodal \x7b\x0a border\x2dcolor\x3a \x2359ba47 \x7d\x3c\x2fstyle\x3e\x3cdiv\x0aclass\x3d\x22optera\x2dfocus mf\x2dmodal mf\x2dmodal\x2dmiddle\x22\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dmodal\x2dcontainer\x22\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dmodal\x2dclose\x22\x3e\x0a\x3ca\x0ahref\x3d\x22javascript\x3avoid\x280\x29\x22\x3ex\x3c\x2fa\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dcontent\x22\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dheadline\x22\x3eBodite obveščeni o aktualnem dogajanju\x2e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dtagline\x22\x3eOb prijavi na e\x2dnovice prejmete priročnik \x28PDF\x29 50 odtenkov odklopa\x2e 50 stvari\x2c ki jih lahko počnete\x2c namesto da se igrate z mobilcem\x2e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dinner\x2dcontainer\x22\x3e \x3cscript type\x3d\x22text\x2fjavascript\x22\x3e\x2f\x2a\x2a This section is only needed once per page if manually copying \x2a\x2a\x2f\x0a if \x28typeof OpteraSDKLoaded \x3d\x3d \x27undefined\x27\x29 \x7b\x0a var OpteraSDKLoaded \x3d true\x3b\x0a var head \x3d document\x2egetElementsByTagName\x28\x27head\x27\x29\x5b0\x5d\x3b\x0a var script \x3d document\x2ecreateElement\x28\x27script\x27\x29\x3b\x0a script\x2etype \x3d \x27text\x2fjavascript\x27\x3b\x0a script\x2esrc \x3d \x27http\x3a\x2f\x2fm\x2eoptera\x2esi\x2fmedia\x2fjs\x2foptera\x2dform\x2ejs\x27\x3b\x0a script\x2eonload \x3d function\x28\x29 \x7b\x0a OpteraSDK\x2eonLoad\x28\x29\x3b\x0a \x7d\x3b\x0a head\x2eappendChild\x28script\x29\x3b\x0a var OpteraDomain \x3d \x27http\x3a\x2f\x2fm\x2eoptera\x2esi\x27\x3b\x0a var OpteraLang \x3d \x7b\x0a \x27submittingMessage\x27\x3a \x22Please wait\x2e\x2e\x2e\x22\x0a \x7d\x0a \x7d\x3c\x2fscript\x3e \x3cscript\x3evar OpteraFocusHandler \x3d function \x28messageType\x2c message\x29 \x7b\x0a \x2f\x2f Store the HTML\x0a var wrapper \x3d document\x2egetElementById\x28\x27opteraform\x5fwrapper\x5fprijavanaadremoizobrazevanje\x5ffocus\x27\x29\x3b\x0a var innerForm \x3d wrapper\x2egetElementsByClassName\x28\x27opteraform\x2dinnerform\x27\x29\x3b\x0a innerForm\x5b0\x5d\x2estyle\x2edisplay \x3d \x22none\x22\x3b\x0a\x0a document\x2egetElementById\x28\x27opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5f\x27 \x2b messageType\x29\x2estyle\x2efontSize \x3d \x221\x2e1em\x22\x3b\x0a \x0a var headline \x3d document\x2egetElementsByClassName\x28\x27mf\x2dheadline\x27\x29\x3b\x0a if \x28headline\x2elength\x29 \x7b\x0a headline\x5b0\x5d\x2estyle\x2edisplay \x3d \x22none\x22\x3b\x0a\x0a \x7d\x0a var tagline \x3d document\x2egetElementsByClassName\x28\x27mf\x2dtagline\x27\x29\x3b\x0a if \x28tagline\x2elength\x29 \x7b\x0a tagline\x5b0\x5d\x2estyle\x2edisplay \x3d \x22none\x22\x3b\x0a \x7d\x0a\x0a if \x28message\x29 \x7b\x0a document\x2egetElementById\x28\x27opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5f\x27 \x2b messageType\x29\x2einnerHTML \x3d message\x3b\x0a \x7d\x0a\x0a setTimeout\x28function \x28\x29 \x7b\x0a if \x28headline\x2elength\x29 \x7b\x0a headline\x5b0\x5d\x2estyle\x2edisplay \x3d \x22block\x22\x3b\x0a \x7d\x0a if \x28tagline\x2elength\x29 \x7b\x0a tagline\x5b0\x5d\x2estyle\x2edisplay \x3d \x22inherit\x22\x3b\x0a \x7d\x0a\x0a innerForm\x5b0\x5d\x2estyle\x2edisplay \x3d \x22inherit\x22\x3b\x0a document\x2egetElementById\x28\x27opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5f\x27 \x2b messageType\x29\x2einnerHTML \x3d \x27\x27\x3b\x0a \x7d\x2c \x28messageType \x3d\x3d \x27error\x27\x29 \x3f 1500 \x3a 5000\x29\x3b\x0a \x7d\x0a if \x28typeof OpteraFormCallback \x3d\x3d \x27undefined\x27\x29 \x7b\x0a var OpteraFormCallback \x3d \x7b\x7d\x3b\x0a \x7d\x0a OpteraFormCallback\x5b\x22prijavanaadremoizobrazevanje\x5ffocus\x22\x5d \x3d \x7b\x0a onMessageSet\x3a function \x28data\x29 \x7b\x0a if \x28data\x2emessage\x29 \x7b\x0a OpteraFocusHandler\x28data\x2etype\x29\x3b\x0a \x7d\x0a \x7d\x2c\x0a onErrorMark\x3a function \x28data\x29 \x7b\x0a if \x28data\x2evalidationMessage\x29 \x7b\x0a OpteraFocusHandler\x28\x27error\x27\x2c data\x2evalidationMessage\x29\x3b\x0a\x0a return true\x3b\x0a \x7d\x0a \x7d\x2c\x0a onResponse\x3a function \x28data\x29 \x7b\x0a if \x28data\x2edownload\x29 \x7b\x0a \x2f\x2f Hit the download in the iframe\x0a document\x2egetElementById\x28\x27opteraiframe\x5fprijavanaadremoizobrazevanje\x5ffocus\x27\x29\x2esrc \x3d data\x2edownload\x3b\x0a\x0a \x2f\x2f Register a callback for a redirect\x0a if \x28data\x2eredirect\x29 \x7b\x0a setTimeout\x28function \x28\x29 \x7b\x0a window\x2etop\x2elocation \x3d data\x2eredirect\x3b\x0a \x7d\x2c 2000\x29\x3b\x0a \x7d\x0a\x0a return true\x3b\x0a \x7d else if \x28data\x2eredirect\x29 \x7b\x0a window\x2etop\x2elocation \x3d data\x2eredirect\x3b\x0a\x0a return true\x3b\x0a \x7d\x0a \x7d\x0a \x7d\x3c\x2fscript\x3e \x3cdiv\x0aid\x3d\x22opteraform\x5fwrapper\x5fprijavanaadremoizobrazevanje\x5ffocus\x22 class\x3d\x22opteraform\x5fwrapper\x22\x3e\x3cform\x0aautocomplete\x3d\x22false\x22 role\x3d\x22form\x22 method\x3d\x22post\x22 action\x3d\x22\x2f\x2fm\x2eoptera\x2esi\x2fform\x2fsubmit\x3fformId\x3d247\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x22 data\x2doptera\x2dform\x3d\x22prijavanaadremoizobrazevanje\x5ffocus\x22\x3e\x3cdiv\x0aclass\x3d\x22opteraform\x2derror\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5ferror\x22\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22opteraform\x2dmessage\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5fmessage\x22\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22opteraform\x2dinnerform\x22\x3e\x3cdiv\x0aid\x3d\x22opteraform\x5femail\x22 data\x2dvalidate\x3d\x22email\x22 data\x2dvalidation\x2dtype\x3d\x22email\x22 class\x3d\x22opteraform\x2drow opteraform\x2demail opteraform\x2dfield\x2d1 opteraform\x2drequired\x22\x3e\x0a\x3cinput\x0aid\x3d\x22opteraform\x5finput\x5femail\x22 name\x3d\x22opteraform\x5bemail\x5d\x22 value\x3d\x22\x22 placeholder\x3d\x22Vpišite vaš e\x2dnaslov\x22 class\x3d\x22opteraform\x2dinput\x22 type\x3d\x22email\x22 \x2f\x3e\x0a\x3cspan\x0aclass\x3d\x22opteraform\x2derrormsg\x22 style\x3d\x22display\x3a none\x3b\x22\x3eThis is required\x2e\x3c\x2fspan\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aid\x3d\x22opteraform\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x22 data\x2dvalidate\x3d\x22prijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x22 data\x2dvalidation\x2dtype\x3d\x22checkboxgrp\x22 class\x3d\x22opteraform\x2drow opteraform\x2dcheckboxgrp opteraform\x2dfield\x2d2 opteraform\x2drequired\x22\x3e\x0a\x3clabel\x0aclass\x3d\x22opteraform\x2dlabel\x22 for\x3d\x22opteraform\x5fcheckboxgrp\x5fcheckbox\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fKreativnovodenje1\x22\x3eKatera področja vas zanimajo\x3f\x3c\x2flabel\x3e\x3cdiv\x0aclass\x3d\x22opteraform\x2dcheckboxgrp\x2drow\x22\x3e\x0a\x3clabel\x0aid\x3d\x22opteraform\x5fcheckboxgrp\x5flabel\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fKreativnovodenje0\x22 for\x3d\x22opteraform\x5fcheckboxgrp\x5fcheckbox\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fKreativnovodenje0\x22 class\x3d\x22opteraform\x2dcheckboxgrp\x2dlabel\x22\x3e\x0a\x3cinput\x0aclass\x3d\x22opteraform\x2dcheckboxgrp\x2dcheckbox\x22 name\x3d\x22opteraform\x5bprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5d\x5b\x5d\x22 id\x3d\x22opteraform\x5fcheckboxgrp\x5fcheckbox\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fKreativnovodenje0\x22 type\x3d\x22checkbox\x22 value\x3d\x22Kreativno vodenje\x22 \x2f\x3e\x0aKreativno vodenje\x0a\x3c\x2flabel\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22opteraform\x2dcheckboxgrp\x2drow\x22\x3e\x0a\x3clabel\x0aid\x3d\x22opteraform\x5fcheckboxgrp\x5flabel\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fGoDigital1\x22 for\x3d\x22opteraform\x5fcheckboxgrp\x5fcheckbox\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fGoDigital1\x22 class\x3d\x22opteraform\x2dcheckboxgrp\x2dlabel\x22\x3e\x0a\x3cinput\x0aclass\x3d\x22opteraform\x2dcheckboxgrp\x2dcheckbox\x22 name\x3d\x22opteraform\x5bprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5d\x5b\x5d\x22 id\x3d\x22opteraform\x5fcheckboxgrp\x5fcheckbox\x5fprijavil\x5fbi\x5fse\x5fna\x5fpodrocj\x5fGoDigital1\x22 type\x3d\x22checkbox\x22 value\x3d\x22GoDigital\x22 \x2f\x3e\x0aGoDigital\x0a\x3c\x2flabel\x3e\x3c\x2fdiv\x3e\x0a\x3cspan\x0aclass\x3d\x22opteraform\x2derrormsg\x22 style\x3d\x22display\x3a none\x3b\x22\x3eThis is required\x2e\x3c\x2fspan\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aid\x3d\x22opteraform\x5fsubmit\x22 class\x3d\x22opteraform\x2drow opteraform\x2dbutton\x2dwrapper opteraform\x2dfield\x2d3\x22\x3e\x0a\x3cbutton\x0atype\x3d\x22submit\x22 name\x3d\x22opteraform\x5bsubmit\x5d\x22 id\x3d\x22opteraform\x5finput\x5fsubmit\x22 name\x3d\x22opteraform\x5bsubmit\x5d\x22 value\x3d\x22\x22 class\x3d\x22opteraform\x2dbutton btn btn\x2ddefault\x22 value\x3d\x221\x22\x3eOddaj prijavo\x3c\x2fbutton\x3e\x3c\x2fdiv\x3e\x0a\x3cinput\x0atype\x3d\x22hidden\x22 name\x3d\x22opteraform\x5bformId\x5d\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5fid\x22 value\x3d\x22247\x22\x2f\x3e\x0a\x3cinput\x0atype\x3d\x22hidden\x22 name\x3d\x22opteraform\x5breturn\x5d\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5freturn\x22 value\x3d\x22\x22\x2f\x3e\x0a\x3cinput\x0atype\x3d\x22hidden\x22 name\x3d\x22opteraform\x5bformName\x5d\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5fname\x22 value\x3d\x22prijavanaadremoizobrazevanje\x5ffocus\x22\x2f\x3e\x3cinput\x0atype\x3d\x22hidden\x22 name\x3d\x22opteraform\x5bfocusId\x5d\x22 id\x3d\x22opteraform\x5fprijavanaadremoizobrazevanje\x5ffocus\x5ffocus\x5fid\x22 value\x3d\x2211\x22\x2f\x3e\x3c\x2fdiv\x3e\x3c\x2fform\x3e\x3c\x2fdiv\x3e\x3c\x2fdiv\x3e\x3c\x2fdiv\x3e\x3c\x2fdiv\x3e\x3c\x2fdiv\x3e\x3cdiv\x0aclass\x3d\x22mf\x2dmove\x2dto\x2dparent mf\x2dmodal\x2doverlay mf\x2dmodal\x2doverlay\x2d11\x22\x3e\x3c\x2fdiv\x3e\x3cimg\x0asrc\x3d\x22\x2f\x2fm\x2eoptera\x2esi\x2ffocus\x2f11\x2fviewpixel\x2egif\x22 alt\x3d\x22Optera Focus\x22 style\x3d\x22display\x3a none\x3b\x22\x2f\x3e\x3c\x2fdiv\x3e");Focus.iframeDoc.close();Focus.iframeDoc.getElementsByTagName('body')[0].style.margin=0;var move=Focus.iframeDoc.getElementsByClassName('mf-move-to-parent');for(var i=0;i= '+atPos);if(scrollPos>=atPos){window.removeEventListener('scroll',Focus.engageVisitorAtScrollPosition);Focus.engageVisitor();}},convertVisitor:function(){if(Focus.ignoreConverted){if(Focus.debug) console.log('Visitor converted');Focus.cookies.setItem('optera_focus_11',-1,Infinity);}else if(Focus.debug){console.log('Visitor converted but ignoreConverted not enabled');}},hasClass:function(element,hasClass){return((" "+element.className+" ").replace(/[\n\t]/g," ").indexOf(" "+hasClass+" ")>-1);},addClass:function(element,addClass){if(!Focus.hasClass(element,addClass)){element.className+=" "+addClass;}},removeClass:function(element,removeClass){element.className=element.className.replace(new RegExp('\\b'+removeClass+'\\b'),'');},cookies:{getItem:function(sKey){if(!sKey){return null;} return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(sKey).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;},setItem:function(sKey,sValue,vEnd,sPath,sDomain,bSecure){if(!sKey||/^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)){return false;} this.removeItem(sKey);var sExpires="";if(vEnd){switch(vEnd.constructor){case Number:sExpires=vEnd===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+vEnd;break;case String:sExpires="; expires="+vEnd;break;case Date:sExpires="; expires="+vEnd.toUTCString();break;}} document.cookie=encodeURIComponent(sKey)+"="+encodeURIComponent(sValue)+sExpires+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"")+(bSecure?"; secure":"");return true;},removeItem:function(sKey,sPath,sDomain){if(!this.hasItem(sKey)){return false;} document.cookie=encodeURIComponent(sKey)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"");return true;},hasItem:function(sKey){if(!sKey){return false;} return(new RegExp("(?:^|;\\s*)"+encodeURIComponent(sKey).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=")).test(document.cookie);},keys:function(){var aKeys=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/);for(var nLen=aKeys.length,nIdx=0;nIdx