window.onerror = handleError; 
var agt=navigator.userAgent.toLowerCase();
var major = parseInt(navigator.appVersion);
var ie  = (agt.indexOf("msie") != -1);
var nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)) && (agt.indexOf('opera')==-1));
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1));
var ref = "";
var fref;
var logdom;
var httpslog;
var fpage;
var res = "";
var co = 0;
var tz=(new Date()).getTimezoneOffset();
if (major >= 4) {if (ie) { co = screen.colorDepth } else { co = screen.pixelDepth } res = "" + screen.width + "x" + screen.height; }
var tp = ""+escape(document.location.href);
var fl = 0;
var sw = 0;
var rp = 0;
var qt = 0;
var wm = 0;
if (ie && win ) {
var rp2 = 0;
var rp3 = 0;
var rp4 = 0;
document.write('<script type="text/vbscript"\> \n');
document.write('on error resume next \n');
document.write('For i = 1 to 8 \n');
document.write('If Not(fl) And IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i)) Then \n');
document.write('fl = 1 \n');
document.write('End If \n');
document.write('If Not(sw) And IsObject(CreateObject("SWCtl.SWCtl." & i)) Then \n');
document.write('sw = 1 \n');
document.write('End If \n ');
document.write('If Not(qt) And IsObject(CreateObject("QuickTimeCheckObject.QuickTimeCheck." & i)) Then \n');
document.write('qt = 1 \n');
document.write('End If \n ');
document.write('If Not(wm) And IsObject(CreateObject("MediaPlayer.MediaPlayer." & i)) Then \n');
document.write('wm = 1 \n');
document.write('End If \n '); 
document.write('If Not(rp2) And IsObject(CreateObject("rmocx.RealPlayer G2 Control." & i)) Then \n');
document.write('rp2 = 1 \n');
document.write('End If \n ');
document.write('Next \n');
document.write('If Not(rp2) And IsObject(CreateObject("rmocx.RealPlayer G2 Control")) Then \n');
document.write('rp3 = 1 \n');
document.write('End If \n ');
document.write('If Not(rp2) And IsObject(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)")) Then \n');
document.write('rp4 = 1 \n');
document.write('End If \n ');
document.write('</script\> \n');
if (rp2 || rp3 || rp4) {  rp = 1;  }
} else {
detect();
}
try { ref = ceref(); } catch (e) { 
	if(typeof(top.document)=="object") {
		ref=escape(top.document.referrer);
	} 
}
if (( ref=="") || ( ref == undefined )) {
	ref = ""+escape(document.referrer);
}
function ceref() {
	var ref = "";
	if ((top.location == document.referrer) || (top != parent && parent.document.referrer == top.location) ) { 
		ref = ""+escape(top.document.referrer); 
		return ref;
	}
}
function caps () {
if(fref) { ref = escape(fref); }
if(fpage) { tp = escape(fpage); }
return "js=1&co=" + co + "&res="+ res + "&fl=" + fl + "&sw=" + sw + "&rp=" + rp + "&qt=" + qt + "&wm=" + wm + "&tz=" + tz + "&ref=" + ref + "&tp=" + tp;
}
function handleError() { 
return true;
} 
function run_it (client,area,logdom) {
var cc= caps();
//if (httpslog) {
//	httpslog = "https";
//} else {
	httpslog = "http";
//}
if (!logdom) {
	logdom="s2.checkeffect.at";
}
var url = "<img src=\"" + httpslog + "://" + logdom + "/?u=" + client + "&area=" + area + "&" + cc + "\">";
document.write(url);
}
function detect (Name) {
if (navigator.plugins && navigator.plugins.length) {
 for(i=0; i<navigator.plugins.length; ++i) {
  var str = navigator.plugins[i].name.toLowerCase();
  if (str.indexOf("quicktime") != -1) { qt=1;	}
  if (str.indexOf("windows media") != -1) { wm=1;	}
  if (str.indexOf("shockwave for director") != -1) { sw=1; }
  if (str.indexOf("shockwave flash") != -1) {	fl=1; }
  if (str.indexOf("realplayer") != -1) { rp=1; }
 }
}
} 
