$(document).ready(function() {

	$('#main').corner();
	$('#sidebar li').corner();
	
	$('#nojs').hide();
	
	$("#sidebar li").hover(function() {
		$(this).stop().animate({ backgroundColor: "#999999" }, 500);
	}, function() {
		$(this).stop().animate({ backgroundColor: "#DBDBDB" }, 1000);
	});
	
	$("#sidebar li.current").hover(function() {
		$(this).stop().animate({ backgroundColor: "#999999" }, 500);
	}, function() {
		$(this).stop().animate({ backgroundColor: "#FFFFFF" }, 1000);
	});

	
	$(".default td").hover(function() {
		$(this).stop().animate({ backgroundColor: "#515151" }, 500);
	}, function() {
		$(this).stop().animate({ backgroundColor: "#000000" }, 1000);
	});
	
	$(".default td").click(function() {
		window.location=$(this).find("a").attr("href");return false;
	});
	
	$("#sidebar li").click(function() {
		window.location=$(this).find("a").attr("href");return false;
	});


	$("#past_featured a").hover(function() {
		//$(this).find("em").animate({opacity: "show", left: "100"}, "slow");
		$(this).find("em").animate({opacity: "show", left: "100"}, "slow");
	}, function() {
		$(this).find("em").animate({opacity: "hide", left: "200"}, "fast");
	});
	

	$('#scrollNav a').click(function() {
		var link = $(this).attr('href');
		$.scrollTo( link, 1000 );
		return false;
	});
	

});
