jQuery(function(){
	var navSelector = "ul#menu li";/** define the main navigation selector **/
	/** set up rounded corners for the selected elements **/
	jQuery('#menu').corners("5px bottom");
	jQuery('#widget_article').corners("5px");
	jQuery('.button').corners("5px");

/*	$("#topnav li.normal").prepend("<span></span>");
	$("#topnav li").each(function() {
		var linkText = $(this).find("a").html();
		$(this).find("span").show().html(linkText);
	});
	$("#topnav li").hover(function() {
		$(this).find("span").stop().animate({marginTop: "-30"}, 250);	},
		function() {$(this).find("span").stop().animate({marginTop: "0"}, 250);
	})*/

	


 
	jQuery(navSelector).find('a').css( {backgroundPosition: "0 0"} );
	
	jQuery(navSelector).hover(function(){/** build animated dropdown navigation **/
		jQuery(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).show("fast");
		jQuery(this).find('a').stop().animate({backgroundPosition:"(0 -40px)"},{duration:150});
 	   jQuery(this).find('a.top-level').addClass("blue");
		},function(){
		jQuery(this).find('ul:first').css({visibility: "hidden", display:"none"});
		jQuery(this).find('a').stop().animate({backgroundPosition:"(0 0)"}, {duration:75});
		jQuery(this).find('a.top-level').removeClass("blue");
		});
	});
	
