function getStyle(n,t){var i,r=(n.ownerDocument||document).defaultView;return r&&r.getComputedStyle?(t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),r.getComputedStyle(n,null).getPropertyValue(t)):n.currentStyle?(t=t.replace(/\-(\w)/g,function(n,t){return t.toUpperCase()}),i=n.currentStyle[t],/^\d+(em|pt|%|ex)?$/i.test(i))?function(t){var i=n.style.left,r=n.runtimeStyle.left;return n.runtimeStyle.left=n.currentStyle.left,n.style.left=t||0,t=n.style.pixelLeft+"px",n.style.left=i,n.runtimeStyle.left=r,t}(i):i:void 0}$(function(){var n=new Menu({wrapper:"#o-wrapper",type:"slide-left",menuOpenerClass:".c-button",maskId:"#c-mask"}),t=document.querySelector("#buttonMenu");t.addEventListener("click",function(t){t.preventDefault();/iphone/gi.test(navigator.appVersion)&&$(".c-menu").offset().top>0&&window.scrollTo(0,0);n.open();$("body").css("height","100%");$("body").css("overflow","hidden");$("body").css("width","100%");$("body").css("position","fixed")})});String.prototype.format=function(){var i,r,n,t;if(arguments.length<1)return this;for(i=this,r=arguments.length-1,n=0;n<=r;n++)t=arguments[n],typeof t=="string"&&(t=t.replace("$","$$$")),i=i.replace(new RegExp("\\{"+n+"\\}","gi"),t);return i};String.prototype.contains=function(n){return this.indexOf(n)!=-1};EI={};EI.Global={init:function(){$(window).on("load",function(){EI.Global.handleEllipsis()});$(document).on("click",".link[data-url], a.link",function(n){n.preventDefault();var t=$(this).addClass("active"),i=isNullOrUndefined(t.data("url"))?t.attr("href"):t.data("url");setTimeout(function(){location.href=i},200)});$(".back-button").on("click",function(){$(this).data("url").length>0?location.href=$(this).data("url"):history.go(-1)});var n=!1;$(document).on("focus","input",function(){if(n){/iPhone/i.test(navigator.userAgent)?this.setSelectionRange(0,this.value.length):this.select();n=!1;return}/text|number|password|email|tel/i.test(this.type)&&(n?(/iPhone/i.test(navigator.userAgent)?this.setSelectionRange(0,this.value.length):this.select(),n=!1):(n=!0,$(this).trigger("focus")))})},handleEllipsis:function(n,t){$(n||".text-wrapper").not("[data-processed]").each(function(){for(var r=$(this).outerHeight(),u=$(this).outerWidth(),n=$(this).find(t||".newsrow-body"),i=!1;n.outerHeight()>r;)i=!0,n.text(function(n,t){var i=t.replace(/\W*\s(\S)*$/,"...");return i.length==t.length?i.substring(0,i.length-10)+"...":i});i&&$(this).attr("data-processed",!0)})},reloadBanners:function(){googletag.pubads().refresh()},addAntiForgeryToken:function(n){var t=$("#__AjaxAntiForgeryForm input[name=__RequestVerificationToken]").val();return n==null&&(n={}),typeof n=="string"?n+=(n.length>0?"&":"")+"__RequestVerificationToken="+t:n.__RequestVerificationToken=t,n},getJson:function(n,t,i){$.post(n,EI.Global.addAntiForgeryToken(t),function(n){$.isFunction(i)&&i(n)})},trackPageView:function(){typeof pp_gemius_identifier!="undefined"&&$.isFunction(pp_gemius_hit)&&(pp_gemius_nhit=1,pp_gemius_hit(pp_gemius_identifier.replace("USED_","")));typeof _gaq!="undefined"&&_gaq.push(["_trackPageview"])},getParameterByName:function(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))},measureHeight:function(n,t,i){var r=$("<div/>",{"class":"clearfix "+i,id:"dummy"}).css({position:"absolute",left:"-9999px",width:n}),u;return r.append(t),r.appendTo("body"),u=r.height(),r.remove(),u},notifyUser:function(n){var t=$("<div>",{"class":"notification"});t.html("<span>"+n+"<\/span>").appendTo("body");setTimeout(function(){t.addClass("show-notification");setTimeout(function(){t.removeClass("show-notification");setTimeout(function(){t.remove()},500)},3e3)},100)}};$.fn.extend({animateDivUpdate:function(n,t,i){var r=$.extend({heightTransitionDuration:200,fadeDuration:200,beforeShow:null,checkParentPadding:!1,useLoader:!0,heightMeasureAddParentClass:""},t),u=$(this),f=r.useLoader?$("<div/>",{"class":"loading"}):null,e=u.height(),s=parseFloat(u.css("paddingLeft"))+parseFloat(u.css("paddingRight")),s=r.checkParentPadding?parseFloat(u.parent().css("paddingLeft"))+parseFloat(u.parent().css("paddingRight")):s,h=u.width()+s,o=EI.Global.measureHeight(h,n,r.heightMeasureAddParentClass);u.css({position:"relative",height:e});e>o&&u.html($(n).append(f));e==o?(u.html($(n).append(f)),$.isFunction(r.beforeShow)&&r.beforeShow(),r.useLoader?$(".loading").velocity("fadeOut",{duration:r.fadeDuration*2.5,complete:function(){$.isFunction(i)&&i()}}):$.isFunction(i)&&i()):u.append(f).velocity({height:o},{duration:r.heightTransitionDuration,complete:function(){e<=o&&u.html($(n).append(f));$.isFunction(r.beforeShow)&&r.beforeShow();r.useLoader?$(".loading").velocity("fadeOut",{duration:r.fadeDuration,complete:function(){$.isFunction(i)&&i()}}):$.isFunction(i)&&i()}})},updatePartial:function(n,t,i,r){var u=$(this).css({position:"relative"}),f=$("<div/>",{"class":"loading"});u.append(f);$.post(n,EI.Global.addAntiForgeryToken(t),function(n){u.animateDivUpdate(n,{beforeShow:EI.Global.handleEllipsis,useLoader:!1},function(){i&&EI.Global.trackPageView();$.isFunction(r)&&r();f.remove()})})},loadPartial:function(n,t,i){return this.first().load(n,EI.Global.addAntiForgeryToken(t),i)},getAttributes:function(){var n={};return this.length&&$.each(this[0].attributes,function(t,i){n[i.name]=i.value}),n},getStyleObject:function(){var u=this.get(0),n,i={},f,r,e,t;if(window.getComputedStyle){for(f=function(n,t){return t.toUpperCase()},n=window.getComputedStyle(u,null),r=0,e=n.length;r<e;r++){var t=n[r],o=t.replace(/\-([a-z])/g,f),s=n.getPropertyValue(t);i[o]=s}return i}if(n=u.currentStyle){for(t in n)i[t]=n[t];return i}return this.css()}});$.postIt=function(n,t,i){$.post(n,EI.Global.addAntiForgeryToken(t),i)};debug=function(n){isNullOrUndefined(window.console)||console.log(n);assert(null,n)};debugObj=function(n,t){var i=arguments[2];$.each(n,function(n,r){if(r&&r.constructor&&r.constructor===Object&&t){isNullOrUndefined(i)||i===""?debugObj(r,!0,n):debugObj(r,!0,i+"."+n);return}isNullOrUndefined(i)||i===""?debug(n+" = "+r):debug(i+"."+n+" = "+r)})};assert=function(n,t){var i,u,r;document.getElementById("debuggerOutput")?i=document.getElementById("debuggerOutput"):(i=document.createElement("div"),i.setAttribute("id","debuggerOutput"),$(i).css({position:"absolute",top:0,right:0,"background-color":"yellow","z-index":999999,"max-height":"200px","max-width":"1000px",overflow:"auto","padding-right":"20px"}),$("body").append(i));u=document.createElement("li");u.className=isNullOrUndefined(n)?"debug":n?"debugpass":"debugfail";u.appendChild(document.createTextNode(t));r=document.createElement("a");r.onclick=function(){i.parentNode.removeChild(i)};r.innerHTML="[X]";$(r).css({position:"absolute",top:0,right:0});i.appendChild(r);i.appendChild(u)};isNullOrUndefined=function(n){return typeof n=="undefined"||n===null};Number.prototype.round=function(n){return+(Math.round(this+"e+"+n)+"e-"+n)};EI.Localization={decimalSeparator:",",groupSeparator:".",utcLocalOffset:"",JSIntToLocalizedString:function(n){var i;if(EI.Localization.groupSeparator===""||n<1e3)return""+n;var t=""+n,r=t.length%3,u=r>0?t.substr(0,r)+EI.Localization.groupSeparator:"";for(i=r;i<t.length;i+=3)u+=t.substr(i,3)+EI.Localization.groupSeparator;return u.substr(0,u.length-1)},JSFloatToLocalizedString:function(n,t){var f,u,r;if(f=arguments.length>1?n.toFixed(t):n.toString(),EI.Localization.groupSeparator!==""&&Math.abs(n)>=1e3){var i=f.split("."),e=i[0].length%3,o=e>0?i[0].substr(0,e)+EI.Localization.groupSeparator:"";for(u=e;u<i[0].length;u+=3)o+=i[0].substr(u,3)+EI.Localization.groupSeparator;return r=o.substr(0,o.length-1)+EI.Localization.decimalSeparator+i[1],r.startsWith("-.")&&(r=r.replace("-.","-")),r}return f.replace(".",EI.Localization.decimalSeparator)},LocalizedStringToJSFloat:function(n){var t=n,i=(EI.Localization.groupSeparator=="."?"\\":"")+EI.Localization.groupSeparator;return EI.Localization.groupSeparator!==""&&(t=t.replaceAll(i,"")),EI.Localization.decimalSeparator!="."&&(t=t.replace(EI.Localization.decimalSeparator,".")),parseFloat(t)},LocalizedStringToJSInt:function(n){var t=n;return EI.Localization.groupSeparator!=""&&(t=t.replaceAll((EI.Localization.groupSeparator=="."?"\\":"")+EI.Localization.groupSeparator,"")),parseInt(t)}};String.prototype.replaceAll=function(n,t){return/\s/g.test(n)&&(n="\\s"),this.replace(new RegExp(n,"g"),t)};EI.Navigation={pageCounters:{},initTabBars:function(){$(".tabbargroup .tabbartab").click(function(){var n,t;$(this).is("[selected]")||(n=$(this).closest(".tabbargroup"),n.find("[selected]").removeAttr("selected"),$(this).attr("selected",""),t={},t[$(this).data("paramname")]=$(this).data("paramvalue"),$("#"+n.data("target")).updatePartial(n.data("url"),t,n.data("trackpageview")==!0,function(){EI.Global.handleEllipsis(null,".text")}))})},initGraphButtons:function(){$(".index-buttons button").click(function(){loadGraphFromElem($(this))})},initPagingButtons:function(){$(".pagingbuttons").each(function(){EI.Navigation.pageCounters[$(this).data("target")]=1});$(".pagingbuttons .pagingbutton").click(function(){var t=$(this).closest(".pagingbuttons"),n=t.data("target"),r=$(this).data("func"),u=t.data("trackpageview")==!0,i;if(r=="prev"){if(EI.Navigation.pageCounters[n]==1)return;EI.Navigation.pageCounters[n]--}else r=="next"&&EI.Navigation.pageCounters[n]++;$("#"+n).updatePartial(t.data("url"),{page:EI.Navigation.pageCounters[n]},u);EI.Global.reloadBanners();i=t.find("[data-func='prev']");EI.Navigation.pageCounters[n]>1?i.removeClass("off"):i.addClass("off")})},initAdjacentStoryButtons:function(){$(".adjacentstorybuttons").each(function(){EI.Navigation.pageCounters[$(this).data("target")]=1});$(".adjacentstorybuttons .adjacentstorybutton").click(function(){var t=$(this).closest(".adjacentstorybuttons"),n=t.data("target"),i=$(this).data("func"),f=t.data("trackpageview")==!0,u=$("#"+n),e=u.find(".in-focus").first().data("storyid"),r;if(i=="newer"){if(EI.Navigation.pageCounters[n]==1)return;EI.Navigation.pageCounters[n]--}else i=="older"&&EI.Navigation.pageCounters[n]++;u.updatePartial(t.data("url"),{storyId:e,func:i},f);EI.Global.reloadBanners();r=t.find("[data-func='newer']");EI.Navigation.pageCounters[n]>1?r.removeClass("off"):r.addClass("off")})}};EI.Completion={initInstrumentCompleters:function(n){typeof n!="undefined"&&(EI.Completion.selectInstrument=n);var t=$(".completer-result"),i=$(".input-loading"),r=$(".instrument-search .glyphicon-search"),u=$(".instrument-search .alert-info");$("input[type='text'].instrumentcompleter").keyup(function(){var e=$(this),n=e.val(),f;n.length>2?(u.hide(),i.addClass("on"),r.hide(),f={searchTerm:n},t.updatePartial($(this).data("url"),f,!1,function(){$.isFunction(EI.Completion.selectInstrument)&&(html=t.html().replace(/linkIcon/g,"plusIcon"));i.removeClass("on");r.show()})):(t.html("").height(0),u.show())});$(".instrument-search .button-red").on("click",function(){EI.Completion.toggleInstrumentSearch()})},subscribeResult:function(n){EI.Completion.selectInstrument=n;$(".completer-result").off("click").on("click","a",function(n){n.preventDefault();n.stopPropagation();EI.Completion.selectInstrument({instrumentId:$(this).data("instrumentid"),instrumentName:$(this).find(".ins_name").html()});EI.Completion.selectInstrument=null})},toggleInstrumentSearch:function(){var n=$(".instrument-search");n.is(":visible")?(n.velocity("slideUp",{duration:400}),$(".overlay").removeClass("on")):($(".completer-result").html("").height(0),n.find(".alert-info").show(),n.velocity("slideDown",{duration:400}),setTimeout(function(){$(".instrumentcompleter").focus().val("")},500),$(".overlay").addClass("on"))},selectInstrument:function(){}},function(n){"use strict";function i(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function r(n,t){for(var r,i=0;i<n.length;i++)r=n[i],t(r)}function t(n){this.options=i({},this.options);i(this.options,n);this._init()}t.prototype.options={wrapper:"#o-wrapper",type:"slide-left",menuOpenerClass:".c-button",maskId:"#c-mask"};t.prototype._init=function(){this.body=document.body;this.wrapper=document.querySelector(this.options.wrapper);this.mask=document.querySelector(this.options.maskId);this.menu=document.querySelector("#c-menu--"+this.options.type);this.closeBtn=this.menu.querySelector(".c-menu__close");this.menuOpeners=document.querySelectorAll(this.options.menuOpenerClass);this._initEvents()};t.prototype._initEvents=function(){this.closeBtn.addEventListener("click",function(n){n.preventDefault();this.close();$("body").css("height","");$("body").css("overflow","");$("body").css("width","");$("body").css("position","")}.bind(this));this.mask.addEventListener("click",function(n){n.preventDefault();this.close()}.bind(this))};t.prototype.open=function(){this.body.classList.add("has-active-menu");this.wrapper.classList.add("has-"+this.options.type);this.menu.classList.add("is-active");this.mask.classList.add("is-active");this.disableMenuOpeners()};t.prototype.close=function(){this.body.classList.remove("has-active-menu");this.wrapper.classList.remove("has-"+this.options.type);this.menu.classList.remove("is-active");this.mask.classList.remove("is-active");this.enableMenuOpeners()};t.prototype.disableMenuOpeners=function(){r(this.menuOpeners,function(n){n.disabled=!0})};t.prototype.enableMenuOpeners=function(){r(this.menuOpeners,function(n){n.disabled=!1})};n.Menu=t}(window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}});var pp_gemius_identifier;(function(n,t){try{var i=n.createElement(t),r=n.getElementsByTagName(t)[0],u="http"+(location.protocol=="https:"?"s":"");i.async="true";i.src=u+"://gadk.hit.gemius.pl/xlgemius.js";r.parentNode.insertBefore(i,r)}catch(f){}})(document,"script")