cs_track_kd(cs_kd_id);

function cs_track_kd(id) {
	
	var cs_track = new Object();	
	cs_track['kdid'] 					= id;

	cs_track['system']				= new Object();
	cs_track['system']['pf']		= navigator.platform;
	cs_track['system']['acn']		= navigator.appCodeName;
	cs_track['system']['an']		= navigator.appName;
	cs_track['system']['av']		= navigator.appVersion;
	cs_track['system']['ce']		= navigator.cookieEnabled;
	cs_track['system']['lang']		= navigator.language;
	cs_track['system']['agent']	= navigator.userAgent;
	
	cs_track['system']['site']		= window.location.pathname;
	
	cs_track['system']['refer']	= document.referrer;
	
	cs_track['screen']				= new Object();
	cs_track['screen']['x'] 		= screen.width;
	cs_track['screen']['y'] 		= screen.height;

	cs_track['screen2']				= new Object();
	cs_track['screen2']['x'] 		= screen.availWidth;
	cs_track['screen2']['y'] 		= screen.availHeight;

	cs_track['window']				= new Object();
	if (navigator.appName == "Microsoft Internet Explorer") {
		cs_track['window']['x'] 		= document.body.clientWidth;
		cs_track['window']['y'] 		= document.body.clientHeight;
	} else {
		cs_track['window']['x'] 		= window.innerWidth;
		cs_track['window']['y'] 		= window.innerHeight;
	}
	
	imgsrc = 'http://track.contrast-solution.de/customer.php?id='+id+'&x1='+cs_track['screen']['x']+'&y1='+cs_track['screen']['y']+
																				'&x2='+cs_track['screen2']['x']+'&y2='+cs_track['screen2']['y']+
																				'&x3='+cs_track['window']['x']+'&y3='+cs_track['window']['y']+
																				'&lang='+cs_track['system']['lang']+
																				'&pf='+cs_track['system']['pf']+
																				'&loc='+cs_track['system']['site']+
																				'&ref='+cs_track['system']['refer'];
	document.getElementById("cs_track").src = imgsrc;
	
}






