<!--
    // declare all variables to be used within this script to preload all images for the student gallery.
    var normal = new Array();
    normal[0] = new Image();
    normal[1] = new Image();
    normal[2] = new Image();
    normal[3] = new Image();
    normal[4] = new Image();
	normal[5] = new Image();
    normal[6] = new Image();
    normal[7] = new Image();
    normal[8] = new Image();
    
    // begin to preload the images.
    normal[0].src = "/images/gallery/student/normal/broach.jpg";
    normal[0].alt = "Broach";
    normal[1].src = "/images/gallery/student/normal/ring.jpg";
    normal[1].alt = "Ring";
    normal[2].src = "/images/gallery/student/normal/2rings.jpg";
    normal[2].alt = "2 Rings";
    normal[3].src = "/images/gallery/student/normal/necklace.jpg";
    normal[3].alt = "Necklace";
    normal[4].src = "/images/gallery/student/normal/doublering.jpg";
    normal[4].alt = "Double Ring";
	normal[5].src = "/images/gallery/student/normal/bridgit.jpg";
	normal[5].alt = "Bridget";
	normal[6].src = "/images/gallery/student/normal/Claudia.jpg";
	normal[6].alt = "Claudia";
	normal[7].src = "/images/gallery/student/normal/Joely_Rae.jpg";
	normal[7].alt = "Joely Rae";
	normal[8].src = "/images/gallery/student/normal/Naomi_Arai.jpg";
	normal[8].alt = "Naomi Arai";
    
    // THIS FUNCTION WILL SWAP THE MAIN IMAGE WITH THE IMAGE THAT IS ROLLED OVER.
    function swap(thumb, mainimage, index, event) {
        // get the thumbnail and main image object and set the border
        var image = document.getElementById(thumb);
        var main = document.getElementById(mainimage);
        
        // check to see whether its a mouse over or mouse out.
        if (event == "mouseover") {
            image.style.border = "solid 6px #B69462";
        } else if (event == "mouseout") {
            image.style.border = "solid 6px #FFFFFF";
        }
        
        // now set the main image with the thumbnail that is rolled over.
        main.src = normal[index].src;
        main.alt = normal[index].alt;
    }
//-->
