function setheight(el, offset){
	var winh, elh, mtop;
	winh=$(window).height();
	elh=$(el).height();
	mtop=Math.round((winh-elh)/2);
	if(mtop>offset){
		$(el).css("margin-top", (mtop-offset)+"px");
	} else if(mtop>=0 && mtop<=offset){
		$(el).css("margin-top", (mtop)+"px");
	}else {
		$(el).css("margin-top", "0");
	}
	//alert(elh+" "+mtop);
}
$(window).bind('resize', function() {
	setheight("#innerwrap", 50);
});