
function switchSize() {
	if (box = document.getElementById('box_content_normal')) {
		if ((box.className == 'box ') || (box.className == 'box')) {
			box.className = 'box box_content_normal-big fonts-bigger';
		}
		else {
			box.className = 'box';
		}
	}
	else if (box = document.getElementById('box_content_normal-big')) {
		if ((box.className == 'box ') || (box.className == 'box')) {
			box.className = 'box fonts-bigger';
		}
		else {
			box.className = 'box';
		}
	}	
	
}

function loupeTooltipShow() {
	// alert('visible');
	document.getElementById('tooltip').style.visibility = 'visible';
	document.getElementById('tooltip').style.display = 'block';
}
function loupeTooltipHide() {
	// alert('hidden');
	document.getElementById('tooltip').style.visibility = 'hidden';
	document.getElementById('tooltip').style.display = 'none';
}

function openMainWindow() {
// 	alert('testest');
	var startPageId = 284;
	var x = screen.width;
	var y = screen.height;
	var displaywindow = window.open('index.php?id='+startPageId,'mainTypo3Window','height='+y+',width='+x+', directories=no, toolbar=no, menubar=no, location=no, scrollbars=no, status=no, resizeable=no, dependent=no');
	displaywindow.focus();
// 	window.open('index.php?id=285','mainTypo3Window','width=1024, height=768, directories=no, toolbar=no, menubar=no, location=no, scrollbars=no, status=no, resizeable=no, dependent=no');
	return true;
}


function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
function setContent() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			var contentElement = document.getElementById('wrapper');
			var contentHeight = contentElement.offsetHeight;
			if (windowHeight - contentHeight > 0) {
				contentElement.style.position = 'relative';
				contentElement.style.top = ((windowHeight / 2) - (contentHeight / 2)) + 'px';
			}
			else {
				contentElement.style.position = 'static';
			}
		}
	}
}


