//*****************************
// Rollover scripts
//*****************************

// Global variables 

// navigation

var btnFish = new Array( "btnLeftFish", "btnRightFish");
var objNormalFish = new Array( btnFish.length );
var objRolloverFish = new Array( btnFish.length );

//************************
// function loadImages:
//
// Preload button images
//************************

function loadFishImages( )
{
   var length = btnFish.length;
   var i;

   if (document.images) {
         for (i=0; i<length; i++) {
               var imageFish = btnFish[ i ];   
               objNormalFish[ imageFish ] = new Image( );
               objRolloverFish[ imageFish ] = new Image( );
   
               objNormalFish[ imageFish ].src = "images/products/" + btnFish[ i ] + ".gif";
               objRolloverFish[ imageFish ].src = "images/products/" + btnFish[ i ]  + 
                                                              "Over.gif";
         }
   }
}

//************************
// function makeRollover:
//
// Loads document image object
// with rollover object's image source
//************************

function makeRolloverFlip( objName )
{
   if (document.images) {
         if ( objRolloverFish[ objName ] ) 
               document.images[ objName ].src = objRolloverFish[ objName ].src;
   }
}

//************************
// function makeNormal:
//
// Loads document image object
// with normal object's image source
//************************

function makeNormalFlip( objName )
{
   if (document.images) {
         if ( objRolloverFish[ objName ] ) 
               document.images[ objName ].src = objNormalFish[ objName ].src;
   }
}

