$(document).ready(function() 
{
	$(".nav").children("li").each(function()
	{
		var parentClass = $(".nav").attr("class");
		var current = "nav current-"+($(this).attr("class"));
		var targ = "."+($(this).attr("class"))+" span"
		
		if(current != parentClass)
		{
			$(targ).css({opacity:"0"});
			
			$(targ).mouseover(function(e) {
				$(e.target).stop().animate({opacity:1},{duration:500})
			})
		
			$(targ).mouseout(function(e) {
				$(e.target).stop().animate({opacity:0},{duration:300})
			})	
		}
	})		
});