$(document).ready(function() {
// setting the tabs in the sidebar hide and show, setting the current tab
	$('div.tabbed div').hide();
	$('div.t1').show();
	$('div.tabbed ul.tabs li.t1 a').addClass('tab-current');

// SIDEBAR TABS
$('div.tabbed ul li a').click(function(){
	var thisClass = this.className.slice(0,2);
	$('div.tabbed div').hide();
	$('div.' + thisClass).show();
	$('div.tabbed ul.tabs li a').removeClass('tab-current');
	$(this).addClass('tab-current');
	});
});


// Hover fade for buttons
jQuery(document).ready(function($){
		$('.intouch-button, .more-link').append('<span class="buttonhover"></span>').each(function () {
	  		var $span = $('> span.buttonhover', this).css('opacity', 0);
	  		$(this).hover(function () {
	    		$span.stop().fadeTo(500, 1);
	 		}, function () {
	   	$span.stop().fadeTo(500, 0);
	  		});
		});
	})
        
 
 $(document).ready(function() {
// setting the tabs in the sidebar hide and show, setting the current tab
	$('div.menu_s div').hide();
	$('div.t1').show();
	$('div.menu_s ul.tabs li.t1 a').addClass('tab-current');

// SIDEBAR TABS
$('div.menu_s ul li a').click(function(){
	var thisClass = this.className.slice(0,2);
	$('div.menu_s div').hide();
	$('div.' + thisClass).show();
	$('div.menu_s ul.tabs li a').removeClass('tab-current');
	$(this).addClass('tab-current');
	});
});


// Hover fade for buttons
jQuery(document).ready(function($){
		$('.intouch-button, .more-link').append('<span class="buttonhover"></span>').each(function () {
	  		var $span = $('> span.buttonhover', this).css('opacity', 0);
	  		$(this).hover(function () {
	    		$span.stop().fadeTo(500, 1);
	 		}, function () {
	   	$span.stop().fadeTo(500, 0);
	  		});
		});
	})
