// JavaScript Document

function center(object)
{
	object.style.left = parseInt((document.body.scrollWidth / 2)/ 2) - 60 + "px";
	object.style.top = 75 + "px";
}
 
function center_top(object)
{
	object.style.left = parseInt((document.body.scrollWidth / 2)/ 2) - 60 + "px";
	object.style.top = 0 + "px";
}
 
function reCssBottom()
{
	bottom_palm.style.bottom = 0 + "px";	
	main_bottom.style.bottom = 0 + "px";
}

function checkRes()
{
	if(document.body.scrollWidth < 1025 && document.body.scrollHeight < 769)
	{
		main_mid.style.height = 100 + "%";
		main_center.style.height = 100 + "%";
		document.getElementById('bottom_palm').bottom = 0 + "px";	
		document.getElementById('main_bottom').bottom = 0 + "px";
	}
}