var $j = jQuery.noConflict();
$j(document).ready(function(){
	$j("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);  
	
	// When the document loads do everything inside here ...
	// When a link is clicked
	$j("a.tab").click(function () {

		// switch all tabs off
		$j(".active").removeClass("active");

		// switch this tab on
		$j(this).addClass("active");

		// slide all elements with the class 'content' up
		$j(".content").slideUp();

		// Now figure out what the 'title' attribute value is and find the element with that id.  Then slide that down.
		var content_show = $j(this).attr("title");
		$j("#"+content_show).slideDown();

	});
});