// JavaScript Document

$(document).ready( init	);

function init()
{
	$( ".side_box h3" ).click( hideShowDescription );
}

function hideShowDescription()
{
	if( $( this ).hasClass( "hidden" ) )
	{
		showDescription( this );
	}
	else
	{
		hideDescription( this );
	}
}

function showDescription( elm )
{
	$( elm ).removeClass( "hidden" );
	$( elm ).children( "span" ).html( "-" );
	if( $( elm ).hasClass( "no_animation" ) )
	{
		$( elm ).next().show();
	}
	else
	{
		$( elm ).next().show( "slow" );
	}
}

function hideDescription( elm )
{
	$( elm ).addClass( "hidden" );
	$( elm ).children( "span" ).html( "+" );
	if( $( elm ).hasClass( "no_animation" ) )
	{
		$( elm  ).next().hide();
	}
	else
	{
		$( elm  ).next().hide( "slow" );
	}
}

function hideShow( elm )
{
	
}

function stopPropagation( evt )
{
	evt.cancelBubble = true; 
	if( evt.stopPropagation ) 
		evt.stopPropagation();
}

