//$(document).ready(function() {  This is the same as the next line below
$(function() {

	// Expandable Divs for Side Bar
	$('#sidebar-content').find('.stuff').hide().end().find('.drop').click(function() {
         var h3dropdown = $(this).next();
         if (h3dropdown.is(':visible')) {
			 $(this).toggleClass("dropped");
             h3dropdown.slideUp();
         } else {
			 $(this).toggleClass("dropped");
             h3dropdown.slideDown();
         }
     });	


	// Single Table inside of Table
	$('.testtoggletable').find('td').click(function() {
		var td3;
		var topPosition = document.documentElement.scrollTop;
		
		$.post("get-shows.php",{ bandId: $(this).parent().id()	},function(txt){
			//var testit = $(this).parent().id();
			//alert (testit);
			td3 = $(document).find('#reviews').html(txt);
			$(td3).top( topPosition + 'px');
			$(td3).slideDown();
		});
   });

	// Table Sorter
	$(".reviewtable").tableSorter({
		stripingRowClass: ['odd','even'],	// Class names for striping supplyed as a array.
		//highlightClass: 'highlight-column', 		// class name for sort column highlighting.
		stripRowsOnStartUp: true		// Strip rows on tableSorter init.
	});	

	// Table Mouse Over
	$(".reviewtable tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
	
});