// JavaScript Document
    $(document).ready(function()
	{ 
              /*------------------------Events script----------------------------------*/
	   //hide description and notify user that it can be shown
	   $("div.summer-events p.description").hide().next().hide().parent();
	    $(".toggled").hide();
	   //add pointer to indicate that this field is clicakable
	   $("h3.highlight, h4.lib-click, h4.lib-click-single").css({cursor:"pointer"});

	   $("h3.highlight").hover(function(){$(this).addClass("active").prepend("<div class=\"msg\"> (Click this title to expand or contract this event.)</div>")}, function(){$(this).removeClass("active"); $(".msg").remove()});
	   	   //add another long chain to show and hide content
	   /*
	   WORKING
  $("div.summer-events h3").toggle(function(){$(this).next().fadeIn(400, function(){$(this).next().fadeIn(400).next().hide();})}, function(){$(this).next().next().fadeOut(400, function(){$(this).prev().fadeOut(400, function(){$(this).next().next().fadeIn(100);})})});
  
  
  	   */
  $("div.summer-events h3.highlight").toggle(function(){$(this).nextAll().show()}, function(){$(this).nextAll().hide()});
  
  $("h4.lib-click").toggle(function(){$(this).nextAll().show()}, function(){$(this).nextAll().hide()});
  $("h4.lib-click-single").toggle(function(){$(this).next().show()}, function(){$(this).next().hide()});

  $("p.event-description").before("<a href=\"#\" class=\"view-event-description\">Show/Hide Description</a>");	
  $("p.event-description").hide();
   $("a.view-event-description").toggle(function(){$(this).nextAll().show()}, function(){$(this).nextAll().hide()});
																
  //striping must use nth-cild to get RELATIVE rows for striping
  $("table.events-table tr.stripable:nth-child(even)").addClass("stripe");
  /*.hover(function(){$(this).removeClass("stripe").addClass("whactive");}, function(){$(this).removeClass("whactive").addClass("stripe");});;
  $("table.events-table tr.stripable").hover(function(){$(this).addClass("whactive");},function(){$(this).removeClass("whactive");;});
  
  */
  
//menu

 //body decorations
 

$("body").append("<div id=\"stilt\"></div>");
  
  
    }); 