
var SafariRefresh = function(){
	

		this.divWrap = document.getElementById("Wrap");
		this.divStage = document.getElementById("Stage");
		this.divContent = document.getElementById("Content");
		this.divMenu = document.getElementById("Menu");
		
		refreshHeight(this.divWrap);
		refreshHeight(this.divStage);
		refreshHeight(this.divContent);
		
		addStyle(this.divContent, "width:auto;");
		addStyle(this.divStage, "width:auto;");
		addStyle(this.divMenu, "margin:0 5px 0 5px;");
		
		function refreshHeight(obj){
			obj.setAttribute("style","height:auto;");
		}
		function addStyle(obj,styletext){
			obj.setAttribute("style", obj.getAttribute("style")+styletext);
		}

}

if(navigator.userAgent.indexOf("Safari")>=0){
	SafariRefreshObj = new SafariRefresh();
}