/*
(c) 2014, DELFI, All rights reserved.
@author Chris
@author Max
@version 0.2
@todo Consider changing object implementation from plain ojbect to instantation.
(c) 2007, Carl S. Yestrau, All rights reserved.
@author Carl S. Yestrau
@author Chris
\@license http://www.featureblend.com/license.txt BSD License
*/
try{console.log()}catch(a){"object"!==typeof console&&(console={}),console.log=function(){}}
var cookie={get:function(b){var c,d=b+"=",e=document.cookie.split(";");for(b=0;b
"),$("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&($("body").append("
"),$("#TB_overlay").click(tb_remove));tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");null===b&&(b="");$("body").append("");
$("#TB_load").show();e=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var g=(-1!==c.indexOf("?")?c.substr(0,c.indexOf("?")):c).toLowerCase().match(e);if(".jpg"==g||".jpeg"==g||".png"==g||".gif"==g||".bmp"==g){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=TB_PrevURL=TB_PrevCaption="";TB_FoundURL=!1;if(d)for(TB_TempArray=$("a[@rel="+d+"]").get(),TB_Counter=0;TB_Counter Next > "):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML=" < Prev "):(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length);imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=
null;var e=tb_getPageSize(),f=e[0]-150,e=e[1]-150,g=imgPreloader.width,h=imgPreloader.height;g>f?(h*=f/g,g=f,h>e&&(g*=e/h,h=e)):h>e&&(g*=e/h,h=e,g>f&&(h*=f/g,g=f));TB_WIDTH=g+30;TB_HEIGHT=h+60;$("#TB_window").append(""+b+"
"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"
");$("#TB_closeWindowButton").click(tb_remove);if(""!==TB_PrevHTML){var k=function(){$(document).unbind("click",k)&&$(document).unbind("click",k);$("#TB_window").remove();$("body").append("
");tb_show(TB_PrevCaption,TB_PrevURL,d);return!1};$("#TB_prev").click(k)}if(""!==TB_NextHTML){var n=function(){$("#TB_window").remove();$("body").append("
");tb_show(TB_NextCaption,TB_NextURL,d);return!1};$("#TB_next").click(n)}document.onkeydown=
function(b){keycode=null==b?event.keyCode:b.which;27==keycode?tb_remove():190==keycode?""!=TB_NextHTML&&(document.onkeydown="",n()):188==keycode&&""!=TB_PrevHTML&&(document.onkeydown="",k())};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=c}else{var m=c.replace(/^[^\?]+\??/,""),l=tb_parseQuery(m);TB_WIDTH=1*l.width+30||630;TB_HEIGHT=1*l.height+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;-1!=c.indexOf("TB_iframe")?
(urlNoQuery=c.split("TB_"),$("#TB_iframeContent").remove(),"true"!=l.modal?$("#TB_window").append(""):($("#TB_overlay").unbind(),$("#TB_window").append(""))):"block"!=$("#TB_window").css("display")?"true"!=l.modal?$("#TB_window").append("
"):($("#TB_overlay").unbind(),$("#TB_window").append("
")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(b));$("#TB_closeWindowButton").click(tb_remove);
if(-1!=c.indexOf("TB_inline")){var p=$("#"+l.inlineId);/textarea|input|select/.test(p[0].nodeName.toLowerCase())?$("#TB_ajaxContent").html(""+p.val()+" "):($("#TB_ajaxContent").append(p.children()),$("#TB_window").unload(function(){$("#"+l.inlineId).append($("#TB_ajaxContent").children())}));tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else-1!=c.indexOf("TB_iframe")?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):
$("#TB_ajaxContent").load(c+="&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}l.modal||(document.onkeyup=function(b){keycode=null==b?event.keyCode:b.which;27==keycode&&tb_remove()})}catch(q){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();!document.body.style.maxHeight&&document.documentElement.clientHeight&&-1!==navigator.userAgent.indexOf("MSIE")&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow",""));document.onkeydown="";document.onkeyup="";$("select, iframe, object, embed").css({visibility:"visible"});
return!1}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});document.documentElement&&document.documentElement.clientHeight&&-1===navigator.userAgent.indexOf("MSIE 6")&&$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}
function tb_parseQuery(b){var c={};if(!b)return c;b=b.split(/[;&]/);for(var d=0;d',tb_closeMsg="Sulge";function show_sitemap(){tb_show("","http://www.delfi.lv/misc/sitemap.php?TB_iframe=true&width=970&height=600");return!1}
function show_sitemap_ru(){tb_show("","http://rus.delfi.lv/misc/sitemap.php?TB_iframe=true&width=970&height=600");return!1}function changeState(){1060>=$(window).width()?$("#DelfiSideSitemap").hide("slow"):$("#DelfiSideSitemap").show("slow")}
$(document).ready(function(){$("iframe").attr("allowTransparency","true");$(document.body).prepend($("#DelfiSideSitemap").attr("id","DelfiSideSitemap"));changeState();$(window).bind("resize",function(){changeState()});var b=document.getElementById("DelfiSideSitemap");changeObjPos(b,29,0);$(window).bind("scroll",function(){changeObjPos(b,29,0)})});
function changeObjPos(b,c,d){var e=document.body.scrollTop;b&&(b.style.position="absolute",0==e&&(e=window.pageYOffset?window.pageYOffset:document.body.parentElement?document.body.parentElement.scrollTop:0),b.style.top=e'+d+"
");b("p#vtip").css("top",this.top+"px").css("left",this.left+"px").fadeIn("slow").delay("1000").fadeOut("slow")},function(){b(this).attr("title",b(this).data("title"));b("p#vtip").fadeOut("slow").remove()}).mousemove(function(c){this.top=c.pageY+-45;this.left=
c.pageX+-50;b("p#vtip").css("top",this.top+"px").css("left",this.left+"px")})});var tb_pathToImage="http://h.delfi.ee/g/h/loadingAnimation.gif",tb_closeButton=' ',tb_closeMsg="Sulge",smap=document.getElementById("DelfiSideSitemap")?"DelfiSideSitemap":"DelfiSideSitemapRus";function show_sitemap(){tb_show("","http://www.delfi.lv/misc/sitemap.php?TB_iframe=true&width=888&height=500");return!1}
function show_sitemap_ru(){tb_show("","http://rus.delfi.lv/misc/sitemap.php?TB_iframe=true&width=888&height=500");return!1}function changeState(){1060>=$(window).width()?$("#"+smap).hide("slow"):$("#"+smap).show("slow")}
$(document).ready(function(){$("iframe").attr("allowTransparency","true");$(document.body).prepend($("#"+smap).attr("id",smap));changeState();$(window).bind("resize",function(){changeState()});var b=document.getElementById(smap);changeObjPos(b,29,0);$(window).bind("scroll",function(){changeObjPos(b,29,0)})});
function changeObjPos(b,c,d){var e=document.body.scrollTop;b&&(b.style.position="absolute",0==e&&(e=window.pageYOffset?window.pageYOffset:document.body.parentElement?document.body.parentElement.scrollTop:0),b.style.top=e
"),$("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&($("body").append("
"),$("#TB_overlay").click(tb_remove));tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");null===b&&(b="");$("body").append("");
$("#TB_load").show();e=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var g=(-1!==c.indexOf("?")?c.substr(0,c.indexOf("?")):c).toLowerCase().match(e);if(".jpg"==g||".jpeg"==g||".png"==g||".gif"==g||".bmp"==g){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=TB_PrevURL=TB_PrevCaption="";TB_FoundURL=!1;if(d)for(TB_TempArray=$("a[@rel="+d+"]").get(),TB_Counter=0;TB_Counter Next > "):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML=" < Prev "):(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length);imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=
null;var e=tb_getPageSize(),f=e[0]-150,e=e[1]-150,g=imgPreloader.width,h=imgPreloader.height;g>f?(h*=f/g,g=f,h>e&&(g*=e/h,h=e)):h>e&&(g*=e/h,h=e,g>f&&(h*=f/g,g=f));TB_WIDTH=g+30;TB_HEIGHT=h+60;$("#TB_window").append(""+b+"
"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"
");$("#TB_closeWindowButton").click(tb_remove);if(""!==TB_PrevHTML){var k=function(){$(document).unbind("click",k)&&$(document).unbind("click",k);$("#TB_window").remove();$("body").append("
");tb_show(TB_PrevCaption,TB_PrevURL,d);return!1};$("#TB_prev").click(k)}if(""!==TB_NextHTML){var n=function(){$("#TB_window").remove();$("body").append("
");tb_show(TB_NextCaption,TB_NextURL,d);return!1};$("#TB_next").click(n)}document.onkeydown=
function(b){keycode=null==b?event.keyCode:b.which;27==keycode?tb_remove():190==keycode?""!=TB_NextHTML&&(document.onkeydown="",n()):188==keycode&&""!=TB_PrevHTML&&(document.onkeydown="",k())};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=c}else{var m=c.replace(/^[^\?]+\??/,""),l=tb_parseQuery(m);TB_WIDTH=1*l.width+30||630;TB_HEIGHT=1*l.height+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;-1!=c.indexOf("TB_iframe")?
(urlNoQuery=c.split("TB_"),$("#TB_iframeContent").remove(),"true"!=l.modal?$("#TB_window").append(""):($("#TB_overlay").unbind(),$("#TB_window").append(""))):"block"!=$("#TB_window").css("display")?"true"!=l.modal?$("#TB_window").append("
"):($("#TB_overlay").unbind(),$("#TB_window").append("
")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(b));$("#TB_closeWindowButton").click(tb_remove);
if(-1!=c.indexOf("TB_inline")){var p=$("#"+l.inlineId);/textarea|input|select/.test(p[0].nodeName.toLowerCase())?$("#TB_ajaxContent").html(""+p.val()+" "):($("#TB_ajaxContent").append(p.children()),$("#TB_window").unload(function(){$("#"+l.inlineId).append($("#TB_ajaxContent").children())}));tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else-1!=c.indexOf("TB_iframe")?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):
$("#TB_ajaxContent").load(c+="&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}l.modal||(document.onkeyup=function(b){keycode=null==b?event.keyCode:b.which;27==keycode&&tb_remove()})}catch(q){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();!document.body.style.maxHeight&&document.documentElement.clientHeight&&-1!==navigator.userAgent.indexOf("MSIE")&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow",""));document.onkeydown="";document.onkeyup="";$("select, iframe, object, embed").css({visibility:"visible"});
return!1}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});document.documentElement&&document.documentElement.clientHeight&&-1===navigator.userAgent.indexOf("MSIE 6")&&$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}
function tb_parseQuery(b){var c={};if(!b)return c;b=b.split(/[;&]/);for(var d=0;d=
c};b.minorAtLeast=function(c){return b.minor>=c};b.revisionAtLeast=function(c){return b.revision>=c};b.versionAtLeast=function(c){var d=[b.major,b.minor,b.revision],g=Math.min(d.length,arguments.length);for(i=0;i=arguments[i]){if(!(i+1=b.flashVer&&b.swfFile)||b.imgFile)for(c in e=b.redir+b.targetUrl,f={width:b.width,height:b.height},g="",f)f.hasOwnProperty(c)&&(g+=" "+c+'="'+f[c]+'"');if(d){e=b.redirection+"="+e;for(c in b.flashVar)b.flashVar.hasOwnProperty(c)&&(e+="&"+c+"="+b.flashVar[c]);d={flashvars:e,allowScriptAccess:"always",quality:"high",play:"true",menu:"false"};f=' ');e=' ',e+=" "+c+'="'+d[c]+'"');return f+(e+"> ")}return b.imgFile?(c=' '):b.htmlCode?b.htmlCode:""}
(function(b){function c(b,c,e,d){var f=this;f.w=!0;f.d=c||500;f.th=null;f.r=0;f.v=void 0===d?!1:d;f.i=e||"Doing something";f.a=b||function(){};f.aw=function(){var b;try{f.v&&console.log(f.i+" (attempt #"+ ++f.r+")...");b=f.a(f.r);if(!b)throw Error("Undisclosed circumstances");f.v&&console.log(f.i+" succeeded!");return b}catch(c){return f.v&&console.log(f.i+" failed due to "+c.stack),!1}};f.g=function(){f.w&&!f.aw()?f.th=setTimeout(f.g,f.d):f.w=!1};f.s=function(){f.w=!1;clearTimeout(f.th);return!0};
f.g()}function d(c,e,d){var f,g;g=b.document;f=g.createElement("script");g=g.getElementsByTagName("head")[0];f.src=c.replace(/"/g,""").replace(/&/g,"&");f.type="text/javascript";f.async=d?!1:!0;e&&(f.id=e);return g.appendChild(f)}function e(b,c,e,d){b.addEventListener?b.addEventListener(c,e,!!d):b.attachEvent("on"+c,function(){e.apply(b,arguments)})}var f,g={};b.delfi||(b.delfi={});f=b.delfi;f.async||(f.async={});f=f.async;f.RepeatUntilSucceed=c;f.repeatUntilSucceed=function(b,e,d,f){return new c(b,
e,d,f)};f.loadJS=d;f.loadJSOnce=function(b,c,e){var f=g[b];f||(f=g[b]=d(b,c,e));return f};f.addEventListenerTo=e;f.attachOnload=function(c){"complete"===document.readyState?setTimeout(c,0):e(b,"load",c)}})(window);var _sf_startpt=(new Date).getTime(),_sf_async_config={uid:46335,domain:"delfi.lv",useCanonical:!0,sections:"all delfi",authors:"editor"};window.delfi.async.attachOnload(function(){window.delfi.async.loadJSOnce("//static.chartbeat.com/js/chartbeat.js")});
try{console.log()}catch(a$$24){"object"!==typeof console&&(console={}),console.log=function(){}}
(function(b){function c(){function c(b){var d=-1;try{d=b.GetVariable("$version")}catch(e){}return d}var e,d=this;d.installed=!1;d.raw="";d.major=-1;d.minor=-1;d.revision=-1;d.revisionStr="";e=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(b){return c(b)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(b){var d="6,0,21";try{b.AllowScriptAccess="always",d=c(b)}catch(e){}return d}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(b){return c(b)}}];d.majorAtLeast=function(b){return d.major>=
b};d.minorAtLeast=function(b){return d.minor>=b};d.revisionAtLeast=function(b){return d.revision>=b};d.versionAtLeast=function(b,c,e){var z,f=[d.major,d.minor,d.revision],g=Math.min(f.length,arguments.length);for(z=0;z=arguments[z]){if(!(z+1e/f?{width:e,height:Math.round(e/g)}:{width:Math.round(f*g),height:f};c?r.css(e):r.animate(e,m)}function e(){var b=h;b&&b.fadeOut("fast",function(){n.css(q.off);b.remove();l.unbind("resize",d);l.unbind("scroll",d);n=h=t=r=null})}var f,g,k,n,h,t,r,l,q,m,p,v;if(g=c.jsTrusted){if(!1===g.call(c))return!1;
delete c.jsTrusted}f=c.unique;g="#"+f;k="ru_LV"===b.DLOCALE;c.html=['"].join(f);c.css=["","c{position:fixed;top:0}","c{background:white;visibility:hidden;z-index:100000;height:100%;width:100%;left:0}","h,","o{overflow:hidden}","o{margin:auto}","l{background:url(//g2.delphi.lv/mo/monster-close-dyx31"+(k?"rus":"")+".png) no-repeat;cursor:pointer;height:53px;width:310px;float:right}",
"e{display:table;margin:auto}","e-{vertical-align:middle;display:table-cell}",c.css].join(g);f=C.generic.call(this,c);if(!1===f)return f;n=$([A.body,A.documentElement]);h=$(g+"c");t=$(g+"l");r=$(g+"o");l=$(b);q={on:{height:"100%",overflow:"hidden"},off:{height:"",overflow:""}};m={queue:!1,duration:200};c=1E3*c.timeout;p=r.width()/r.height();v=$(g+"h").height();h.remove();$(n[0]).append(h);d(null,!0);n.css(q.on);h.hide().css("visibility","visible").fadeIn("fast");t.click(e);l.bind({resize:d,scroll:d});
c&&setTimeout(e,c);return f},background:function(c){function e(){if(0===c.scrollingSpeed)l.position="absolute";else if(100===c.scrollingSpeed)l.position="fixed";else{var b;b="undefined"!==typeof pageYOffset?pageYOffset:(B.clientHeight?B:D).scrollTop;l.position="fixed";l.top=-b*(100-c.scrollingSpeed)/100+"px"}if("true"===c.repeat)A.getElementById("wrapper")?l.height=A.getElementById("wrapper").offsetHeight+"px":l.height="5000px";else{b=l;var d=new Image;d.src=u;b.height=(0===d.height?2E3:d.height)+
"px"}}function k(){p=b.innerWidth||B.clientWidth||D.clientWidth;l.marginLeft=-p/2+"px";l.width=p+"px"}function n(){v=50+(event.clientX-p/2)/p/2*c.mouseSpeed}var h,r,l,q,p,v,x=c.container;q=c.targetURL;var u=c.imageFile,s=c.extraHtml,w="true"===c.repeat,D=A.body,B=A.documentElement,y=c.extraJs;if(!x)throw new ReferenceError("Missing container");h=x.style;if(!u)return C.html(c);r=F("div",{"class":"ado_background_c"});l=r.style;t(l,{backgroundImage:"url('"+u+"')",backgroundPosition:"center top",position:"fixed",
top:"0",left:"50%",backgroundRepeat:w?"repeat-y":"no-repeat"},!0);D.style.background=c.bgColor;g(d("style","0"!==c.gigaHole?"#rooftop {height: "+c.topHole+"px;}#rooftop_left, #rooftop_right {display:none;}#wrapper {background:none;}.top-banner, #top-banner {min-height:"+c.gigaHole+"px; background:none; margin: 0 !important;}#content {background:#fff; padding:15px 15px 0 15px;margin:0 !important;}#footer {margin: 0 auto !important;}#HeaderTop {background:#fff; padding: 0 15px !important;}.main-navigation {background:#fff; padding:0 15px; width:995px;}div.top-links {background:#fff; margin:0 !important; padding: 8px 15px; width:995px !important;}ul#hhTopics {;margin: 5px 0 0 0 !important;padding-left:15px;}#header {background:none; margin:0;padding-top:0 !important;width: 1025px !important}.top-nav {background: #fff; padding:15px !important; margin:0 !important;}#header header {background:#fff; padding: 15px;margin: 0 !important}.delfi-links {padding: 15px;}#header-logo-search {background-color: #fff !important; background-position: center top !important; padding: 0 15px 15px;}#pageheaderp1 {margin-bottom: 0 !important;}.rcpts-header-top {background: #fff; padding: 15px !important;}.rcpts-header {padding: 0 !important;}.giga-banner {margin:0px !important;}.rcpts-main-nav {background: #fff !important;}#md-nav {background: #fff; margin: 0 !important}.header-navbar {background:#fff; padding: 0 15px !important; margin: 0 !important}.header-logo {background: #fff; margin: 0 !important}#header-top {background: #fff; height:64px;}.header-menu {background: #fff;}.header-menu-fixed .header-menu {background: #000;}.header-wide-banner {padding: 0 !important;}.header-navigation {margin: 0 !important;}":
"#rooftop {height: "+c.topHole+"px;}#rooftop_left, #rooftop_right {display:none;}"));setInterval(function(){var b=parseFloat(l.backgroundPositionX),b=b+0.05*parseFloat(v-b);l.backgroundPosition=b+"% 0"},33);q&&"true"===c.clickable?(q=F("a",{href:c.redir+q,target:"_blank",rel:"nofollow",style:"font-size:0"}),x.appendChild(q),q.appendChild(r)):x.appendChild(r);e();k();b.attachEvent?(b.attachEvent("onscroll",e),b.attachEvent("onresize",k),b.attachEvent("onmousemove",n)):(b.addEventListener("scroll",
e,!1),b.addEventListener("resize",k,!1),b.addEventListener("mousemove",n,!1));"none"===h.display&&(h.display="");s&&(m(x,s),f(x.getElementsByTagName("script")));y&&x.appendChild(d("script",y));h=q=x=null;return!0}};C.simple=C.flash;B.ado=E;B=E=G=H=I=J=null})(window);function trackEvent(b,c,d){if(window._gaq&&_gaq.push)try{_gaq.push(["_trackEvent",b,c,d])}catch(e){}}
function trackUrl(b){if(!b.data.action)return!0;var c=$(this),d=c.attr("href"),c=c.attr("target")||"_self",e=b.data.category||"LinkTrack",f=b.data.action;b=b.data.special||!1;if(d){b=b?$(".main-navigation-item.is-hover a").html():d;console.log(b);trackEvent(e,f,b);if("_self"!=c)return!0;setTimeout(function(){document.location.href=d},100);return!1}}
$(function(){$(document).on("click",".article-related-a",{category:"Article",action:"RealtedArticles"},trackUrl);$(document).on("click","#LastAddedNewsWidgetContainer a",{category:"LatestMostreadBlock",action:"LatestArticleClick"},trackUrl);$(document).on("click","#MostReadNewsWidgetContainer a",{category:"LatestMostreadBlock",action:"MostreadArticleClick"},trackUrl);$(document).on("click","#fp-middle .lmrn_wrapper a",{category:"LatestMostreadBlock",action:"FpAccardionArticleClick"},trackUrl);$(document).on("click",
"a.main-navigation-item",{category:"LinkTrack",action:"Navigation 1"},trackUrl);$(document).on("click","a.top-links-item",{category:"LinkTrack",action:"Navigation 0"},trackUrl);$(document).on("click",".smallLinks a",{category:"LinkTrack",action:"Header links"},trackUrl);$(document).on("click",".main-navigation-dropdown-item a",function(b){b=$(this);var c=$(".main-navigation-item.is-hover a").html(),d=b.attr("href");if(window._gaq&&_gaq.push){try{_gaq.push(["_trackEvent","Dropdown navigation","navi-clicked",
c,1,!1])}catch(e){console.log(e)}setTimeout(function(){document.location.href=d},100);return!1}})});(function(b){if("http:"===b.document.location.protocol){var c=b.delfi.async;b.Tynt||(b.Tynt=[]);b.Tynt.push("bvXyxWrUmr47Iuacwqm_6l");c.attachOnload(function(){c.loadJSOnce("//tcr.tynt.com/ti.js")})}})(window);
jQuery(window).on("load",function(){var b=document.createElement("iframe");(b.frameElement||b).style.cssText="width:0;height:0;border:0";b.src="javascript:false";b.onload=function(){var c=b.contentDocument||b.contentWindow.document,d=c.createElement("script");d.src="//static-trackers.adtarget.me/javascripts/pixel.min.js";d.id="GIHhtQfW-atm-pixel";d["data-pixel"]=((window.delfi||{}).adtarget||{}).pixelId||"854a9c075cd9622fe1d03b34cf809910";c.body.appendChild(d)};document.body.appendChild(b)});
(function(){function b(){var b=document.location.hostname;return!b||2>b.split(".").length?!1:"."+b.split(".").slice(-2).join(".")}window.delfi||(window.delfi={});delfi.mobileSwitch={init:function(c){if(delfi.is){var d=delfi.is.android?window.screen.width/window.devicePixelRatio:window.screen.width,e=delfi.is.android?window.screen.height/window.devicePixelRatio:window.screen.height;!delfi.is.mobile||delfi.is.mobile&&1E3'),c=$(''+c.text+" "),c.click(function(){cookie.remove("fat",{path:"/",domain:b()})}),c.appendTo(d),d.prependTo("body"))}}}})();
(function(b){function c(){return b.delfiPupDetector.found=!0}b.delfiPupDetector=function(){if(b.delfiPupDetector.found)return!0;var d=!1;$("iframe").each(function(b,c){if(c.src.match(/akamaihd.net\/store\//)||c.src.match(/^https?:\/\/[a-z0-9]+\.myinfotopia\.com/)||c.src.match(/^https?:\/\/[a-z0-9]+\.edgecastcdn\.net/))d=!0});if(d)return c();$("script").each(function(b,c){c.src.match(/akamaihd.net\/loaders\//)&&(d=!0)});if(d)return c();$("object").each(function(b,c){var g=c.id||"",g=g.toLowerCase();
if(g.match(/_gpl/)||"dddcontent"===g)d=!0});return d||b.YontooClient?c():d};b.delfiPupDetector.found=!1})(window);jQuery(function(){function b(){c||(c=window.delfiPupDetector())&&window._dct&&_dct({s:"viirus",d:"t.delfi.lv"})}var c=!1;setTimeout(function(){b()},1E3);setTimeout(function(){b()},2E3);setTimeout(function(){b()},5E3);setTimeout(function(){b()},1E4)});
jQuery(function(){function b(b,f){var m,s;c=c||l.getElementsByTagName("script")[0];m=l.createElement("script");m.onreadystatechange=function(){if("loaded"===this.readyState||"complete"===this.readyState)s=!0};m.onload=function(){s=!0};m.src=b;c.parentNode.insertBefore(m,c);setTimeout(function(){s||g({s:f,d:d})},e)}var c,d="t.delfi.lv",e=3E3,f=window,g=f._dct,m=f.ado,l=f.document;g&&(m&&m instanceof AdoContainer||g({s:"blocked_adocean",d:d}),b("http://galv.hit.gemius.pl/_"+(new Date).getTime()+"/redot.js",
"blocked_gemius"))});
jQuery(function(){(function(b,c){function d(){try{return console.log.apply(console,arguments)}catch(b){}}function e(e){clearTimeout(m);delete g.fbdcb;var q=b._dct;e?l&&d("flash available"):(l&&d("flash unavailable"),q?q({s:"blocked_flash",d:"t.delfi.lv"}):l&&d("tracking unavailable"));c.body.removeChild(f)}var f,g,m,l=!0;(function(){var c=b.navigator.plugins,d=b.ActiveXObject;return!!(c&&c.length?c["Shockwave Flash"]:d&&new d("ShockwaveFlash.ShockwaveFlash"))})()?(f=c.createElement("embed"),f.type=
"application/x-shockwave-flash",f.src="//g2.delphi.lv/i/dy182.swf",f.setAttribute("flashvars","cbn=delfi.fbdcb"),f.setAttribute("allowscriptaccess","always"),f.setAttribute("wmode","transparent"),f.setAttribute("width",0),f.setAttribute("height",0),g=b.delfi=b.delfi||{},g.fbdcb=e,c.body.appendChild(f),m=setTimeout(e,3E3)):l&&d("flash not installed")})(window,document)});
delfi.dropdownHeadlines=function(b){var c,d=0,e=$(".main-navigation-dropdown");$(".current");var f=$("li.main-navigation-item.dropdown"),g=$(".sub-navigation"),m=$(".main-navigation-dropdown-headlines");g.on("mouseenter mouseleave",function(){$(this).toggleClass("is-hover")});e.on("mouseenter mouseleave",function(){$(this).toggleClass("is-hover")});f.mouseover(function(){e.hasClass("is-hovered")||(trackEvent("Dropdown navigation test","Opened",0),c=setInterval(function(){d++},1E3));var f=$(this);
if(!g.hasClass("is-hover")){e.css("top","33px");e.find(".main-navigation-dropdown-inner").css("margin-top","5px;");$("*[class*='mn-nvgtn-drpdwn-']").removeClass(function(b,c){return(c.match(/\bmn-nvgtn-drpdwn-\S+/g)||[]).join(" ")});e.addClass("mn-nvgtn-drpdwn-"+f.data("channel"));$(".main-navigation-item.selected").removeClass("is-hover");$(".main-navigation-item.selected:not(.current)").removeClass("selected");f.addClass("selected hovered is-hover");m.html("");var p,q,f=f.data("channel"),u=$(" ").addClass("clear");
for(p in b[f]){q=b[f][p];var s="http://www.delfi.lv/a/"+q.id,r=q.title;0!=q.comment_count&&(r+=' ");q=$(" ").addClass("main-navigation-dropdown-item").append($(" ").attr("href",s).addClass("main-navigation-item-img").append($(" ").attr("src",q.image)).append($("
").addClass("main-navigation-dropdown-item-time").html(q.time_ago))).append($(" ").attr("href",s).html(r));0===parseInt(p)%8&&m.append(u);m.append(q)}e.slideDown(50).addClass("is-hovered")}});
f.mouseout(function(){var b=$(this);setTimeout(function(){b.removeClass("hovered")},50);setTimeout(function(){$(".hovered").length||e.hasClass("is-hover")||g.hasClass("is-hover")||(b.hasClass("current")||b.removeClass("selected"),e.stop().hide().removeClass("is-hovered"),clearInterval(c),d=0)},500)});e.mouseout(function(){setTimeout(function(){$(".hovered").length||e.hasClass("is-hover")||g.hasClass("is-hover")||($(".main-navigation-item.selected").removeClass("is-hover"),$(".main-navigation-item.selected:not(.current)").removeClass("selected"),
e.hide().removeClass("is-hovered"),clearInterval(c),d=0)},500)});g.mouseout(function(){setTimeout(function(){$(".hovered").length||e.hasClass("is-hover")||g.hasClass("is-hover")||($(".main-navigation-item.selected").removeClass("is-hover"),$(".main-navigation-item.selected:not(.current)").removeClass("selected"),e.hide().removeClass("is-hovered"),clearInterval(c),d=0)},500)})};
function timeSince(b){b=Math.floor((new Date-b)/1E3);var c=Math.floor(b/31536E3);if(1f&&g[0];)g.remove(),g=c.find("li:last"),e=c.height();this.shorten=d}function l(b,c,d){b.$this=$(b);b.$news=$(c||window.document.createElement("
"));b.cookieValue=d;b.deactivate=g;b.activate=f;d===s&&(q=b);b.$this.click(e);b.switchNews=e;return b}function p(c,e,f){e=l(b.find("a"+c)[0],b.find(e)[0],f);e.$wrapper=b.find("li"+c);e.shorten=u[0]?
m:d;return e}var q,u,s;(function(){var d,e=[];s=+Get_Cookie("mostread_lastadded");!1===c?(d=b.find(".latest-mostread-tab"),b.find(".latest-mostread-nav-item").each(function(b){e.push(l(this,d[b],b))})):(c=!0,u=$("#fp-middle"),e[0]=p(".lmrn-header-latest","#LastAddedNewsWidgetContainer",0),e[1]=p(".lmrn-header-mostread","#MostReadNewsWidgetContainer",1));e[0].other=e[1];e[1].other=e[0];q.switchNews()})()}
function sbookmarks_side(b){function c(b){var d,e=!1;if(b instanceof $)e=b;else if(b instanceof Array)for(d=0;!e[0]&&dq&&dc)f.on("scroll",d);else f.off("scroll",d),e=c;r=c;h=e;d(!0)}var f,g,m,l,p,q,u,s,r,h,k;b=function(b,d){var e,f,g=d.selectors,k=d.config;b||(b={});for(e in g)if(g.hasOwnProperty(e)){f=c([b[e],g[e]]);if(!f[0])throw f=f.selector,new ReferenceError("sbookmarks_side: "+e+" element "+(f?'"'+f+'"':"")+" not found");b[e]=$(f[0])}for(e in k)k.hasOwnProperty(e)&&!b[e]&&(b[e]=k[e]);return b}(b,{selectors:{widget:"#sbookmarks-left",wrapper:"#wrapper",boundTop:[".article-image-source",
".article-lead-image-source",".article-origin:last"],boundBottom:[".article-body",".article-content"]},config:{getTopMin:function(b,c){return b.offset().top+b.outerHeight()},getTopMax:function(b,c){return b.offset().top+b.outerHeight()-c},getTopOffset:function(b,c){return(b-c)/3}}});return function(b){var c,d,k,h;g=c=$(window);f=$(window.document);m=d=b.widget;l=h=b.wrapper;d.parent()!==h&&(k=d[0],k.parentNode.removeChild(k),h[0].appendChild(k));p=d.outerWidth();q=d.outerHeight();u=b.boundTop;s=b.boundBottom;
c.on({resize:e,load:e});return b}(b)}try{console.log()}catch(a$$27){"object"!==typeof console&&(console={}),console.log=function(){}}
(function(b){function c(b){for(var c in b)if(b.hasOwnProperty(c))return!1;return!0}function d(b,c){var d=g.createTextNode("");b.parentNode.replaceChild(d,b);c.appendChild(b);return d}function e(b,c){var d,e,f,k=b.childNodes,n=g.createDocumentFragment();d=0;for(e=k.length;d