		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 getWindowWidth() {
			var windowWidth = 0;
			if (typeof(window.innerWidth) == 'number') {
				windowWidth = window.innerWidth;
			}
			else {
				if (document.documentElement && document.documentElement.clientWidth) {
					windowWidth = document.documentElement.clientWidth;
				}
				else {
					if (document.body && document.body.clientWidth) {
						windowWidth = document.body.clientWidth;
					}
				}
			}
			
		return windowWidth;
		}
		
//The actual arranging function
		
		function arrange() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var bodyHeight = (document.getElementById('main_content').offsetHeight) + 150;
					
					if(bodyHeight < windowHeight) {
						bodyHeight = windowHeight;
						}
					
					document.getElementById('left_col').style.height = bodyHeight+'px';
					document.getElementById('right_col').style.height = bodyHeight+'px';
					
					var bodyWidth = (document.getElementById('main_content').offsetWidth);
										
					if(bodyWidth < 501) {
					
						//Screen seems low res so Restructure page so it is fixed width.
												
						var rightelements = (178+500+40) + 'px';
						var bannerwidths = (178+500+40+178) + 'px';
						
						document.getElementById('main_content').style.width = '500px';
						document.getElementById('right_col').style.right = '';
						document.getElementById('right_col').style.left = rightelements;
						document.getElementById('right_shadow').style.right = '';
						document.getElementById('right_shadow').style.left = rightelements;
						document.getElementById('fontbox').style.right = '';
						document.getElementById('fontbox').style.left = rightelements;
						
						document.getElementById('top_strip').style.width = bannerwidths;
						document.getElementById('banner').style.width = bannerwidths;
						document.getElementById('lower_banner').style.width = bannerwidths;
						document.getElementById('shadow_banner').style.width = bannerwidths;
						
						document.getElementById('topnav').style.width = '480px';
												
					}
		
				}
			}
			
		}
		
//Attach events
		
		window.onload = function() {
			arrange();
		}
		window.onresize = function() {
			arrange();
		}