  
jQuery(document).ready(function() {
			
	jQuery('.sub-menu').hide();  //Hide sub-menus

});


jQuery(document).ready(function() {
	
			
	if (      jQuery('li.current-menu-item')    &&   jQuery('li.current-menu-item').parent().attr("class") == "menu") {
		jQuery('li.current-menu-item .sub-menu').show();  //Show sub-menus under the current category
	}


	if (       jQuery('li.current-menu-item')    &&  jQuery('li.current-menu-item').parent().attr("class") == "sub-menu") {
		jQuery('li.current-menu-item').parent().show();  //Don't remove the submenu
	}


    /* Function for switching between forms */

	jQuery(function() {
	    jQuery('#formselector').change(function() {
	        var val = jQuery(this).val();
			
			if(val=='2') {
			    jQuery("#selection2").show("slow");
			    jQuery("#selection3").hide();
			  }
			  else if(val=='3') {
			   jQuery("#selection3").show("slow");
			   jQuery("#selection2").hide();
			   }
			 else{
			  jQuery("#selection2").hide();
			  jQuery("#selection3").hide();
			}

	    });
	});

	
// Disabled for now
/*	

jQuery('.acc_container').hide(); //Hide/close all containers
jQuery('.acc_trigger:first').addClass('active').next().show();  //Add "active" class to first trigger, then show/open the immediate next container

//On Click
jQuery('.acc_trigger').click(function(){
	if( jQuery(this).next().is(':hidden') ) { //If immediate next container is closed...
		jQuery('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
		jQuery(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	return false; //Prevent the browser jump to the link anchor
}); */

});




