// JavaScript Document

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


function loadGallery(aNumber) {
	switch(aNumber) {

	case 2:
  gallery[0] = new Picture('1301-011.jpg','1301-011');
  gallery[1] = new Picture('1301-012.jpg','1301-012');
  gallery[2] = new Picture('1301-013.jpg','1301-013');
  gallery[3] = new Picture('1301-014.jpg','1301-014');
  gallery[4] = new Picture('1301-015.jpg','1301-015');
  gallery[5] = new Picture('1301-016.jpg','1301-016');
  gallery[6] = new Picture('1301-017.jpg','1301-017');
  gallery[7] = new Picture('1301-018.jpg','1301-018');
  gallery[8] = new Picture('1301-019.jpg','1301-019');
  gallery[9] = new Picture('1301-020.jpg','1301-020');
  	break; 
	case 3:  	
  gallery[0] = new Picture('1301-021.jpg','1301-021');
  gallery[1] = new Picture('1301-022.jpg','1301-022');
  gallery[2] = new Picture('1301-023.jpg','1301-023');
  gallery[3] = new Picture('1301-024.jpg','1301-024');
  gallery[4] = new Picture('1301-025.jpg','1301-025');
  gallery[5] = new Picture('1301-026.jpg','1301-026');
  gallery[6] = new Picture('1301-027.jpg','1301-027');
  gallery[7] = new Picture('1301-028.jpg','1301-028');
  gallery[8] = new Picture('1301-029.jpg','1301-029');
  gallery[9] = new Picture('1301-030.jpg','1301-030');
  	break;   
	case 4:  
  gallery[0] = new Picture('1301-031.jpg','1301-031');
  gallery[1] = new Picture('1301-032.jpg','1301-032');
  gallery[2] = new Picture('1301-033.jpg','1301-033');
  gallery[3] = new Picture('1301-034.jpg','1301-034');
  gallery[4] = new Picture('1301-035.jpg','1301-035');
  gallery[5] = new Picture('1301-036.jpg','1301-036');
  gallery[6] = new Picture('1301-037.jpg','1301-037');
  gallery[7] = new Picture('1301-038.jpg','1301-038');
  gallery[8] = new Picture('1301-039.jpg','1301-039');
  gallery[9] = new Picture('1301-040.jpg','1301-040');
  	break; 
	case 5:  
  gallery[0] = new Picture('1301-041.jpg','1301-041');
  gallery[1] = new Picture('1301-042.jpg','1301-042');
  gallery[2] = new Picture('1301-043.jpg','1301-043');
  gallery[3] = new Picture('1301-044.jpg','1301-044');
  gallery[4] = new Picture('1301-045.jpg','1301-045');
  gallery[5] = new Picture('1301-046.jpg','1301-046');
  gallery[6] = new Picture('1301-047.jpg','1301-047');
  gallery[7] = new Picture('1301-048.jpg','1301-048');
  gallery[8] = new Picture('1301-049.jpg','1301-049');
  gallery[9] = new Picture('1301-050.jpg','1301-050');
  	break; 
	case 6:  
  gallery[0] = new Picture('1301-051.jpg','1301-051');
  gallery[1] = new Picture('1301-052.jpg','1301-052');
  gallery[2] = new Picture('1301-053.jpg','1301-053');
  gallery[3] = new Picture('1301-054.jpg','1301-054');
  gallery[4] = new Picture('1301-055.jpg','1301-055');
  gallery[5] = new Picture('1301-056.jpg','1301-056');
  gallery[6] = new Picture('1301-057.jpg','1301-057');
  gallery[7] = new Picture('1301-058.jpg','1301-058');
  gallery[8] = new Picture('1301-059.jpg','1301-059');
  gallery[9] = new Picture('1301-060.jpg','1301-060');
  	break; 
	case 7:  
  gallery[0] = new Picture('1301-061.jpg','1301-061');
  gallery[1] = new Picture('1301-062.jpg','1301-062');
  gallery[2] = new Picture('1301-063.jpg','1301-063');
  gallery[3] = new Picture('1301-064.jpg','1301-064');
  gallery[4] = new Picture('1301-065.jpg','1301-065');
  gallery[5] = new Picture('1301-066.jpg','1301-066');
  gallery[6] = new Picture('1301-067.jpg','1301-067');
  gallery[7] = new Picture('1301-068.jpg','1301-068');
  gallery[8] = new Picture('1301-069.jpg','1301-069');
  gallery[9] = new Picture('1301-070.jpg','1301-070');
  	break; 
	case 8:  
  gallery[0] = new Picture('1301-071.jpg','1301-071');
  gallery[1] = new Picture('1301-072.jpg','1301-072');
  gallery[2] = new Picture('1301-073.jpg','1301-073');
  gallery[3] = new Picture('1301-074.jpg','1301-074');
  gallery[4] = new Picture('1301-075.jpg','1301-075');
  gallery[5] = new Picture('1301-076.jpg','1301-076');
  gallery[6] = new Picture('1301-077.jpg','1301-077');
  gallery[7] = new Picture('1301-078.jpg','1301-078');
  gallery[8] = new Picture('1301-079.jpg','1301-079');
  gallery[9] = new Picture('1301-080.jpg','1301-080');
  	break; 
	case 9:  
  gallery[0] = new Picture('1301-081.jpg','1301-081');
  gallery[1] = new Picture('1301-082.jpg','1301-082');
  gallery[2] = new Picture('1301-083.jpg','1301-083');
  gallery[3] = new Picture('1301-084.jpg','1301-084');
  gallery[4] = new Picture('1301-085.jpg','1301-085');
  gallery[5] = new Picture('1301-086.jpg','1301-086');
  gallery[6] = new Picture('1301-087.jpg','1301-087');
  gallery[7] = new Picture('1301-088.jpg','1301-088');
  gallery[8] = new Picture('1301-089.jpg','1301-089');
  gallery[9] = new Picture('1301-090.jpg','1301-090');
	break;   
	case 10:  
  gallery[0] = new Picture('1301-091.jpg','1301-091');
  gallery[1] = new Picture('1301-092.jpg','1301-092');
  gallery[2] = new Picture('1301-093.jpg','1301-093');
  gallery[3] = new Picture('1301-094.jpg','1301-094');
  gallery[4] = new Picture('1301-095.jpg','1301-095');
  gallery[5] = new Picture('1301-096.jpg','1301-096');
  gallery[6] = new Picture('1301-097.jpg','1301-097');
  gallery[7] = new Picture('1301-098.jpg','1301-098');
  gallery[8] = new Picture('1301-099.jpg','1301-099');
  gallery[9] = new Picture('1301-100.jpg','1301-100');
  	break; 
	case 11:  
  gallery[0] = new Picture('1301-101.jpg','1301-101');
  gallery[1] = new Picture('1301-102.jpg','1301-102');
  gallery[2] = new Picture('1301-103.jpg','1301-103');
  gallery[3] = new Picture('1301-104.jpg','1301-104');
  gallery[4] = new Picture('1301-105.jpg','1301-105');
  gallery[5] = new Picture('1301-106.jpg','1301-106');
  gallery[6] = new Picture('1301-107.jpg','1301-107');
  gallery[7] = new Picture('1301-108.jpg','1301-108');
  gallery[8] = new Picture('1301-109.jpg','1301-109');
  gallery[9] = new Picture('1301-110.jpg','1301-110');
  	break; 
	case 12:  
  gallery[0] = new Picture('1301-111.jpg','1301-111');
  gallery[1] = new Picture('1301-112.jpg','1301-112');
  gallery[2] = new Picture('1301-113.jpg','1301-113');
  gallery[3] = new Picture('1301-114.jpg','1301-114');
  gallery[4] = new Picture('1301-115.jpg','1301-115');
  gallery[5] = new Picture('1301-116.jpg','1301-116');
  gallery[6] = new Picture('1301-117.jpg','1301-117');
  gallery[7] = new Picture('1301-118.jpg','1301-118');
  gallery[8] = new Picture('1301-119.jpg','1301-119');
  gallery[9] = new Picture('1301-120.jpg','1301-120');
  	break; 
	case 13:  
  gallery[0] = new Picture('1301-121.jpg','1301-121');
  gallery[1] = new Picture('1301-122.jpg','1301-122');
  gallery[2] = new Picture('1301-123.jpg','1301-123');
  gallery[3] = new Picture('1301-124.jpg','1301-124');
  gallery[4] = new Picture('1301-125.jpg','1301-125');
  gallery[5] = new Picture('1301-126.jpg','1301-126');
  gallery[6] = new Picture('1301-127.jpg','1301-127');
  gallery[7] = new Picture('1301-128.jpg','1301-128');
  gallery[8] = new Picture('1301-129.jpg','1301-129');
  gallery[9] = new Picture('1301-130.jpg','1301-130');
    break; 
	case 14:  
  gallery[0] = new Picture('1301-131.jpg','1301-131');
	break; 
	default:  
  gallery[0] = new Picture('1301-001.jpg','1301-001');
  gallery[1] = new Picture('1301-002.jpg','1301-002');
  gallery[2] = new Picture('1301-003.jpg','1301-003');
  gallery[3] = new Picture('1301-004.jpg','1301-004');
  gallery[4] = new Picture('1301-005.jpg','1301-005');
  gallery[5] = new Picture('1301-006.jpg','1301-006');
  gallery[6] = new Picture('1301-007.jpg','1301-007');
  gallery[7] = new Picture('1301-008.jpg','1301-008');
  gallery[8] = new Picture('1301-009.jpg','1301-009');
  gallery[9] = new Picture('1301-010.jpg','1301-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 "Northwest Classic Draft Horse and Mule Show - Wednesday"
} 

function getGalleryDescription() {
	return "Photographed by Rick Bate. <BR><B>20x24</B>-$195 <B>16x20-$125 <B>11x14-$94.50 <B>8x10/5x7/4x5</B>-$49.50 <B>Wallets(8)</B>-$39.50<BR>More Details on the Ordering Page.";
}
