var _noteGlAnalytics; cdDepths=window.screen.colorDepth; document.cookie="coook"; _noteGlAnalytics='';
if (document.cookie) { _clcook=1; } else { _clcook=0; }
if (_pagename) { _pname=_pagename; } else { _pname=''; }
if (_clientlang) { _clang=_clientlang; } else { _clang=''; }
if (window['_notevalute']==void 0) { _notevalute='LVL'; }
if (window['_segment']==void 0) { _segment=0; }
if (window['_notegoal']!=void 0) { _noteGlAnalytics='&gt='+_notegoal+'&vlt='+_notevalute; if (window['_notegoalprice']!=void 0) { _noteGlAnalytics=_noteGlAnalytics+'&gp='+_notegoalprice; } }
sw=window.screen.width;
sh=window.screen.height;
ref=escape(document.referrer);
locat=escape(location.href);
_title=escape(document.title);
nt_date=new Date();
var _tmz=escape(nt_date.getTimezoneOffset());
nt_image=new Image(1,1);
nt_image.src='http://www.webstatistika.lv/nt/?cookie='+_clcook+'&color='+cdDepths+'&ww='+sw+'&wh='+sh+'&ref='+ref+'&loc='+locat+'&title='+_title+'&tmz='+_tmz+'&cid='+_clientId+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+_noteGlAnalytics+'&rnd='+Math.random();
function _treyui(inputstring, separators, includeEmpties) {
inputstring=new String(inputstring);
separators=new String(separators);
if(separators=="undefined") {
separators=" :;";
}
fixedExplode=new Array(1);
_currentElement="";
_count=0;
for(x=0; x < inputstring.length; x++) {
_char=inputstring.charAt(x);
if(separators.indexOf(_char)!=-1) {
if ( ( (includeEmpties <= 0) || (includeEmpties==false)) && (_currentElement=="")) {
} else {
fixedExplode[_count]=_currentElement;
_count++;
_currentElement="";
}
} else {
_currentElement+=_char;
}
}
if (( ! (includeEmpties <= 0) && (includeEmpties!=false)) || (_currentElement!="")) {
fixedExplode[_count]=_currentElement;
}
return fixedExplode;
}
function _nt_prepare(e) {
pn1=window.event ? window.event.srcElement : e.target;
i=0;
while(pn1.tagName) {
if(pn1) {
if (pn1.tagName.toLowerCase()=='a' || pn1.tagName.toLowerCase()=='area') {
_ok=1;
hr=pn1.getAttribute('href');
_curExplode=new Array();
_curExplode=_treyui(hr, "/", 0);
_i=0;
if (_curExplode[1]) {
while (_clientindex[_i]) {
if (_curExplode[1].indexOf(_clientindex[_i]) > -1) {
_ok=0;
break;
}
_i++;
}
}
if (_ok==1 && hr.indexOf('javascript:')==-1 && hr.indexOf('://') > -1) {
hr=escape(hr);
nt_image2=new Image(1,1);
nt_image2.src='http://www.webstatistika.lv/nt/?exit=1&exitpage='+hr+'&loc='+locat+'&title='+_title+'&cid='+_clientId+'&sq='+_segment+'&clang='+_clang+'&pagename='+_pname+'&rnd='+Math.random();
}
break;
} else {
if (!pn1.parentNode) {
break;
}
pn1=pn1.parentNode;
}
} else {
break;
}
i++;
}
}
var _noteRoot=window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null;
if (_noteRoot){
if (_noteRoot.addEventListener) {
_noteRoot.addEventListener("click", _nt_prepare, false);
}
else if (_noteRoot.attachEvent) {
document.attachEvent("onclick", _nt_prepare);
}
}