var tomo=function(){function ia(){B=void 0;q=g[C]=void 0;Q=!1;D=0;p=E=void 0;R=!1;F=u=0;G=void 0;f(o)&&(a[H]=o)}function f(a){return typeof a!="undefined"&&a!=null}function i(a,b,d){b=="pageshow"&&!("on"+b in g)&&(b="load");b=="pagehide"&&!("on"+b in g)&&(b="unload");b=="visibilitychange"&&!f(e.hidden)&&(f(e.mozHidden)?b="moz"+b:f(e.webkitHidden)?b="webkit"+b:f(e.msHidden)&&(b="ms"+b));var i=function(a){a=a||event;if(!a.target&&a.srcElement)a.target=a.srcElement;if(f(a.button)){var c;c=e.documentElement.style;
c=c.scrollbar3dLightColor!=void 0?c.opacity!=void 0?9:c.msBlockProgression!=void 0?8:c.msInterpolationMode!=void 0?7:c.textOverflow!=void 0?6:5.5:0;if(c>0)if(a.button&1)a.mouseButton=0;else if(a.button&2)a.mouseButton=2;else{if(a.button&4)a.mouseButton=1}else a.mouseButton=a.button}var b;try{if(b=d(a),b===!1)return a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation(),a.returnValue=!1,a.preventDefault&&a.preventDefault(),!1}catch(g){}return!0},r=b;b=="DOMContentLoaded"&&(r="load");a.addEventListener?
a.addEventListener(b,i,!1):a.attachEvent?a.attachEvent("on"+r,i):a["on"+r]=i;return{e:a,n:b,cn:r,f:i}}function v(a,b){var d=/^[fht]+ps?:\/*[^?]+[?]([^#]+)/.exec(a);d=d?RegExp("(?:^|&)"+b+"=([^&]*)").exec(d[1]):void 0;return f(d)?decodeURIComponent(d[1]):void 0}function I(a,b){var d=/^[fht]+ps?:\/*(?:[^@]+@)?([^:\/?#]+)/.exec(a);return d?d[1]:b?"":a}function S(){if(f(e.hidden))return e.visibilityState;else if(f(e.mozHidden))return e.mozVisibilityState;else if(f(e.webkitHidden))return e.webkitVisibilityState;
else if(f(e.msHidden))return e.msVisibilityState;return"visible"}function w(a){var b=(new Date).getTime();a?(Q=!0,E=b,f(p)||(p=b)):(E=0,f(p)&&(D+=b-p,p=void 0))}function Z(){var a=D;f(p)&&(a+=(new Date).getTime()-p);return a}function T(){f(J)&&clearTimeout(J);J=setTimeout(h,500)}function va(a,b,d,e){function r(b){f(b)&&(b="&reason="+encodeURIComponent(b.replace(/^\s+|\s+$/g,"")));var e=new Image(1,1);i(e,"load",function(){d&&d()});e.src=a+(a.indexOf("?")>=0?"&":"?")+h+"&img=1"+b+"&rnd="+Math.round(Math.random()*
999999)}f(e)||(e=!0);var h="",j;for(j in b){var k=b[j];if(typeof k=="number"||typeof k=="string")h+=(h!=""?"&":"")+j+"="+encodeURIComponent(k)}var m;b=!1;j=I(a)!=I(l.href);if(g.XDomainRequest&&j)m=new g.XDomainRequest;else if(g.XMLHttpRequest)m=new g.XMLHttpRequest;else if(g.ActiveXObject)try{m=new ActiveXObject("Msxml2.XMLHTTP")}catch(n){try{m=new ActiveXObject("Microsoft.XMLHTTP")}catch(o){}}if(!m)return r("no XMLHttpRequest support"),!1;try{m.open("POST",a,e);m.onreadystatechange=function(){if(m.readyState==
4)if(m.status==200)try{d&&d(m)}catch(a){console.log("tomo: postRequest: error: "+a)}else r("code="+m.status+",text="+m.statusText)};try{m.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(q){b=!0}m.send((b?"!POST&":"")+h)}catch(p){r("postRequest exception: "+p.message)}return!0}function h(c,b,d){f(d)||(d=0);if(d>10)f(b)&&b();else{if(f(G))a[$]=G;else if(!f(a[j])){setTimeout(function(){h(c,b,d+1)},100);return}K&&(a[U]=Z());u=a[U];if(!f(L))L=e.getElementById(ja).src,L+=(L.indexOf("?")!=
-1?"&":"?")+"post=1";a[M]&&history.replaceState&&(a[wa]=1);g.localStorage&&localStorage[aa]&&(a[xa]=localStorage[aa]);va(L,a,function(a){if(f(a)){var c;if(a.responseText.length>0){c=eval("("+a.responseText+")");if(c[$]){G=c[$];var d=e.getElementById(ka);if(d&&d.value==="")d.value=G;c[U]&&(D+=parseInt(c[U]))}c[la]&&g.localStorage&&(localStorage[aa]=c[la])}ba&&ba(c,a)}f(b)&&b(c)},!c);a={};f(J)&&clearTimeout(J)}}function ma(c){f(c)||(c=0);if(!(c>10)){a[x]=g.innerWidth;a[A]=g.innerHeight;if(!a[x]&&!a[A]&&
(a[x]=e.documentElement.clientWidth,a[A]=e.documentElement.clientHeight,!a[x]&&!a[A]))a[x]=e.body.clientWidth,a[A]=e.body.clientHeight;a.dbg_framed=window!=window.top?1:0;a[x]<50||a[A]<50?setTimeout(function(){ma(c+1)},1E3):c>0&&T()}}function ya(){var c=v(l.href,"ref");if(f(c))a[M]=c,s=l.href.replace(/\?.*$/,l.search.replace(/(\?|&)ref=[^&]*/,"$1")).replace(/[?&]+$/,"").replace(/&&/,"&").replace(/\?&/,"?");else if(c=/(?:#|;)ref=([^;]*)/.exec(l.hash))a[M]=decodeURIComponent(c[1]),c=l.hash.replace(/(#|;)ref=[^;]*/,
"$1").replace(/[#;]+$/,"").replace(/;;/,";").replace(/#;/,"#"),s=l.href.replace(/#.*$/,c);ma();a[za]=N.width;a[Aa]=N.height;a[Ba]=N.availWidth;a[Ca]=N.availHeight;a[Da]=N.colorDepth;a[Ea]=-(new Date).getTimezoneOffset();e.cookie!=""?a[na]=1:(e.cookie=ca+"=1",a[na]=e.cookie.match(RegExp("(^|;)\\s*"+ca+"=1\\s*(;|$)"))?1:0,e.cookie=ca+"=1;expires="+(new Date(0)).toUTCString());a[V]=0;a[Fa]=da.javaEnabled()?1:0;a[W]=0;a[X]=0;for(c=a[Y]=0;c<da.mimeTypes.length;c++){var b=da.mimeTypes[c].type;b.match(/^application\/x-shockwave-flash$/)&&
(a[V]=1);b.match(/^video\/quicktime$/)&&(a[W]=1);b.match(/^application\/x-silverlight$/)&&(a[X]=1);b.match(/^application\/x-mplayer2$/)&&(a[Y]=1)}if(g.ActiveXObject){if(!a[V])try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a[V]=f(d)?1:0}catch(i){}if(!a[W])try{d=new ActiveXObject("QuickTime.QuickTime"),a[W]=f(d)?1:0}catch(h){}if(!a[X])try{d=new ActiveXObject("AgControl.AgControl"),a[X]=f(d)?1:0}catch(j){}if(!a[Y])try{d=new ActiveXObject("WMPlayer.OCX"),a[Y]=f(d)?1:0}catch(k){}}d=e.createElement("div");
d.style.position="absolute";d.style.left="0";d.style.top="-100px";d.style.width="20px";d.setAttribute("class","adbottom");e.body.appendChild(d);a[Ga]=d.offsetWidth?0:1;e.body.removeChild(d);S()=="prerender"&&(a[oa]=1,y=!0);S()=="hidden"&&(a.dbg_vis_hidden=1)}function pa(){a[k]="";try{a[k]=g.top.document.referrer}catch(c){if(g.parent)try{a[k]=g.parent.document.referrer}catch(b){a[k]=""}}if(a[k]==="")a[k]=e.referrer;var d=v(l.href,"oref");f(d)&&(a[M]=I(a[k]),a[k]=d,s=l.href.replace(/\?.*$/,l.search.replace(/(\?|&)oref=[^&]*/,
"$1")).replace(/[?&]+$/,"").replace(/&&/,"&").replace(/\?&/,"?"));d=v(l.href,"rref");f(d)&&(a[M]=I(d),s=l.href.replace(/\?.*$/,l.search.replace(/(\?|&)rref=[^&]*/,"$1")).replace(/[?&]+$/,"").replace(/&&/,"&").replace(/\?&/,"?"));a[qa]=e.title;a[j]=l.href;t=e.domain.replace(/\.+$/,"");if(t==="translate.googleusercontent.com")a[k]===""&&(a[k]=a[j]),o=v(a[j],"tl"),a[j]=v(a[j],"u"),a[H]=o;else if(t==="www.babelfish.de")a[k]===""&&(a[k]=a[j]),o=v(a[j],"dst"),a[j]=v(a[j],"url"),a[H]=o;else if(t==="ceviri.yandex.net")if(a[x]){if(a[k]===
""&&(a[k]=a[j]),d=a[j].match(/^https?:\/\/[^\/]+\/tr-url\/..[+-](..)\.tr\/(.+)$/))o=d[1],a[j]="http://"+d[2],a[H]=o}else a[j]=void 0;else if(t==="cc.bingj.com"||t==="webcache.googleusercontent.com"||t.substr(0,5)==="74.6.")a[j]=e.links[0].href;if((d=e.getElementById(ka))&&d.value!=="")a[Ha]=d.value}function Ia(){ya();pa();if(f(a[j])&&(f(s)&&h(!1,function(){history.replaceState?history.replaceState("","",s):l.replace(s)}),!f(s)||history.replaceState))i(g,"DOMContentLoaded",Ja),i(g,"pageshow",Ka),i(g,
"focus",La),i(g,"blur",Ma),i(e,"focusin",Na),i(e,"focusout",Oa),i(e,"visibilitychange",Pa),i(g,"pagehide",Qa),setTimeout(Ra,2E3),i(e,"click",n),i(e,"mouseup",n),i(e,"mousedown",n),i(e,"mousemove",n),i(e,"mousewheel",n),i(g,"DOMMouseScroll",n),i(e,"wheel",n),i(g,"scroll",n),i(e,"keypress",n),i(e,"keydown",n),i(e,"keyup",n),setInterval(Sa,Ta),y||(B=(new Date).getTime())}function Ja(){if(!ra&&(ra=!0,e.links))for(var a=0;a<e.links.length;a++){for(var b=e.links[a],d=!1,f=b.className.split(" "),g=0;g<f.length&&
!d;g++)for(var h=0;h<ea.length&&!d;h++)f[g]==ea[h]&&(d=!0);d||i(b,"click",Ua)}}function Ka(){O&&(P=O=!1,pa(),ia());if(!P){P=!0;f(g[C])&&(q=(new Date).getTime()-g[C].getTime(),a[sa]=q);if(!y||g.opera)z=!0;h()}}function Ra(){if(!P)a.dbg_lastEvent="onLoadTimeout",h()}function La(){y||(w(!0),z=!0)}function Ma(){fa||(z=!1)}function Na(){g.opera||(fa=!0,y||(w(!0),z=!0))}function Oa(){g.opera||(fa=!0,z=!1)}function Pa(){S()=="visible"?(y&&(a[oa]=0,h(),y=!1,B=(new Date).getTime()),w(!0),z=!0):w(!1)}function Qa(){if(!O){O=
!0;var c=(new Date).getTime();if(!(F+3E3>c))P||(f(g[C])?(q=c-g[C].getTime(),q=-q):q=-1,a[sa]=q),a.dbg_lastEvent="onPagehide",K&&h(!0)}}function n(){if(S()=="visible"){var a=new Date;!Q&&!E&&f(B)&&(D+=a.getTime()-B);w(!0)}}function Sa(){if(!O&&Q){var c=!1;if(E+(z?Va:Wa)>(new Date).getTime()){R=!1;var b=u*(g.opera?1.5:3);b-u<5E3&&(b=u+5E3);if(K&&Z()>=b)c=!0,a.dbg_lastEvent="onTick active",a.dbg_lastPingTime=u,a.dbg_nextPingTime=b}else if(!R)w(!1),K&&Z()>u+2E3&&(c=!0),R=!0,a.dbg_lastEvent="onTick inactive";
c&&h()}}function Ua(c){if(!(c.button!=0&&c.button!=1)){for(var b=c.target;b&&!b.tagName.match(/^a(rea)?$/i);)b=b.parentNode;if(b&&(c=b.href)&&!c.match(/^((java|j|vb)script|mailto):/i)){var d=(new Date).getTime();if(!ga[c]||ga[c]+2E3<d){ga[c]=d;var e=(b.hostname||I(c,!0)).toLowerCase();b.getAttribute("data-tomo-imgzoom")?(a[ta]=c,h()):(b=b.getAttribute("data-tomo-sectionexpand"))?(a[ua]=b,h()):e!=t?(a[Xa]=c,F=d,h(!0)):c.match(/\.(7z|aac|as[fx]|avi|bin|csv|dat|deb|dmg|doc[mx]?|dot|exe|gif|gz|g?zip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov|ms[ip]|od[bfgpst]|og[gv]|pdf|png|pp[st]x?|psd?|qtm?|ra[mr]?|rpm|tar|t?bz2?|tgz|tiff?|torrent|txt|wav|wm[av]|xls[mx]?|xlt|xml|z)$/i)&&
(a[Ya]=c,F=d,h(!0))}}}}var ja="tomoScript",ka="tomoHistoryInput",C="_tomoStartTime",ca="_tomotest",Va=12E4,Wa=3E4,aa="tomo.vid",L,P=!1,ra=!1,y=!1,Q=!1,O=!1,a={},q,t,s,o,ea=[],G,ba,K=!0,B,E,p,D=0,Ta=1E3,R=!1,u=0,F=0,z=!0,fa=!1,ga={},J,$="pv",la="vi",qa="pt",H="la",Ea="ut",za="sw",Aa="sh",Ba="aw",Ca="ah",Da="sc",na="co",sa="pl",M="ca",wa="cl",j="pu",k="re",x="vw",A="vh",V="fl",Fa="ja",W="qt",X="sl",Y="wm",Ga="ab",oa="pr",Ha="op",U="at",xa="dv",Xa="ou",Ya="du",ta="iu",ua="se",e=document,da=navigator,
N=screen,g=window,l=location,ha={autostart:function(){e.getElementById(ja).src.match(/[?&]autostart=1(&|$)/)&&ha.start()},start:function(){Ia()},setResponseHandler:function(a){ba=a},setActivityTrackingEnabled:function(a){K=a},setPageLanguage:function(c){f(o)||(o=c,a[H]=c)},setVisitorVariable:function(c,b){a["vv_"+c]=b;T()},setSessionVariable:function(c,b){a["sv_"+c]=b;T()},setPageviewVariable:function(c,b){a["pv_"+c]=b;T()},ignoreLinkClass:function(a){ea.push(a)},imgZoom:function(c){a[ta]=c;h()},
sectionExpand:function(c){a[ua]=c;h()},siteSearch:function(c){a.ss=c;h(!0)},action:function(c,b,d,e){f(b)&&(a["ac_"+c+"_u"]=b);f(d)&&(a["ac_"+c+"_d"]=d);!f(b)&&!f(d)&&(a["ac_"+c+"_d"]="");e?(F=(new Date).getTime(),h(!0)):h()},newPage:function(c){a.dp=1;a["n_"+qa]=e.title;a["n_"+j]=l.href;if(f(c))for(var b in c)a["n_pv_"+b]=c[b];h();ia();w(!0)}};ha.autostart();return ha}();
