
/**
*
*
*/

/**
* Swap out an image src property via the DOM
*
* @param id the element id of the image (not name)
* @param src the src property of the image
*/
function swapImage(id, src)
{
	if (document.getElementById)
	{
		document.getElementById(id).setAttribute('src', src);
	}
}


function setImage(imgName, type) {
    if (document.images) {
        if (type == "on") {
            document.images[imgName].src = imagesOn[imgName].src;
            return true;
        } else if (type == "off") {
            document.images[imgName].src = imagesOff[imgName].src;
            return true;
        }
    }
    return false;
}