<!--

// File:     menu.js
// Function: The script portion of the site menu
//
// Author:   Bryan J Opalka
// Created:  01-Jan-2000
//
// Copyright (c) 2000
// This script is the property of the Bryan Opalka and cannot be copied or used without
// the permission of the author.

var gb_levelStatus = new Array() ;
var gb_menuStatus = new Array() ;
var gl_menuLevels = 5 ;


// Initialize menu status flags
function of_initMenu()
	{
	var ll_ndx;
	
	for ( ll_ndx = 1; ll_ndx <= gl_menuLevels; ll_ndx++ )
      {
      gb_levelStatus[ll_ndx] = false ;
		gb_menuStatus[ll_ndx] = true ;
      }
	}


// Collapse a menu level
function of_collapse()
	{
	var ll_ndx;
	
	for ( ll_ndx = 1; ll_ndx <= gl_menuLevels; ll_ndx++ )
		of_changeState( ll_ndx ) ;
	}


// Change the expand status of a menu level
function of_changeStatus( al_level )
	{
	gb_menuStatus[al_level] = !gb_menuStatus[al_level] ;

	return gb_menuStatus[al_level] ;
	}


// Change the mouse over status of a menu level
function of_changeLevelStatus( al_level )
	{
	gb_levelStatus[al_level] = !gb_levelStatus[al_level] ;

	return gb_levelStatus[al_level] ;
	}

   
function of_x( ae_id, al_op )
   {
   if ( al_op == 1 )
      ae_id.className='mLevelOver'
   else
      ae_id.className='mItem' ;
   }

   
// Change the class for a mouse over/mouse out event
function of_changeClass( al_level )
   {
   switch( al_level )
      {
      case 1:
         {
         if ( of_changeLevelStatus( al_level ))
            hTC.className='mLevelOver' 
         else
            hTC.className='mLevel' ;
            
         break;
         }
      case 2:
         {
         if ( of_changeLevelStatus( al_level ))
            hCA.className='mLevelOver' 
         else
            hCA.className='mLevel' ;
            
         break;
         }
      case 3:
         {
         if ( of_changeLevelStatus( al_level ))
            hCB.className='mLevelOver' 
         else
            hCB.className='mLevel' ;
            
         break;
         }
      case 4:
         {
         if ( of_changeLevelStatus( al_level ))
            hCC.className='mLevelOver' 
         else
            hCC.className='mLevel' ;
            
         break;
         }
      case 5:
         {
         if ( of_changeLevelStatus( al_level ))
            hCD.className='mLevelOver' 
         else
            hCD.className='mLevel' ;
            
         break;
         }
      }
   }


// Change the class name during an expand/collapse function
function of_changeState( al_level )
	{
	switch( al_level )
		{
		case 1:
			{
			if ( of_changeStatus( al_level ))
				ticketCounter.className='expand' 
			else
				ticketCounter.className='collapse' ;
			
			break ;
			}
		case 2:
			{
			if ( of_changeStatus( al_level ))
				concourseA.className='expand' 
			else
				concourseA.className='collapse' ;
			
			break ;
			}
		case 3:
			{
			if ( of_changeStatus( al_level ))
				concourseB.className='expand' 
			else
				concourseB.className='collapse' ;
			
			break ;
			}
		case 4:
			{
			if ( of_changeStatus( al_level ))
				concourseC.className='expand' 
			else
				concourseC.className='collapse' ;
			
			break ;
			}
		case 5:
			{
			if ( of_changeStatus( al_level ))
				concourseD.className='expand' 
			else
				concourseD.className='collapse' ;
			}
		}
	}

function of_open( al_id ) 
	{
	switch (al_id)
		{
		case 1:
			{
			//var w = window.open('http://www.nobleair.com/hubs/ord/lounge/ordlounge.html', '', 'scrollbars=yes,menu=no,width=1024,height=768,resizable,top=0,left=0');
			var w = window.open('http://nobleord.proboards74.com/index.cgi', '', 'scrollbars=yes,menu=no,width=1024,height=768,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 2:
			{
			var w = window.open('http://noblecoo.proboards57.com/index.cgi', '', 'scrollbars=yes,menu=no,width=1024,height=768,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 3:
			{
			var w = window.open('http://www.nobleair.com/', '', 'scrollbars=yes,menu=no,width=1024,height=768,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 4:
			{
			var w = window.open('http://www.nobleair.com/fleet2004.html', '', 'scrollbars=yes,menu=no,width=1024,height=768,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 5:
			{
			var w = window.open('http://www.nobleair.com/scenery.html', '', 'scrollbars=yes,menu=no,width=800,height=600,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 6:
			{
			var w = window.open('http://www.nobleair.com/noblehubs.html', '', 'scrollbars=yes,menu=no,width=800,height=600,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 7:
			{
			var w = window.open('http://www.nobleair.com/prezletter.html', '', 'scrollbars=yes,menu=no,width=800,height=600,resizable,top=0,left=0');
			w.focus();
			break;
			}
		case 8:
			{
			var w = window.open('http://www.nobleord.com/noble10th/home.asp', '', 'scrollbars=yes,menu=no,width=800,height=600,resizable,top=0,left=0');
			w.focus();
			break;
			}
		}
	}
	
// 
function of_reload(i)
	{
	if (i == 1)
    	parent.banner.location = "default.asp?m=1&r=9&s=0";
    else
    	parent.banner.location = "default.asp?m=0&r=2&s=5";
	}

// -->