jQuery(document).ready(function(){
	
	// class of first reveal
	var $current = '#delivercontainer h2:first'; // set to 'none' if no first open required
	var $showPrev = false; // Set if you want the previous to stay open or to close
	var $prev = $current;


	// Set intial toggle arrow so arrow is closed
	$('h2 .arrow_open').toggle();

	// set click
	$('#delivercontainer h2').click(function() {
	
	
		$(this).next().slideToggle("slow");		 
		// Get kids to change arrows
		var $kids = $(this).children();
		$kids.toggle();// toggle arrows
			
		
		

		if ($showPrev == false && $current!= this) { // Hide previous if false
		
			if ($current!= null) {
				$($current).next().slideToggle("slow");
				
				var $kids = $($current).children();
				$kids.toggle();
				$current = this;
			} else {
				$current = this;
				
			}
			
		} else {
				$current = null;
		}

		return false;
		}).next().hide();


		// Set intial view
		if ($current != 'none') {

			$($current+" .arrow_open").toggle();
			$($current+" .arrow_closed").toggle();
				$($current).next().slideToggle();
				
				
				$($current).show(function() {
						$current = this; // Hack to set current as object not id srting
						});
			
		}
		
		
		$("#delivercontainer h2").bind("mouseenter",function(){
		    $(this).css("text-decoration","underline");
			
		    }).bind("mouseleave",function(){
		    $(this).css("text-decoration","none");
		    });
		

	});
