// JavaScript Document

var gallery = new Array(10);
var maxGallery = 11;


function loadGallery(aNumber) {
	switch(aNumber) {

	case 2:
  gallery[0] = new Picture('1105-011.jpg','1105-011');
  gallery[1] = new Picture('1105-012.jpg','1105-012');
  gallery[2] = new Picture('1105-013.jpg','1105-013');
  gallery[3] = new Picture('1105-014.jpg','1105-014');
  gallery[4] = new Picture('1105-015.jpg','1105-015');
  gallery[5] = new Picture('1105-016.jpg','1105-016');
  gallery[6] = new Picture('1105-017.jpg','1105-017');
  gallery[7] = new Picture('1105-018.jpg','1105-018');
  gallery[8] = new Picture('1105-019.jpg','1105-019');
  gallery[9] = new Picture('1105-020.jpg','1105-020');

		break;
	case 3:
  gallery[0] = new Picture('1105-021.jpg','1105-021');
  gallery[1] = new Picture('1105-022.jpg','1105-022');
  gallery[2] = new Picture('1105-023.jpg','1105-023');
  gallery[3] = new Picture('1105-024.jpg','1105-024');
  gallery[4] = new Picture('1105-025.jpg','1105-025');
  gallery[5] = new Picture('1105-026.jpg','1105-026');
  gallery[6] = new Picture('1105-027.jpg','1105-027');
  gallery[7] = new Picture('1105-028.jpg','1105-028');
  gallery[8] = new Picture('1105-029.jpg','1105-029');
  gallery[9] = new Picture('1105-030.jpg','1105-030');

		break;
	case 4:
  gallery[0] = new Picture('1105-031.jpg','1105-031');
  gallery[1] = new Picture('1105-032.jpg','1105-032');
  gallery[2] = new Picture('1105-033.jpg','1105-033');
  gallery[3] = new Picture('1105-034.jpg','1105-034');
  gallery[4] = new Picture('1105-035.jpg','1105-035');
  gallery[5] = new Picture('1105-036.jpg','1105-036');
  gallery[6] = new Picture('1105-037.jpg','1105-037');
  gallery[7] = new Picture('1105-038.jpg','1105-038');
  gallery[8] = new Picture('1105-039.jpg','1105-039');
  gallery[9] = new Picture('1105-040.jpg','1105-040');

		break;
	case 5:
  gallery[0] = new Picture('1105-041.jpg','1105-041');
  gallery[1] = new Picture('1105-042.jpg','1105-042');
  gallery[2] = new Picture('1105-043.jpg','1105-043');
  gallery[3] = new Picture('1105-044.jpg','1105-044');
  gallery[4] = new Picture('1105-045.jpg','1105-045');
  gallery[5] = new Picture('1105-046.jpg','1105-046');
  gallery[6] = new Picture('1105-047.jpg','1105-047');
  gallery[7] = new Picture('1105-048.jpg','1105-048');
  gallery[8] = new Picture('1105-049.jpg','1105-049');
  gallery[9] = new Picture('1105-050.jpg','1105-050');

		break;
	case 6:
	  gallery[0] = new Picture('1105-051.jpg','1105-051');
  gallery[1] = new Picture('1105-052.jpg','1105-052');
  gallery[2] = new Picture('1105-053.jpg','1105-053');
  gallery[3] = new Picture('1105-054.jpg','1105-054');
  gallery[4] = new Picture('1105-055.jpg','1105-055');
  gallery[5] = new Picture('1105-056.jpg','1105-056');
  gallery[6] = new Picture('1105-057.jpg','1105-057');
  gallery[7] = new Picture('1105-058.jpg','1105-058');
  gallery[8] = new Picture('1105-059.jpg','1105-059');
  gallery[9] = new Picture('1105-060.jpg','1105-060');

		break;
	case 7:
  gallery[0] = new Picture('1105-061.jpg','1105-061');
  gallery[1] = new Picture('1105-062.jpg','1105-062');
  gallery[2] = new Picture('1105-063.jpg','1105-063');
  gallery[3] = new Picture('1105-064.jpg','1105-064');
  gallery[4] = new Picture('1105-065.jpg','1105-065');
  gallery[5] = new Picture('1105-066.jpg','1105-066');
  gallery[6] = new Picture('1105-067.jpg','1105-067');
  gallery[7] = new Picture('1105-068.jpg','1105-068');
  gallery[8] = new Picture('1105-069.jpg','1105-069');
  gallery[9] = new Picture('1105-070.jpg','1105-070');

		break;
	case 8:
	  gallery[0] = new Picture('1105-071.jpg','1105-071');
  gallery[1] = new Picture('1105-072.jpg','1105-072');
  gallery[2] = new Picture('1105-073.jpg','1105-073');
  gallery[3] = new Picture('1105-074.jpg','1105-074');
  gallery[4] = new Picture('1105-075.jpg','1105-075');
  gallery[5] = new Picture('1105-076.jpg','1105-076');
  gallery[6] = new Picture('1105-077.jpg','1105-077');
  gallery[7] = new Picture('1105-078.jpg','1105-078');
  gallery[8] = new Picture('1105-079.jpg','1105-079');
  gallery[9] = new Picture('1105-080.jpg','1105-080');

		break;
	case 9:
	  gallery[0] = new Picture('1105-081.jpg','1105-081');
  gallery[1] = new Picture('1105-082.jpg','1105-082');
  gallery[2] = new Picture('1105-083.jpg','1105-083');
  gallery[3] = new Picture('1105-084.jpg','1105-084');
  gallery[4] = new Picture('1105-085.jpg','1105-085');
  gallery[5] = new Picture('1105-086.jpg','1105-086');
  gallery[6] = new Picture('1105-087.jpg','1105-087');
  gallery[7] = new Picture('1105-088.jpg','1105-088');
  gallery[8] = new Picture('1105-089.jpg','1105-089');
  gallery[9] = new Picture('1105-090.jpg','1105-090');

		break;
	case 10:
	  gallery[0] = new Picture('1105-091.jpg','1105-091');
  gallery[1] = new Picture('1105-092.jpg','1105-092');
  gallery[2] = new Picture('1105-093.jpg','1105-093');
  gallery[3] = new Picture('1105-094.jpg','1105-094');
  gallery[4] = new Picture('1105-095.jpg','1105-095');
  gallery[5] = new Picture('1105-096.jpg','1105-096');
  gallery[6] = new Picture('1105-097.jpg','1105-097');
  gallery[7] = new Picture('1105-098.jpg','1105-098');
  gallery[8] = new Picture('1105-099.jpg','1105-099');
  gallery[9] = new Picture('1105-100.jpg','1105-100');

		break;
	case 11:
	  gallery[0] = new Picture('1105-101.jpg','1105-101');
  gallery[1] = new Picture('1105-102.jpg','1105-102');
  gallery[2] = new Picture('1105-103.jpg','1105-103');
  gallery[3] = new Picture('1105-104.jpg','1105-104');
  gallery[4] = new Picture('1105-105.jpg','1105-105');
  gallery[5] = new Picture('1105-106.jpg','1105-106');
	
		break;

	default:
	  gallery[0] = new Picture('1105-001.jpg','1105-001');
  gallery[1] = new Picture('1105-002.jpg','1105-002');
  gallery[2] = new Picture('1105-003.jpg','1105-003');
  gallery[3] = new Picture('1105-004.jpg','1105-004');
  gallery[4] = new Picture('1105-005.jpg','1105-005');
  gallery[5] = new Picture('1105-006.jpg','1105-006');
  gallery[6] = new Picture('1105-007.jpg','1105-007');
  gallery[7] = new Picture('1105-008.jpg','1105-008');
  gallery[8] = new Picture('1105-009.jpg','1105-009');
  gallery[9] = new Picture('1105-010.jpg','1105-010');

		break;

	
	}
}	

function Picture(aPicture, aDesc) {
	this.picture = aPicture;
	this.desc = aDesc;
}

function getStartingPicText() {
	return "<img src=\"pics/" + gallery[0].picture + "\" name=\"MainImage\"><br>";
}

function getStartingPicDesc() {
	return gallery[0].desc;
}

function getStartingPic() {
	return gallery[0].picture;
}

function getThumbText(aNumber) {
	return "<a href=\"javascript:update('pics/" + gallery[aNumber -1].picture + "', 9);\" onClick=\"document.OrderForm.item_name.value= '" + gallery[aNumber -1].desc + "';document.OrderForm.os0.value='" + gallery[aNumber -1].picture + "';\"> <img src=\"thumbnails/" + gallery[aNumber -1].picture + "\" border=\"0\">";

}


function getGalleryTitle() {
	return "Crossroads Farm American Warmblood Inspection October 1, 2006"
} 

function getGalleryDescription() {
	return "Photographed by Rick Bate. Please call or email with any problems in ordering or using this site";
}
