﻿// JScript File

function SwapImage(ImageID, ImageURL) {
    var img = document.getElementById(ImageID);
    if (img) {
        img.src = ImageURL;
    }
}
function showLarge(img) {
    if (!img) {
        return;
    }
    var x = document.getElementById("LargeImage");
    if (x) {
        x.src = img.src.replace("_s.jpg", ".jpg").replace("_s.png", ".png").replace("_s.gif", ".gif");
        if (img.offsetParent) {
            x.style.top = img.offsetTop +52 + "px";
        } else if (img.y) {
            x.style.top = img.y + 52 + "px";
        }
    }
    var y = document.getElementById("LargeImage");
    if (y) {
        y.style.display = "block";
    }
}
function hideLarge() {
    var x = document.getElementById("LargeImage");
    if (x) {
        x.style.display = "none";
    }
}

