var showPix = 12; //number of images to display in mosaic
var totalPix = 39; // number of possible choices
var randy = 0;
var pixPath = "http://alumninet.yale.edu/classes/yc1974/images/"; //directory for images
var pagePath = "http://www.srmedia.com/yale74/"; //directory for personal pages
var mateName = new Array(totalPix);
var matePic = new Array(totalPix);
var matePage = new Array(totalPix);

function getRand() {
	randy = Math.round(Math.random() * (totalPix-1)) +1;
	return randy;
}
function MakeMatrix() {

//			/30th/30drwho.jpg" alt="">
	//		/30th/30who5.jpg" alt="">
//			/30th/30whooo.jpg" alt="">
	//		/30th/30who4.jpg" alt="">
//			/30th/30who.jpg" alt="">
mateName[1] = "Ed Dickens";
matePic[1] = "30th/30dickens.jpg";
matePage[1] = "CEDickens.html";

mateName[2] = "Doug Johnson";
matePic[2] = "/30th/30dj.jpg";
matePage[2] = "DRJohnson.html";

mateName[3] = "Stu Rohrer";
matePic[3] = "30th/30rohrer1.jpg";
matePage[3] = "SARohrer.html";

mateName[4] = "Dave Danforth";
matePic[4] = "30th/30danforth.jpg";
matePage[4] = "DNDanforth.html";

mateName[5] = "Wes Bray";
matePic[5] = "30th/30bray.jpg";
matePage[5] = "WWBray.html";

mateName[6] = "Wendell Gault";
matePic[6] = "30th/30gault.jpg";
matePage[6] = "WWGault.html";

mateName[7] = "Alan Strasser";
matePic[7] = "30th/30strasser.jpg";
matePage[7] = "ADStrasser.html";

mateName[8] = "Gale Lichter";
matePic[8] = "30th/30glichterTiny.jpg";
matePage[8] = "GELichter.html";

mateName[9] = "Lucy Daggett";
matePic[9] = "30th/30ldaggett.jpg";
matePage[9] = "LDaggett.html";

mateName[10] = "Sharyar Aziz";
matePic[10] = "30th/30aziz.jpg";
matePage[10] = "SAziz.html";

mateName[11] = "Phil Rountree";
matePic[11] = "30th/30rountree.jpg";
matePage[11] = "PLRountree.html";

mateName[12] = "Steve Schlaikjer";
matePic[12] = "30th/30schlaikjer.jpg";
matePage[12] = "SASchlaikj.html";

mateName[13] = "Kit Rachlis";
matePic[13] = "30th/30rachlis.jpg";
matePage[13] = "CBRachlis.html";

mateName[14] = "Stan Weiss";
matePic[14] = "30th/30weiss.jpg";
matePage[14] = "SAWeiss.html";

mateName[15] = "Gil Walker";
matePic[15] = "30th/30walker.jpg";
matePage[15] = "GWalker.html";

mateName[16] = "Sabin Russell";
matePic[16] = "sRussell2.jpg";
matePage[16] = "WSRussell.html";

mateName[17] = "Bruce Maronpot";
matePic[17] = "bMaronpot2.jpg";
matePage[17] = "BDMaronpot.html";

mateName[18] = "Jon Bellis";
matePic[18] = "jBellis2.jpg";
matePage[18] = "JMBellis.html";

mateName[19] = "Dick Massimilian";
matePic[19] = "rMassimilian2.jpg";
matePage[19] = "RDMassimil.html";

mateName[20] = "Sally Weiskopf Bock";
matePic[20] = "sWeiskopfBock2.jpg";
matePage[20] = "SWBock.html";

mateName[21] = "Kent Stephens";
matePic[21] = "kStephens2.jpg";
matePage[21] = "HKStephens.html";

mateName[22] = "Leroy Watkins";
matePic[22] = "lWatkins2.jpg";
matePage[22] = "LJWatkins.html";

mateName[23] = "Ev Rutan";
matePic[23] = "eRutan2.jpg";
matePage[23] = "EJRutan.html";

mateName[24] = "Craig Oxman";
matePic[24] = "cOxman2.jpg";
matePage[24] = "JCOxman.html";

mateName[25] = "Whitney Debevoise";
matePic[25] = "wDebevoise2.jpg";
matePage[25] = "EWDebevois.html";

mateName[26] = "Hagos Tekeste";
matePic[26] = "hTekeste2.jpg";
matePage[26] = "HTekeste.html";

mateName[27] = "Susan Lightfoot Doud";
matePic[27] = "sDoud2.jpg";
matePage[27] = "SDoudLigh.html";

mateName[28] = "Skip Prince";
matePic[28] = "sPrince2.jpg";
matePage[28] = "ETPrince.html";

mateName[29] = "Mike Sheketoff";
matePic[29] = "mSheketoff2.jpg";
matePage[29] = "MSSheketof.html";

mateName[30] = "Bill Ullman";
matePic[30] = "wUllman2.jpg";
matePage[30] = "WUllman.html";

mateName[31] = "Andy Gordon";
matePic[31] = "aGordon2.jpg";
matePage[31] = "AWGordon.html";


mateName[32] = "Phil Clark";
matePic[32] = "philClark05.jpg";
matePage[32] = "JPClark.html";


mateName[33] = "Kathy Krieger";
matePic[33] = "klKrieger3.jpg";
matePage[33] = "KLKrieger.html";

mateName[34] = "Edith B. Terry";
matePic[34] = "ebterry3.jpg";
matePage[34] = "EBTerry.html";

mateName[35] = "Gary Lucas";
matePic[35] = "gmLucas3.jpg";
matePage[35] = "GMLucas.html";

mateName[36] = "Jeff Eskin";
matePic[36] = "jlEskin3.jpg";
matePage[36] = "JLEskin.html";

mateName[37] = "Joan C. Williams";
matePic[37] = "jcWilliams3.jpg";
matePage[37] = "JCWilliams.html";

mateName[38] = "Bill Wilkins";
matePic[38] = "wjwilkins3.jpg";
matePage[38] = "WJWilkins.html";

mateName[39] = "Tricia Tunstall";
matePic[39] = "t_tunstall.jpg";
matePage[39] = "PTTunstall.html";

//randomly assign the set of display indexes
var nowPix = new Array();
for (var i = 1; i <= showPix; i++) {
	var nodupe = 0;
	getRand();
	while (nodupe == 0) {
		//test uniqueness
		nodupe = 1;
		for (var j = 1; j <= nowPix.length; j++) {
			if (randy == nowPix[j]) {
				nodupe = 0;
			}
		}
		if (nodupe == 0) {

			getRand();
		}
	}
	nowPix[i] = randy;
}

var strOut = "";
var cc = 1

//begin table
strOut = strOut + "<table border=0 cellpadding=4 cellspacing=4>";
document.write (strOut);


	strOut = "<tr><td valign=top>";
	for (var j = 1; j <= 12; j++) {
		
		strOut = strOut + "<a href='" + pagePath + matePage[nowPix[cc]] + "'>";
		strOut = strOut + "<img vspace=2 hspace=2 border=0 width=60 height=80 border=1 src=";
		strOut = strOut + "'" + pixPath + matePic[nowPix[cc]] + "'";
		strOut = strOut + " alt='" + mateName[nowPix[cc]] + "'>";
		strOur = strOut + "</a>";		
		
		cc = cc+1
	}
	strOut = strOut + "</td></tr>";
	document.write (strOut);

//end table
strOut = "</table>";
document.write (strOut);
}
MakeMatrix();
