function lupe(element, state) {
	element.src = (state == 'in') ? '/images/lupe2.gif' : '/images/lupe.gif';
}
function logClick(ID) {
	w = window.open('/click?ID=' + ID, 'win' + ID);
	w.focus();
	return false;
}
function show(element, ID, handle) {
	document.getElementById('d' + ID).style.display = 'none';
	document.getElementById('i' + ID).style.display = 'none';
	document.getElementById('s' + ID).style.display = 'none';

	document.getElementById(element + ID).style.display = 'block';
	
	document.getElementById('ld' + ID).className = '';
	document.getElementById('li' + ID).className = '';
	document.getElementById('ls' + ID).className = '';

	handle.className = 'active';

	return false;
}
function getVisibleSpace() {
	if (navigator.cookieEnabled != true) {
		return;
	}
	var w, h;
	if (self.innerHeight) {
		// all except Explorer
		w = self.innerWidth;
		h = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		// Explorer 6 Strict Mode
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	} else if (document.body) {
		// other Explorers
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	
	var test = /Visible=([0-9].*)\*([0-9].*)/;
	test.exec(document.cookie);
	if (RegExp.$1 != w || RegExp.$2 != h) {
		var expires = new Date();
		expires.setTime(expires.getTime() + 5184000000);
		document.cookie = 'Visible=' + w + '*' + h + '; path=/; expires=' + expires.toGMTString();
	}
}
function loaded() {
	getVisibleSpace();
}
function showSkyscraper(code120, code160) {
	var w;
	if (self.innerHeight) {
		w = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		w = document.documentElement.clientWidth;
	} else if (document.body) {
		w = document.body.clientWidth;
	}
	if (w >= 1150 && code160 != '') {
		document.getElementById('outersite').style.width = '1088px';
		document.write('<div id="skyscraper160">' + code160 + '</div>');
	} else if (w >= 1110 && code120 != '') {
		document.getElementById('outersite').style.width = '1048px';
		document.write('<div id="skyscraper120">' + code120 + '</div>');
	}
}
function showDynload(w,i) {
	if(i) { document.write('<div class="ad"><h4>Anzeige</h4>'); }
	document.write('<scr' + 'ipt type="text/javascript" src="/dynload.js?w=' + w + '"></sc' + 'ript>');
	if(i) { document.write('</div>'); }
}