﻿
function wp_mainmenu(){
	$("#nav a").removeAttr('title');
	$("#nav > li > ul").css({display: "none"}); // Opera Fix
	$("#nav > li > ul").parent().find("a:first").append("<span class='first_child'>&nbsp;</span>");
	$("#nav ul li > ul").parent().find("a:first").append("<span class='second_child'>&nbsp;</span>");
	$("#nav li").hover(function(){
		$(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).show(400);
	},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
	});
}

/*$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$("#logo").css("opacity","0.4");
 
	// ON MOUSE OVER
	$("#logo").hover(function () {
	 
	// SET OPACITY TO 100%
	$(this).stop().animate({
	opacity: 1.0
	}, "slow");
	},
	 
	// ON MOUSE OUT
	function () {
	 
	// SET OPACITY BACK TO 50%
	$(this).stop().animate({
	opacity: 0.4
	}, "slow");
	});
	});
*/
$(document).ready(function(){
	wp_mainmenu();
});
