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