﻿// JScript File
function SwapImage(imageToChangeID, imageAddressToSwapWith)
{
    //notes:  You call this function in the onmouseover and onmouseout events within an img tag.
    // The first parameter (imageToChangeID)is the ID value of the area that will be swapped.
    // For example, if the following image needs to be swapped, simply name it with something unique.
    // <img src="images/whatever.jpg" ID='ChangingPicture' NAME='ChangingPicture' >
    // When you call the function, you would simply specify the ID value mentioned above.
    //  Example  onmouseover="SwapImage('ChangingPicture', 'images/some_other_image.jpg')"

    var ChangeableImage = document.getElementById(imageToChangeID);
    
    ChangeableImage.src = imageAddressToSwapWith;
}
