$(document).ready(function(){
	Create_toppad();
});

function Create_toppad(){
	var p_height = Math.floor((document.documentElement.clientHeight - document.getElementById("wrapper").offsetHeight) / 2);
	if(p_height < 0){
		p_height = 0;
	}
	if(document.all){
		document.all("top_pad").style.height = p_height;
	}else if(document.getElementById){
		document.getElementById("top_pad").style.height = p_height + "px";
	}
}

window.onresize = Create_toppad;

