function ccp(){
  this.us = "http://webcount.feratel.at/dcs/servlet/dcs?";
  this.u = "http://webcount.feratel.at/dcs/servlet/dcs?";
}

function dco(){
	this.params = _params;
	this.dcsact = _dcsact;
	this.dcsdom = _dcsdom;
	this.dcsid = _dcsid;
	this.dcstyp = _dcstyp;
	this.dcsi	= _dcsi;
	this.dcsref	= _dcsref;
	this.dcsd = escape(new Date().getTime().toString());
	this.dcsjs = "1"; // sure ;-)
	this.dcsss = "";
	this.dcssc = "";
	this.dcsje = "";
	this.dcsfl = "";
	this.dcsmp = "";
	this.dcsce = "";
}

function tracker(){
	if(document.location.protocol=="file:") return;
	var d = new dco();
	var c = new ccp();
	if(document.location.protocol=="https:"){
		c.u = c.u2;
	}
	if(self.screen){
		d.dcsss = screen.width+"x"+screen.height;
		d.dcssc = screen.colorDepth+"-bit";
 	}else if(self.java){
		var j = java.awt.Toolkit.getDefaultToolkit();
		var s = j.getScreenSize();
		d.dcsss = s.width+"x"+s.height;
	}
	d.dcsje = navigator.javaEnabled()? "1":"0";
	d.dcsce = navigator.cookieEnabled? "1":"0";
	d.dcsfl = _uFlash();
	d.dcsmp = _uWMP();

	var i = new Image(1,1);
	i.src = c.u + _rv(d);
	i.onload = function() {_uV();}

	// this.PrintValue(this.navigator);
	// return;
}

function _uWMP(){
	var player;
	for(var i=1;i<20;i++){
		try
		{
			if(window.ActiveXObject){
				player = new ActiveXObject("MediaPlayer.MediaPlayer."+ i +"");
			}
 			else if (window.GeckoActiveXObject)
		  {
		    player = new GeckoActiveXObject("MediaPlayer.MediaPlayer."+ i +"");
		  }
		  else
		  {
		    // Plugin code using navigator.mimeTypes
		    player = navigator.mimeTypes["application/x-mplayer2"].enabledPlugin;
		    return "Unknown";
		  }
		}
		catch(e)
		{
		}
		if(player)
		{
		  return i;
		}
	}
	return "";
}

function _uFlash(){
	var f="",n=navigator;
	if(n.plugins && n.plugins.length){
		for(var ii=0;ii<n.plugins.length;ii++){
   	if(n.plugins[ii].name.indexOf('Shockwave Flash')!=-1){
   		f=n.plugins[ii].description.split('Shockwave Flash ')[1];
    	break;
   	}
		}
	}else if(window.ActiveXObject){
  for(var ii=10;ii>=2;ii--){
   try{
		var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");
    if(fl){f=ii + '.0'; break;}
   }catch(e){}
  }
 }
 return f;
}

function _uV() { return; }

function _rv(obj){
	var res = '';
	for(temp in obj){
		if(temp != "params"){
			res += '&'+temp +'='+ escape(obj[temp]);
		}
	}
	if(obj.params){
		var t = "";
		for(var i=0;i<obj.params.length;i++){
			t = obj.params[i];
			res += '&'+ t.split("=")[0] +'='+ escape(t.split("=")[1]);
		}
	}
	return res;
}






function PrintValue(obj){
	var res = '';
	res += 'Objekt: '+obj+':<br>';
	for(temp in obj){
		if( !typeof( temp == "string") && !typeof( temp == "number") && !typeof( temp == "boolean") ){
			PrintValues(temp)
		}
		res += temp +': '+obj[temp]+'<br>';
	}
	document.write(res);
}


function TestValue(obj){
	var res = '';
	res += 'Objekt: '+obj+'\n\n';
	for(temp in obj){
		res += temp +': '+obj[temp]+'\n';
	}
	alert(res);
}
