$(document).ready(function() {
$('#volunteer').bind('click', function() {
    $('#mailing').removeClass('selected');
	
 $('#youTube').removeClass('selected');
    $(this).addClass('selected');
  });

$('#mailing').bind('click', function() {
    $('#volunteer').removeClass('selected');
		  
$('#youTube').removeClass('selected');
    $(this).addClass('selected');
  });
$('#youTube').bind('click', function() {
    $('#volunteer').removeClass('selected');
		   
$('#mailing').removeClass('selected');
    $(this).addClass('selected');
  });
$('.showAndHide').bind('click',function(){
	$('#detail').toggleClass('hidden');});
jQuery('ul.oneAccordion').flexAccordion({
		speed: 'fast',	// see jQuery slideDown function for available options
		activeitem: '2', 	// 'none' to close all sliders or specify the index of the slider you want to open (0,1,2...)
		showheaders: true, 	// Specify if you want to show a slide header (span)
		headerEl: 'a', 	// Specify the element to be the header of each slide
		contentEl: 'div',		// Specify the element to be the container of each slide
		targetdelimiter: ' '	// Specify the digit to separate the target slide index in custom buttons
	});
generateSprites(".nav", "current-", true, 300, "slide");

 // Notice the use of the each method to gain access to each element individually
 
  
});


