var thumbs = new Array();
for (i=1; i <= 13; i++) {
	thumbs[i] = new Object();
	thumbs[i].src = "gfx/thumbs/" + i + ".jpg";
   	thumbs[i].used = false;
}

thumbs[1].alt = "Fine Dining at the 1895 Inn, Bed and Breakfast in Savannah";
thumbs[2].alt = "Fine Art in the Dining room";
thumbs[3].alt = "Fine Art on the first floor";
thumbs[4].alt = "Sleep in elegance in the Renaissance room";
thumbs[5].alt = "Sitting area in the Renaissance room";
thumbs[6].alt = "The Colonial Room";
thumbs[7].alt = "Fine art in the Colonial room";
thumbs[8].alt = "Sleep in elegance in the Sovreign room";
thumbs[9].alt = "Sitting area in the Sovreign room";
thumbs[10].alt = "Afternoon hor de-oeurves and evening desserts";
thumbs[11].alt = "Beautifully tiled floors";
thumbs[12].alt = "Rich dark wood dresser in the Renaissance Room";
thumbs[13].alt = "Period delicate design in the Colonial room";

thumbs[1].lnk = "services.htm"
thumbs[2].lnk = "about.htm"
thumbs[3].lnk = "about.htm"
thumbs[4].lnk = "renroom.htm"
thumbs[5].lnk = "renroom.htm"
thumbs[6].lnk = "colroom.htm"
thumbs[7].lnk = "colroom.htm"
thumbs[8].lnk = "sovroom.htm"
thumbs[9].lnk = "sovroom.htm"
thumbs[10].lnk = "services.htm"
thumbs[11].lnk = "about.htm"
thumbs[12].lnk = "renroom.htm"
thumbs[13].lnk = "colroom.htm"



function run() {
	for (var whichPlace = 0; whichPlace <= 2; whichPlace++) {
		do {
			whichImage = Math.ceil(Math.random()*(thumbs.length-1));
		} while (thumbs[whichImage].used == true);
         
		thumbs[whichImage].used = true;
		document.getElementById("i" + whichPlace).index = whichImage;
		document.getElementById("i" + whichPlace).src = thumbs[whichImage].src;
		document.getElementById("i" + whichPlace).setAttribute("alt", thumbs[whichImage].alt);
		document.getElementById("i" + whichPlace).dest = thumbs[whichImage].lnk;
	}
}
