
	$(document).ready(function(){
	

		$('#menu ul li').hover(
			function(){
				w = $(this).width();

				cw = $(this).find('ul:first').width();

				if (cw < w){
					$(this).find('ul:first').find("a").width(w - 20);
				}				

				$(this).find('ul:first').show();
				
			},
			function(){
				$(this).find('ul:first').hide();
			}
		);
	});
