
// einfache Fensteranpassung - Per, 03.03.06
function resizer(){
	
	
	
	var x;
	
	if (self.innerHeight) {
		x = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		x = document.documentElement.clientWidth;
	} else if (document.body) {
		x = document.body.clientWidth;
	}
	
	document.write("<style> ");
	if(x >= 980) {
		document.write("html { overflow-x:hidden;} ");
	}
	if(x > 980) {
		document.write("html { overflow-x: hidden;} ");
		document.write("div#totalWrapper { width: 85%; } ");
	} 
	if(x < 980) {
		document.write("html { overflow-x:scroll;} ");
		document.write("div#totalWrapper { width: 860px; } ");
	}
	document.write("</style>");
}

resizer();

