function getWindowHeight()
{
	 var windowHeight = 0;
	 if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	 }
	 else {
		if (document.documentElement && document.documentElement.clientHeight) {
		   windowHeight = document.documentElement.clientHeight;
		}
		else {
		   if (document.body && document.body.clientHeight) {
			  windowHeight = document.body.clientHeight;
		   }
		}
	 }
	 return windowHeight;
  }
var $headId = "head";
var $bodyId = "body";
var $baseId = "base";
function base(){
	$headObj = document.getElementById($headId);
	$bodyObj = document.getElementById($bodyId);
	$baseObj = document.getElementById($baseId);	
	$baseObj.style.marginTop = 0 + "px";
	$winHeight = getWindowHeight();
	$bodyHeight = $bodyObj.offsetHeight;
	$baseHeight = $baseObj.offsetHeight;
	if ($headObj) {
		$headHeight = $headObj.offsetHeight;
		$difHeight = $winHeight - ($headHeight+$bodyHeight+$baseHeight+10);	
	} else $difHeight = $winHeight - ($bodyHeight + $baseHeight);	
	if ($difHeight > 0) {
		$baseObj.style.marginTop = $difHeight + "px";
	}
}