
// LEFT NAVIGATION SCRIPT

//set path to navigation image directory
var pth = "images/navigation/";

//load array of image names. We'll append -out.gif and -over.gif to these when we set the source
var imgArray = new Array('biography','galleries','newworks','process','exhibits','studiogallery','links','contact');
var imgOut = new Array();
var imgOver = new Array();

    // preload the images
    if (document.images)
    {   // i is passed when we call the function from the image link
        // loop through the imgArray, create a new image object of the same name
        // and set it's src to pth + rootname + -out.gif or -over.gif
        for( i=0; i<imgArray.length; i++)
        {
            // preload the out images
            imgOut[i] = new Image();
            imgOut[i].src = pth + imgArray[i] + "-out.gif";
            // preload the over images
            imgOver[i] = new Image();
            imgOver[i].src = pth + imgArray[i] + "-over.gif";
                 
        }   // okay. the image objects now have their paths set to 1 out gif and 2 over gifs
     }

    function rollOver(i)
    {    
        document.images[imgArray[i]].src = imgOver[i].src; // set image with name i to imgOver[i].src
    }

    function rollOut(i)
    {    // swap it back
        document.images[imgArray[i]].src = imgOut[i].src;
   }
   
   
   // Netscape 4 Resize fix

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);