
// Load the navigation images
btn_season_off = CreateImage( '/~arenastage/global/images/nav_season_off.gif' );
btn_season_on = CreateImage( '/~arenastage/global/images/nav_season_on.gif' );

btn_outreach_off = CreateImage( '/~arenastage/global/images/nav_outreach_off.gif' );
btn_outreach_on = CreateImage( '/~arenastage/global/images/nav_outreach_on.gif' );

btn_about_off = CreateImage( '/~arenastage/global/images/nav_about_off.gif' );
btn_about_on = CreateImage( '/~arenastage/global/images/nav_about_on.gif' );

btn_support_off = CreateImage( '/~arenastage/global/images/nav_support_off.gif' );
btn_support_on = CreateImage( '/~arenastage/global/images/nav_support_on.gif' );

btn_tickets_off = CreateImage( '/~arenastage/global/images/nav_tickets_off.gif' );
btn_tickets_on = CreateImage( '/~arenastage/global/images/nav_tickets_on.gif' );


// Navigation variables
var g_iMenuTimerID = Number( 0 );

// Navigation functions
function Nav_Over( strBtn ) {
	if ( bLoaded ) {
		ChangeImage( ('btn_' + strBtn), ('btn_' + strBtn + '_on') );
	} 
}

function Nav_Out( strBtn ) {
	if ( bLoaded ) {
		ChangeImage( ('btn_' + strBtn), ('btn_' + strBtn + '_off') );
	} 
}

function Menu_Over( strMenu ) {
	if ( bLoaded ) {
		clearTimeout( g_iMenuTimerID );
		DocumentObject( 'season_menu', true ).display = ((strMenu=="season")?'inline':'none');
		DocumentObject( 'outreach_menu', true ).display = ((strMenu=="outreach")?'inline':'none');
		DocumentObject( 'about_menu', true ).display =((strMenu=="about")?'inline':'none');
		DocumentObject( 'support_menu', true ).display = ((strMenu=="support")?'inline':'none');
		DocumentObject( 'tickets_menu', true ).display = ((strMenu=="tickets")?'inline':'none');
	}
}

function Menu_Out( ) {
	g_iMenuTimerID = setTimeout( 'Hide_Menus()', 1500 );
}

function Menu_Item_Over() {
	clearTimeout( g_iMenuTimerID );
}

function Menu_Item_Out() {
	g_iMenuTimerID = setTimeout( 'Hide_Menus()', 1500 );	
}

function Hide_Menus() {
	if ( bLoaded ) {
		DocumentObject( 'season_menu', true ).display = 'none';
		DocumentObject( 'outreach_menu', true ).display = 'none';
		DocumentObject( 'about_menu', true ).display = 'none';
		DocumentObject( 'support_menu', true ).display = 'none';
		DocumentObject( 'tickets_menu', true ).display = 'none';
	}
}