		function qrand(n) {
		RandSeed = (RandMultiplier * RandSeed + RandIncrement) % 0x7fffffff
		return (RandSeed >> 16) % n
		}
		function qinit() {
		RandMultiplier = 0x015a4e35
		RandIncrement = 1
		var now = new Date()
		RandSeed = now.getTime() % 0xffffffff
		}
		qinit()
		listsize = 7 
		choosenum = 6
		arUrls = new Array("http://www.village-essex.com",
		
		    "http://www.capeannmarina.com",
			"http://www.essexcruises.com",
			"http://www.atlantismotorinn.com", 
			"http://www.yankeefleet.com", 
			"http://www.cape-ann.com/rentals.html", 
			"http://www.cape-ann.com/7seas/whalewatch/index.html")
		arAlts = new Array("The Village Restaurant",
		
		    "Cape Ann Marina Resort",
			"Essex River Cruises & Charters",
			"Atlantis Oceanfront Motor Inn",
			"Atlantic Yankee Fleet", 
			"Click for Rental Inquiries",
			"www.7seas-whalewatch.com")
		arGraphics = new Array("http://www.cape-ann.com/demo/vrjpeg.jpg",   
		    
			"http://www.cape-ann.com/demo/CapeAnnMarinaad.gif",
			"http://www.cape-ann.com/demo/cruises_essex_massachusetts.gif",        		      
            "http://www.cape-ann.com/demo/atlantisbanner.gif", 	
			"http://www.cape-ann.com/demo/YFBanner.gif",        
			"http://www.cape-ann.com/demo/miles.gif", 
			"http://www.cape-ann.com/demo/Sevensea.gif")
		for (i = 0; i < choosenum; i++)
		{
			var nexttext = ""
			var nextrnd = 0
			while (nexttext == "") 
			{
				nextrnd = qrand(listsize)
				nexttext = arUrls[nextrnd]
				arUrls[nextrnd] = ""
			}
			document.write("<a href=\"", nexttext, "\">")
			document.write("<img src=\"", arGraphics[nextrnd], "\" border=0 hspace=1 alt =\"", arAlts[nextrnd], "\" width=120 height=60>")
			document.write("</a>")
		}
			document.write("<br>")
		// -->
					
