
var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;
var flash7Installed = false;
var flash8Installed = false;
var flash9Installed = false;
var maxVersion = 9;
var actualVersion = 0;
var hasRightVersion = false;
var jsVersion = 1.0;

function XT3CLK(o,pageid,target) {if(document.images){(new Image()).src="http://"+o+".x-tractit.de/r.php?ST=C&ID="+escape(pageid)+"&T="+escape(target.href);}return true;}
function XT4CLK(o,pageid,target,t,g,u) {if(document.images){(new Image()).src="http://"+o+".x-tractit.de/r.php?ST=C&ID="+escape(pageid)+"&T="+escape(t+"|"+g+"|"+target.href)+"&U="+escape(u);}return true;}

function checkFlash() {
	if (navigator.plugins) {
		if (navigator.plugins["Shockwave Flash 2.0"]
			|| navigator.plugins["Shockwave Flash"]) {
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.substring(16));
			flash2Installed = flashVersion == 2;
			flash3Installed = flashVersion == 3;
			flash4Installed = flashVersion == 4;
			flash5Installed = flashVersion == 5;
			flash6Installed = flashVersion == 6;
			flash7Installed = flashVersion == 7;
			flash8Installed = flashVersion == 8;
			flash9Installed = flashVersion >= 9;
		}
	}
	for (var i = 2; i <= maxVersion; i++) {
		if (eval("flash" + i + "Installed") == true) actualVersion = i;
	}
	if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 4;
}


function xTractItPortal(strO, nID, strFirma, strArtikel)
{
	xTractItPortal(strO, nID, strFirma, strArtikel, strU)
}
function xTractItPortalU(strO, nID, strFirma, strArtikel, strU)
{
 var strURL         = 'http://'+strO+'.x-tractit.de/r.php?ST=PI&ID='+nID
 var oAgent         = navigator.userAgent.toLowerCase()
 var nMajorVersion  = parseInt( navigator.appVersion )
 var nMinorVersion  = parseFloat( navigator.appVersion )
 var bIExplore      = ( oAgent.indexOf('msie') != -1)
 var bIExplore3     = ( bIExplore && (nMajorVersion == 2))
 var bWin           = ((oAgent.indexOf('win')!=-1) || (oAgent.indexOf('16bit')!=-1))

 strURL += ('&U='+escape(strU));
 strURL += ('&FA='+escape(strFirma));
 strURL += ('&AR='+escape(strArtikel));
 if(bWin) {
   strURL += ('&R='+escape(top.document.referrer))
   if(parseInt(navigator.appVersion)>3) {
     if(screen.availWidth>0) {
       strURL+=('&S4='+screen.availWidth+'x'+screen.availHeight)
       strURL+=('&S5='+screen.width+'x'+screen.height)
       strURL+=('&S6='+screen.colorDepth)
     }
     strURL+=('&J='+navigator.javaEnabled());
   }
 }

 xCheck(1);
 checkFlash();
 strURL+=('&F='+actualVersion);
 strURL+=('&kp='+parseInt((new Date()).getTime()));
 document.write('<img src='+strURL+' alt="" width=1 height=1 align=right>');
}

function xTractIt(strO, nID )
{
  xTractItPortalU(strO,nID,'','','');
}

function xTractItU(strO, nID, strU)
{
	xTractItPortalU(strO,nID,'','',strU);
}