function checkDiv(checkedagain){
	document.getElementById('Footer').style.marginTop = "0px";
	if (typeof(window.innerHeight) == 'number') {
		win_height = window.innerHeight;
		win_width = window.innerWidth;
	}	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			win_height = document.documentElement.clientHeight;
			win_width = document.documentElement.clientWidth;
		}	else {
			if (document.body && document.body.clientHeight) {
				win_height = document.body.clientHeight;
				win_width = document.body.clientWidth;
			}
		}
	}
	if (document.all) {
		doc_height = document.body.offsetHeight;
		doc_width = document.getElementById('Container').offsetWidth;
		cont_height = document.getElementById('Content').offsetHeight;
		foot_height = document.getElementById('Footer').offsetHeight;
		logo_height = document.getElementById('Aevium').offsetHeight;
		logo_width = document.getElementById('Aevium').offsetWidth;
		nav_height = document.getElementById('Navigation').offsetHeight;
	} else if (document.layers) {
		doc_height = document.body.document.height;
		doc_width = document.getElementById('Container').width;
		cont_height = document.getElementById('Content').height;
		foot_height = document.getElementById('Footer').height;
		logo_height = document.getElementById('Aevium').height;
		logo_width = document.getElementById('Aevium').width;
		nav_height = document.getElementById('Navigation').height;
	} else {
		doc_height = document.body.offsetHeight;
		doc_width = document.getElementById('Container').offsetWidth;
		cont_height = document.getElementById('Content').offsetHeight;
		foot_height = document.getElementById('Footer').offsetHeight;
		logo_height = document.getElementById('Aevium').offsetHeight;
		logo_width = document.getElementById('Aevium').offsetWidth;
		nav_height = document.getElementById('Navigation').offsetHeight;
	}
	if(doc_width>win_width){
		document.getElementById('Aevium').style.left = doc_width-logo_width+"px";
	} else {
		document.getElementById('Aevium').style.left = win_width-logo_width-25+"px";
	}
	var limit = 906;
	var differance = 86;
	if(win_width<1086 && win_width > limit){
		document.getElementById('Container').style.width = win_width+"px";
		document.getElementById('Header').style.width = win_width-differance+"px";
		document.getElementById('Navigation').style.width = win_width-differance+"px";
		document.getElementById('Content').style.width = win_width-differance-50+"px";
	} else if (win_width <= limit){
		document.getElementById('Container').style.width = limit+"px";
		document.getElementById('Header').style.width = limit-differance+"px";
		document.getElementById('Navigation').style.width = limit-differance+"px";
		document.getElementById('Content').style.width = limit-differance-50+"px";
	} else {
		document.getElementById('Container').style.width = 1086+"px";
		document.getElementById('Header').style.width = 1086-differance+"px";
		document.getElementById('Navigation').style.width = 1086-differance+"px";
		document.getElementById('Content').style.width = 1086-differance-50+"px";
	}
	if(doc_width>win_width){
		//document.body.style.width = doc_width+"px";
		//document.getElementById('').style.left = doc_width+"px";
	} else {
		//document.body.style.width = win_width+"px";
		//document.getElementById('').style.left = win_width+"px";
	}
	if(doc_height>win_height){
		document.body.style.height = "auto";
		document.getElementById('Container').style.height = "auto";
		document.getElementById('Content').style.height = "auto";
		document.getElementById('Aevium').style.top = doc_height-logo_height+"px";
	} else {
		document.body.style.height = win_height+"px";
		document.getElementById('Container').style.height = doc_height+"px";
		var newHeight = doc_height-146-nav_height-foot_height;
		document.getElementById('Content').style.height = newHeight+"px";
		document.getElementById('Aevium').style.top = win_height-logo_height+"px";
	}
	if(!checkedagain){
		checkDiv(true);
	}
}