window.addEventListener("load", function() { setTimeout(loaded, 100) }, false);
	
		function loaded() {
			document.getElementById("page_wrapper").style.visibility = "visible";
		}

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