
function initMenu() {
  
  //$('.text_toggle').hide();
  
  $('.header_toggle').next().hide();
  $('.header_toggle').click(
    function() {
    	//$('.header_toggle').next().slideUp();
        //$(this).next().slideToggle();
        
        //$('.header_toggle').next().toggle(false);
        //$(this).next().toggle();
        
        var $div_toggle;
        $div_toggle = $(this).next();
        
        if ($div_toggle.is(':visible'))
        {
        	$div_toggle.hide();
        	$(this).find('h3').css("background-image","url(\"arrow_down.gif\")")
        }
        else
        {
        	$div_toggle.toggle();
        	$(this).find('h3').css("background-image","url(\"arrow_up.gif\")")
        }
        
      }
    );
  }
$(document).ready(function() {initMenu();});


/*
$(document).ready(function () {
    var $div = $('.text_toggle');
    var $div_toggle;
    var height = $div.height();
    $div.hide().css({ height : 0 });

    $('.header_toggle').click(
    	function () {
    	$div_toggle = $(this).next();
        if ($div_toggle.is(':visible')) {
            $div_toggle.animate({ height: 0 }, { duration: 1000, complete: function () {
                $div_toggle.hide();
            } });
        } else {
            $div_toggle.show().animate({ height : height }, { duration: 1000 });
        }
        
        return false;
    });
});
*/
