	myPix = new Array("sidepicsgames/pirate.jpg","sidepicsgames/gameboard.jpg","sidepicsgames/manygames.jpg","sidepicsgames/gamesmaster.jpg","sidepicsgames/gamestable.jpg");
	imgCt = myPix.length;
	imgOffset = 0;

	function choosePic(img)
	{
		if (document.images)
		{
			do
			{
				/* pick a random image */
				randomNum = Math.floor((Math.random() * imgCt));
				document.images[imgOffset + img - 1].src = myPix[randomNum];

				/* make sure it doesn't duplicate an already showing image */
				done = 1;
				for (otherImg = 1; otherImg < img; ++otherImg)
				{
					if (document.images[imgOffset + otherImg - 1].src
							== document.images[imgOffset + img - 1].src)
						done = 0;
				}
			}
			while (done == 0);
		}
	}

	function chooseAllPics(imgsBeforeRandomOnes, imgsToShow)
	{
		imgOffset = imgsBeforeRandomOnes;

		for (img = 1; img <= imgsToShow; ++img)
		{
			choosePic(img);
		}
	}
	