function initScholarshipToggle ()
{

  //hide the all of the element with class msg_body
  $(".msg_body").hide();
  //toggle the componenet with class msg_body
  $(".msg_head").click(function()
  {
    $(this).next(".msg_body").slideToggle(400);
  });
}



function initUnitsToggle ()
{

  //hide the all of the element with class msg_body
  $(".unit_overview").hide();
  //toggle the componenet with class msg_body
  $(".unit_title").click(function()
  {
  
    var e = $(this).parent().find("~ .unit_overview");

	// set the overview's width to be the same
	// as the table cell that it's in so that
	// the table doesn't 
    e.width (e.parent().width ());
    e.slideToggle("slow");

	return false;
  });
  
  
  
  $(".units_table").hide ();
  //toggle the componenet with class msg_body
  $(".starred_unit").click(function()
  {
  
    var e = $(this).find("~ .units_table");
    e.slideToggle("slow");

	return false;
  });
}


function initUnitsSorter ()
{
    $("#course-article table.info").tablesorter ({widgets: ['zebra']});
}


function initTabHistory ()
{
    $.ajaxHistory.initialize ();
}

		   

