/*
	Da die "position: fixed" Elemente nicht erreichbar waeren, wird der Style auf "absolute" gesetzt, falls die Seite zu schmal wird.
*/


function minWidthWatch(){
	if (navigator.appName.indexOf("Microsoft") >= 0 && navigator.appVersion.indexOf("MSIE 6") >= 0) return true;
	
	var content_id = "naviMeta";
	var content_id2 = "naviMain";
	var windowWidth = document.body.clientWidth;
	var windowHeight = document.body.clientHeight;
	var minWidth = 951;
	var minHeight = 520;
	
	if (windowWidth <= minWidth || windowHeight <= minHeight){
		if (document.getElementById(content_id)) document.getElementById(content_id).style.position = "absolute";
		if (document.getElementById(content_id2)) document.getElementById(content_id2).style.position = "absolute";
	} else {
		if (document.getElementById(content_id)) document.getElementById(content_id).style.position = "fixed";
		if (document.getElementById(content_id2)) document.getElementById(content_id2).style.position = "fixed";
	}
	
	return true;
}

window.onload = minWidthWatch;
window.onresize = minWidthWatch;

