//
// FileName : ACC.js
// Author : Paul Little
// Version : 0.5
// Date :  10th October 2002
// Description: Defined main Javascript functions for image & text manipulation 
//

// ***************************
// Setup some global variables
// ***************************
allart = new Array();



// *****************************************************
// Function to 'swap' menu images on mouseover/mouseout.
// *****************************************************
function swapImage(imgName, type) {

    if (document.images) {  
        document.images[imgName].src = eval(imgName + type + ".src");
    } else {
        alert ("The requested object" + imgName + "doesn't exist. Please contact the ACC website administrator");
    }

}

// ******************************************************
// Preload all these images (for menu bar and navigation)
// ******************************************************
if (document.images) {

    home       = new Image();
    news       = new Image();
    bios       = new Image();
    gallery    = new Image();
    links      = new Image();
    contact    = new Image();
      
    homeon       = new Image();  
    newson       = new Image();  
    bioson       = new Image();  
    galleryon    = new Image();  
    linkson      = new Image();  
    contacton    = new Image();  

    home.src       = "image/menu/home.gif";
    news.src  	   = "image/menu/News.gif";
    bios.src       = "image/menu/Biographies.gif";
    gallery.src 	= "image/menu/Gallery.gif";
    links.src      = "image/menu/Links.gif";
    contact.src    = "image/menu/Contact2.gif";  

    homeon.src       = 'image/menu/Home-On.gif';
    newson.src       = "image/menu/News-On.gif";
    bioson.src       = "image/menu/Biographies-On.gif";
    galleryon.src    = "image/menu/Gallery-On.gif";
    linkson.src      = "image/menu/Links-On.gif";
    contacton.src    = "image/menu/Contact2-On.gif";

    picnext   = new Image;
    picprev   = new Image;
    picindex  = new Image;
      
    picnexton   = new Image;
    picprevon   = new Image;
    picindexon  = new Image;
      
    picnext.src  = "image/menu/Next.gif";  
    picprev.src  = "image/menu/Previous.gif"; 
    picindex.src = "image/menu/Index.gif";

    picnexton.src  = "image/menu/Next-On.gif";  
    picprevon.src  = "image/menu/Previous-On.gif"; 
    picindexon.src = "image/menu/Index-On.gif";
      
}

// ***
// EOF
// ***
