/* ============================== */
/* == Chubbyfish Accordion ====== */
/* ============================== */


jQuery132(document).ready(function(){

	// create onclick functionality to make accordion work
	jQuery132("#cat_accordion > li h2").click(function() {		
		// check if the item clicked is already open
		var isOpen = (jQuery(this).parent().hasClass("open")) ? true : false;
		
		// close items that are open
		jQuery132("#cat_accordion li.open").removeClass("open").find(".listwrap").animate({height: 'hide'}, {duration: 400, easing: "swing", queue: "first"});
		
		// if clicked item was not already open, open it
		if (!isOpen) {
			jQuery132(this).parent().addClass("open").find(".listwrap").animate({height: 'show'}, {duration: 400, easing: "swing", queue: "first"});
		}
	});   
   
});



