	/**$('#expanda h2').click(function(){

		var
			el = this,
			node = $(this).next();

		$(node).is(":hidden") ?
			$(node).show(0) && $(el).addClass('expanded') :
			$(node).hide(0) && $(el).removeClass('expanded') ;

	});
*/
$(function(){

	/**
	 * Hide navigation elements
	 */
	$('#navigation ul.menu').hide(0);
	$('#navigation h3').css('cursor', 'pointer');


/**
	 * Toggle navigation section
	 */
	$('#navigation h3').click(function()
	{

		var
			el = this,
			node = $(this).next();

		$('#navigation h3').each(function(){
			$(this).removeClass('expanded');
		});

		$('#navigation ul').each(function(){
			if( $(this).is(':visible') && $(this).get(0) != $(node).get(0) )
				$(this).slideUp('slow');
		});

		$(node).is(':hidden') ?
		$(node).slideDown('slow', function(){ $(el).addClass('expanded') }) :
		$(node).slideUp('slow', function(){ $(el).removeClass('expanded') }) ;

	});
	
	
	
	    $('#navigation ul li a').each(function()
    {
        if( $(this).attr('href') == location.pathname+location.hash+location.search ||
            $(this).attr('href') == window.location
        )
        {
            var el = $(this).parents().get(1).previousSibling;
            while( el.nodeType != 1 )
            {
                el = el.previousSibling;
            }
            $(el).trigger('click');
            navigationopen = true;
            return;
        }
    });

	
} ); 

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

