
//to toggle child ULs on and off
(function($) {
$(document).ready(function() {
	$("#nav li").hover(
		function() {
			$(this).find("ul").animate({
			 opacity: 0.9
			},
			500
			); 
		},
		function() {
			$(this).find("ul").animate({
			opacity: 0
			},
			500
			);
		}
	);
	if (document.all) {
		$("#nav li").hoverClass("sfHover");
	}
});

//to be able to hover on LI in IE
$.fn.hoverClass = function(c) {
	return this.each(function() {
		$(this).hover(
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};
})(jQuery);