// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(document).ready(function() {
  // If you were loading content with AJAX, you'd want to change 'bind' to 'live'
  $('.collapsable-link').bind('click', function(){
        $(this).nextAll('div.collapsable').toggle();  //nextAll is all siblings 
        return false; //cus it was following the link
      });

  $("#tabs").tabs();

  $("#loading").ajaxStart(function(){
    $(this).show();
  });
  
  $("#loading").ajaxSuccess(function(){
    $(this).hide();
  });
  
   $(".tweet").tweet({
    username: "wcet_info",
    join_text: "auto",
    avatar_size: 32,
    count: 3,
    auto_join_text_default: "we said,", 
    auto_join_text_ed: "we",
    auto_join_text_ing: "we were",
    auto_join_text_reply: "we replied to",
    auto_join_text_url: "we were checking out",
    loading_text: "loading tweets..."
   });

});