jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        scroll: 1
    });
	
	// for the sidebar tabs	
	var tabContainers = $('li.tabs > div');
    
    $('li.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide().filter(this.hash).show();
        
        $('li.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');
        
        return false;
    }).filter(':first').click();
	
	// for the article / comments tabs
	var postTabsContainer = $('div#postTabs > div');
    
    $('div#postTabs ul#postTabsNav a').click(function () {
        postTabsContainer.hide().filter(this.hash).show();
        
        $('div#postTabs ul#postTabsNav a').removeClass('selected');
        $(this).addClass('selected');
        
        return false;
    }).filter(':first').click();

});