
  // When the document loads do everything inside here ...  
  jQuery(document).ready(function(){  
  
    // When a link is clicked  
    jQuery("a.tab").click(function () {  
  
        // switch all tabs off  
        jQuery(".active").removeClass("active");  
  
        // switch this tab on  
       jQuery(this).addClass("active");  
  
        // slide all elements with the class 'content' up  
        jQuery(".tabcontent").slideUp();  
  
        // Now figure out what the 'title' attribute value is and find the element with that id.  Then slide that down.  
        var content_show = jQuery(this).attr("title");  
        jQuery("#"+content_show).slideDown();  
  
    });  
  
  });  
