function openInfoWindow( anchor )
{
   var address = "info.html" + ((anchor!=null) ? ("#"+anchor) : "");
   var win=window.open( address,"info","width=500,height=500,resizable=1,scrollbars=1" );
   win.focus();
}
function openWinnerWindow()
{
   var win=window.open( "winners.html","win","width=550,height=475,resizable=1,scrollbars=1" );
   win.focus();
}

function preload( imgName )
{
   eval( imgName + '_on=new Image();' );
   eval( imgName + '_off=new Image();' );
   eval( imgName + '_on.src="/images/'+imgName+'_on.gif"' );
   eval( imgName + '_off.src="/images/'+imgName+'_off.gif"' );
}

preload( "menu00" );
preload( "menu01" );
preload( "menu02" );
preload( "menu03" );
preload( "menu04" );
preload( "menu05" );

preload( "M0B0" );
preload( "M0B1" );
preload( "M0B2" );

preload( "M1B0" );
preload( "M1B1" );

preload( "M2B0" );
preload( "M2B1" );
preload( "M2B2" );
preload( "M2B3" );
preload( "M2B4" );

preload( "home" );
preload( "faq" );
preload( "Clearinghouse");
preload( "francais" );

/////////////////////////////////////////////////////////////////////////
// Helpers for Commuter Challenge...

var boxTimer = null;
var imgTimer = null;
var srchTime = null;

function startTimer()
{
   stopTimer();
   boxTimer = setTimeout( "showLayer( null )", 1000 );
   imgTimer = setTimeout( "hidePossibles()", 1000 );
   srchTime = setTimeout( "showSearch()", 1000 );
}
function stopTimer()
{
   if( boxTimer )
      clearTimeout( boxTimer );
   boxTimer = null;
   if( imgTimer )
      clearTimeout( imgTimer );
   imgTimer = null;
   if( srchTime )
      clearTimeout( srchTime );
   srchTime = null;
}

function hidePossibles()
{
   if( document.images ) 
   {
      if( document[ 'menu00' ] != null )
         {imgToggleOFF('menu00');}
      if( document[ 'menu01' ] != null )
         {imgToggleOFF('menu01');}
      if( document[ 'menu02' ] != null )
         {imgToggleOFF('menu02');}
   hideLayer('searchLyr');
   }
}

function hidePossibles2()
{
   if( document.images ) 
   {
         showLayer( null );
         hidePossibles();
         imgToggleOFF('menu00');
         imgToggleOFF('menu01');
         imgToggleOFF('menu02');
         hideLayer('menu00Lyr');
         hideLayer('menu01Lyr');
         hideLayer('menu02Lyr');
         showSearch();
   }
}

function showSearch()
{
   showLayer('searchLyr',null);
}