var q = self.document.location.hash;

$(document).ready(function(){
	
	//FAQ page sub menu fx
	
	//This sets the height of the right box so the divider line goes all the way down
	$('.answer').closest(".box").height($(".sub-menu").height())
	
	//Hides all answers on the right side and then shows the first answer (school-emergency)
	$('.answer, .section').hide()
	$(".organization-emergency, .overview").show();
	
	
	
	//Toggle function
	$(".sub-menu a, .prev-link a, .next-link a").click(function() {
		
		$(".sub-menu a").removeClass("hilite")
		$(this).toggleClass("hilite")
		
		var $this = $(this);
		var x = "." + $this.attr("href").substring(1);
		
		$('.answer, .section').hide()
		$(x).fadeIn();		
		
		return false;
		
	});
	

	/* This is basic - uses default settings */

	$("a#single_image").fancybox();

	/* Using custom settings */

	$("a#inline").fancybox({
		'hideOnContentClick': false,
		'frameWidth': 480,
		'frameHeight': 295
	});

	$("a.group").fancybox({
		'zoomSpeedIn':		300, 
		'zoomSpeedOut':	300, 
		'overlayShow':		false
	});
	
	$('#s1').cycle('fade');
	
});