
// closure 
(function($) {

	$(document).ready(function(){

		// treeview for the main site navigation menu
		$("#sitenav").treeview({
			collapsed: true,
			// persist: 'location',
			animated: 'fast'
		});

		/*
		// get the twitter feed
		$("#twitterfeed").getTwitter({
			userName: "future500",
			numTweets: 3,
			loaderText: "Loading tweets...",
			slideIn: true,
			showHeading: true,
			headingText: "Latest Tweets",
			showProfileLink: false
		});
		*/
		
		$('#scrolling-news').cycle({
			pause: 1,
			fx: 'scrollUp',
			speed: 1000,
			timeout:4200
		});

		/*
		$('#scrolling-news p').bind('click'), function(){
			location.href = $('a', this).attr('href');
		});
		*/

		// zebra striping
		$("table.zebra tr:nth-child(odd)").addClass("odd");
		
		// tabs
		$('.tabbable').tabs();
		
		// summary
		$('#speaker_summaries .speaker_summary')
			.bind('click', function(){
				location.href = $('a', this).attr('href');
				return true;
			})
			.bind('mouseover', function(){
				$(this).addClass('over');
				return true;
			})
			.bind('mouseout', function(){
				$(this).removeClass('over');
				return true;
			});

		/*
		$('body.speaker_home #testimonials').cycle({
			pause: 1,
			fx: 'scrollUp',
			speed: 4000,
			timeout:2000
		});
		*/

	});

})(jQuery);

