// JavaScript Document
function ScaleSize(){
  if (!document.getElementsByTagName) return false;
  if (!document.getElementById) return false;
  
if (!document.getElementById("horizon")) return false;
if (!document.getElementById("content_horizon")) return false;

	var frameHeight = document.documentElement.clientHeight;
	if (frameHeight > 600) {
		var horizon = document.getElementById("horizon");
		var content_horizon = document.getElementById("content_horizon");
			
		horizon.style.position = "absolute";
		horizon.style.top = "50%"; 
		horizon.style.left = "0"; 
		horizon.style.width = "100%"; 
		horizon.style.overflow = "visible"; 
		horizon.style.display = "block";
		
		content_horizon.style.height = "600px";
		content_horizon.style.width = "800px";
		content_horizon.style.visibility = "visible";
		content_horizon.style.position = "absolute";
		content_horizon.style.top = "-300px";
		content_horizon.style.left = "50%";	
		content_horizon.style.margin = "0 0 0 -400px";	
				
	
	}	
}
addLoadEvent(ScaleSize);


