$(document).ready(  
	function(){
		$("#menu").find("ul:first").find("li:last").addClass("last");
		var w=$("#menu").find("ul:first").width();
		var items=$("#menu").find("ul:first").children();
		var width0=0;
		var mod0=0;
		if(items.length>0){
			width0=parseInt((900-w)/(items.length));
			mod0=(900-w)%(items.length);
			}
		//alert(w+":"+width0+":"+mod0);
		$("#menu").find("ul:first").children().each(function(i){
			if(i<mod0){
				$(this).find("a:first").width($(this).find("a:first").width()+width0+1);
			}else{
				$(this).find("a:first").width($(this).find("a:first").width()+width0);
			}
		})
	}
);