$(function() {
	var total = 0;
	$("#topMenu ul li a").each(function() {
		var l = $(this).text().length * 12 + 40;
		if ($(this).text().length > 3) {
			l = $(this).text().length * 12 + 20;
		}
		var s = l + "px";
		total =total + l;
		$(this).parent().css({width:s});
	});
	var ts = total + "px";
	$("#topMenu ul").css({width:ts});
	$("#topMenu ul li:last").css("background","none");
});
