		var nn,ie,myWidth,myHeight
		nn = (document.layers) ? 1:0
		ie = (document.all) ? 1:0
		var newWindow
		var oldStuff = parseInt(navigator.appversion) < 3
		var thumbnailArray = new Array()
		var fullsizeArray = new Array()
		var descriptionArray = new Array()
		var attr = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes"
		
		if (screen.width < 660) {
			myWidth = screen.width
		} else {
			myWidth = 660
		}
		attr += ",width=" + myWidth
		
		if (screen.height < 700) {
			myHeight = screen.height - 80
		} else {
			myHeight = 700
		}
		attr += ",height=" + myHeight
		
		if (ie) {
			attr += ",left=" + (screen.width - myWidth) / 4
			attr += ",top=" + (screen.height - myHeight) /4
		} else {
			attr += ",screenX=" + (screen.width - myWidth) / 4
			attr += ",screenY=" + (screen.height - myHeight) / 4
		}

		function ShowShot(shot) {
        	newWindow = window.open("","ss",attr)
			if (!newWindow.opener) {
				newWindow.opener = window
			}
			setTimeout("writeToWindow(" + shot + ")", 500) //delay writing until window exists in IE3
		}

		function writeToWindow(shot) {
			var html = '<html><head><title>Forecaster - Screen Shot</title>\n'
			html += '<LINK REL=StyleSheet HREF="forecaster.css" TYPE="text/css" MEDIA=screen></head>\n'
			html += '<body><center>\n'

			//html += '<b class="programtitle">Forecaster - Screen Shot</b><br>\n'

			html += '<table cellpadding="5" cellspacing="0" border="0"><tr><td>&nbsp;<img src="images/dotclear.gif" width="60"></td><td>'
			html += '<div class="text">' + descriptionArray[parseInt(shot)] + '</div>'
			html += '</td><td>&nbsp;<img src="images/dotclear.gif" width="50"></td></tr></table>'
			html += '<br>'

			html += '<img src="' + fullsizeArray[parseInt(shot)] + '" border="0" alt="Screen Shot - Big Picture"></center><br>\n'
			
			//html += '<table cellpadding="5" cellspacing="0" border="0"><tr><td>&nbsp;<img src="images/dotclear.gif" width="60"></td><td>'
			//html += '<div class="text">' + descriptionArray[parseInt(shot)] + '</div>'
			//html += '</td><td>&nbsp;<img src="images/dotclear.gif" width="50"></td></tr></table>'

			html += '</body></html>'
			newWindow.document.write(html)
			newWindow.document.close()
		   setTimeout("focusWindow()",250) // delay a bit here because IE4 encounters errors when trying to focus a recently opened window
		}

		function focusWindow() {
			newWindow.focus()
		}


