jQuery(document).ready(function() {

	$('#slider').nivoSlider({
		preload: true,
		effect:'fade',
		pauseTime:5000, 
		pauseOnHover:false
	});
	
	$('a.tool_tip').tipsy({fade: true});
	$('a.tool_tip').animate({'opacity' : .5}).hover(function() { 
			$(this).animate({'opacity' : 1}); }, 
		function() { 
			$(this).animate({'opacity' : .5});
		});
	
	$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square',slideshow:2000, autoplay_slideshow: false});
	
	$(".tab_content").hide(); 
	$("ul.maytabs li:first").addClass("selected").show(); 
	$(".tab_content:first").show(); 
	
	$("ul.maytabs li").click(function() {
		$("ul.maytabs li").removeClass("selected"); 
		$(this).addClass("selected"); 
		$(".tab_content").hide(); 
		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).show(); 
		return false;
	});
	
});


