$(document).ready(getThumbWidth);
$(window).resize(getThumbWidth);
function getThumbWidth(){
	$items=4;
	$pad=3;
	if($("#wrap").width()>=(144*5)+(95*4)+94){$items=5; $pad=4;}
	if($("#wrap").width()>=(144*6)+(95*5)+94){$items=6; $pad=5;}
	$padding=($("#wrap").width()-94-144*$items)/$items;
	$("#news_wrap").css("margin-left",-Math.round($padding));
	$(".news_item").css("padding-left",Math.round($padding));
	$(".news_item").css("background-position",Math.round($padding/2-2));
	$("#wrap").width();
}
