$(function(){
	$(".in").hide();		
	$(".status").click(function(){
		$("~ div:first", this).slideToggle();
		if ($("> .in", this).is(":hidden")){	
			$("> .in", this).show();	
			$("> .out", this).hide();
		} else {	
			$("> .in", this).hide();	
			$("> .out", this).show();						
		}	
	});
	$(".sortable").sortable({
		handle:"h3",
		connectWith:[$(".colone"),$(".coltwo"),$(".colthree")],
		placeholder:"dropspot"
	});
	
	$("#newsfeed ul").serialScroll({
		duration:1500,
		interval:6000,
		items:"li",
		axis:'y',
		constant:false,
		cycle:true,
		force:true
	});
	$("#newsfeed ul").hover(function(){
		$(this).trigger("stop");
	},function(){
		$(this).trigger("start");
	});
	
	
	$("#featurelist ul").serialScroll({
		duration:1500,
		interval:10000,
		items:"li",
		axis:'y',
		constant:false,
		cycle:true,
		force:true
	});
	$("#featurelist ul").hover(function(){
		$(this).trigger("stop");
	},function(){
		$(this).trigger("start");
	});
	
	// Animated Logo
	$('#logo').flash({
	    src: '/template/theme/cts/flash/logo.swf',
	    width: 271,
	    height: 89
	});

});
