$(document).ready(function() {
	//Tabs
	$('#mini-tabs li.tab a').click(function(e) {
		//Stop default action
		e.preventDefault();
		//Get the ID of the tab we want to show
		var tab_id = $(this).parent().attr('class').match(/^[a-zA-Z]+/);
		//Hide all tabs
		$('.mini-tab-container').addClass('hide');
		//Remove the current selected tabs active state
		$('#mini-tab-selected').attr('id', '');
		//Highlight the new tab as active
		$(this).parent().attr('id', 'mini-tab-selected');
		//Show the current tab
		$('#'+tab_id).removeClass('hide');
		
	});
	//Slideshow
	$('#slideshow-control ul li a').click(function(e) {
		//Stop default action
		e.preventDefault();
		//Get slide ID
		var ss_id = $(this).parent().attr('id').split('-');
		//Hide all slides
		$('.slideshow-banner-\\S*').hide();
	});
	//Footer BSR Website Family
	$('#bsr-website-family-toggle').click(function(e) {
		e.preventDefault();
		$('#website-family').toggle();
	});
});
