$(document).ready(function () {
							
	/* People page scroller 
	
	temporarily disabled*/

	var peopleScrollWidth = 286;
		
	var people = $("#people-list").children().length;
	people = people * peopleScrollWidth;
	$("#people-list").css("width", people);


	$("#intro #controls").prepend('<div id="people-scroll-left"></div>');
	$("#intro #controls").prepend('<div id="people-scroll-right"></div>');
	$("#intro #scroll").css("overflow", "hidden");

 	var peopleSlideshow = setInterval('peopleSlideshowTrigger()', 3000);    

	$("#people-scroll-right").click(function() {
		clearInterval(peopleSlideshow);  
		doRightScroll(peopleScrollWidth);
	});

	$("#people-scroll-left").click(function() {
		clearInterval(peopleSlideshow);  
		doLeftScroll(peopleScrollWidth);
	});





	$("#people-list .selected").prepend('<img src="/assets/img/people/selected.gif" alt="" id="select-flag">');











							
}); //ends document.ready





function doLeftScroll(amt) {
	$("#intro #scroll").animate({
		scrollLeft: "-=" + amt
	}, "fast");
}

function doRightScroll(amt) {
	$("#intro #scroll").animate({
		scrollLeft: "+=" + amt
	}, "fast");
}

function peopleSlideshowTrigger() {
         doRightScroll(286);
};

