jQuery(document).ready(function(){
	jQuery("#article-nav-article a").click(function(){
		jQuery("#comments").hide();
		jQuery("#article").animate({ opacity: "show" }, 500, "");
		jQuery("#share").hide();
		jQuery("#article-nav li").removeClass("current");
		jQuery(this).parent().addClass("current");
		return false;
	});
	jQuery("#article-nav-comments a").click(function(){
		jQuery("#comments").animate({ opacity: "show" }, 500, "");
		jQuery("#article").hide();
		jQuery("#share").hide();
		jQuery("#article-nav li").removeClass("current");
		jQuery(this).parent().addClass("current");
		return false;
	});
	jQuery("#article-nav-share a").click(function(){
		jQuery("#share").animate({ opacity: "show" }, 500, "");
		jQuery("#article").hide();
		jQuery("#comments").hide();
		jQuery("#article-nav li").removeClass("current");
		jQuery(this).parent().addClass("current");
		return false;
	});
	jQuery("#article-nav-resources a").click(function(){
		if (jQuery(this).parent().hasClass("current")) {
			jQuery(this).parent().removeClass("current");
			jQuery("#r").animate({ opacity: "hide" }, 500, "");
		} else {
			jQuery(".raised").hide();
			jQuery("#article-nav-download").removeClass("current");
			jQuery(this).parent().addClass("current");
			jQuery("#r").animate({ opacity: "show" }, 500, "");
		}
		return false;
	})
	jQuery("#article-nav-download a").click(function(){
		if (jQuery(this).parent().hasClass("current")) {
			jQuery(this).parent().removeClass("current");
			jQuery("#d").animate({ opacity: "hide" }, 500, "");
		} else {
			jQuery(".raised").hide();
			jQuery("#article-nav-resources").removeClass("current");
			jQuery(this).parent().addClass("current");
			jQuery("#d").animate({ opacity: "show" }, 500, "");
		}
		return false;
	})
	jQuery(".spoiler-a").click(function(){
		jQuery(".spoiler-p").toggle("slow");
		return false;
	})
});