// JavaScript Document
$(window).load(function(){resize()})

function resize()
{
	//alert($(window).height());
	wh=$(window).height();
//alert($("body").height());	
	
	//alert($("#main").innerHeight());
	inh=$("#main").innerHeight();
	offset=($("#main").offset());
	y=offset.top;
	//alert(y);
 if(y+inh+62<wh)
   {
	   
	//alert("shorter"); 
	var gap=wh-(y+62+110);
	gap=gap+'px';
	//alert(gap);
	$("#main").css({height:gap});
	   rs();
   }
   
  
}
