
jQuery(document).ready(function(){
	
		jQuery('#faqSection dt').live('click',function(){
			var dd = jQuery(this).next();
			
			// If the title is clicked and the dd is not currently animated,
			// start an animation with the slideToggle() method.
			
			if(!dd.is(':animated')){
				dd.slideToggle();
				jQuery(this).toggleClass('opened');
			}
			
		});
		
		jQuery('#faqSection a.button').click(function(){
			
			// To expand/collapse all of the FAQs simultaneously,
			// just trigger the click event on the DTs
			
			if(jQuery(this).hasClass('collapse')){
				jQuery('#faqSection dt.opened').click();
			}
			else jQuery('#faqSection dt:not(.opened)').click();
			
			jQuery(this).toggleClass('expand collapse');
			
			return false;
		});

});

