﻿function wp_mainmenu(){
	jQuery("#nav a").removeAttr('title');
	jQuery(" #nav > li > ul").css({display: "none"}); // Opera Fix
	jQuery(" #nav > li > ul").parent().find("a:first").append("<span class='first_child'>&nbsp;</span>");
	jQuery(" #nav ul li > ul").parent().find("a:first").append("<span class='second_child'>&nbsp;</span>");
	jQuery("#nav li").hover(function(){ jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400); },function(){ jQuery(this).find('ul:first').show(400).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");
	});
	});

jQuery(document).ready(function(){
	wp_mainmenu();
});
