$(document).ready(function(){
	// Agency List/Agency Sublist Microformats show/hide
	$('.agencyInfo').css("display","none");
	$('.agencyShow').css("display","block");
	$('.thickbox').css("display","inline");
	$('.agencyHide').css("display","block");
	
	// Expand/Collapse from text link
//	var showText="Expand";
//	var hideText="Collapse";	
//		$(".switch").prev().append('<a href="#" class="switchLink">'+showText+'</a>');
//		$('.switch').hide();		
//		$('a.switchLink').click(function() {
//			if ($(this).text()==showText) {
//			$(this).text(hideText);
//			}
//			else {
//			$(this).text(showText);
//			}
//	$(this).parent().next('.switch').slideToggle('fast');	
//	return false;	
//});

	//Expand/Collapse eGov Page
	$(".toggle_container").hide();

		$("h1.trigger").toggle(function(){
			$(this).addClass("active"); 
			}, function () {
			$(this).removeClass("active");
		});
		$("h1.trigger").click(function(){
			$(this).next(".toggle_container").slideToggle("slow,");
		});
});
