/* Author:  Scott Borys

*/
$(document).ready( function() {
	$("#agenda-controls a").click( function() {
		if ( $(this).hasClass("active") ) { 
			// do nothing
		} else {
			var stream = $(this).find("span.stream").attr("rel");
			$("#agenda-controls a").each( function() {
				if ( $(this).hasClass("active") ) {
					$(this).removeClass("active");
				} else {
					$(this).addClass("active");
				}
			});
			if ( '1' == stream ) {
				$("#agenda-slides").animate({'marginLeft':'0'},'fast');
			} else if ( '2' == stream ) {
				$("#agenda-slides").animate({'marginLeft':'-610px'},'fast');
			}
		}
	});
});








