function toggleTables() {
	$('table.toggle.closed tbody').hide();
	$('table.toggle.closed tfoot').hide();
	$('table.toggle thead a.toggle_switch').click(
		function() {
			/*
			$(this).next().slideToggle('normal',function(){
				var id = $(this).attr('id'); // the ID of a sliding element, ex: "slide_3"
				var number = id.substring(6); // take just the number from the ID, ex: "3"
				if ($(this).is(':hidden')) {
					var state = "closed";
				} else if ($(this).is(':visible')) {
					var state = "open";
				}
				accordionArray[number] = state; // update the array to set the number of the element clicked to its new state, ex: groupsArray[3] = "open";
				$.cookie('accordionList', accordionArray, { expires: myDate }); // save the updated array as a cookie
				return false;
			 });
			*/
			//alert($(this));


			if ($(this).parent().parent().parent().nextAll().is(':hidden')) {
				$(this).parent().parent().parent().nextAll().show();
				$(this).removeClass('toggle_switch closed');
				$(this).addClass('toggle_switch open');
			} else if ($(this).parent().parent().parent().nextAll().is(':visible')) {
				$(this).parent().parent().parent().nextAll().hide();
				$(this).removeClass('toggle_switch open');
				$(this).addClass('toggle_switch closed');
			}


			return false;
		}
	);
}