		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()
		}

		function ShowDescriptionText(index) {
			ShowDescription(descriptionArray[index])
		}

		function ShowDescription(html) {
			document.write('<table cellpadding="5" cellspacing="0" border="0" width="500"><tr><td>&nbsp;<img src="images/dotclear.gif" width="20"></td><td class="text">')
			document.write(html)
			document.write('</td><td>&nbsp;<img src="images/dotclear.gif" width="20"></td></tr></table>')
		}

		function ShowCopyright() {
			document.write('Copyright &copy; 2001-2005 <a href="bm.htm">Bruce Martin</a>.&nbsp;&nbsp; All Rights Reserved.')
		}
		
		function EmailProblem() {
			var sItemURL = "mailto:?subject=Problem Report&from=&to=software@planyourmoney.com&body=(Note: Please attach your file if possible.)  Here is a description of a problem I have:"
			document.write('<a href="' + sItemURL + '"  target=>Please report any problems.</a>')
		}

		function ShowEmailPage() {
			//var sItemURL = "mailto:?subject=Check out this Web site&body=Here is a great retirement planning program. And it\'s a free download!" + "   Click this link: "  + escape(top.parent.location.href) +  "   Or copy into your browser\'s address window" // address window" //Or copythe link and paste it into your browser address window."
			//var sItemURL = "mailto:?subject=Check out this Web site&body=Here is a great retirement planning program. And it\'s a free download!" + "   Click this link: "  +  "http:&#47;&#47;www.planyourmoney.com"  +  ".   Or copy it into your browser\'s address window."
			var sItemURL = "mailto:?subject=Check out this Web site&body=Here is a great retirement planning program. And it\'s a free download!" + "  Click this link: "  +  "www.planyourmoney.com"  +  ".  Or copy it into your browser\'s address window."
			document.write('<a href="' + sItemURL + '"  target=>E-Mail This Page</a>')
		}

		var menuNameArray = new Array()
		menuNameArray[menuNameArray.length]='Home'
		menuNameArray[menuNameArray.length]='Overview'
		menuNameArray[menuNameArray.length]='Details'
		menuNameArray[menuNameArray.length]='Screen Shots<br>Of Examples'
		menuNameArray[menuNameArray.length]='Recommended<br>Article'
		menuNameArray[menuNameArray.length]='Version<br>History'
		menuNameArray[menuNameArray.length]='Download<br>The Program'
		//menuNameArray[menuNameArray.length]='Send<br>Feedback'
		//menuNameArray[menuNameArray.length]='Discussion<br>Forum'
		menuNameArray[menuNameArray.length]='Sponsorship'
		
		var menuLinkArray = new Array()
		menuLinkArray[menuLinkArray.length]='<a href="home.htm">Home</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="overview.htm">Overview</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="details.htm">Details</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="screenshots.htm">Screen Shots<br>Of Examples</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="articles.htm">Recommended<br>Article</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="versions.htm">Version<br>History</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="downloadstart.htm">Download<br>The Program</a><br><hr>'
		//menuLinkArray[menuLinkArray.length]='<a href="feedback.htm">Send<br>Feedback</a><br><hr>'
		//menuLinkArray[menuLinkArray.length]='<a href="forum/index.php?forum=1">Discussion<br>Forum</a><br><hr>'
		menuLinkArray[menuLinkArray.length]='<a href="sponsor.htm">Sponsorship</a><br><hr>'

		function ShowNavMenu(CurrentPage) {
			document.write('<table  width="110" border="0" align="center" cellpadding="5" ><tr><td class="menu" valign="middle" align="center">')
					
			document.write('<hr>')
			for (var i = 0; i < menuNameArray.length; i++) {
				if (CurrentPage==menuNameArray[i]) {
					document.write(menuNameArray[i] + '<br><hr>')
				} else {
					document.write(menuLinkArray[i])
				}
			}
			ShowEmailPage()
			document.write('<hr>')
			
			document.write('</td></tr></table>')
		}

		function ShowPayBox() {
			document.write('<br>&nbsp;')
			// Begin Amazon Honor System Paybox
			                        //<img src="http://s1.amazon.com/exec/varzea/tipbox/A1V5M79NSFHY7I/T1GGP1Q73WSHG8" usemap="#T1GGP1Q73WSHG8" border="0" alt="Amazon Honor System">
			document.write('<img src="http://s1.amazon.com/exec/varzea/tipbox/A1V5M79NSFHY7I/T1GGP1Q73WSHG8" usemap="#T1GGP1Q73WSHG8" border="0" alt="Amazon Honor System">')
			document.write('<map name="T1GGP1Q73WSHG8">')
			document.write('<area coords="13,64,108,117" href="http://s1.amazon.com/exec/varzea/pay/T1GGP1Q73WSHG8" alt="Click Here to Pay" target=_top>')
			document.write('<area coords="13,133,108,145" href="http://s1.amazon.com/exec/varzea/subst/fx/help/how-we-know.html" alt="Learn More" target=_top>')
			document.write('</map>')
			// End Amazon Honor System Paybox
		}

		function handleResize() {
			location.reload(1)
			return false
		}		
		if (nn) {
			window.captureEvents(Event.RESIZE)
			window.onresize = handleResize
		}

