
//Sprungmarke für heycom-Änderungen: //-ff

var wt_version = 183;
var wt_va = Array("wt_t1", "wt_t2", "wt_ln", "wt_fm", "wt_ba", "wt_co", "wt_qn", "wt_ca", "wt_pi", "wt_ov", "wt_cr", "wt_oi", "wt_cd", "wt_cg", "wt_st", "wt_linktrack_be", "wt_mc", "wt_mcvalue", "wt_mcv", "wt_cookie", "wt_cookie_sid", "wt_cookie_eid", "wt_cookie_l_v", "wt_cookie_one", "wt_cookie_sid_timeout", "wt_cookie_eid_timeout", "wt_linktrack_params", "wt_lp", "wt_hm", "wt_pa", "wt_be", "wt_dm", "wt_ci", "wt_kw", "wt_ln_attribute", "wt_fm_anonymous", "wt_reporturl", "wt_is", "wt_fm_full_content", "wt_fm_attribute", "wt_ep", "wt_ccParams", "wt_sc");
for (var i = 0; i < wt_va.length; i++) eval("if(typeof(" + wt_va[i] + ")!='string')var " + wt_va[i] + "='';");
var wt_browserName = navigator.appName,
wt_browserName = (wt_indexOf(wt_browserName, "Microsoft") ? wt_browserName: "MSIE"),
wt_browserNameNS = (wt_browserName == "Netscape"),
wt_browserNameIE = (wt_browserName == "MSIE");
if (!wt_be) wt_be = wt_url2contentid(document.location.href);
function wt_href() {
	return wt_location().href;
};
function wt_location() {
	var r = document.location;
	if (!document.layers && document.getElementById) {
		eval("try {r=top.document.location;}catch(e){};");
	} else {
		r = top.document.location;
	};
	return r;
};
function wt_length(a) {
	return a != "undefined" ? a.length: 0;
};
function wt_url2contentid(url) {
	if (!url) return "no_content";
	var tmp = new RegExp("//(.*)").exec(url);
	if (tmp.length < 1) return "no_content";
	return tmp[1].split("?")[0].replace(/\./g, "_").replace(/\//g, ".").replace(/\.{2,};/g, ".").toLowerCase();
};
function wt_include(s) {
	if (!document.createElement) return false;
	var html_doc = document.getElementsByTagName('head').item(0);
	var js = document.createElement('script');
	js.setAttribute('language', 'javascript');
	js.setAttribute('type', 'text/javascript');
	js.setAttribute('src', s);
	html_doc.appendChild(js);
	return true;
};
function wt_indexOf(a, b, c) {
	return a.indexOf(b, c ? c: 0);
};
function wt_typeof(v) {
	return (typeof v != "undefined") ? 1: 0;
};
function wt_registerEvent(obj, e, f) {
	if (obj.addEventListener) {
		obj.addEventListener(e, f, false);
	} else {
		if (obj.attachEvent) {
			obj.attachEvent("on" + e, f);
		}
	}
};
function wt_maxlen(v, l) {
	if (v && v.length > l) return v.substring(0, l - 1);
	return v;
};
function wt_escape(u) {
	if (typeof(encodeURIComponent) == 'function') return encodeURIComponent(u);
	return escape(u);
};
function wt_unescape(u) {
	if (typeof(decodeURIComponent) == 'function') return decodeURIComponent(u);
	return unescape(u);
};
function wt_decoder(u) {
	var tmp = unescape(u);
	if (document.layers) return wt_escape(tmp);
	if (document.getElementById) {
		eval("try {tmp=decodeURIComponent(u);}catch(e){};");
	} else {
		tmp = decodeURIComponent(u);
	};
	return wt_escape(tmp);
};
function wt_encoding() {
	var tmp = "";
	if (typeof(encodeURIComponent) != 'function') tmp += "&enc0=old";
	tmp += "&enc1=ü&enc2="
	if (document.characterSet) tmp += document.characterSet.toLowerCase();
	if (document.charset) tmp += document.charset.toLowerCase();
	return tmp;
};
function wt_crypt(t) {
	var org = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
	var rep = "NOPQRSTUVWXYZABCDEFGHIJKLM5678901234";
	t = t.replace(new RegExp("[A-Z]|[a-z]|[0-9]", "gi"),
	function($1) {
		var sp = new RegExp("[A-Z]", "g");
		var pos = org.indexOf($1.toUpperCase());
		if (sp.test($1)) {
			return rep.charAt(pos);
		} else {
			return rep.charAt(pos).toLowerCase();
		}
	});
	return t;
};
function wt_decrypt(x) {
	if (x) {
		return eval("try {wt_unescape(x.replace(/([0-9a-fA-F][0-9a-fA-F])/g,'%$1'));}catch(e){''};");
	}
};
function wt_encrypt(x) {
	var str = '';
	for (var i = 0; i < x.length; i++) {
		if (x.charCodeAt(i) < 255) {
			str += x.charCodeAt(i).toString(16);
		} else {
			eval("try {str += encodeURIComponent(x[i]).replace(/%/g,'');}catch(e){};");
		}
	};
	return str;
};
function wt_checkSC(x) {
	var sc = wt_sc.split(';');
	for (var i = 0; i < sc.length; i++) {
		if (sc[i] == x) return true;
	};
	return false;
};
function wt_zeroPad(n, countZeros) {
	var result = n + '';
	return "000000000000".substring(0, (countZeros - result.length)) + result;
};
function wt_sid() {
	return '2' + wt_zeroPad(Math.floor(new Date().getTime() / 1000), 10) + wt_zeroPad(Math.floor(Math.random() * 1000000), 8);
};
function wt_getexpirydate(mins) {
	var UTCstring;
	var Today = new Date();
	var nomilli = Date.parse(Today);
	Today.setTime(nomilli + mins * 60 * 1000);
	UTCstring = Today.toUTCString();
	return UTCstring;
};
function wt_setCookie(name, value, duration) {
	var d = location.hostname.split(".");
	d = d[d.length - 2] + "." + d[d.length - 1];
	var c;
	if (duration) c = name + "=" + escape(value) + ";domain=" + d + ";path=/;expires=" + wt_getexpirydate(duration);
	else c = name + "=" + escape(value) + ";path=/;domain=" + d;
	document.cookie = c;
};
function wt_getCookie(cookiename) {
	var cookiestring = "" + document.cookie;
	var index1 = cookiestring.indexOf(cookiename);
	if (index1 == -1 || cookiename == "") return "";
	var index2 = cookiestring.indexOf(';', index1);
	if (index2 == -1) index2 = cookiestring.length;
	return unescape(cookiestring.substring(index1 + cookiename.length + 1, index2));
};
function wt_urlParam(url, param, def) {
	var p = new Array();
	if (url.indexOf("?") > 0) p = url.substring(url.indexOf("?") + 1).replace(/&amp;/, "&").split("&");
	for (var i = 0; i < p.length; i++) {
		if (p[i].indexOf(param + "=") == 0) {
			return wt_unescape(p[i].substring(param.length + 1).replace(/\+/, "%20"));
		}
	};
	return def;
};
function wt_checkCookie() {
	if (wt_getCookie("wt_cookietest") == "1") return true;
	wt_setCookie("wt_cookietest", "1", 0);
	return wt_getCookie("wt_cookietest") == "1";
};
var wt_linktrack_p = "";
var wt_linktrack_namedlinks_only;
if (wt_ln == "auto" || wt_ln == "link") {
	wt_linktrack_namedlinks_only = false;
} else {
	wt_linktrack_namedlinks_only = true;
};
if (wt_ln) {
	wt_registerEvent(window, "load", wt_ltinstall);
};
function wt_ltinstall() {
	for (c = 0; c < document.links.length; c++) {
		var name = document.links[c].name;
		if (wt_ln_attribute != "") {
			var tmp = "";
			eval("tmp = (document.links[c].getAttribute(wt_ln_attribute)?document.links[c].getAttribute(wt_ln_attribute):'')");
			if (tmp) name = tmp;
		};
		if (name || !wt_linktrack_namedlinks_only) {
			wt_registerEvent(document.links[c], 'mousedown', wt_linktrack);
		}
	}
};
function wt_linktrack(e) {
	if ((e.which && e.which == 1) || (e.button && e.button == 1)) {
		var a = document.all ? window.event.srcElement: this;
		for (var i = 0; i < 4; i++) {
			if (a.tagName && a.tagName.toLowerCase() != "a" && a.tagName.toLowerCase() != "area") {
				a = a.parentElement
			}
		};
		a.lname = (a.name ? a.name: "");
		wt_getCCParams(a);
		if (wt_ln_attribute != "") {
			var tmp = "";
			eval("tmp = (a.getAttribute(wt_ln_attribute)?a.getAttribute(wt_ln_attribute):'')");
			if (tmp) a.lname = tmp;
		};
		a.lpos = 0;
		if (!wt_length(a.lpos) && a.tagName) {
			c = document.links;
			for (d = 0; d < wt_length(c); d++) {
				if (a == c[d]) {
					a.lpos = d + 1;
					break
				}
			}
		};
		if (a.lpos) {
			if (wt_ln == "link") {
				var y = a.href.indexOf("//");
				var y = (y >= 0 ? a.href.substr(y + 2) : a.href);
				if (typeof(wt_linktrack_pattern) != 'undefined') {
					if (typeof(wt_linktrack_replace) != 'string') wt_linktrack_replace = "";
					y = y.replace(wt_linktrack_pattern, wt_linktrack_replace);
				};
				wt_linktrack_p = wt_be.split(";")[0] + "." + (a.lname ? (a.lname + ".") : "") + y.split("?")[0].replace(/\//g, ".");
				var p = wt_linktrack_params.replace(/;/g, ",").split(",");
				for (var i = 0; i < p.length; i++) {
					var v = wt_urlParam(y, p[i], "");
					if (v) wt_linktrack_p += "." + p[i] + "." + v;
				}
			} else if (wt_ln == "auto") {
				if (!a.lname) wt_linktrack_p = (wt_linktrack_be ? (wt_linktrack_be + ".") : (wt_be.split(";")[0] + ".link.")) + a.lpos;
				else wt_linktrack_p = wt_be.split(";")[0] + "." + a.lname;
			} else if (wt_ln == "standard" && a.lname) wt_linktrack_p = a.lname;
			if (wt_linktrack_p && a.target != "" && a.target != "_self") wt_send();
		}
	}
};
function wt_getCCParams(a) {
	var ccParams = '';
	var p = '';
	if (typeof(wt_cc) == 'object') {
		if (typeof(wt_cc[a.name]) == 'string') ccParams = wt_cc[a.name];
		if (typeof(wt_cc[a.id]) == 'string') ccParams = wt_cc[a.id];
	};
	if (ccParams) {
		ccParams = ccParams.split(/;/);
		for (var z = 0; z < ccParams.length; z++) {
			if (typeof(ccParams[z]) != 'undefined') {
				var wtep = ccParams[z].split(/=/);
				if (wt_checkSC('custom')) {
					wtep[1] = wt_decrypt(wtep[1]);
				};
				wtep[1] = wt_escape(wtep[1]);
				p += '&' + wtep[0] + '=' + wtep[1];
			}
		}
	};
	wt_ccParams = p;
	return;
};
var wt_gatherforms_p = "";
var wt_form = null;
var wt_form_focus = "";
var wt_form_submit = false;
if (wt_fm) {
	wt_registerEvent(window, "load", wt_ftinstall);
};
function wt_ftinstall() {
	wt_findform();
	if (!wt_form) return;
	for (var j = 0; j < wt_form.elements.length; j++) {
		var e = wt_form.elements[j];
		wt_registerEvent(e, "focus", wt_formfocus);
	};
	wt_registerEvent(wt_form, "submit", wt_formsubmit);
};
function wt_findform() {
	wt_form = null;
	if (document.forms) wt_form = document.forms[0];
	var f = document.forms;
	for (var i = 0; i < f.length; i++) {
		var cf = f[i];
		if (wt_typeof(cf.elements["wt_form"])) {
			wt_form = cf;
			return;
		}
	}
};
function wt_formsubmit() {
	wt_form_submit = true;
};
function wt_formfocus(e) {
	var a = document.all ? window.event.srcElement: e.target;
	if (!a.name || a.type == "submit" || a.type == "image") return;
	wt_form_focus = (wt_form.name ? wt_form.name: wt_be.split(";")[0]) + "." + a.name + "." + a.type;
};
function wt_gatherForm() {
	var del = ";";
	if (!wt_form) return;
	var f = wt_form;
	var p = wt_form.name ? wt_form.name: wt_be.split(";")[0];
	if (wt_fm_attribute) {
		var tmp = "";
		eval("tmp = (f.getAttribute(wt_fm_attribute)?f.getAttribute(wt_fm_attribute):'')");
		if (tmp) p = tmp;
	};
	var fl = "";
	if (wt_typeof(f.elements["wt_fields"])) fl = f.elements["wt_fields"].value;
	if (!fl) {
		for (var i = 0; i < f.elements.length; i++) {
			var e = f.elements[i];
			if (e.name) fl += e.name + del;
		};
		fl = fl.substring(0, fl.lastIndexOf(del))
	};
	var fields = fl.split(del);
	var fields_length = fields.length;
	var full_fields = wt_fm_full_content.split(del);
	var pa = "";
	var emptyradios = new Array();
	for (var i = 0; i < f.elements.length; i++) {
		var e = f.elements[i],
		value,
		value2,
		use = false;
		if (fl) {
			for (var j = 0; j < fields_length; j++) if (e.name == fields[j]) use = true;
		} else {
			if (e.name) use = true;
		};
		if (use) {
			value = null;
			if (e.type == 'select-multiple') {
				for (var j = 0; j < e.options.length; j++) {
					var found = false;
					if (e.options[j].selected) {
						found = true;
						pa += ";" + p + ".select-multiple." + e.name.replace(/[\.|;]/, "_") + "." + e.options[j].value.replace(/[\.|;]/, "_");
					};
					if (!found) value = "empty";
				}
			};
			if (e.type == 'select-one') {
				if (e.selectedIndex != -1) {
					value = e.options[e.selectedIndex].value.replace(/[\.|;]/, "_");
					if (!value) value = "empty";
				}
			};
			if (e.type == 'checkbox') {
				if (!e.checked) value = "empty";
				else value = e.value.replace(/[\.|;]/, "_");
			};
			if (e.type == 'radio') {
				if (e.checked) value = e.value.replace(/[\.|;]/, "_");
				emptyradios[emptyradios.length] = e.name;
			};
			if (e.type == "password" || e.type == "text" || e.type == "textarea") {
				value = (e.value ? "filled_out": "empty");
				for (var k = 0; k < full_fields.length; k++) if (full_fields[k] == e.name) value = wt_maxlen(e.value, 30);
				if (!value) value = "empty";
			};
			if (value) {
				name = e.name.replace(/[\.|;]/, "_");
				value2 = ";" + p + "." + name + "." + e.type + "|";
				if (pa.indexOf(value2) == -1) pa += value2 + (wt_fm_anonymous != "" ? "anon": value);
			}
		}
	};
	for (var i = 0; i < emptyradios.length; i++) {
		var n = ";" + p + "." + emptyradios[i].replace(/[\.|;]/, "_") + ".radio|";
		if (pa.indexOf(n) == -1) pa += n + (wt_fm_anonymous != "" ? "anon": "empty");
	};
	if (pa) {
		pa = pa.substring(1);
	};
	return pa;
};
if (wt_fm || wt_ln) {
	wt_registerEvent(window, (wt_browserNameIE && wt_typeof(window.onbeforeunload)) ? "beforeunload": "unload", wt_unload);
};
function wt_unload() {
	if (wt_form) wt_gatherforms_p = wt_gatherForm();
	var p = "";
	if (wt_linktrack_p) p += "&ct=" + wt_escape(wt_maxlen(wt_linktrack_p, 255));
	if (wt_gatherforms_p) {
		p += "&ft=" + wt_escape(wt_gatherforms_p);
		p += "&fs=" + (wt_form_submit ? "1": "0") + "&ff=" + wt_escape(wt_form_focus);
	};
	if (p) {
		if (typeof(wt_ep) == 'string' && wt_ep != '') {
			wt_ep = wt_ep.split(/;/);
			for (var z = 0; z < wt_ep.length; z++) {
				if (typeof(wt_ep[z]) != 'undefined') {
					wtep = wt_ep[z].split(/=/);
					if (wt_checkSC('custom')) {
						wtep[1] = wt_decrypt(wtep[1]);
					};
					wtep[1] = wt_escape(wtep[1]);
					p += '&' + wtep[0] + '=' + wtep[1];
				}
			}
		};
		if (typeof(wt_ccParams) == 'string' && wt_ccParams != '') p += wt_ccParams;
		wt_quicksend(wt_escape(wt_be.split(";")[0]) + ",1," + wt_baseparams(), p + wt_encoding());
		wt_linktrack_p = "";
		wt_gatherforms_p = "";
	}
};
if (typeof(time_start) == "number" && typeof(wt_be) == "string" && !document.layers) {
	var time_stop = (new Date()).getTime();
	wt_registerEvent(window, "load", wt_ttonload);
};
function wt_ttonload() {
	if (typeof(time_start) == "number") {
		wt_t1 = time_stop - time_start;
		var time_stop2 = new Date().getTime();
		wt_t2 = time_stop2 - time_start;
		wt_send();
		time_start = "";
		wt_t1 = "";
		wt_t2 = "";
	}
};

if (wt_mc) {
	var m = wt_mc.split(";");
	var v = '';
	if (wt_mcv != '') {
		v = wt_mcv.split(";");
	};
	wt_mcvalue = "";
	for (var i = 0; i < m.length; i++) {
		if (wt_mcvalue != "") wt_mcvalue += "|";
		if (typeof(v[i]) != 'undefined' && v[i] != '') {
			wt_mcvalue += v[i];
		} else {
			wt_mcvalue += wt_urlParam(wt_href(), m[i], " ");
		}
	}
};

var wt_tmp = wt_urlParam(wt_href(), "wt_lp", "");
if (wt_tmp != "") wt_lp = wt_tmp;
wt_tmp = wt_urlParam(wt_href(), "wt_kw", "");
if (wt_tmp != "") wt_kw = wt_tmp;
if (wt_hm) {
	var exit = false;
	if (typeof(wt_heatmap_sites) == 'object' && typeof(wt_heatmap_sites_ini) == 'string') {
		wt_registerEvent(window, "load", wt_hminstall);
		exit = true;
	} else {
		if (!document.layers && document.getElementById) {
			var stags = document.getElementsByTagName('script');
			for (var i = 0; i < stags.length; i++) {
				if (stags[i].src.match(/webtrekk.*\.js/g) && !exit) {
					wt_include(wt_hm_config_file = stags[i].src.replace(/webtrekk[a-z|A-Z|0-9|_]*\.js/g, '') + 'heatmap_config.js?' + Math.random());
					wt_registerEvent(window, "load", wt_hminstall);
					exit = true;
				}
			}
		}
	}
};
function wt_hminstall() {
	if (typeof(wt_heatmap_sites) == 'object' && typeof(wt_heatmap_sites_ini) == 'string') {
		for (var z = 0; z < wt_heatmap_sites.length; z++) {
			if (wt_heatmap_sites[z].toLowerCase() == wt_be.split(";")[0].toLowerCase() && wt_heatmap_sites_ini.toLowerCase() == wt_crypt(wt_heatmap_sites.join('')).replace(/\./g, '').toLowerCase() && wt_heatmap_on == false) {
				wt_registerEvent(document, "mousedown", wt_recordClick);
			}
		}
	} else {
		if (typeof(wt_heatmap_retry) == "undefined") wt_heatmap_retry = 0;
		wt_heatmap_retry++;
		if (wt_heatmap_retry < 60) window.setTimeout("wt_hminstall()", 100);
	}
};
function wt_recordClick(e) {
	if (typeof(wt_refpoint_id) != 'string') {
		wt_refpoint_id = 'wt_refpoint';
	} else {
		if (wt_refpoint_id == '') {
			wt_refpoint_id = 'wt_refpoint';
		}
	};
	var isOpera = (navigator.userAgent.indexOf('Opera') != -1);
	var isIE = (!isOpera && navigator.userAgent.indexOf('MSIE') != -1);
	var pos = {
		left: -1,
		top: -1
	};
	if (document.getElementById(wt_refpoint_id)) {
		var obj = document.getElementById(wt_refpoint_id);
		if (typeof obj.offsetLeft != 'undefined') {
			while (obj) {
				pos.left += obj.offsetLeft;
				pos.top += obj.offsetTop;
				obj = obj.offsetParent;
			}
		}
	};
	var posx = 0;
	var posy = 0;
	if (!e) {
		var e = window.event;
	};
	if (e.pageX || e.pageY) {
		posx = e.pageX;
		posy = e.pageY;
	} else if (e.clientX || e.clientY) {
		posx = e.clientX;
		posy = e.clientY;
		if (isIE) {
			if (document.body.scrollLeft > 0 || document.body.scrollTop > 0) {
				posx += document.body.scrollLeft;
				posy += document.body.scrollTop;
			} else if (document.documentElement.scrollLeft > 0 || document.documentElement.scrollTop > 0) {
				posx += document.documentElement.scrollLeft;
				posy += document.documentElement.scrollTop;
			}
		}
	};
	var width1 = 0;
	if (isIE) {
		width1 = document.body.clientWidth;
	} else {
		width1 = self.innerWidth - 16;
	};
	var sendPixel = true;
	if (posx >= width1) {
		sendPixel = false;
	};
	if ((pos.top >= 0 || pos.left >= 0) && posx > pos.left && posy > pos.top) {
		posx = '-' + (posx - pos.left);
		posy = '-' + (posy - pos.top);
	};
	if (sendPixel) wt_quicksend(wt_escape(wt_be.split(";")[0]) + "," + posx + "," + posy, '', "hm.pl");
};
var wt_heatmap_on = (wt_href().indexOf("wt_heatmap=1") >= 0);
function wt_heatmap0() {
	if (typeof(wt_heatmap) != "undefined") {
		window.setTimeout("wt_heatmap()", 1000);
	} else {
		if (typeof(wt_heatmap_retry) == "undefined") wt_heatmap_retry = 0;
		wt_heatmap_retry++;
		if (wt_heatmap_retry < 60) window.setTimeout("wt_heatmap0()", 1000);
	}
};
if (wt_href().indexOf("wt_heatmap=0") >= 0) {
	wt_heatmap_on = false;
};
if (wt_heatmap_on) {
	if (wt_reporturl == '') wt_reporturl = 'report.webtrekk.de/cgi-bin/wt';
	if (wt_include(location.protocol + "//" + wt_reporturl + "/heatmap.pl?wt_be=" + wt_escape(wt_be.split(";")[0]) + "&x=" + new Date().getTime() + wt_encoding())) if (navigator.userAgent.indexOf('MSIE 6') != -1 && navigator.userAgent.indexOf('Windows NT 5.0') != -1) {
		alert("Click OK to start heatmap.");
	};
	wt_registerEvent(window, "load", wt_heatmap0);
};
function wt_overlay0() {
	if (typeof(wt_overlay) != "undefined") wt_overlay();
	else {
		if (typeof(wt_overlay_retry) == "undefined") wt_overlay_retry = 0;
		wt_overlay_retry++;
		if (wt_overlay_retry < 60) window.setTimeout("wt_overlay0()", 1000);
	}
};
var wt_overlay_on = (wt_href().indexOf("wt_overlay=1") >= 0 || document.cookie.indexOf("wt_overlay=1") >= 0);
if (wt_href().indexOf("wt_overlay=0") >= 0) {
	wt_overlay_on = false;
	document.cookie = "wt_overlay=0; expires=Thu, 01-Jan-70 00:00:01 GMT;";
};
if (wt_overlay_on) {
	document.cookie = "wt_overlay=1";
	if (wt_reporturl == '') wt_reporturl = 'report.webtrekk.de/cgi-bin/wt';
	if (wt_include(location.protocol + "//" + wt_reporturl + "/overlay.pl?wt_be=" + wt_escape(wt_be.split(";")[0]) + "&x=" + new Date().getTime() + wt_encoding())) wt_registerEvent(window, "load", wt_overlay0);
};
if (wt_cookie == "1") {
	var wt_cookie_one = false;
	var wt_cookie_sid = wt_getCookie("wt_sid");
	var wt_cookie_l_v = wt_getCookie("wt_l_v");
	var wt_cookie_eid = wt_getCookie("wt_eid");
	if (!wt_cookie_eid_timeout) wt_cookie_eid_timeout = 60;
	if (!wt_cookie_sid_timeout) wt_cookie_sid_timeout = 30;
	var tmp = parseInt(wt_cookie_sid);
	var tmp2 = Math.floor(new Date().getTime() / 1000);
	if (tmp > 0 && (tmp + wt_cookie_sid_timeout * 60) < tmp2) wt_cookie_sid = "";
	if (!wt_cookie_sid) {
		wt_cookie_sid = wt_sid();
		wt_cookie_one = true;
	};
	if (!wt_cookie_eid) {
		wt_cookie_eid = wt_cookie_sid;
		wt_setCookie("wt_eid", wt_cookie_eid, wt_cookie_eid_timeout * 30 * 24 * 60);
	};
	wt_cookie_l_v = new Date().getTime();
	wt_setCookie("wt_l_v", wt_cookie_l_v);
	wt_setCookie("wt_sid", wt_cookie_sid);
};
function wt_sendinfo(p, mode, ep) {
//	alert(p + "\n" + mode);
	if ((typeof(time_start) != "number" && (wt_be != "" || p != "")) || document.layers) wt_send(p, mode, ep);
};
function wt_quicksend(baseparams, params, script) {
	if (!wt_dm || !wt_ci) return;
	if (!script) script = "wt.pl";
	if (wt_cookie == "1") {
		params = "&sid=" + wt_cookie_sid + "&l_v=" + wt_cookie_l_v + "&eid=" + wt_cookie_eid + "&one=" + (wt_cookie_one ? "1": "0") + params;
	};
	if (wt_cookie != "1" && (typeof(wt_cookie_eid_timeout) != 'undefined' || typeof(wt_cookie_sid_timeout) != 'undefined')) {
		if (typeof(wt_cookie_eid_timeout) != 'undefined' && wt_cookie_eid_timeout != '') {
			params = "&cet=" + wt_cookie_eid_timeout + params;
		};
		if (typeof(wt_cookie_sid_timeout) != 'undefined' && wt_cookie_sid_timeout != '') {
			params = "&cst=" + wt_cookie_sid_timeout + params;
		}
	};
	var wt_url = (location.protocol == "https:" ? "https:": "http:") + "//" + wt_dm + "/" + wt_ci + "/" + script + "?p=" + wt_version + "," + baseparams + params;
	if (document.images) {
		if (typeof(wt_i) == "undefined") wt_i = new Array();
		var ii = wt_i.length;
		wt_i[ii] = new Image();

		//-ff 27.03.08
		try{		
			wt_i[ii].src = wt_url;
		}catch(e){}
		//-ff ende
				
	} else {
		document.write("<img src='" + wt_url + "' height='1' width='1'>");
	}
};
function wt_baseparams() {
	var wt_c = "";
	
	//-ff 05.05.08
	try{
		wt_c = screen.width+"x"+screen.height+",";
	}catch(e){
		wt_c = "1x1,";
	}
	//-ff ende

	//-ff 27.03.08
	try{	
		wt_c+=(navigator.appName!='Netscape'?screen.colorDepth:screen.pixelDepth);
	}catch(e){}
	//-ff ende
	
	wt_c+=","+((navigator.cookieEnabled==true)?"1,":((navigator.cookieEnabled==false)?"0,":((document.cookie.indexOf("=")!=-1)?"1,":"0,")));
	wt_c += new Date().getTime() + ",";
	var wt_ref = 0;
	if (!wt_ref && document.referrer.length > 0) wt_ref = wt_decoder(document.referrer);
	wt_c += wt_ref;
	var h = 0;
	if (!document.layers && document.getElementById) {
		eval("try {h = top.window.innerHeight;}catch(e){};");
	} else {
		h = top.window.innerHeight;
	};
	if (!h) eval("try {h = top.document.body.clientHeight;}catch(e){};");
	if (!h) eval("try {h = top.document.documentElement.clientHeight;}catch(e){};");
	var w = 0;
	if (!document.layers && document.getElementById) {
		eval("try {w = top.window.innerWidth;}catch(e){};");
	} else {
		w = top.window.innerWidth;
	};
	if (!w) eval("try {w = top.document.body.clientWidth;}catch(e){};");
	if (w == 'undefined') w = -1;
	if (h == 'undefined') h = -1;
	wt_c += "," + w + "x" + h;
	wt_c += "," + (navigator.javaEnabled() ? "1": "0");
	return wt_c;
};
function wt_send(p, mode, ep) {
	if (mode == "link") {
		wt_linktrack_p = p;
		wt_ln = "manual";
		wt_ep = ep;
		wt_registerEvent(window, (wt_browserNameIE && wt_typeof(window.onbeforeunload)) ? "beforeunload": "unload", wt_unload);
		return;
	};
	
	//-ff 27.03.08
	oeffner = "";
	if(opener) oeffner="opener.";
	try{
		if( eval(oeffner + "parent.parent.parent.Lng") ){
			strLng = eval(oeffner + "parent.parent.parent.Lng");
		}else{ 
			if( eval(oeffner + "parent.parent.Lng") ){
				strLng = eval(oeffner + "parent.parent.Lng");
			}else{
				if( eval(oeffner + "parent.Lng") ){
					strLng = eval(oeffner + "parent.Lng");
				}else{
					strLng = eval(oeffner + "Lng");
				}
			}
		}
	}catch(e){
		strLng="de" //pflegen!!
	}
	
	try{
		if( eval(oeffner + "parent.parent.parent.wt_cID") ){
			wt_ci = eval(oeffner + "parent.parent.parent.wt_cID");
		}else{ 
			if( eval(oeffner + "parent.parent.Lng") ){
				wt_ci = eval(oeffner + "parent.parent.wt_cID");
			}else{
				if( eval(oeffner + "parent.Lng") ){
					wt_ci = eval(oeffner + "parent.wt_cID");
				}else{
					wt_ci = eval(oeffner + "wt_cID");
				}
			}
		}
	}catch(e){
		wt_ci =  "900089555233333";  //pflegen!!
	}		
	
	if(typeof p!="undefined" && p!=""){
		p = p.replace(/\[Lng\]/ig, strLng);
	}
	if(typeof wt_be!="undefined" && wt_be!=""){
		wt_be = wt_be.replace(/\[Lng\]/ig, strLng);
	}
	//-ff ende
		
	if (mode == "click") {
		wt_linktrack_p = p;
		wt_ep = ep;
		wt_unload();
		return;
	};
	var wt_content = (p ? p: wt_be);
	if (!wt_content) wt_content = "no_content";
	var wt_s_base = wt_escape(wt_content) + ",1,";
	wt_s_base += wt_baseparams();
	var wt_s = wt_encoding();
	var wt_la = "";
	if (typeof(navigator.language) == "string") wt_la = navigator.language;
	else if (typeof(navigator.userLanguage) == "string") wt_la = navigator.userLanguage;
	var wt_len = navigator.plugins.length,
	wt_np = "";
	if (wt_len > 0) {
		var wt_plugs = Array();
		var wt_np = '';
		for (var i = 0; i < wt_len; i++) {
			if (navigator.plugins && navigator.appName != 'Microsoft Internet Explorer') {
				if (navigator.plugins[i].name == "Shockwave Flash") {
					wt_np = navigator.plugins[i].description;
				} else {
					wt_np = navigator.plugins[i].name;
				};
				for (var j = 0; j < wt_plugs.length; j++) {
					if (wt_np == wt_plugs[j]) wt_np = "";
				};
				if (wt_np != "") {
					wt_plugs.push(wt_np);
				}
			}
		};
		wt_np = wt_plugs.join("|");
	};
	var wt_cp = '';
	if (typeof(wt_c) == 'object') {
		for (var z = 0; z < wt_c.length; z++) {
			if (typeof(wt_c[z]) != 'undefined') {
				if (wt_checkSC('custom')) {
					wt_c[z] = wt_decrypt(wt_c[z]);
				};
				wt_cp += '&c' + z + '=' + wt_escape(wt_c[z]);
			}
		}
	};
	if (wt_ov) wt_s += "&ov=" + wt_escape(wt_ov);
	if (wt_cr) wt_s += "&cr=" + wt_escape(wt_cr);
	if (wt_oi) wt_s += "&oi=" + wt_escape(wt_oi);
	if (wt_ba) wt_s += "&ba=" + wt_escape(wt_ba);
	if (wt_co) wt_s += "&co=" + wt_escape(wt_co);
	if (wt_qn) wt_s += "&qn=" + wt_escape(wt_qn);
	if (wt_ca) wt_s += "&ca=" + wt_escape(wt_ca);
	if (wt_pi) wt_s += "&pi=" + wt_escape(wt_pi);
	if (wt_st) wt_s += "&st=" + wt_escape(wt_st);
	if (wt_cd) wt_s += "&cd=" + wt_escape(wt_cd);
	if (wt_t1) wt_s += "&t1=" + wt_escape(wt_t1);
	if (wt_t2) wt_s += "&t2=" + wt_escape(wt_t2);
	if (wt_la) wt_s += "&la=" + wt_escape(wt_la);
	if (wt_cg) wt_s += "&cg=" + wt_escape(wt_cg);
	if (wt_mcvalue) wt_s += "&mcv=" + wt_escape(wt_mcvalue);
	if (wt_length(wt_mcvalue)) {
		wt_s += "&mc=" + wt_mc;
		wt_s += "&mcd=" + wt_location().hostname;
	};
	if (wt_pa) wt_s += "&pa=" + wt_escape(wt_maxlen(wt_pa, 255));
	if (wt_lp) wt_s += "&lp=" + wt_escape(wt_maxlen(wt_lp, 255));
	if (wt_kw) wt_s += "&kw=" + wt_escape(wt_maxlen(wt_kw, 255));
	if (wt_is) wt_s += "&is=" + wt_escape(wt_maxlen(wt_is, 255));
	if (wt_cp) wt_s += wt_cp;
	if (wt_cookie == "1") {
		if (wt_cookie_one) wt_s += "&np=" + wt_escape(wt_np);
	} else {
		wt_s += "&np=" + wt_escape(wt_np);
	};
	wt_quicksend(wt_s_base, wt_s);
};