//Filtering on Get Involved page
$(function() {
	var newSelection = "";	
	// When a link in the filtering navigation is clicked...
	$("#service-nav a").click(function(){	
		// Fade down all blocks (visual indication something is changing)
	    $("#all-service").fadeTo(200, 0.10);	
		// Remove "current" class from all navigation and apply it to newly clicked navigation
		$("#service-nav a").removeClass("current");
		$(this).addClass("current");		
		// Figure out which group should be showing from the REL attribute
		newSelection = $(this).attr("rel");		
		// Any element NOT a part of the group, slide up
		$(".service").not("."+newSelection).slideUp();
		// Any element that IS a part of the group, slide down
		$("."+newSelection).slideDown();		
		// Fade back up all blocks
	    $("#all-service").fadeTo(600, 1);		
	});
	
});

//Q&A, for example on FAQ page		
$(document).ready(function() {
		$('#q-a h4').each(function() {
			var tis = $(this), state = false, answer = tis.next('div').slideUp();
			tis.click(function() {
				state = !state;
				answer.slideToggle(state);
				tis.toggleClass('active',state);
			});
		});
	});
//Table striping
$(document).ready(function() {
	$(".striped-rows tr:odd").addClass("oddRow");
});
	
