// about us
 $(document).ready(function() {

	
	/*
		- fn meetTheTeam (child photo image swaps)
	*/
	$('#futurelab-staff .mixed_asset img').mouseover(function() {
		var src = $(this).attr("src");
		src = src.split(".");
		//alert(src[0]);
		var new_src = src[0] + "-child" + ".jpg";
		$(this).attr("src", new_src)				
	}).mouseout(function() {
		var src = $(this).attr("src");
		src = src.split("-");
		//alert(src[0]);
		var new_src = src[0] + ".jpg";
		$(this).attr("src", new_src)				
	})
	// END meetTheTeam
	
	/* whatWereTalkingAbout - scrolling headlines */
	headline_count = $(".feed ul li").size();
	$(".feed ul li:eq("+current_headline+")").css('top','10px');
	headline_interval = setInterval(headline_rotate,6000); // in ms, how long it stays there 
	
	$('.feed ul').hover(function() {
		clearInterval(headline_interval);
	}, function() {
	headline_interval = setInterval(headline_rotate,15000); //in ms, how fast it moves
	headline_rotate();
 	});
	// END whatWereTalkingAbout
});//close $document.ready


/* whatWereTalkingAbout pt2 - move this too */
var headline_count;
var headline_interval;
var old_headline = 0;
var current_headline = 0;
function headline_rotate() {
	current_headline = (old_headline + 1) % headline_count; 
	$(".feed ul li:eq(" + old_headline + ")").animate({top: -205},"slow", function() {
		$(this).css('top','210px');
	});
	$(".feed ul li:eq(" + current_headline + ")").show().animate({top: 10},"slow");  
	old_headline = current_headline;
}