function OnlineManager(n,t){function d(){return u}function g(){return c-=1e3}function nt(){return"intervalModifierInPercent: "+e+"% <br />minTimerTick: "+f/1e3+"s. <br />maxTimerTick: "+h/1e3+"s. <br />intervalLength: "+s/1e3+"s. <br />iteration: "+l+"<br />next refresh at: "+o/1e3+"s. <br />countDownTime: <strong>"+c/1e3+"<\/strong>s."}function tt(n,t){var r=u.IndexOf(n),i=u.Get(r);i!=null&&(i.SetRefreshTimeInterval(t),u.Remove(i),u.Add(i))}function it(n){u.Add(n);n.onlineManager=this}function rt(n){e=n}function ut(n){return u.IsRegistered(n)}function v(n){u.Remove(n);n.onlineManager=null}function ft(){for(i=0;i<u.Count();i++){var n=u.Get(i);n!=null&&(n.SetNextFireTime(n.GetRefreshTimeInterval()),(f==0||f>n.GetRefreshTimeInterval())&&(f=n.GetRefreshTimeInterval()),(h==0||h<n.GetRefreshTimeInterval())&&(h=n.GetRefreshTimeInterval()))}f>0&&(o=f*(e/100),c=f*(e/100),s=f*(e/100),l++,window.setTimeout(y,s))}function et(n){if(n==null||n=="undefined"||typeof n.IsUpdateAllowed=="function"&&!n.IsUpdateAllowed(n.GetRequestSettings()))return!1;try{if(r=w(),r==null)return!1;var t=b(n);return t==null||t==""?!1:(r.onreadystatechange=p,r.open("POST",a,!0),r.setRequestHeader("Content-Type","application/soap+xml; charset=utf-8"),r.send(t),!0)}catch(i){return!1}}function y(){if(r=w(),r==null)return!1;var n=b(null);if(n==null||n=="")return!1;r.onreadystatechange=ot;r.open("POST",a,!0);r.setRequestHeader("Content-Type","application/soap+xml; charset=utf-8");try{r.send(n)}catch(t){return}}function p(){var ie,xml,xmlDoc,oParser,control,node,nodes,falldown,timestamp,text;if(r.readyState==4){if(r.status=="200"){if(ie=!1,xml=r.responseXML,xml==null&&(xml=r.responseText),xml==null)return;xmlDoc="";try{try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.loadXML(r.responseText);xmlDoc.setProperty("SelectionLanguage","XPath");xmlDoc.setProperty("SelectionNamespaces","xmlns:soap='http://www.w3.org/2003/05/soap-envelope' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns='http://tempuri.org/'");ie=!0}catch(ex){xml!=null?xmlDoc=xml:(oParser=new DOMParser,xmlDoc=oParser.parseFromString(xml,"text/xml"))}}catch(exception){}for(i=0;i<u.Count();i++){if(xmlDoc==null||xmlDoc.documentElement==null)break;if(control=u.Get(i),control!=null&&(o>=control.GetNextFireTime()||control.UpdateCall)){if(control.SetNextFireTime(control.GetRefreshTimeInterval()),control.UpdateCall&&(control.UpdateCall=!1),node=null,ie)node=xmlDoc.documentElement.selectSingleNode("//"+control.GetDataNodeName()+'[@timeStampOld="'+control.GetLastTimestamp()+'"]'),node==null&&(node=xmlDoc.documentElement.selectSingleNode("//"+control.GetDataNodeName()+'[@switchOff="true"]'));else for(nodes=xmlDoc.getElementsByTagName(control.GetDataNodeName()),j=0;j<nodes.length;j++){var processNode=nodes[j],isLookedNode=!1,newtimestamp="";for(k=0;k<processNode.attributes.length;k++){if(processNode.attributes[k].name=="switchOff"){this.UnregisterControl(control);isLookedNode=!1;break}processNode.attributes[k].name=="timeStampOld"&&processNode.attributes[k].value==control.GetLastTimestamp()&&(isLookedNode=!0);processNode.attributes[k].name=="timeStamp"&&(newtimestamp=processNode.attributes[k].value)}if(newtimestamp==control.GetLastTimestamp()&&newtimestamp!=""&&(isLookedNode=!1),isLookedNode){node=processNode;break}}if(node!=null){for(falldown=!0,j=0;j<node.attributes.length;j++){if(node.attributes[j].name=="switchOff"){v(control);falldown=!0;break}node.attributes[j].name=="timeStamp"&&(timestamp=node.attributes[j].value,control.ResponseArrived(),(timestamp==""||control.GetLastTimestamp()!=timestamp)&&(falldown=!1))}if((falldown==!1||control==null||control=="undefined")&&(control.SetLastTimestamp(timestamp),text=Trim(node.text),text.length>0))try{eval(control.GetSwitchContentFunction()+"; "+control.GetSwitchContentFunctionName()+"('"+control.ControlObjectName+"','"+control.GetId()+"','"+escape(text)+"');")}catch(ex){}}}}}delete r}}function ot(){r.readyState==4&&(r.status=="200"&&p(),o+=f*(e/100),c=f*(e/100),delete r,s=f*(e/100),l++,window.setTimeout(y,s))}function w(){var n=null,t;try{n=new ActiveXObject("Msxml2.XMLHttp")}catch(i){try{t="."+typeof ActiveXObject+".";t!=".undefined."&&(n=new ActiveXObject("Microsoft.XMLHttp"))}catch(r){}}return n==undefined&&typeof XMLHttpRequest!="undefined"&&(n=new XMLHttpRequest),n}function b(n){var a=!1,c="",i='<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:Body><GetData xmlns="http://tempuri.org/"><requestsCollection>',t,r,y,n,e,v,l,h,f,s;if(n==null)for(e=0;e<u.Count();e++)t=u.Get(e),t!=null&&o>=t.GetNextFireTime()&&!(c.indexOf(";;"+t.GetLastTimestamp()+"|"+t.GetObjectName()+"|"+t.GetDataNodeName()+";;")>-1)&&t.SignalUpdate()&&(i+="<OnlineRequest>",i+="<NodeName>"+t.GetDataNodeName()+"<\/NodeName>",i+="<ObjectName>"+t.GetObjectName()+"<\/ObjectName>",i+="<TimeStamp>"+t.GetLastTimestamp()+"<\/TimeStamp>",i+="<RequestSettings>"+t.GetRequestSettings()+"<\/RequestSettings>",i+="<PropertySettings>"+t.GetPropertySettings()+"<\/PropertySettings>",s=t.GetCacheKeyHash(),i+=s!=null&&s!="undefined"?"<CacheKeyHash>"+t.GetCacheKeyHash()+"<\/CacheKeyHash>":"<CacheKeyHash/>",i+="<\/OnlineRequest>",c+=";;"+t.GetLastTimestamp()+"|"+t.GetObjectName()+"|"+t.GetDataNodeName()+";;",a=!0);else{r=n;try{y=r.GetId();r=new Array(n);n.Dependent.length>0&&(r=r.concat(n.Dependent))}catch(p){for(f=0;f<r.length;f++)if((n=r[f],n)&&n.Dependents)for(e=0;e<n.Dependents.length;e++){for(v=n.Dependents[e],l=!1,h=0;h<r.length;h++)if(r[h]==e){l=!0;break}l||(r[r.length]=v)}}for(f=0;f<r.length;f++)try{if(t=r[f],t!="undefined"&&t!=null){if(!t.SignalUpdate())continue;u.IsRegistered(t)&&(t.UpdateCall=!0,t.SetNextFireTime(t.GetRefreshTimeInterval()),i+="<OnlineRequest>",i+="<NodeName>"+t.GetDataNodeName()+"<\/NodeName>",i+="<ObjectName>"+t.GetObjectName()+"<\/ObjectName>",i+="<TimeStamp>"+t.GetLastTimestamp()+"<\/TimeStamp>",i+="<RequestSettings>"+t.GetRequestSettings()+"<\/RequestSettings>",i+="<PropertySettings>"+t.GetPropertySettings()+"<\/PropertySettings>",s=t.GetCacheKeyHash(),i+=s!=null&&s!="undefined"?"<CacheKeyHash>"+t.GetCacheKeyHash()+"<\/CacheKeyHash>":"<CacheKeyHash/>",i+="<\/OnlineRequest>",c+=";;"+t.GetLastTimestamp()+"|"+t.GetObjectName()+"|"+t.GetDataNodeName()+";;",a=!0)}}catch(p){}}return i+"<\/requestsCollection><\/GetData><\/soap12:Body><\/soap12:Envelope>"}var e=t>0?t:100,r,u=new ControlCollection,a=n,f=0,o=0,h=0,s=0,c=0,l=0;OnlineManager.prototype.ChangeIntervalModifier=rt;OnlineManager.prototype.RegisterControl=it;OnlineManager.prototype.UnregisterControl=v;OnlineManager.prototype.IsRegistered=ut;OnlineManager.prototype.InitDataLoad=ft;OnlineManager.prototype.UpdateControl=et;OnlineManager.prototype.SetRefreshTimeForControl=tt;OnlineManager.prototype.GetStats=nt;OnlineManager.prototype.MinusSecond=g;OnlineManager.prototype.GetControlCollection=d}function ControlCollection(){function n(n){for(var t=0;t<this.getSize();t++)if(this.data[t]==n)return t;return-1}function t(){return this.data.length}function i(n){var t=this.IndexOf(n);return t<0?!1:!0}function r(n){this.getSize()==this.data.length&&this.resize();this.data[this.size++]=n}function u(n){var t,r,i;try{if(t=this.IndexOf(n),t<0)return;for(r=this.data[t],this.data[t]=null,i=t;i<this.getSize()-1;i++)this.data[i]=this.data[i+1];return this.data[getSize()-1]=null,this.size--,r}catch(u){return"Invalid index "+t}}function f(){this.size=0;for(var n=0;n<this.data.length;n++)this.data[n]=null}function e(n){try{return this.data[n]}catch(t){return"Exception "+t+" occured when accessing "+n}}ControlCollection.prototype.Add=r;ControlCollection.prototype.Remove=u;ControlCollection.prototype.RemoveAll=f;ControlCollection.prototype.IsRegistered=i;ControlCollection.prototype.Get=e;ControlCollection.prototype.Count=t;ControlCollection.prototype.IndexOf=n;this.increment=10;this.data=new Array(this.increment);this.size=0;this.getSize=function(){return this.size};this.resize=function(){newData=new Array(this.data.length+this.increment);for(var n=0;n<this.data.length;n++)newData[n]=this.data[n];this.data=newData}}function Control(){function n(n){this.id=n}function t(n){this.refreshTimeInterval=n}function i(n){this.lastTimestamp=n;this.LastResponseTime=(new Date).getTime()}function r(n){this.switchContentFunction=n}function u(n){this.switchContentFunctionName=n}function f(n){this.dataNodeName=n}function e(n){this.objectName=n}function o(n){this.nextFireTime+=n}function s(){return this.id}function h(){return this.refreshTimeInterval}function c(){this.LastResponseTime=(new Date).getTime();this.updateInProgress=!1;typeof this.OnUpdated=="function"&&this.OnUpdated(this);this.Unlock()}function l(n){return typeof this.OnIsUpdateAllowed=="function"?this.OnIsUpdateAllowed(this,n):!0}function a(){this.__unlockTimeOut<=0||(window.clearTimeout(this.__unlockTimeOut),this.__unlockTimeOut=0)}function v(){this.Unlock();this.__unlockTimeOut=window.setTimeout(""+this.ControlObjectName+".Unlock();manager.UpdateControl("+this.ControlObjectName+");",1e4)}function y(){if(typeof this.OnUpdating=="function"){var n=this.OnUpdating(this);return n&&(this.updateInProgress=!0),n}return this.updateInProgress=!0,!0}function p(){var n=(new Date).getTime();return n-this.LastResponseTime>5*this.refreshTimeInterval?"":this.lastTimestamp}function w(){return this.switchContentFunction}function b(){return this.switchContentFunctionName}function k(){return this.dataNodeName}function d(){return this.objectName}function g(){return this.nextFireTime}function nt(){return this.requestSettings}function tt(n){this.requestSettings=n;this.lastTimestamp=""}function it(){return this.propertySettings}function rt(n){this.propertySettings=n}function ut(n,t){var i=this.GetRequestSettings().split("|");return i[n]=t,this.SetRequestSettings(i.join("|")),this.GetRequestSettings()}function ft(n,t){this.ChangeRequestSettings(n,t);this.onlineManager!=null&&this.onlineManager!="undefined"&&this.onlineManager.UpdateControl(this)}function et(n){this.cacheKeyHash=n}function ot(){return this.cacheKeyHash}Control.prototype.SetId=n;Control.prototype.SetRefreshTimeInterval=t;Control.prototype.SetLastTimestamp=i;Control.prototype.SetSwitchContentFunction=r;Control.prototype.SetSwitchContentFunctionName=u;Control.prototype.SetDataNodeName=f;Control.prototype.SetObjectName=e;Control.prototype.SetNextFireTime=o;Control.prototype.GetId=s;Control.prototype.GetRefreshTimeInterval=h;Control.prototype.GetLastTimestamp=p;Control.prototype.GetSwitchContentFunction=w;Control.prototype.GetSwitchContentFunctionName=b;Control.prototype.GetDataNodeName=k;Control.prototype.GetObjectName=d;Control.prototype.GetNextFireTime=g;Control.prototype.GetRequestSettings=nt;Control.prototype.SetRequestSettings=tt;Control.prototype.GetPropertySettings=it;Control.prototype.SetPropertySettings=rt;Control.prototype.ResponseArrived=c;Control.prototype.IsUpdateAllowed=l;Control.prototype.SignalUpdate=y;Control.prototype.Unlock=a;Control.prototype.Lock=v;Control.prototype.ChangeRequestSettings=ut;Control.prototype.ChangeAndUpdate=ft;Control.prototype.SetCacheKeyHash=et;Control.prototype.GetCacheKeyHash=ot;this.id="";this.refreshTimeInterval=0;this.nextFireTime=0;this.updateInProgress=!1;this.updateTimeOut=0;this.lastTimestamp="";this.switchContentFunction;this.switchContentFunctionName;this.dataNodeName="";this.objectName="";this.requestSettings="";this.propertySettings="";this.ControlObjectName="";this.UpdateCall=!1;this.LastResponseTime=(new Date).getTime();this.onlineManager=null;this.cacheKeyHash="";this.OnUpdated=function(){};this.OnUpdating=function(){return!0};this.OnIsUpdateAllowed=function(){return!0};this.__unlockTimeOut=0}function BasicOnlineSwitch(n,t,i){var r=document.getElementById(t);r!=null&&r!="undefined"&&(r.innerHTML=unescape(i),window.setTimeout('try{RemoveHighLight("'+t+'");}catch(ex){;}',4e3))}function BasicOnlineSwitch2s(n,t,i){var r=document.getElementById(t);r!=null&&r!="undefined"&&(r.innerHTML=unescape(i),window.setTimeout('try{RemoveHighLight("'+t+'");}catch(ex){;}',2e3))}function TabsOnlineSwitch(controlObjectName,id,data){var pageObject=document.getElementById(id);try{eval("document.getElementById('tab"+controlObjectName+eval(controlObjectName+".GetRequestSettings();")+"').className='selected';")}catch(ex){}pageObject!=null&&(pageObject.innerHTML=unescape(data),window.setTimeout('try{RemoveHighLight("'+id+'");}catch(ex){}',4e3))}function RemoveHighLight(n){var t=document.getElementById(n);t!=null&&RecursiveTraverse(t)}function RecursiveTraverse(){$("[highlight]").each(function(){var n=$(this).attr("highlight"),t=$(this)[0].className;n!=t&&($(this)[0].className=n)});$("td[class='number bid Down']").each(function(){$(this).removeClass("number bid Down");$(this).addClass("number bid")});$("td[class='number ask Down']").each(function(){$(this).removeClass("number ask Down");$(this).addClass("number ask")});$("td[class='number bid Up']").each(function(){$(this).removeClass("number bid Up");$(this).addClass("number bid")});$("td[class='number ask Up']").each(function(){$(this).removeClass("number ask Up");$(this).addClass("number ask")})}function OmChangeIntervalModifier(n,t,i){var r,u;manager&&(r=document.getElementById(t),r&&(r.innerHTML=unescape(i)),u=document.getElementById("hfIntervalModifierInPercent"),u&&manager.ChangeIntervalModifier(u.value))}function UniversalTabbedPanel_SwitchTab(contentId,selectedId,tabsId,tabValue,contentObject,callback){var selected,newSelID,el,tabs,attr,controls;try{if(contentObject==null||contentObject=="undefined"||contentObject.updateInProgress||!contentObject.IsUpdateAllowed(tabValue))return!1;try{el=document.getElementById("tabcontrol"+contentId+eval("control"+contentId+".GetRequestSettings();"));el!=null&&el!="undefined"&&(el.className="")}catch(ex){}selected=document.getElementById(selectedId);selected!=null&&selected!="undefined"&&(newSelID="tabcontrol"+contentId+tabValue,selected.value=newSelID,el=document.getElementById(newSelID),el!=null&&el!="undefined"&&(el.className="preSelected"));tabs=document.getElementById(tabsId);tabs!=null&&tabs!="undefined"&&(attr=tabs.attributes.cssclass,attr!=null&&attr!="undefined"&&(tabs.className=attr.value+" tabspreselected"));contentObject.SetRequestSettings(tabValue);contentObject.lastTimestamp="";contentObject.Lock();try{callback(tabValue)}catch(ex){}return(typeof contentObject.Dependents=="Array"||typeof contentObject.Dependents=="object")&&contentObject.Dependents.length>0?(controls=contentObject.Dependents.concat([contentObject]),manager.UpdateControl(controls)):manager.UpdateControl(contentObject),!1}catch(ex){return!0}}function UniversalTabbedPanel_UpdatedFinished(n,t){var i=document.getElementById(t),r;i!=null&&i!="undefined"&&(r=i.attributes.cssclass,r!=null&&r!="undefined"&&(i.className=r.value));n.Unlock()}function countdownControl(){var n,r,t;if(secondsPassed++,$(".contentStatsBorder").fadeOut(500).fadeIn(500),n=document.getElementById("pageStats"),n&&(n.innerHTML="",manager&&(manager.MinusSecond(),n.innerHTML+=manager.GetStats()+"<br />",n.innerHTML+="Uběhlo: "+secondsPassed+"s. <br />")),manager)for(r=manager.GetControlCollection(),i=0;i<=r.Count();i++)t=r.Get(i),t!=null&&n&&(n.innerHTML+=i+1+". <a href='#"+t.GetId()+"' onclick='statControlClicked("+t.GetId()+")'>"+t.GetId()+"<\/a>: <strong>"+(t.GetNextFireTime()/1e3-secondsPassed)+"<\/strong>s.<br />")}function statControlClicked(n){$(".contentStatsBorder").each(function(){$(this).removeClass("contentStatsBorder")});n.length&&n.length>1&&(n=n[0]);$("#"+n.id).addClass("contentStatsBorder")}function Trim(n){return n.length<1?"":(n=RTrim(n),n=LTrim(n),n==""?"":n)}function RTrim(n){var u=String.fromCharCode(32),i=n.length,r="",t;if(i<0)return"";for(t=i-1;t>-1;){if(n.charAt(t)!=u){r=n.substring(0,t+1);break}t=t-1}return r}function LTrim(n){var u=String.fromCharCode(32);if(i<1)return"";for(var i=n.length,r="",t=0;t<i;){if(n.charAt(t)!=u){r=n.substring(t,i);break}t=t+1}return r}function NoAccessMessage(n,t,i){var r;switch(n){case"en":switch(t){case 1:r="This service is only available to Patria Plus or Investor Plus subscribers.\n\nIf you are a Patria Plus/Investor Plus client and you would like to sign in, please click on the OK button.\n\nIf you are not interested in this service, please click on the Cancel/Storno button.";break;case 2:r="This service is only available to Patria Plus subscribers.\n\nIf you are a Patria Plus client and you would like to sign in, please click on the OK button.\n\nIf you are not interested in this service, please click on the Cancel/Storno button.";break;case 3:r="This service is only available to Investor Plus subscribers.\n\nIf you are a Investor Plus client and you would like to sign in, please click on the OK button.\n\nIf you are not interested in this service, please click on the Cancel/Storno button.";break;default:r="This service is available only to registered users..\n\nTo register now?"}break;case"sk":switch(t){case 1:r="Táto služba je súčasťou plateného informačného zdroja Patria Plus alebo Investor Plus.\n\nPokiaľ  ste klientom Patria Plus alebo Investor Plus a chcete sa prihlásiť, kliknite na OK.\n\nPokiaľ nemáte o službu záujem, kliknite Storno.";break;case 2:r="Táto služba je súčasťou plateného informačného zdroja Patria Plus.\n\nPokiaľ  ste klientom Patria Plus a chcete sa prihlásiť, kliknite na OK.\n\nPokiaľ nemáte o službu záujem, kliknite Storno.";break;case 3:r="Táto služba je súčasťou plateného informačného zdroja Investor Plus.\n\nPokiaľ  ste klientom Investor Plus a chcete sa prihlásiť, kliknite na OK.\n\nPokiaľ nemáte o službu záujem, kliknite Storno.";break;default:r="Táto služba je prístupná iba registrovaným uživateľom.\n\nChcete sa teraz zaregistrovať?"}break;default:switch(t){case 1:r="Tato služba je součástí placeného informačního zdroje Patria Plus nebo Investor Plus.\n\nPokud jste klienty Patria Plus nebo Investor Plus a chcete se přihlásit, klikněte na OK.\n\nPokud nemáte o službu zájem, klikněte Cancel/Storno.";break;case 2:r="Tato služba je součástí placeného informačního zdroje Patria Plus.\n\nPokud jste klienty Patria Plus a chcete se přihlásit, klikněte na OK.\n\nPokud nemáte o službu zájem, klikněte Cancel/Storno.";break;case 3:r="Tato služba je součástí placeného informačního zdroje Investor Plus.\n\nPokud jste klienty Investor Plus a chcete se přihlásit, klikněte na OK.\n\nPokud nemáte o službu zájem, klikněte Cancel/Storno.";break;default:r="Tato služba je dostupná pouze registrovaným uživatelům.\n\nChcete se nyní zaregistrovat?"}}return res=confirm(r),res&&(window.location="https://"+location.host+(i==""?"/Membership/UserLogin.aspx":i)),!1}function GetRoleRequiredNoDownloadMessage(n,t){switch(n.toString().toLowerCase()){case"treasury.other":var i="Tato služba je součástí placeného informačního zdroje Patria Plus.\n\nPokud jste klienty Patria Plus a chcete se přihlásit, klikněte na OK.\n\nPokud nemáte o službu zájem, klikněte Cancel/Storno.",r="This service is only available to Patria Plus  subscribers.\n\nIf you are a Patria Plus client and you would like to sign in, please click on the OK button.\n\nIf you are not interested in this service, please click on the Cancel/Storno button.",u="Táto služba je súčasťou plateného informačného zdroja Patria Plus .\n\nPokiaľ  ste klientom Patria Plus  a chcete sa prihlásiť, kliknite na OK.\n\nPokiaľ nemáte o službu záujem, kliknite Storno.";break;default:var i="Tato služba je součástí placeného informačního zdroje Patria Plus nebo Investor Plus.\n\nPokud jste klienty Patria Plus nebo Investor Plus a chcete se přihlásit, klikněte na OK.\n\nPokud nemáte o službu zájem, klikněte Cancel/Storno.",r="This service is only available to Patria Plus or Investor Plus subscribers.\n\nIf you are a Patria Plus/Investor Plus client and you would like to sign in, please click on the OK button.\n\nIf you are not interested in this service, please click on the Cancel/Storno button.",u="Táto služba je súčasťou plateného informačného zdroja Patria Plus alebo Investor Plus.\n\nPokiaľ  ste klientom Patria Plus alebo Investor Plus a chcete sa prihlásiť, kliknite na OK.\n\nPokiaľ nemáte o službu záujem, kliknite Storno."}return res=t.toString().toLowerCase()=="en"?confirm(r):t.toString().toLowerCase()=="sk"?confirm(u):confirm(i),res&&(window.location="/membership/userlogin.aspx"),!1}function FXChartsDownload(n){var t;switch(n){case"cs":t="Graf je dostupný pouze po řádné registraci do volně přístupné verze stránek www.patria.cz.\n\nPokud jste již registrovaným uživatelem www.patria.cz, musíte se nejprve přihlásit.";break;case"en":t="This chart is free only for registered users of www.patria.cz. Please sign in or register to view trading details.";break;case"sk":t="Graf je dostupný pouze po řádné registraci do volně přístupné verze stránek www.patria.cz.\n\nPokud jste již registrovaným uživatelem www.patria.cz, musíte se nejprve přihlásit.";break;default:t="Na tuto službu nemáte oprávnění!"}return res=confirm(t),res&&(window.location="/membership/userlogin.aspx"),!1}function NoDownloadPD(n){var t;switch(n){case"cs":t="Tato analýza je určená výhradně klientům Patria Direct.\n\nPokud máte zájem stát se klientem Patria Direct, klikněte na OK.\n\nPokud nemáte o analýzu zájem, klikněte  Cancel/Storno.";break;case"en":t="This analysis is only available to Patria Direct clients.\n\nIf you are interested in becoming a Patria Direct client, click on the OK button.\n\nIf you are not interested in downloading the analysis, please click on the Cancel/Storno button.";break;case"sk":t="Táto analýza je určená výhradne klientom Patria Direct.\n\nAk máte záujem stať sa klientom Patria Direct, kliknite na OK.\n\nPokiaľ nemáte o analýzu záujem, kliknite na Cancel/Storno.";break;default:t="Tato služba je součástí placeného informačního zdroje Patria Plus nebo Investor Plus.\n\nPokud jste klienty Patria Plus nebo Investor Plus a chcete se přihlásit, klikněte na OK.\n\nPokud nemáte o službu zájem, klikněte Cancel/Storno."}if(res=confirm(t),res){try{_gaq.push(["_trackEvent","Outbound Links","Analysis"])}catch(i){}window.open("https://www.patria-direct.cz/HomeOtevreniUctu.aspx","PD","menubar=1,resizable=1,width=800,height=600")}return!1}function OpenDiscussion(n,t){return isauthorized?window.open(t,"_blank","channelmode=no,width=500,top=420,toolbar=no,location=no,directories=no,status=no,menubar=no,titlebar=no,copyhistory=no"):(res=confirm(n),res&&(window.location="/membership/UserLogin.aspx")),!1}function openNewInstanceWindow(n,t,i,r){var u="height="+r+",width="+i+",resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,directories=no";return window.open(n,t,u),!1}function openNewWindow(n,t,i,r){HelpWin!=0&&HelpWin.close();var u="left="+(screen.width-i)/2+",top="+(screen.height-r)/2+",height="+r+",width="+i+",resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,directories=no";return HelpWin=window.open(n,t,u),!1}function openNewWindowScroll(n,t,i,r){HelpWin!=0&&HelpWin.close();var u="height="+r+",width="+i+",resizable=no,scrollbars=yes,directories=no,status=no,toolbar=no,menubar=no,location=no";return HelpWin=window.open(n,"",u),HelpWin.focus(),!1}function openNewMenuAdvertisementWindow(n){return HelpWin!=0&&HelpWin.close(),HelpWin=window.open(n,"",""),HelpWin.focus(),!1}function openNewMenuAdvertisementWindowAndAddHit(n){return HelpWin!=0&&HelpWin.close(),HelpWin=window.open(n,"",""),AdClicked(1e4),HelpWin.focus(),!1}function openNewMenuAdvertisementWindowAndAddHit2(n){return HelpWin!=0&&HelpWin.close(),HelpWin=window.open(n,"",""),AdClicked(10001),HelpWin.focus(),!1}function openNewMenuAdvertisementING(){window.location="http://gdecz.hit.gemius.pl/hitredir/id=0iJK5m__a5gu9LHNl1I2eae1HUyIS_NyNzXyD1Du59..n7/stparam=uhjtpnoiui/url=https://www.patria.cz/News/994887/News/detail.html"}function openNewGraphWindow(n){return openNewWindow(n,"","550","390")}function openNewSendPPlusQuestionWindow(n){return openNewWindow(n,"","520","370")}function OpenNewDistributeLicenceWindow(){return openNewWindowScroll("/membership/DistributeLicence.aspx","",600,400)}function CallPrint(n){var i,r,t,u;try{for(i='<link rel="stylesheet" type="text/css" href="{0}" />',printContent=document.getElementById(n),printContent.innerHTML=printContent.innerHTML.replace(/<DIV class=links>[\s\S]*<\/DIV>/i,""),printWindow=window.open("","","width=600,height=400,toolbar=0,scrollbars=1,status=0,top=-1000,left=-1000"),printWindow.document.write("<html><head><title>Okno pro tisk<\/title>"),printWindow.document.write(String.format(i,"/css/styles.css")),printWindow.document.write(String.format(i,"/css/panel.css")),printWindow.document.write(String.format(i,"/RadControls/Combobox/Skins/ClassicSmall/Styles.css")),printWindow.document.write(String.format(i,"/RadControls/Input/Skins/Patria/styles.css")),printWindow.document.write(String.format(i,"/css/stylesPrint.css?_ts20110926")),printWindow.document.write(String.format('<link rel="stylesheet" media="print" type="text/css" href="{0}" />',"/css/stylesPrint.css?_ts20110926")),printWindow.document.write("<\/head><body>"),printWindow.document.write('<div id="centerColumn">'),r="<"+printContent.tagName,t=0;t<printContent.attributes.length;t++)printContent.attributes[t].value!=null&&printContent.attributes[t].value!="null"&&printContent.attributes[t].value!=0&&printContent.attributes[t].value!="false"&&(u="'",(""+printContent.attributes[t].value+"").indexOf(u)>-1&&(u='"'),r=r+" "+printContent.attributes[t].name+"="+u+printContent.attributes[t].value+u);r=r+">";printWindow.document.write(r);printWindow.document.write(printContent.innerHTML);printWindow.document.write("<\/"+printContent.tagName+">");printWindow.document.write("<\/div>");printWindow.document.write("<\/body><\/html>");printWindow.document.close();printWindow.focus();try{window.setTimeout(function(){try{printWindow.focus();printWindow.print();window.setTimeout(function(){printWindow.close()},1500)}catch(n){}},1e3)}catch(e){}}catch(f){alert(f)}return!1}function SearchEquityWorld(n,t,i){var r=document.getElementById(n),u=document.getElementById(t);openNewWindowScroll("/patriaplus/searchequity.aspx?ric="+r.value+"&name="+u.value+"&smstype="+i,"Search",500,150)}function RedirectToParent(n){return RedirectToParent(n,!0)}function RedirectToParent(n,t){return window.opener!=null&&window.opener!="undefined"&&(window.opener.location.href=n),t&&window.close(),!1}function SetCookie(n,t,i){var u=new Date,r=new Date;(i==null||i==0)&&(i=1);r.setTime(u.getTime()+864e5*i);document.cookie=n+"="+escape(t)+";expires="+r.toGMTString()}function GetCookie(n){for(var r,u,i=document.cookie.split(";"),t=0;t<i.length;t++)if(r=i[t].substr(0,i[t].indexOf("=")),u=i[t].substr(i[t].indexOf("=")+1),r=r.replace(/^\s+|\s+$/g,""),r==n)return unescape(u)}function CourseValidateSelection(n,t){var i=t,u=$find(i.id),r,f;(n!="CZK"&&i.GetText()!="CZK"||n=="CZK"&&i.GetText()=="CZK")&&(r=u.findItemByText("CZK"),r!=null&&(f=r.get_index(),u.set_selectedIndex(f)))}function SendCancel(n){return res=confirm(n),res&&(window.location="/membership/userlogin.aspx"),!1}function CancelSelection(n,t,i){n=$find(n.id);n.clearSelection();n.set_value(t);n.set_text(i);var r=n.findItemByValue(t);return r!=null&&r!="undefined"&&n.set_selectedItem(r),!1}function DenySelection(n,t,i,r){return alert(t),n.SetValue(i),n.SetText(r),!1}function CompareYieldSwitch(n,t,i,r,u,f,e,o){var s=document.getElementById(n);s!=null&&(t=t.replace("{0}",i.GetValue()),t=t.replace("{1}",r.GetValue()+"/"+u.GetValue()),t=t.replace("{2}",f.GetValue()),t=t.replace("{3}",e.GetValue()),t=t.replace("{4}",o.GetValue()),s.src=t)}function ChangeYiledCompareGraph(n,t,i,r){var u=document.getElementById(n);u!=null&&(t=t.replace("{0}",i.GetValue()),t=t.replace("{1}",r.GetValue()),u.src=t)}function ChangeYiledCompareGlobalGraph(n,t,i,r,u,f){var e=document.getElementById(n);e!=null&&(t=t.replace("{0}",i.GetValue()),t=t.replace("{1}",r.GetValue()),t=t.replace("{2}",u),t=t.replace("{3}",f),e.src=t)}function ChangeMoneyMarketGraph(n,t,i){var r=document.getElementById(n);r!=null&&(t=t.replace("{0}",i.GetValue()),r.src=t)}function AdClicked(n){var t,i;try{if(t=GetXmlHttpRequest(),t==null)return;i='<?xml version="1.0" encoding="utf-8"?>';i+='<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">';i+='<soap12:Body><TipClicked xmlns="http://tempuri.org/"><id>'+n+"<\/id><\/TipClicked><\/soap12:Body><\/soap12:Envelope>";t.open("POST","/onlinedataprovider.asmx",!0);t.setRequestHeader("Content-Type","application/soap+xml; charset=utf-8");t.send(i);return}catch(r){alert(r.message)}}function TipClicked(n){var t,i;try{if(t=GetXmlHttpRequest(),t==null)return;i='<?xml version="1.0" encoding="utf-8"?>';i+='<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">';i+='<soap12:Body><TipClicked xmlns="http://tempuri.org/"><id>'+n+"<\/id><\/TipClicked><\/soap12:Body><\/soap12:Envelope>";t.open("POST","/onlinedataprovider.asmx",!0);t.setRequestHeader("Content-Type","application/soap+xml; charset=utf-8");t.send(i);return}catch(r){alert(r.message)}}function AddRemoveFavorites(n,t,i){try{if(requestFavorites=GetXmlHttpRequest(),requestFavorites==null)return;var r='<?xml version="1.0" encoding="utf-8"?>';return r+='<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">',r+='<soap12:Body><AddRemoveFavorites xmlns="http://tempuri.org/"><action>'+n+"<\/action><type>"+t+"<\/type><identification>"+i+"<\/identification><\/AddRemoveFavorites><\/soap12:Body><\/soap12:Envelope>",requestFavorites.open("POST","/onlinedataprovider.asmx",!0),requestFavorites.onreadystatechange=AddFavoritesSend,requestFavorites.setRequestHeader("Content-Type","application/soap+xml; charset=utf-8"),requestFavorites.send(r),!1}catch(u){alert(u.message)}}function AddFavoritesSend(){requestFavorites.readyState==4&&requestFavorites.status=="200"&&window.location.reload()}function GetXmlHttpRequest(){var n=null,t;try{n=new ActiveXObject("Msxml2.XMLHttp")}catch(i){try{t="."+typeof ActiveXObject+".";t!=".undefined."&&(n=new ActiveXObject("Microsoft.XMLHttp"))}catch(r){}}return n==undefined&&typeof XMLHttpRequest!="undefined"&&(n=new XMLHttpRequest),n}function SearchInPatria(){var n=document.getElementById("searchBarCondition").value,t="/others/search.aspx";return n!=""&&(t="/others/search.aspx?page=1&condition="+encodeURIComponent(n)+"&conditionRegion=All&conditionSection=All&conditionPart=All&conditionGroupBy=Date&conditionGroupDirection=DESC"),window.location=t,!1}function SearchInPatriatexBoxEnter(){var n=event.keyCode?event.keyCode:event.which?event.which:event.charCode;if(n==13)return SearchInPatria()}function SetEnableForChildFormElements(n,t){var i=document.getElementById(n);SetEnableForChildFormElementsInternal(i,t)}function SetEnableForChildFormElementsInternal(n,t){if(n!=null&&n.childNodes.length>0)for(var i=0;i<n.childNodes.length;i++)n.childNodes[i].tagName=="INPUT"||n.childNodes[i].tagName=="SELECT"?n.childNodes[i].disabled=!t:n.childNodes[i].childNodes.length>0&&SetEnableForChildFormElementsInternal(n.childNodes[i],t)}function replaceInPackage(n,t,i){var r=n.split("|");return r[t]=i,r.join("|")}function GetDate(n,t){var i,r,u,o,s;if(n==null||n=="undefined")return NaN;i="";r="";t=t.replace("31","D").replace("12","M").replace("1990","Y");var h=1990,f=12,e=31;for(u=0;u<t.length;u++){o=t.substring(u,u+1);switch(o){case"Y":case"D":case"M":i=o;break;default:s=n.indexOf(o);s<0?(r=n,n="0"):(r=n.substring(0,s),n=n.substring(s+1,n.length));switch(i){case"Y":h=r;i="";break;case"M":f=r;i="";break;case"D":e=r;i=""}}}switch(i){case"Y":h=n;i="";break;case"M":f=n;i="";break;case"D":e=n;i=""}return e>31||f>12?NaN:new Date(h+"/"+f+"/"+e)}function CheckNumeric(){var n=window.event.keyCode;n>47&&n<58||(window.event.returnValue=null)}function addClickFunction(n){var t=document.getElementById(n);t&&typeof t.click=="undefined"&&(t.click=function(){var result=!0;t.onclick&&(result=t.onclick());(typeof result=="undefined"||result)&&eval(t.getAttribute("href"))})}function PatriaDirectCallTradeOrder(n,t,i,r,u,f){var e,o,s;if((window.location.href.indexOf("online.test.patria.cz")>0||window.location.href.indexOf("localhost")>0)&&(PatriaDirectExternalOrderUrl="https://marketing.test.patria-direct.cz/TradeOrder.aspx",PatriaDirectPortalUrl="https://marketing.test.patria-direct.cz"),e=f,e==""&&(e=t,e==""&&(e=i,e==""&&(e=r,e==""&&(e=u)))),n=="buy"?gtmBuy(e):n=="sell"&&gtmSell(e),PatriaDirectExternalOrderAvailable){o=PatriaDirectExternalOrderUrl+"?heading="+n+"&ric="+t+"&isin="+i+"&currency="+r+"&exchange="+u+"&marketId="+f+"&LeadingPage="+PatriaDirectExternalOrderWelcomeCode;try{_gaq.push(["_trackEvent","Outbound Links","Buy/sell"])}catch(h){}s=window.open(o,"_blank","toolbar=yes, location=yes, directories=no, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes")}else{try{_gaq.push(["_trackEvent","Outbound Links","Buy/sell"])}catch(h){}window.open(PatriaDirectPortalUrl,"PatriaDirectWindow")}}function ChangeChartMode(n,t){if(n==null||t==null)return!1;t.indexOf("/")>=0&&(t=t.replace("/","~"));var r=document.getElementById("charIndexSmall"),i="";if(r!=null){r.src="/images/loadingminichart.gif";switch(n){case"1D":i="/grafy/index/online/maly/1D/"+t+".jpg";break;case"5D":i="/grafy/index/online/maly/5D/"+t+".jpg";break;default:i="/grafy/index/online/maly/3D/"+t+".jpg"}}return i!=""&&window.setTimeout("var imgChart = document.getElementById('charIndexSmall');imgChart.src = '"+i+"';",50),!1}function DataObject(n){this.assign(n)}function Plotter(n){DataObject.call(this,n)}function ScaledPlotter(n){Plotter.call(this,n)}function Templater(n,t,i,r,u){DataObject.call(this,n);this.itemTag=t;this.itemClass=i;this.itemTemplate=r;this.defineFields(u);this.onBeginProcessing=this.writeHeader;this.onEndProcessing=this.writeFooter}function Detail(n,t,i,r,u){Templater.call(this,n,t,i,r,u);this.onPreProcessRow=this._detailFilter}function PerformanceAndVolatility(n){this.elementId=n}function $element(n){var t=document.getElementById(n);return $isNull(t)?null:t}function $isNull(n){return n==null||n=="undefined"?!0:!1}function $checked(n,t){var i=$element(n);return $isNull(i)?!1:typeof i.checked=="undefined"?!1:(t!="undefined"&&(i.checked=t),i.checked)}function $value(n,t){var i=$element(n),r,u;if($isNull(i))return!1;if(typeof i.options!="undefined"){if(!$isNull(t))for(i.selectedIndex=-1,r=0;r<i.options.length;r++)u=i.options[r],u.value==t?(i.selectedIndex=r,u.selected=!0):u.selected=!1;return i.selectedIndex>-1?i.options[i.selectedIndex].value:""}return typeof i.value!="undefined"?($isNull(t)||(i.value=t),i.value):""}function $cssClass(n,t){var i=$element(n);return $isNull(i)?"":($isNull(t)||(i.className=t),i.className)}function $hide(n){var t=$element(n);$isNull(t)||(t.style.display="none")}function $show(n,t){t||(t="");var i=$element(n);$isNull(i)||(i.style.display=t)}function $html(n,t){var i=$element(n);return $isNull(i)?!1:($isNull(t)||(i.innerHTML=t),i.innerHTML)}function $statusMessage(n){window.status=n}function $enabled(n,t){var i=$element(n);return $isNull(i)?!1:typeof i.enabled!="undefined"?($isNull(t)||(i.enabled=t),i.enabled):typeof i.disabled!="undefined"?($isNull(t)||(i.disabled=!t),!i.disabled):void 0}function $attach(n,t,i){if(n==null||n=="undefined"||t==null||t=="undefined"||typeof i!="function")return!1;if(typeof n.addEventListener!="undefined")n.addEventListener(t,i,!1);else if(typeof n.attachEvent!="undefined")n.attachEvent("on"+t,i);else return!1;return!0}function $detach(n,t,i){if(n==null||n=="undefined"||t==null||t=="undefined"||typeof i!="function")return!1;if(typeof n.addEventListener!="undefined")n.removeEventListener(t,i,!1);else if(typeof n.attachEvent!="undefined")n.detachEvent("on"+t,i);else return!1;return!0}function $browserCode(){return navigator.appVersion.indexOf("MSIE")!=-1?"IE":navigator.appVersion.indexOf("FireFox")!=-1?"FF":navigator.appVersion.indexOf("Opera")!=-1?"OP":navigator.appVersion.indexOf("win")!=-1?"WIN":"??"}function $reqst(n,t,i,r,u){var f=window.XMLHttpRequest?new XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):!1,e;if(!f)return!1;if(f.open(t,i),f.onreadystatechange=function(){$respns(f,n)},u)for(e in u)f.setRequestHeader(e,u[e]);return f.send(r),!0}function $respns(n,t){if(n.readyState==4){var i=n.responseText;try{t!=null&&t(i)}catch(r){}}}function $httpGet(n,t,i,r){return $reqst(r,"GET",n,t,i)?!0:!1}function $httpPost(n,t,i,r){return $reqst(r,"POST",n,t,i)?!0:!1}function TUrlHelper(){}function css_browser_selector(n){var i=n.toLowerCase(),t=function(n){return i.indexOf(n)>-1},r="gecko",f="webkit",o="safari",e="opera",u="mobile",s=document.documentElement,h=[!/opera|webtv/i.test(i)&&/msie\s(\d)/.test(i)?"ie ie"+RegExp.$1:t("firefox/2")?r+" ff2":t("firefox/3.5")?r+" ff3 ff3_5":t("firefox/3.6")?r+" ff3 ff3_6":t("firefox/3")?r+" ff3":t("gecko/")?r:t("opera")?e+(/version\/(\d+)/.test(i)?" "+e+RegExp.$1:/opera(\s|\/)(\d+)/.test(i)?" "+e+RegExp.$2:""):t("konqueror")?"konqueror":t("blackberry")?u+" blackberry":t("android")?u+" android":t("chrome")?f+" chrome":t("iron")?f+" iron":t("applewebkit/")?f+" "+o+(/version\/(\d+)/.test(i)?" "+o+RegExp.$1:""):t("mozilla/")?r:"",t("j2me")?u+" j2me":t("iphone")?u+" iphone":t("ipod")?u+" ipod":t("ipad")?u+" ipad":t("mac")?"mac":t("darwin")?"mac":t("webtv")?"webtv":t("win")?"win"+(t("windows nt 6.0")?" vista":""):t("freebsd")?"freebsd":t("x11")||t("linux")?"linux":"","js"];return c=h.join(" "),s.className+=" "+c,c}function ModeDlResize(n){var i=400,r=n.get_dropDownElement(),u,t;if(n.get_itemData())switch(n.get_itemData().length){case 0:r.firstChild.style.height="14px";break;default:u=13;t=u*n.get_itemData().length;t>i&&(t=i);r.firstChild.style.height=t+"px"}}function writeStatisticToBusiness(n,t){$(document).ready(function(){var i=location.protocol+"//"+location.host+"/Handlers/BehaviourStatisticsHandler.ashx?serializedStatsCodes="+n;t&&(i+="&int="+t);$.ajax({url:i})})}function __dialogGetReady(n,t,i){var r=0,u=0,f,e;if(typeof window.innerWidth=="number"?(r=window.innerWidth,u=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(r=document.documentElement.clientWidth,u=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(r=document.body.clientWidth,u=document.body.clientHeight),r!=0&&n==-1&&(n=r),u!=0&&t==-1&&(t=u),n!="undefined"&&t!="undefined"){if((n!=r||t!=u)&&n>0&&t>0)try{window.resizeBy(n-r,t-u)}catch(o){}if(i&&n>0&&t>0){typeof window.outherWidth=="number"&&(n=window.outherWidth,t=window.outherHeight);f=(self.screen.width-n)/2;e=(self.screen.height-t)/2;try{window.moveTo(f,e)}catch(o){}}}}function openHotNewsDetail2(n){var t=$(n).data(),i=n.innerHTML;n.innerHTML=t.text;t.text=i}function recordOutboundLink(n,t){try{return ga("send","event",t[0],t[1]),n.target=="_blank"?!0:(setTimeout(function(){document.location=n.href},100),!1)}catch(i){return!0}}function CzechFormatedDate(){var n=new Date,t=n.getDay(),i=["NEDĚLE","PONDĚLÍ","ÚTERÝ","STŘEDA","ČTVRTEK","PÁTEK","SOBOTA"][t];document.write("".concat(i," ",n.getDate(),".",n.getMonth()+1,".",n.getFullYear()))}function banInputNonNumericalChars(n){$("#"+n).keypress(function(n){var t=String.fromCharCode(n.which);if("0123456789 ".indexOf(t)<0)return!1})}function autoFormatInput(n){$("#"+n).change(function(){this.value=FormatNumberBy3(this.value.replaceAll(" ",""),","," ")})}function FormatNumberBy3(n,t,r){if(arguments.length==2&&(r=","),arguments.length==1&&(r=",",t="."),n=n.toString(),a=n.split(t),x=a[0],y=a[1],z="",typeof x!="undefined"){for(i=x.length-1;i>=0;i--)z+=x.charAt(i);for(z=z.replace(/(\d{3})/g,"$1"+r),z.slice(-r.length)==r&&(z=z.slice(0,-r.length)),x="",i=z.length-1;i>=0;i--)x+=z.charAt(i);typeof y!="undefined"&&y.length>0&&(x+=t+y)}return x}function keyDown(){return k=window.event.keyCode,k==13?(SearchInPatria(),!0):!1}function registerBlockCopyScript(n){function u(n){if(!n)var n=window.event;return n.ctrlKey||n.keyCode===17?!1:!0}function t(){return!1}var i,r;document.onkeydown=u;i=document.getElementById(n);i!==null?(i.oncontextmenu=t,i.onselectstart=t,i.ondragstart=t,i.onmousedown=t):(r=navigator.userAgent.toLowerCase(),r.indexOf("explorer")!==-1&&(document.oncontextmenu=t,document.onselectstart=t,document.ondragstart=t,document.onmousedown=t,document.onmousedown=t))}function clearHighlight(){var t=document.getElementById("eurResult"),n;t.className="";n=document.getElementById("usdResult");n.className=""}function domath(){var t=document.getElementById("pnlSmallResultText"),e,o;if(t){var s=document.getElementById("hfEur"),i=s.value.split(";"),h=document.getElementById("hfUsd"),r=h.value.split(";"),c=document.getElementById("txtAmount"),n=parseFloat(c.value.replaceAll(" ",""));n||(n=0);n<0&&(n=0);var l=parseFloat(i[0].replace(",",".")),a=parseFloat(r[0].replace(",",".")),u=i[1],f=r[1];t.innerHTML="<span id='eurResult'>"+FormatNumberBy3((n/l).toFixed(4).replace(".",","),","," ")+"<\/span> EUR / <span id='usdResult'>"+FormatNumberBy3((n/a).toFixed(4).replace(".",","),","," ")+"<\/span> USD";e=document.getElementById("eurResult");e.className=u!=""?u=="Down"?"Up":"Down":"";o=document.getElementById("usdResult");o.className=f!=""?f=="Down"?"Up":"Down":""}}function Hover__AspNetMenu(n){AddClass__CssFriendlyAdapters(n,hoverClass)}function Unhover__AspNetMenu(n){RemoveClass__CssFriendlyAdapters(n,hoverClass)}function SetHover__AspNetMenu(){for(var r=document.getElementsByTagName("ul"),i,t,n=0;n<r.length;n++)if(r[n].className==topmostClass)for(i=r[n].getElementsByTagName("li"),t=0;t<i.length;t++)i[t].onmouseover=function(){Hover__AspNetMenu(this)},i[t].onmouseout=function(){Unhover__AspNetMenu(this)}}function CanHaveClass__CssFriendlyAdapters(n){return n!=null&&n.className!=null}function HasAnyClass__CssFriendlyAdapters(n){return CanHaveClass__CssFriendlyAdapters(n)&&n.className.length>0}function HasClass__CssFriendlyAdapters(n,t){return HasAnyClass__CssFriendlyAdapters(n)&&n.className.indexOf(t)>-1}function AddClass__CssFriendlyAdapters(n,t){HasAnyClass__CssFriendlyAdapters(n)?HasClass__CssFriendlyAdapters(n,t)||(n.className=n.className+" "+t):CanHaveClass__CssFriendlyAdapters(n)&&(n.className=t)}function AddClassUpward__CssFriendlyAdapters(n,t,i){for(var r=n;r!=null&&!HasClass__CssFriendlyAdapters(r,topmostClass);)AddClass__CssFriendlyAdapters(r,i),r=r.parentNode}function SwapClass__CssFriendlyAdapters(n,t,i){HasAnyClass__CssFriendlyAdapters(n)&&(n.className=n.className.replace(new RegExp(t,"gi"),i))}function SwapOrAddClass__CssFriendlyAdapters(n,t,i){HasClass__CssFriendlyAdapters(n,t)?SwapClass__CssFriendlyAdapters(n,t,i):AddClass__CssFriendlyAdapters(n,i)}function RemoveClass__CssFriendlyAdapters(n,t){SwapClass__CssFriendlyAdapters(n,t,"")}function RemoveClassUpward__CssFriendlyAdapters(n,t,i){for(var r=n;r!=null&&!HasClass__CssFriendlyAdapters(r,topmostClass);)RemoveClass__CssFriendlyAdapters(r,i),r=r.parentNode}function QoogleAnalyticsTools(){this.delay=100;QoogleAnalyticsTools.prototype.CallCampaign=function(n,t,i,r){try{return(this.CallSimpleCampaign(t,screen,r),!n)?n.target=="_blank"?!0:(setTimeout(function(){document.location=n.href},this.delay),!1):!0}catch(u){return!0}};QoogleAnalyticsTools.prototype.CallSimpleCampaign=function(n,t,i){try{ga("send","event",n,""+t+"#"+i)}catch(r){}};QoogleAnalyticsTools.prototype.recordOutboundLink=function(n,t){try{return ga("send","event",t[0],t[1]),n.target=="_blank"?!0:(setTimeout(function(){document.location=n.href},this.delay),!1)}catch(i){return!0}}}function TScroller(n,t,i,r,u,f,e,o){((navigator.userAgent.indexOf("MSIE 6")>0||navigator.userAgent.indexOf("MSIE 7")>0)&&(this.__allowed=!1),this.__allowed)&&this._initialize(n,t,i,r,u,f,e,o)}function TransportHelper(){}function SkyScraper(n,t,i,r,u){if(r==null&&r=="undefined")return null;this.Init=function(n,t,i,r,u){if(this.objname=n,this.ssEl=r,this.ssEnvEl=i,this.aggressive=u,this.maxY=300,t!=null&&t!="undefined")if(this.ssEnvEl!=null&&this.ssEnvEl!="undefined"){if(this.ssEnvEl.style.position="relative",this.ssEnvEl.style.display="block",this.ssEnvEl.style.visibility="visible",this.startLeft=0,this.startTop=0,this.ssEl!=null&&this.ssEl!="undefined")this.startLeft=(this.ssEl.offsetWidth+"").replace("px","");else{this.startLeft=200;this.ssEnvEl.style.position="relative";this.ssEnvEl.style.display="none";this.ssEnvEl.style.visibility="hidden";this.aggressive=!1;return}this.startLeft=Number(this.startLeft)+5;this.ssEl.style.left=this.startLeft+"px";this.ssEl.style.top=this.startTop+"px";this.lastTop=this.startTop;this.lastLeft=this.startLeft;this.pageLength=this.getPageLength();this.maxY=this.pageLength-this.ssEl.offsetHeight-75;this.initpos=this.ssEnvEl.offsetTop}};this.Start=function(){var n=this.objname+".Reposition();";window.setInterval(n,50)};this.getPageVertScroll=function(){var r=window.pageYOffset?window.pageYOffset:0,t=document.documentElement?document.documentElement.scrollTop:0,i=document.body?document.body.scrollTop:0,n=r;return t&&(!n||n>t)&&(n=t),i&&(!n||n>i)?i:n};this.getPageLength=function(){var n=document.body.offsetHeight?document.body.offsetHeight:document.height?document.height:0,t=document.documentElement?document.documentElement.scrollHeight:0,i=document.body?document.body.clientHeight:0;return n?n:t?t:i?i:1024};this.Reposition=function(){var n,r,i,t;this.aggressive&&(n=this.getPageVertScroll()-this.startTop-this.initpos,n=n<0?this.startTop+30:this.startTop+n+30,n=Math.max(30,n+5),n=Math.min(n,this.maxY),r=Math.abs(n-this.lastTop),r>1&&(i=Math.max(Math.abs(n-this.lastTop)/3,1),t=0,n>this.lastTop&&(t=i),n<this.lastTop&&(t=-1*i),this.lastTop=this.lastTop+t,this.ssEl.style.top=this.lastTop-30+"px"))};this.Init(n,t,i,r,u);this.aggressive&&this.Start()}function basic(n,t,i,r){dataLayer&&dataLayer.push&&(n=="undefined"&&(n=undefined),dataLayer.push({event:"dl.pageview",uid:n,userState:t,pageCategory:i,pageType:r}));consoleFired("basic("+n+", "+t+", "+i+", "+r+")")}function news(n,t,i,r,u,f,e,o){dataLayer&&dataLayer.push&&(n=="undefined"&&(n=undefined),dataLayer.push({event:"dl.pageview",uid:n,userState:t,pageCategory:i,postTitle:r,postAuthor:u,postPublished:f,postTags:e,postLock:o,pageType:"other"}));consoleFired("news("+n+", "+t+", "+i+", "+r+", "+u+", "+f+", "+e+", "+o+")")}function events(n,t,i,r,u,f,e){dataLayer&&dataLayer.push&&(n=="undefined"&&(n=undefined),dataLayer.push({event:"dl.event",uid:n,userState:t,"dl.eventCategory":i,"dl.eventAction":r,"dl.eventLabel":u,"dl.eventValue":f,"dl.eventNonInteraction":e}));consoleFired("events("+n+", "+t+", "+i+", "+r+", "+u+", "+f+", "+e+")")}function social(n,t,i,r){dataLayer&&dataLayer.push&&(n=="undefined"&&(n=undefined),dataLayer.push({event:"dl.socialShare",uid:n,userState:t,network:i,socialAction:r}));consoleFired("social("+n+", "+t+", "+i+", "+r+")")}function gtmSocial(n){n=="Facebook"?social(gtmUid,gtmUserState,"Facebook","Like"):n=="Twitter"&&social(gtmUid,gtmUserState,"Twitter","Share")}function gtmGeneral(n){n=="Přihlásit"?events(gtmUid,gtmUserState,"login","submit","login",undefined,!1):n=="Odhlásit"?events(gtmUid,gtmUserState,"logout","submit","logout",undefined,!1):n=="Nastavit SMS / E-Mail alert"?events(gtmUid,gtmUserState,"alert","click","SmsEmail",undefined,!1):n=="E-Mail"?events(gtmUid,gtmUserState,"alert","click","E-Mail",undefined,!1):n=="SMS"?events(gtmUid,gtmUserState,"alert","click","SMS",undefined,!1):events(gtmUid,gtmUserState,"button-CTA","click",n,undefined,!1)}function gtmBuy(n){events(gtmUid,gtmUserState,"portfolio-PD","product-add",n,undefined,!1)}function gtmSell(n){events(gtmUid,gtmUserState,"portfolio-PD","product-remove",n,undefined,!1)}function consoleFired(){}var secondsPassed,double_MinValue,numberMinAccessible,HelpWin,printWindow,printContent,requestAd,requestTip,requestFavorites,isIE,hoverClass,topmostClass,qaTools;HTMLDivElement.prototype.GetValue=function(){return $find(this.id).get_value()};HTMLDivElement.prototype.GetText=function(){return $find(this.id).get_text()};HTMLDivElement.prototype.SetValue=function(n){$find(this.id).set_value(n)};HTMLDivElement.prototype.SetText=function(n){$find(this.id).set_text(n)};secondsPassed=0;$(document).ready(function(){if(window.location.href.indexOf("?pagestats=1")>0){var n=document.createElement("style");n.innerHTML=".contentStatsBorder {border: 1px solid red;}";document.getElementsByTagName("head")[0].appendChild(n);$("#mainPage").append("<div id='pageStats' style='position: fixed; top: 0; left:0; background-color: silver;'><\/div>");setInterval(function(){countdownControl()},1e3)}});double_MinValue=new Number(-17976931348623157E+308);numberMinAccessible=new Number(-999999999);HelpWin=0;printWindow=null;printContent=null;var PatriaDirectExternalOrderAvailable=!0,PatriaDirectExternalOrderUrl="https://www.patria-direct.cz/TradeOrder.aspx",PatriaDirectPortalUrl="https://www.patria-direct.cz",PatriaDirectExternalOrderWelcomeCode="POL";DataObject.prototype={};DataObject.prototype.elementId=null;DataObject.prototype.element=null;DataObject.prototype.storedData=null;DataObject.prototype.ReadItemName=function(n){return n.name};DataObject.prototype.ReadItemTitle=function(n){return n.title};DataObject.prototype._attachEvent=function(n,t,i){if(n==null||n=="undefined"||t==null||t=="undefined"||typeof i!="function")return!1;if(typeof n.addEventListener!="undefined")n.addEventListener(t,i,!1);else if(typeof n.attachEvent!="undefined")n.attachEvent("on"+t,i);else return!1;return!0};DataObject.prototype._detachEvent=function(n,t,i){if(n==null||n=="undefined"||t==null||t=="undefined"||typeof i!="function")return!1;if(typeof n.addEventListener!="undefined")n.removeEventListener(t,i,!1);else if(typeof n.attachEvent!="undefined")n.detachEvent("on"+t,i);else return!1;return!0};DataObject.prototype.onElementMouseOver=null;DataObject.prototype.onElementMouseOut=null;DataObject.prototype.onElementMouseClick=null;DataObject.prototype.onBeginProcessing=function(){};DataObject.prototype.onPreProcessRow=function(){return!0};DataObject.prototype.onEndProcessing=function(){};DataObject.prototype.assign=function(n){this.elementId=n;this.element=document.getElementById(this.elementId)};DataObject.prototype.clear=function(){if(this.element==null||this.element=="undefined")return!1;for(var n=this.element;n.hasChildNodes();)n.removeChild(n.firstChild);n.innerHTML=""};DataObject.prototype.fill=function(n){var i,r,t;if(this.storedData=n,this.element==null||this.element=="undefined")return!1;if(n&&n.length&&!(n.length<0)){this.clear();this.onBeginProcessing(this);for(i=0;i<n.length;i++)r=n[i],this.onPreProcessRow(this,r)&&(t=this.fillItem(r),t&&t!="undefined"&&(this._attachEvent(t,"click",this.onElementMouseClick),this._attachEvent(t,"mouseover",this.onElementMouseOver),this._attachEvent(t,"mouseout",this.onElementMouseOut),this.element.appendChild(t)));this.onEndProcessing(this)}};DataObject.prototype.refill=function(){this.fill(this.storedData)};DataObject.prototype.fillItem=function(){};DataObject.prototype.getDataIdentifierFromElement=function(n){return n?n.attributes&&n.attributes.identifier?n.attributes.identifier.value:n.getAttribute?n.getAttribute("identifier"):null:null};DataObject.prototype.getDataIdentifier=function(n,t){var i=null,r;return!i&&t.currentTarget&&(i=t.currentTarget),!i&&t.srcElement&&(i=t.srcElement),i||(i=n),r=this.getDataIdentifierFromElement(i),!r&&i.parentElement&&(r=this.getDataIdentifierFromElement(i.parentElement)),!r&&i.parentElement.parentElement&&(r=this.getDataIdentifierFromElement(i.parentElement.parentElement)),r};DataObject.prototype.setDataIdentifier=function(n,t){n&&n.setAttribute("identifier",t)};DataObject.prototype.setItemId=function(n,t){n.id=this.elementId+"_"+this.ReadItemName(t)};DataObject.prototype.getItemProperty=function(item,propertyName){return eval("item."+propertyName+";")};DataObject.prototype.getElement=function(n){return document.getElementById(this.elementId+"_"+n)};Plotter.prototype=new DataObject;Plotter.prototype.constructor=Plotter;Plotter.prototype.viewX=0;Plotter.prototype.viewY=0;Plotter.prototype.TranslateX=function(n){return Math.round(n)};Plotter.prototype.TranslateY=function(n){return Math.round(n)};Plotter.prototype.measureX=function(n,t){return t-n};Plotter.prototype.measureY=function(n,t){return t-n};Plotter.prototype.ReadItemX=function(n){return n.x};Plotter.prototype.ReadItemY=function(n){return n.y};Plotter.prototype.ReadItemIconSizeX=function(n){return n.iconSizeX};Plotter.prototype.ReadItemIconSizeY=function(n){return n.iconSizeY};Plotter.prototype.ReadItemIconImage=function(n){return n.icon};Plotter.prototype.ClientReadItemHint=function(n){return this.ReadItemTitle(n)};Plotter.prototype.point=function(n,t,i){var r=document.createElement("div");r.className="item";r.style.left=this.TranslateX(n)+"px";r.style.top=this.TranslateY(t)+"px";r.style.width="1px";r.style.height="1px";r.style.backgroundColor=i;this.element.appendChild(r)};Plotter.prototype.label=function(n,t,i,r,u,f){if(i&&i!="undefined"){var e=document.createElement("div");e.className="item";e.style.left=this.TranslateX(n)+"px";e.style.top=this.TranslateY(t)+"px";e.appendChild(document.createTextNode(i));r&&r!="undefined"&&(e.style.color=r);u&&u!="undefined"&&(e.style.fontSize=u+"px");f&&f!="undefined"&&(e.style.fontFamily=f);this.element.appendChild(e)}};Plotter.prototype.line=function(n,t,i,r,u){for(var e=this.measureX(n,i),o=this.measureY(t,r),s=Math.sqrt(e*e+o*o),h=e/s,c=o/s,f=0;f<s;f++)this.point(n+h*f,t+c*f,u)};Plotter.prototype.fillItem=function(n){var e=this.ReadItemX(n),f,r,o,i;if(isNaN(e)||-1*Math.abs(e)<=numberMinAccessible||(f=this.ReadItemY(n),isNaN(f)||-1*Math.abs(f)<=numberMinAccessible))return null;var t=document.createElement("div"),s=0,h=0,u=this.ReadItemIconSizeX(n);return u&&(s=u/2,t.style.width=u+"px"),r=this.ReadItemIconSizeY(n),r&&(h=r/2,t.style.height=r+"px",t.style.lineHeight=r+"px"),t.className="item",t.style.left=this.TranslateX(e)-s+this.viewX+"px",t.style.top=this.TranslateY(f)-h+this.viewY+"px",t.setAttribute("title",this.ClientReadItemHint(n)),this.setItemId(t,n),t.style.cursor="pointer",t.title=this.ClientReadItemHint(n),t.style.overflow="hidden",this.setDataIdentifier(t,this.ReadItemName(n)),o=this.ReadItemIconImage(n),o?t.appendChild(document.createTextNode("x")):(i=document.createElement("img"),i.title=t.title,i.setAttribute("alt",i.title),i.src=o,i.id=t.id+"_img",u&&(i.width=u),r&&(i.height=r),t.appendChild(i)),t};ScaledPlotter.prototype=new Plotter;ScaledPlotter.prototype.constructor=ScaledPlotter;ScaledPlotter.prototype.scaleX=2;ScaledPlotter.prototype.scaleY=4;ScaledPlotter.prototype.pivotX=0;ScaledPlotter.prototype.pivotY=0;ScaledPlotter.prototype.TranslateX=function(n){return this.pivotX+Math.round(n*this.scaleX)};ScaledPlotter.prototype.TranslateY=function(n){return this.pivotX+Math.round(n*this.scaleY)};ScaledPlotter.prototype.setPivot=function(n,t){this.pivotX=n;this.pivotY=t};ScaledPlotter.prototype.setScale=function(n,t){this.scaleX=n;this.scaleY=t};Templater.prototype=new DataObject;Templater.prototype.constructor=Templater;Templater.prototype.itemTemplate="";Templater.prototype.header="";Templater.prototype.footer="";Templater.prototype.itemTag="div";Templater.prototype.itemClass="item";Templater.prototype.itemFields=[];Templater.prototype.defineFields=function(n){if(this.itemFields=[],n)for(var t=0;t<n.length;t++)this.itemFields.push(n[t])};Templater.prototype.fillItem=function(n){var i,r,t;try{for(i=this.itemTemplate,r=0;r<this.itemFields.length;r++){var e=this.itemFields[r],u=this.getItemProperty(n,e),f=new Number(u);isNaN(f)||(u=f<=numberMinAccessible?"-":f.toFixed(2).replace(".",","));i=i.split("{$"+e+"$}").join(u)}return t=document.createElement(this.itemTag),t.className=this.itemClass,t.innerHTML=i,t.id=this.elementId+"_"+this.ReadItemName(n),t.title=this.ReadItemTitle(n),this.setDataIdentifier(t,this.ReadItemName(n)),t}catch(o){return o.message}};Templater.prototype._appendHTML=function(n,t){var i=document.createElement("div"),u,r;for(i.innerHTML=t,u=i.childNodes;i.children.length>0;)r=i.childNodes[0],i.removeChild(r),n.appendChild(r)};Templater.prototype.writeHeader=function(n){if(n.header){var t=document.createElement(n.itemTag);t.className="header";t.innerHTML=n.header;this.element.appendChild(t)}};Templater.prototype.writeFooter=function(n){if(n.footer){var t=document.createElement(n.itemTag);t.className="footer";t.innerHTML=n.footer;this.element.appendChild(t)}};Detail.prototype=new Templater;Detail.prototype.constructor=Detail;Detail.prototype.SelectedDataID=null;Detail.prototype._detailFilter=function(n,t){return this.ReadItemName(t)==this.SelectedDataID};PerformanceAndVolatility.prototype={};PerformanceAndVolatility.prototype.constructor=PerformanceAndVolatility;PerformanceAndVolatility.prototype.elementId=null;PerformanceAndVolatility.prototype.plotter=null;PerformanceAndVolatility.prototype.list=null;PerformanceAndVolatility.prototype.detail=null;PerformanceAndVolatility.prototype.Initialize=function(n,t,i){this.plotter=n;this.list=t;this.detail=i};PerformanceAndVolatility.prototype.Highlight=function(n,t,i,r){var u=n.getElement(t);u&&(u.className=(i?"item itemHighlighted":"item")+" "+r)};PerformanceAndVolatility.prototype.LoadDetail=function(n){this.detail.SelectedDataID=n;this.detail.refill()};PerformanceAndVolatility.prototype.OnElementClick=function(n){this.LoadDetail(n)};PerformanceAndVolatility.prototype.OnElementMouseOver=function(n){this.Highlight(this.plotter,n,!0," itemCursor");this.Highlight(this.list,n,!0," itemCursor")};PerformanceAndVolatility.prototype.OnElementMouseOut=function(n){this.Highlight(this.plotter,n,!1,"");this.Highlight(this.list,n,!1,"")};TUrlHelper.prototype.getQueryString=function(n){if(!n)return"";var t=n.indexOf("?");return t>-1?n.substr(t+1):""};TUrlHelper.prototype.scriptPath=function(n){if(!n)return"";var t=n.indexOf("?");return t>-1?n.substr(0,t):n};TUrlHelper.prototype.buildUrl=function(n,t){return!t||t.length<1?scripPath:n+"?"+t};TUrlHelper.prototype.parseQueryString=function(n){var r=[],u,t;if(!n)return r;for(u=n.split("&"),t=0;t<u.length;t++){var i=u[t],f=i.indexOf("="),e="",o="";f>-1?(e=i.substr(0,f),o=decodeURIComponent(i.substr(f+1))):(e=i,o="");r[e]=o}return r};TUrlHelper.prototype.buildQueryString=function(){};TUrlHelper.prototype.buildQueryString=function(n){var t="";for(i in n)typeof n[i]!="function"&&(t.length>0&&(t+="&"),t+=i+"="+encodeURIComponent(n[i]));return t};TUrlHelper.prototype.getParameterValueFromUrl=function(n,t){return this.getParameterValueFromQueryString(this.getQueryString(n),t)};TUrlHelper.prototype.getParameterValueFromQueryString=function(n,t){return this.getParameterValue(this.parseQueryString(n),t)};TUrlHelper.prototype.getParameterValue=function(n,t){var i=n[t];return i&&i!="undefined"||(i=""),i};TUrlHelper.prototype.replaceParameterValueFromUrl=function(n,t,i){var r=this.scriptPath(n),u=this.replaceParameterValueFromQueryString(this.getQueryString(n),t,i);return this.buildUrl(r,u)};TUrlHelper.prototype.replaceParameterValueFromQueryString=function(n,t,i){return this.buildQueryString(this.replaceParameterValue(this.parseQueryString(n),t,i))};TUrlHelper.prototype.replaceParameterValue=function(n,t,i){return n[t]=i,n};UrlHelper=new TUrlHelper;css_browser_selector(navigator.userAgent);$(document).ready(function(){var t=$("#timeOrderedColumns"),i,n;t.length>0&&(i=$("#timeOrderedColumns > .panel"),n=[],$(i).each(function(){var t={id:this.id,html:this.outerHTML},r=$("#"+t.id+" div.datetime")[0],f,u,e;if(r){f=r.innerHTML.trim().indexOf(",");u=f>-1?r.innerHTML.trim().substring(0,f).replace(/\.| |:/g,"-"):r.innerHTML.trim().replace(/\.| |:/g,"-");u=u.replace(/--/g,"-");var i=u.split("-"),o=i[0],s=i[1],h=i[2],c=i[3],l=i[4];t.date=new Date(h,s-1,o,c,l)}e=$("#"+t.id+" div.title a")[0];e&&(t.href=e.href.trim());n.push(t)}),n.sort(function(n,t){return new Date(t.date)-new Date(n.date)}),t[0].innerHTML="",$(n).each(function(){t[0].innerHTML+=this.html}))});String.prototype.replaceAll=function(n,t){var i=this;return i.split(n).join(t)};isIE=window.navigator.userAgent.indexOf("MSIE")>0;isIE||(HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent}),HTMLElement.prototype.__defineSetter__("innerText",function(n){this.textContent=n}),HTMLElement.prototype.__defineGetter__("children",function(){return this.childNodes}),HTMLElement.prototype.__defineGetter__("XMLDocument",function(){return(new DOMParser).parseFromString(this.innerHTML,"text/xml")}),HTMLElement.prototype.attachEvent=function(n,t){t._wrapHandler=function(n){return window.event=n,n.currentTarget.className.indexOf("rcbHovered")==-1&&n.currentTarget.className.indexOf("rcbFocused")==-1&&t(),n.returnValue};this.addEventListener(n.substr(2),t._wrapHandler,!1)},HTMLElement.prototype.detachEvent=function(n,t){t&&t._wrapHandler!=null&&this.removeEventListener(n.substr(2),t._wrapHandler,!1)},Event.prototype.__defineGetter__("srcElement",function(){for(var n=this.target;n.nodeType!=1;)n=n.parentNode;return n!=this.target&&alert("Unexpected event.target!"),n}),Event.prototype.__defineSetter__("cancelBubble",function(n){n&&this.stopPropagation()}),Event.prototype.__defineSetter__("returnValue",function(n){return n||this.preventDefault(),this._returnValue=n,n}),Event.prototype.__defineGetter__("returnValue",function(){return this._returnValue}),XMLDocument.prototype.selectSingleNode=function(n){var t=this,i;return t.nodeType!=9&&(t=t.ownerDocument),t.nsResolver==null&&(t.nsResolver=function(){return"http://www.w3.org/2003/05/soap-envelope"}),i=t.evaluate(n,this,t.nsResolver,XPathResult.ANY_UNORDERED_NODE_TYPE,null),i!=null&&(i=i.singleNodeValue),i},Node.prototype.__defineGetter__("text",function(){return this.textContent})),function(n){n.cookieBar=function(t,i){var u,nt,o,k,a,v,y,l,p,w,b,g;u=t=="cookies"?"cookies":t=="set"?"set":!1;var rt={message:'Používáním webů Skupiny Patria souhlasíte s tím, že k poskytování služeb, analýze návštěvnosti a cílení reklam používají soubory cookie. <a class="linkAnchor" href="https://patria.cz/cookies.html" target="_blank">Více informací<\/a> ',messageEn:'By using the groups website Patria agree that the provision of services, traffic analysis and targeting ads use cookies. <a class="linkAnchor" href="https://patria.cz/en/cookies.html" target="_blank">More information<\/a> ',messageSk:'Používaním webov Skupiny Patria súhlasíte s tým, že na poskytovanie služieb, analýze návštevnosti a zacielení reklám používajú súbory cookie. <a class="linkAnchor" href="https://patria.cz/sk/cookies.html" target="_blank">Viac informácií<\/a> ',acceptButton:!0,acceptText:"Rozumím",acceptTextEn:"Understand",acceptTextSk:"Rozumiem",cssProfile:"PATRIA",acceptFunction:function(n){n!="enabled"&&n!="accepted"&&(window.location=window.location.href)},declineButton:!1,declineText:"Disable Cookies",declineFunction:function(n){(n=="enabled"||n=="accepted")&&(window.location=window.location.href)},policyButton:!1,policyText:"Privacy Policy",policyURL:"/privacy-policy/",autoEnable:!0,acceptOnContinue:!1,acceptOnScroll:!1,acceptAnyClick:!1,expireDays:3650,renewOnVisit:!1,forceShow:!1,effect:"slide",element:"body",append:!0,fixed:!0,bottom:!0,zindex:"10000",domain:String(window.location.hostname),referrer:String(document.referrer)},t=n.extend(rt,t),s=new Date;s.setTime(s.getTime()+t.expireDays*864e5);s=s.toGMTString();for(var h="cb-enabled={value}; expires="+s+"; path=/",r="",e,c=document.cookie.split("; "),f=0;f<c.length;f++)e=c[f].split("="),e[0]=="cb-enabled"&&(r=e[1]);if(r==""&&u!="cookies"&&t.autoEnable?(r="enabled",document.cookie=h.replace("{value}","enabled")):(r=="accepted"||r=="declined")&&u!="cookies"&&t.renewOnVisit&&(document.cookie=h.replace("{value}",r)),t.acceptOnContinue&&t.referrer.indexOf(t.domain)>=0&&String(window.location.href).indexOf(t.policyURL)==-1&&u!="cookies"&&u!="set"&&r!="accepted"&&r!="declined"&&(u="set",i="accepted"),u=="cookies")return r=="enabled"||r=="accepted"?!0:!1;if(u=="set"&&(i=="accepted"||i=="declined"))return document.cookie=h.replace("{value}",i),i=="accepted"?!0:!1;nt=function(){var n=document.createElement("style");n.type="text/css";switch(t.cssProfile){case"POL":n.innerHTML="#cookie-bar { height: auto; line-height: 30px; color: white; font-size: 11px; background: rgba(13, 32, 65, 0.9); } #cookie-bar.fixed { position: fixed; top: 0; left: 0; width: 100%; } #cookie-bar.fixed.bottom { bottom: 0; top: auto; } #cookie-bar p { margin: 0; padding: 0; text-align: center !important; } #cookie-bar a { border-radius: 3px; text-decoration: none; padding: 5px 15px;} #cookie-bar .linkAnchor { color: #46A5CD; text-decoration: none; padding: 0 0px; margin-left: 0px; } #cookie-bar .linkAnchor:hover { text-decoration: underline; } #cookie-bar .cb-enable { font-weight: bold; background: #026f9a; color: white; } #cookie-bar .cb-enable:hover { background: white; color: #026f9a; }";break;case"FOREX":n.innerHTML="#cookie-bar { height: auto; line-height: 30px; color: white; font-size: 11px; background: rgba(0, 51, 109, 0.9); } #cookie-bar.fixed { position: fixed; top: 0; left: 0; width: 100%; } #cookie-bar.fixed.bottom { bottom: 0; top: auto; } #cookie-bar p { margin: 0; padding: 0; text-align: center !important; } #cookie-bar a { border-radius: 3px; text-decoration: none; padding: 5px 15px;} #cookie-bar .linkAnchor { color: white; text-decoration: none; padding: 0 0px; margin-left: 0px; } #cookie-bar .linkAnchor:hover { text-decoration: underline; } #cookie-bar .cb-enable { font-weight: bold; background: #aa0028; color: white; } #cookie-bar .cb-enable:hover { background: white; color: #aa0028; }";break;case"DIRECT":n.innerHTML="#cookie-bar { height: auto; line-height: 30px; color: white; font-size: 11px; background: #000046; } #cookie-bar.fixed { position: fixed; top: 0; left: 0; width: 100%; } #cookie-bar.fixed.bottom { bottom: 0; top: auto; } #cookie-bar p { margin: 0; padding: 0; text-align: center !important; } #cookie-bar a { border-radius: 3px; text-decoration: none; padding: 5px 15px;} #cookie-bar .linkAnchor { color: #FF9B00; text-decoration: none; padding: 0 0px; margin-left: 0px; } #cookie-bar .linkAnchor:hover { text-decoration: underline; } #cookie-bar .cb-enable { font-weight: bold; background: #f59100; color: #00336d; } #cookie-bar .cb-enable:hover { background: white; color: #f59100; }";break;case"PATRIA":default:n.innerHTML="#cookie-bar { height: auto; line-height: 30px; color: white; font-size: 11px; background: rgba(13, 32, 65, 0.9); } #cookie-bar.fixed { position: fixed; top: 0; left: 0; width: 100%; } #cookie-bar.fixed.bottom { bottom: 0; top: auto; } #cookie-bar p { margin: 0; padding: 0; text-align: center !important; } #cookie-bar a { border-radius: 3px; text-decoration: none; padding: 5px 15px;} #cookie-bar .linkAnchor { color: white; text-decoration: none; padding: 0 0px; margin-left: 0px; } #cookie-bar .linkAnchor:hover { text-decoration: underline; } #cookie-bar .cb-enable { font-weight: bold; background: white; color: #001E4B; } #cookie-bar .cb-enable:hover { background: #026f9a; color: white; }"}document.getElementsByTagName("head")[0].appendChild(n)};o=n("html").attr("lang");o||(o=n("meta[http-equiv=Content-Language]").attr("content"));o&&(o=="en"&&(t.message=t.messageEn,t.acceptText=t.acceptTextEn),o=="sk"&&(t.message=t.messageSk,t.acceptText=t.acceptTextSk));(t.domain=="localhost"||t.domain=="online.test.patria.cz")&&(t.message=t.message.replace("patria.cz","online.test.patria.cz"));k=t.message.replace("{policy_url}",t.policyURL);a=t.acceptButton?'<a href="" class="cb-enable">'+t.acceptText+"<\/a>":"";v=t.declineButton?'<a href="" class="cb-disable">'+t.declineText+"<\/a>":"";y=t.policyButton?'<a href="'+t.policyURL+'" class="cb-policy">'+t.policyText+"<\/a>":"";l=t.fixed?t.bottom?' class="fixed bottom"':' class="fixed"':"";p=t.zindex!=""?' style="z-index:'+t.zindex+';"':"";(t.forceShow||r=="enabled"||r=="")&&(nt(),t.append?n(t.element).append('<div id="cookie-bar"'+l+p+"><p>"+k+a+v+y+"<\/p><\/div>"):n(t.element).prepend('<div id="cookie-bar"'+l+p+"><p>"+k+a+v+y+"<\/p><\/div>"),n("#cookie-bar").hide(),n("#cookie-bar").slideDown(300));var tt=function(i){t.acceptOnScroll&&n(document).off("scroll");typeof i=="function"&&i(r);t.effect=="slide"?n("#cookie-bar").slideUp(300,function(){n("#cookie-bar").remove()}):t.effect=="fade"?n("#cookie-bar").fadeOut(300,function(){n("#cookie-bar").remove()}):n("#cookie-bar").hide(0,function(){n("#cookie-bar").remove()});n(document).unbind("click",it)},d=function(){document.cookie=h.replace("{value}","accepted");tt(t.acceptFunction)},ut=function(){var n=new Date;for(n.setTime(n.getTime()-864e6),n=n.toGMTString(),c=document.cookie.split("; "),f=0;f<c.length;f++)e=c[f].split("="),document.cookie=e[0].indexOf("_")>=0?e[0]+"=0; expires="+n+"; domain="+t.domain.replace("www","")+"; path=/":e[0]+"=0; expires="+n+"; path=/";document.cookie=h.replace("{value}","declined");tt(t.declineFunction)},it=function(t){n(t.target).hasClass("cb-policy")||d()};if(n("#cookie-bar .cb-enable").click(function(){return d(),!1}),n("#cookie-bar .cb-disable").click(function(){return ut(),!1}),t.acceptOnScroll){w=n(document).scrollTop();n(document).on("scroll",function(){b=n(document).scrollTop();g=b>w?b-w:w-b;g>=Math.round(t.acceptOnScroll)&&d()})}t.acceptAnyClick&&n(document).bind("click",it)}}(jQuery);$(document).ready(function(){var n=document.getElementById("txtAmount");n&&(document.getElementById("txtAmount").onchange=domath,document.getElementById("txtAmount").onkeyup=domath,banInputNonNumericalChars("txtAmount"),autoFormatInput("txtAmount"),n.value=FormatNumberBy3(n.value.replaceAll(" ",""),","," "),domath(),setInterval(function(){domath()},4e3))});hoverClass="Menu-Hover";topmostClass="AspNet-Menu";window.onload=SetHover__AspNetMenu;$(document).ready(function(){qaTools=new QoogleAnalyticsTools});TScroller.prototype={};TScroller.prototype.__allowed=!0;TScroller.prototype.__envelope=null;TScroller.prototype.__content=null;TScroller.prototype.__height=null;TScroller.prototype.__width=null;TScroller.prototype.__speedX=null;TScroller.prototype.__speedY=null;TScroller.prototype.__originalSpeedX=null;TScroller.prototype.__originalSpeedY=null;TScroller.prototype.__name=null;TScroller.prototype._initialize=function(n,t,i,r,u,f,e,o){this.__envelope=document.getElementById(t);this.__content=document.getElementById(i);this.__height=u;this.__width=r;this.SetSpeed(f,e);this.__originalSpeedX=this.__speedX;this.__originalSpeedY=this.__speedY;this.__name=n;this.__envelope.style.overflow="hidden";this.__content.style.position="relative";this.__timerInterval=100;o!=null&&o!="undefined"&&Number(parseInt(o)!=NaN)&&(this.__timerInterval=parseInt(o));this.ResetPosition()};TScroller.prototype.Reset=function(){this.ResetSpeed();this.ResetPosition()};TScroller.prototype.ResetPosition=function(){this.MeasureContent();this.__posX=0;this.__posY=0};TScroller.prototype.ToString=function(){return this.__name+":TScroller"};TScroller.prototype.__contentWidth=0;TScroller.prototype.__contentHeight=0;TScroller.prototype.MeasureContent=function(){this.__contentHeight=this.__content.offsetHeight;this.__contentWidth=this.__content.offsetWidth;this.__height>0&&(this.__envelope.style.height=this.__height+"px");this.__width>0&&(this.__envelope.style.width=this.__width+"px");this.__contentHeight<this.__height&&(this.__envelope.style.height="auto");this.__contentWidth<this.__width&&(this.__envelope.style.width="auto")};TScroller.prototype.SetSpeed=function(n,t){this.__speedX=n;this.__speedY=t};TScroller.prototype.ResetSpeed=function(){this.__speedX=this.__originalSpeedX;this.__speedY=this.__originalSpeedY};TScroller.prototype.__posY=0;TScroller.prototype.__posX=0;TScroller.prototype.Step=function(){this.__speedY!=0&&(this.__posY=this.__posY+this.__speedY,this.__contentHeight+this.__posY<this.__height&&(this.__posY=0),this.__posY>1&&(this.__posY=-1*(this.__contentHeight-this.__height)));this.__speedX!=0&&(this.__posX=this.__posX+this.__speedX,this.__contentWidth+this.__posX<this.__width&&(this.__posX=0),this.__posX>1&&(this.__posX=-1*(this.__contentWidth-this.__width)));this.ScrollTo(this.__posX,this.__posY)};TScroller.prototype.ScrollTo=function(n,t){this.__content.style.left=n+"px";this.__content.style.top=t+"px"};TScroller.prototype.__animationInterval=0;TScroller.prototype.__intervalTick=function(){this.Step()};TScroller.prototype.Start=function(){if(this.__allowed&&this.__animationInterval==0){var n=this.__name+".__intervalTick();";this.__animationInterval=window.setInterval(n,100)}};TScroller.prototype.Stop=function(){this.__allowed&&this.__animationInterval!=0&&(window.clearInterval(this.__animationInterval),this.__animationInterval=0)};TransportHelper.TransportToTokens=function(n,t){return n==null||n=="undefined"?[]:((t==null||t=="undefined")&&(t="|"),n.split(t))};TransportHelper.TokensToTransport=function(n,t){return n==null||n=="undefined"||typeof n!="object"&&typeof n!="Array"?"":((t==null||t=="undefined")&&(t="|"),n.join(t))};TransportHelper.TokensReplaceValue=function(n,t,i){return n[t]=i,n};TransportHelper.TransportReplaceValue=function(n,t,i,r){return TransportHelper.TokensToTransport(TransportHelper.TokensReplaceValue(TransportHelper.TransportToTokens(n,t),i,r),t)};$(document).ready(function(){$("a").each(function(){$(this).click(function(){var n=$(this).text();n||(n=$(this).attr("id"));n||(n=$(this).attr("name"));n||(n=$(this).attr("class"));n&&gtmGeneral(n)})})})