// Accordion jquery

$(document).ready(function() {
	//the speed of the animation for the accordian
	$.ui.accordion.animations.superbounce = function(options) {
		this.slide(options, {
			easing: "easein",
			duration: 700

		});
	 };

	$("#main-accordian-wrap div.content").hide(); //Hide for safari (doesn't work consistantly when done through css)
	$("#main-accordian-wrap div.content").show(); //Show all so accordian can do it's thing)

	$("#main-accordian-wrap").accordion({
		event: "click",
		header: "h2",
		autoHeight: false,
		animated: 'superbounce',
		active: "h2.ShowFirst", //ShowFirst class goes on link you want to display by default when page is first opened
		selectedClass: "accordian-onstate"
	});
	
	$("#main-accordian-wrap h2").mouseenter(function() {
		$(this).addClass("accordian-hoverstate");		
		$(this).parent().addClass("accordian-hoverstate");

	}).mouseleave(function() {
		$(this).removeClass("accordian-hoverstate");		
		$(this).parent().removeClass("accordian-hoverstate");
	});
});




