


	$(window).load(function() { 

		$('#featured ul').nivoSlider({
			effect:			'sliceDownLeft',
			slices: 		15,
			animSpeed:		500,
			pauseTime:		6000,
			pauseOnHover:	true,
			manualAdvance:	false		}); 

	});


$(window).load(function() {	

	if ($("#feed a").text() == "0") { $("#feed a").text("24189"); }
	if ($("#twitter a").text() == "0") { $("#twitter a").text("38240"); }
	$('#nav-social ul li a span').css({opacity: 0});
	$('#nav-social ul li a').hover(function() { $(this).find('span').animate({top: -30, opacity: 1}, 200); }, function(){ $(this).find('span').animate({top: -40, opacity: 0}, 200); });
	
	
	$("#nav_tabs .tab_content").hide();
	$("#nav_tabs ul.tabs li:first").addClass("active").show();
	$("#nav_tabs .tab_content:first").show();

	$("#nav_tabs ul.tabs li").click(function() {

		$("#nav_tabs ul.tabs li").removeClass("active");
		$(this).addClass("active");
		$("#nav_tabs .tab_content").hide();

		var activeTab = $(this).find("a").attr("href");
		$(activeTab).fadeIn();
		return false;
	});
	
	$("#com_tabs .tab_content").hide();
	$("#com_tabs ul.tabs li:first").addClass("active").show();
	$("#com_tabs .tab_content:first").show();

	$("#com_tabs ul.tabs li").click(function() {

		$("#com_tabs ul.tabs li").removeClass("active");
		$(this).addClass("active");
		$("#com_tabs .tab_content").hide();

		var activeTab = $(this).find("a").attr("href");
		$(activeTab).fadeIn();
		return false;
	});

});


