function showSpotlightImage (imageID, imageWidth, imageHeight) {
	var url     = 'spotlight_image.asp?imageID=' + imageID;
	var title   = 'Spotlight';
	var options = 'resizable=yes,status=no,menubar=no,toolbar=no,scrollbars=no,width='+imageWidth+',height='+imageHeight+',top=60,left=60';
	
	return (showPopUp(url, title, options) != null);
}

function resizePopUpToContents () {
	var docWidth = documentWidth();
	var docHeight = documentHeight();

	var resizeToWidth = parseInt(returnObject('largeImage').offsetWidth);
	var resizeToHeight = parseInt(returnObject('popUpContents').offsetHeight);

	window.resizeTo(resizeToWidth, resizeToHeight);

	docWidth = documentWidth();
	docHeight = documentHeight();
	if ((docWidth < resizeToWidth) || (docHeight < resizeToHeight)) {
		resizeToWidth += resizeToWidth - docWidth;
		resizeToHeight += resizeToHeight - docHeight;
		window.resizeTo(resizeToWidth, resizeToHeight);
	}
}

function preLoadLargeViews () {
	var imageCount = preLoadLargeViews.arguments.length;
	
	if (imageCount > 0) {
		var preLoadedImages = new Array(imageCount);
	
		for (var iImages = 0; iImages < imageCount; iImages++) {
			preLoadedImages[iImages] = new Image();
			preLoadedImages[iImages].src = 'images/spotlights/600x400/'+preLoadLargeViews.arguments[iImages];
		}
	}
	return true;
}	
