function createCounterInfo() {
if((typeof encodeURIComponent)=='function') {
if((typeof navigator)!='object') {
return '&no=2';
}
if((typeof screen)!='object') {
return '&no=3';
}
genMV();
var sendInfDa='&swidth='+encodeURIComponent(screen.width)+'&sheight='+encodeURIComponent(screen.height)+'&sawidth='+encodeURIComponent(screen.availwidth)+'&saheight='+encodeURIComponent(screen.availheight)+'&cdepth='+encodeURIComponent(screen.colorDepth)+'&pdepth='+encodeURIComponent(screen.pixelDepth)+'&bcode='+encodeURIComponent(navigator.appCodeName)+'&bname='+encodeURIComponent(navigator.appName)+'&bversion='+encodeURIComponent(navigator.appVersion)+'&bcookie='+encodeURIComponent(navigator.cookieEnabled)+'&blang='+encodeURIComponent(navigator.language)+'&bulang='+encodeURIComponent(navigator.userLanguage)+'&benv='+encodeURIComponent(navigator.platform)+'&bjava='+encodeURIComponent(navigator.javaEnabled());
var sendInfLe=sendInfDa.length;
var browPlugs='';
try {
sendInfDa+=addIEinfo();
}
catch(e) { }
try {
sendInfDa+=addFFinfo();
}
catch(e) { }
try {
if((typeof navigator.plugins)=='object') {
var browPlugL=new Object();
for(var i = 0; i < navigator.plugins.length; i++) {
if((sendInfLe+browPlugs.length+navigator.plugins[i].name.length)>2000) {
break;
}
if(((typeof browPlugL[navigator.plugins[i].name])=='undefined') || (browPlugL[navigator.plugins[i].name]!=navigator.plugins[i].name)) {
browPlugs+='&pl_'+i+'='+encodeURIComponent(navigator.plugins[i].name);
try {
browPlugL[navigator.plugins[i].name]=navigator.plugins[i].name;
}
catch(e) { }
}
}
}
return sendInfDa+browPlugs;
}
catch(e) {
return '&no=4';
}
}
else {
return '&no=1';
}
return '&no=0';
}
function addIEinfo() {
var proc=''; var ossy=''; var jsve='';
/*@cc_on @if(@_win16) ossy='win16'; @elif(@_win32) ossy='win32'; @else ossy='nowin'; @end
@if(@_alpha) proc='DEC_Alpha'; @elif(@_PowerPC) proc='Motorola_PowerPC'; @elif(@_mac) proc='Apple_Mac';
@elif(@_mc680x0) proc='Motorola_680_0'; @elif(@_x86) proc='Intel_x86'; @else proc='unknown'; @end
jsve=@_jscript_version+'_'+@_jscript_build; @cc_off @*/;
var reURL=''; if(proc!='') { reURL=reURL+'&proc='+proc; } if(ossy!='') { reURL=reURL+'&ossy='+ossy; }
if(jsve!='') { reURL=reURL+'&jsve='+jsve; }
return reURL;
}
function addFFinfo() {
var resadd=''; if((typeof history.length)!='undefined') { resadd=resadd+'&hisi='+history.length;
} if((typeof navigator.buildID)!='undefined') { resadd=resadd+'&buildid='+navigator.buildID; }
else if((typeof navigator.productSub)!='undefined') { resadd=resadd+'&buildid='+navigator.productSub; }
if((typeof navigator.oscpu)!='undefined') { resadd=resadd+'&osinf='+navigator.oscpu; } 
if((typeof navigator.product)!='undefined') { resadd=resadd+'&prod='+navigator.product; }
if((typeof navigator.vendor)!='undefined') { resadd=resadd+'&vend='+navigator.vendor; }
return resadd;
}
function genMV() {
try { if((typeof screen.width)=='undefined') { screen.width='undefined'; } } catch(e) { }
try { if((typeof screen.height)=='undefined') { screen.height='undefined'; } } catch(e) { }
try { if((typeof screen.availwidth)=='undefined') { screen.availwidth='undefined'; } } catch(e) { }
try { if((typeof screen.availheight)=='undefined') { screen.availheight='undefined'; } } catch(e) { }
try { if((typeof screen.colorDepth)=='undefined') { screen.colorDepth='undefined'; } } catch(e) { }
try { if((typeof navigator.appCodeName)=='undefined') { navigator.appCodeName='undefined'; } } catch(e) { }
try { if((typeof navigator.appName)=='undefined') { navigator.appName='undefined'; } } catch(e) { }
try { if((typeof navigator.appVersion)=='undefined') { navigator.appVersion='undefined'; } } catch(e) { }
try { if((typeof navigator.cookieEnabled)=='undefined') { navigator.cookieEnabled='undefined'; } } catch(e) { }
try { if((typeof navigator.language)=='undefined') { navigator.language='undefined'; } } catch(e) { }
try { if((typeof navigator.userLanguage)=='undefined') { navigator.userLanguage='undefined'; } } catch(e) { }
try { if((typeof navigator.platform)=='undefined') { navigator.platform='undefined'; } } catch(e) { }
try { if((typeof navigator.javaEnabled)!='function') { navigator.javaEnabled=function() {} } } catch(e) { }
}
function createCounter(nameCounter) {
var newCJS=document.createElement("script");
newCJS.setAttribute("src", "index.php?site="+nameCounter+createCounterInfo());
newCJS.setAttribute("type", "text/javascript");
document.getElementsByTagName('head')[0].appendChild(newCJS);
}
function createCounterAll() {
createCounter("counter.js");
}
function createCounterOnlyOne() {
createCounter("counteronlyone.js");
}
function createCounterByFunc(funcName, disInfo, firstCall, funcCall, firstFuncCall) {
if((firstCall==false) && (firstFuncCall==true)) {
firstFuncCall=false;
funcCall();
}
if(((typeof funcName)=='string') && (eval('typeof '+funcName)=='function')) {
eval("document.getElementsByName(\"counterdisplay\")[0].innerHTML="+disInfo);
return true;
}
else {
if(firstCall==true) {
document.write("<p name=\"counterdisplay\" id=\"counterdisplay\"></p>");
}
window.setTimeout("createCounterByFunc(\""+funcName+"\", '"+disInfo+"', false, "+funcCall+", "+firstFuncCall+")", 50);
return false;
}
}
function createCounterByFuncType(funcCall, funcName, disInfo, firstCall) {
createCounterByFunc(funcName, disInfo, firstCall, funcCall, true);
}
