var qsParm = new Array(); function qs() { var query = window.location.search.substring(1); var parms = query.split('&'); for (var i=0; i 0) { var key = parms[i].substring(0,pos); var val = parms[i].substring(pos+1); qsParm[key] = val; } } } function getScriptParams(script_name){ var scripts = document.getElementsByTagName("script"); for(var i=0; i -1) { var pa = scripts[i].src.split("?").pop().split("&"); var p = {}; for(var j=0; j 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; } qs(); getScriptParams('counter'); if(qsParm["a"] === undefined){ var aff = getCookie("a"); if(aff==null || aff==""){ var aff = 555; setcookie('a', aff, 30, 'index.html', document.location.hostname); } }else { var aff = qsParm["a"]; setcookie('a', aff, 30, 'index.html', document.location.hostname); } if( qsParm["q"] === undefined ) { var keyword = getCookie("kwd"); if(keyword==null || keyword==""){ var keyword = 0; setcookie('kwd', keyword, 1, 'index.html', document.location.hostname); } }else { var keyword = qsParm["q"]; setcookie('kwd', keyword, 1, 'index.html', document.location.hostname); } if( qsParm["s"] === undefined ) { var sub = getCookie("s"); if(sub==null || sub==""){ var sub = 0; setcookie('s', sub, 1, 'index.html', document.location.hostname); } }else { var sub = qsParm["s"]; setcookie('s', sub, 1, 'index.html', document.location.hostname); } if( qsParm["pid"] === undefined ) { var pid = 0; }else { var pid = qsParm["pid"]; } if( qsParm["guid"] === undefined ) { var guid = 0; }else { var guid = qsParm["guid"]; } if( qsParm["module"] === undefined ) { var module = ''; }else { var module = qsParm["module"]; } if( qsParm["rid"] === undefined ) { var rid = ''; }else { var rid = qsParm["rid"]; } if(document.referrer != '' && document.referrer!=null && document.referrer !== undefined){ var refDomain = document.referrer.split('index.html')[2]; var pos = refDomain.indexOf('?'); if (pos > 0) { refDomain = refDomain.substring(0,pos); } if(refDomain != document.location.hostname){ var ref = getCookie("ref"); if(ref==null || ref==""){ var ref = document.referrer; setcookie('ref', ref, 1, 'index.html', document.location.hostname); } }else { var ref = 0; } }else { var ref = 0; } var uniq = getCookie("uniq"); if(uniq==null || uniq==""){ setcookie('uniq', 1, 1, 'index.html', document.location.hostname); uniq = 1; }else { uniq = 0; } var sheight = window.screen.availHeight var swidth = window.screen.availWidth var image = document.createElement('img'); image.src = location.protocol+'//tera-stat.com/add/?'+'aff='+aff+'&sub='+sub+'&q='+keyword+'&ref='+_utf8_encode(ref)+'&pid='+pid+'&guid='+guid+'&u='+uniq+'&module='+module+'&ua='+_utf8_encode(navigator.userAgent)+'&width='+swidth+'&height='+sheight+'&rid='+rid; image.style.position = 'absolute;' image.id = "imgNi5eig8oxa"; document.getElementsByTagName('body')[0].appendChild(image); /* var img = ''; document.write(img); */