function preloadAlternateImages(path, imageNames) {
//Load supplied alternate images into cache.
        if(document.images) {
                document.imageArray = new Array();
                for(i = 0; i < imageNames.length; i++) {
                        document.imageArray[i] = new Image;
                        document.imageArray[i].src = path + "/" + imageNames[i] + '_2.gif';
                }
        }
}

function setAlternateImage(path,imgName) {
		 document.images[imgName].src = path + '/' + imgName + '_2.gif';
}

function setMainImage(path,imgName) {
        document.images[imgName].src = path + '/' + imgName + '_1.gif';
}

function showHideItemOnSelectValue(selectControl,itemName,showValue) {
	//Reveals or hides the supplied item depending on the value of the supplied Select.
	if (selectControl.options[selectControl.selectedIndex].value==showValue) {
		itemName.style.display="block";
	} else {
		itemName.style.display="None";
	}
}
