	window.onload = function initialLoad(){
		updateOrientation();
	}
	
	function updateOrientation(){
		var contentType = "show_";
		switch(window.orientation){
			case 0:
			contentType += "normal";
			break;
			
			case -90:
			contentType += "right";
			break;
			
			case 90:
			contentType += "left";
			break;
			
			case 180:
			contentType += "flipped";
			break;
		}
	if(document.getElementById("page_wrapper")){document.getElementById("page_wrapper").setAttribute("class", contentType);}
	if(document.getElementById("internal_page_wrapper")){document.getElementById("internal_page_wrapper").setAttribute("class", contentType);}
	}
