
//jQuery code for this page
$(document).ready(function(){
// close the offDiv content sections
//(doing this with js instead of css means if no js, content is all visible)
$('.offDiv > .show-hide').hide();
// show the correct buttons for each div
// they are hidden with css for no-js users
$('.offDiv > .showLink').show();
$('.onDiv > .hideLink').show();
$('a.showAll').show();
$('a.hideAll').show();

// show all link
$('a.showAll').click(function(){
$('.show-hide').slideDown('slow');
$('.offDiv').removeClass().addClass('onDiv');
$('a.hideAll').show();
$('a.hideLink').show();
$('a.showLink').hide();
$(this).hide();
return false;
});
// hide all link
$('a.hideAll').click(function(){
$('.show-hide').slideUp('slow');
$('.onDiv').removeClass().addClass('offDiv');
$('a.showLink').show();
$('a.hideLink').hide();
$(this).hide();
$('a.showAll').show();
return false;
});
 // title is clickable, and toggles the content
$("#faq li").click( function() { 
  	$(this).next("p").slideToggle('slow');
//	$(this).parent("div").toggleClass('offDiv');
//	$(this).parent("div").toggleClass('onDiv');
//	$(this).siblings("a").toggle();
 } );

});

