// JavaScript Document

function getWindowWidth() {
		if (window.innerWidth)
			return window.innerWidth;
		else if (document.body && document.body.offsetWidth)
			return document.body.offsetWidth;
	}
	var cnt=0;
	function rebuildWindow() {
		Width = getWindowWidth();
//			window.status=Width;

			if(Width<1007) {

		        obj=document.getElementById("container");
				if (obj){obj.style.display = "none";}
				obj=document.getElementById("slogan");
				if (obj){obj.style.top = "80px";}
				obj=document.getElementById("zickzack");
				if (obj){obj.style.display = "none";}
				obj=document.getElementById("content");
				if (obj){obj.style.left = "24px";}
				obj=document.getElementById("startbild");
				if (obj){obj.style.display = "none";}
				obj=document.getElementById("slogan");
				if (obj){obj.style.left = "50px";}

			} else {
			  if (cnt>0) {
		        obj=document.getElementById("container");
				if (obj){obj.style.display = "block";}
				obj=document.getElementById("slogan");
				if (obj){obj.style.left = "50px";}
				obj=document.getElementById("slogan");
				if (obj){obj.style.top = "200px";}
				obj=document.getElementById("zickzack");
				if (obj){obj.style.display = "block";}
				obj=document.getElementById("startbild");
				if (obj){obj.style.display = "block";}
				obj=document.getElementById("content");
				if (obj){obj.style.left = "280px";}

				}		
				      				cnt=1;
			}
		

	}
	function checkSize() {
		rebuildWindow();
		if(document.body && document.body.offsetWidth)
			window.onresize = rebuildWindow;
	}
	window.onload=checkSize;

