jQuery(document).ready(function() {											 
	
	jQuery("#feature_slides").cycle({
		fx: "fade", speed: 1000, timeout: 5000, pause: 1, pager: "#feature_nav_ul"
	});

	jQuery("#tabs_content_one, #tabs_content_two, #tabs_content_three").cycle({
		fx: "scrollHorz", speed: 1000, timeout: 0, next: "#next", prev: "#prev"
	});
	
	jQuery(".slide_content").cycle({
		fx: "scrollHorz", speed: 1000, timeout: 0, next: "#next", prev: "#prev", cleartype: true, cleartypeNoBg: true
	});
	
	
	
	jQuery('a.financial_tools').click(function(evt){
		jQuery('.tabs_tabs').css('background-image', 'url(/assets/images/main/slider_tabs_tools.png)');
		jQuery('#tabs_content_two, #tabs_content_three, .slide_two, .slide_three').hide();
		jQuery('#tabs_content_one, .slide_one').show();
		evt.preventDefault();
	});
	jQuery('a.supportive_community').click(function(evt){
		jQuery('.tabs_tabs').css('background-image', 'url(/assets/images/main/slider_tabs_community.png)');
		jQuery('#tabs_content_one, #tabs_content_three, .slide_one, .slide_three').hide();
		jQuery('#tabs_content_two, .slide_two').show();
		evt.preventDefault();
	});
	jQuery('a.expert_coaching').click(function(evt){
		jQuery('.tabs_tabs').css('background-image', 'url(/assets/images/main/slider_tabs_coaching.png)');
		jQuery('#tabs_content_one, #tabs_content_two, .slide_one, .slide_two').hide();
		jQuery('#tabs_content_three, .slide_three').show();
		evt.preventDefault();
	});
	
});
