/*
======================================================================
 Liquid Nails: Help Accordion JavaScript.
======================================================================
*/

var helpAcc_startingTab = -1;
var helpAcc_accordion;

function helpAcc_init() {

	// Initialize the accordion.
	prodAcc_showLoadMsg( false );
	prodAcc_accordion = new accordion( 'helpAcc_container' );

	// Open the starting tab.
	if ( helpAcc_startingTab >= 0 ) {
		helpAcc_accordion.activate( $$( '#helpAcc_container .accordion_toggle' )[ helpAcc_startingTab ] );
	} // End if.

} // End helpAcc_init().

function helpAcc_showLoadMsg( b ) {

	var helpAcc_container = $( 'prodAcc_container' );

	if ( b ) {
		helpAcc_container.style.visibility = 'hidden';
	} else {
		helpAcc_container.style.visibility = 'visible';
	} // End if.

} // End helpAcc_showLoadMsg().

// Hide the accordion until it initializes.
helpAcc_showLoadMsg( true );

Event.observe( window, 'load', helpAcc_init );
