var expDays = 365*2;

var host='ssx.eismann.de';
//var host='esdevel';
//var host='www.x-club.net';

function ssx(string) {
	var ident = GetCookie('SSXident');
	if (ident == null) {
		ident=generate(10);
		SetCookie('SSXident', ident, exp,'/');
	}
	a=new Image();
	a.src='http://'+host+'/ssx/index.php?ident='+ident+'&intScreenHeight='+screen.height+'&intScreenWidth='+screen.Width+'&intScreenColorDepth='+screen.colorDepth+'&intScreenPixelDepth='+screen.pixelDepth+'&'+string;
}
function generate(len)
{
	conso = new Array("b","c","d","f","g","h","j","k","l","m","n","p",
	"r","s","t","v","w","x","y","z");
	vocal = new Array("a","e","i","o","u");
	ziffer = new Array("1","2","3","4","5","6","7","8","9");
	var password = '';

	for(i=0; i < len; i++)
	{
		var c = Math.ceil(Math.random() * 1000) % 20;
		var v = Math.ceil(Math.random() * 1000) % 5;
		var z = Math.ceil(Math.random() * 1000) % 8;
		password += conso[c] + vocal[v] ;
	}
	return password;
}
function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
		return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return null;
}
function getCookieVal(offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
	endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie (name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
	((path == null) ? "" : ("; path=" + path)) +
	((domain == null) ? "" : ("; domain=" + domain)) +
	((secure == true) ? "; secure" : "");
}
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));