function hotImage (imgObj, normalImg, hotImg) {
    this.active = new Image();
    this.active.src = 'pix/' + hotImg;
    this.inactive = new Image();
    this.inactive.src = 'pix/' + normalImg;
    this.image = imgObj;
}

hotImgs = new Array();

function initImage (imgObj, imgName, normalImg, hotImg) {
    hotImgs[imgName] = new hotImage(imgObj, normalImg, hotImg);
}

function activateImage (imgName) {
    hotImgs[imgName].image.src = hotImgs[imgName].active.src;
}

function deactivateImage (imgName) {
    hotImgs[imgName].image.src = hotImgs[imgName].inactive.src;
}

