// Set up four random, non-repeated images
function adPicsSetup() {

	var used = new Array(32);  // Must be 30 .jpg's in dir
	var ajpg = new Array(4);
	
	// Randomize pix -- don't repeat
	for (j=0; j<4; ) {
		k = Math.floor( Math.random() * 31.99 ) + 1;
		if (used[k] == undefined) {
			used[k] = 1;  // this pic already used
			if (k < 10) k = "0" + k;
			ajpg[j] = k + ".jpg";
			j += 1;
			}
	}

	temp4 = '<table width="728" border="0" cellpadding="0" cellspacing="0"><tr>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[0] + '" width="110" height="100" border="0"></div></td>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[1] + '" width="110" height="100" border="0"></div></td>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[2] + '" width="110" height="100" border="0"></div></td>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[3] + '" width="110" height="100" border="0"></div></td>'
	  + '</tr></table>';

	temp3 = '<table width="728" border="0" cellpadding="0" cellspacing="0"><tr>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[0] + '" width="110" height="100" border="0"></div></td>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[1] + '" width="110" height="100" border="0"></div></td>'
	  + '<td><div align="left">&nbsp;<img src="../adPics/' + ajpg[2] + '" width="110" height="100" border="0"></div></td>'
	  + '</tr></table>';

// Removed pics 8-Jan-07
	// document.write (temp4); // temp3 shows 3 pics, temp4 shows 4 pix

}

