﻿$(document).ready(function () {
    // setting the tabs in the sidebar hide and show, setting the current tab
    $('div.tabbed div').animate({ height: '50px', opacity: '0' }, 150, function () { $(this).css('display', 'none'); });
    $('div.t0').animate({ height: '161px', opacity: '100', '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)', filter: 'alpha(opacity=100)' }, { queue: false, duration: 250, easing: 'easeOutCubic', complete: function () { $(this).css('display', 'block'); } });
    $('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').animate({ height: '50px', opacity: '0' }, 150, function () { $(this).css('display', 'none'); });
        //, complete: function () { $(this).css('display', 'block'); }
        //$('div.tabbed div').attr({ "style": 'display: block' }); 
        //$('div.' + thisClass).slideDown(250);
        $('div.' + thisClass).animate({ height: '161px', opacity: '100', '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)', filter: 'alpha(opacity=100)' }, { queue: false, duration: 250, easing: 'easeOutCubic', complete: function () { $(this).css('display', 'block'); } });
        $('div.tabbed ul.tabs li a').removeClass('tab-current');
        $(this).addClass('tab-current');
    });
});
