// rollover images

if (document.images) {

    // To remove mouseovers just remove the name line from the array below

    // To add a new mouse over put the name part of the file here
    // eg if the image can be found at /photos/imagename.jpg
    // then the array name part will be 'imagename' 
    // if the image is in a subdir of /photos/ then array name 
    // will be subdir/imagename
    // and on the html page there is a new onmouseover call called imgOn()
    // which takes 2 variables, the 1st being the name of the 
    // image to change, the 2nd being the name part of the image to replace it

    // note all images must be .jpg

    // to help with testing to make sure things are working right
    // you can turn debug mode on by changing it to equal 1
    // but remeber to change it back to 0 again before sending live

    var DEBUG = 0; var checklist ='';




    var upimages = new Array(
"summer08/Black-2-Leaf",
"summer08/EarthSweatie", 
"summer08/EveningSkySweatie", 
"summer08/CoalRoundneck",
"summer08/SnowRoundneck", 
"summer08/EveningSkyRoundneck",
"summer08/BlackV-Neck",
"summer08/WhiteV-Neck", 
"summer08/ChambrayFish" 
);

// No need to edit below here

    var my_on = new Array();

    for(var i=0;i<upimages.length;i++){
    my_img = upimages[i];
    my_img_on = "/photos/"+my_img+".jpg";
    my_on[i] = upimages[i]+"_on";
    my_on[i] = new Image();
    my_on[i].src = my_img_on;
    }
}

function imgOn (changeImg,imgName) {
    if (document.images) {
        for(var i=0;i<upimages.length;i++){
            my_on_now = upimages[i];
            if(DEBUG == 1){
            //    alert(my_on_now+' '+imgName);
            }
            if(my_on_now == imgName){
                if(DEBUG ==1){
                     alert("Found match");
                     if(checklist.indexOf(imgName)== -1){ 
                         checklist += imgName+'\n';
                     }
                }
                document[changeImg].src = eval('my_on[i].src');
                break;
            }
        } 
        if(DEBUG ==1){
           alert(checklist);
        }
    }
}

// No need to edit above here
