$(document).ready(function(){

	//Menu
	$("#nav ul").css({display: "none"});
	$("#nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
	$("#nav li ul").hover(function(){
		$(this).parent("li").find("a:first").addClass("open");
		},function(){
		$(this).parent("li").find("a").removeClass("open");
		});
	
	//Links Related posts and Pings
	$("#related-posts ul li a, #pings ol li a").hover(function(){
		$(this).stop().animate({paddingLeft: "40px" , backgroundPosition: "15px 7px"}, "fast");
		},function(){
		$(this).stop().animate({paddingLeft: "35px" , backgroundPosition: "10px 7px"}, "fast");
		});
	
	//Link Comment Reply
	$(".comment-reply").animate({opacity: "0", top: "-2"}, 0);
	$(".commentlist li .comment-container").hover(function(){
		$(this).find(".comment-reply").stop().animate({opacity: "1", top: "-12"}, "normal");
		},function(){
		$(this).find(".comment-reply").stop().animate({opacity: "0", top: "-2"}, "slow");
		});
	
	//Author Comment
	$(".bypostauthor").find(".comment-author-data:first").addClass("author-comment");
	
});

