$(document).ready(function() {
// setting the tabs in the sidebar hide and show, setting the current tab
$('div.tabbed div').hide();
$('div.t0').show();
$('div.tabbed ul.tabs li.t0 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');
});
});






//  SIDEBAR TABS
//  Scrolling Sidebar
//  http://css-tricks.com/examples/ScrollingSidebar/

        $(function() {
            var offset = $(".mandate").offset();
            var topPadding = 25;
            $(window).scroll(function() {
                if ($(window).scrollTop() > offset.top) {
                    $(".mandate").stop().animate({
                        marginTop: $(window).scrollTop() - offset.top + topPadding
                    });
                } else {
                    $(".mandate").stop().animate({
                        marginTop: 55
                    });
                };
            });
        });






