//document.writeln ("Images are Loading, Please Wait.");

var aryAltText = new Array();
var aryImages = new Array();
for (i=0; i<13; i++){
	aryImages[i]= '0';
}

function preloadImages1(){	
			var picture = new Image(300,203);  // picture 1
				picture.src = "../images/gallery/beach_scene.jpg";
				aryImages['0'] = picture;
			var picture = new Image(300,405);  // picture 2
				picture.src = "../images/gallery/belgium01.jpg";
				aryImages['1'] = picture;
			var picture = new Image(300,391);  // picture 3
				picture.src = "../images/gallery/belgium02.jpg";
				aryImages['2'] = picture;
			var picture = new Image(300,200);  // picture 4
				picture.src = "../images/gallery/bigsur01.jpg";
				aryImages['3'] = picture;
			var picture = new Image(300,247);  // picture 5
				picture.src = "../images/gallery/bigsur02.jpg";
				aryImages['4'] = picture;
			var picture = new Image(300,232);  // picture 6
				picture.src = "../images/gallery/bigsur03.jpg";
				aryImages['5'] = picture;
			var picture = new Image(300,199);  // picture 7
				picture.src = "../images/gallery/germany.jpg";
				aryImages['6'] = picture;
			var picture = new Image(300,191);  // picture 8
				picture.src = "../images/gallery/monterey.jpg";
				aryImages['7'] = picture;
			var picture = new Image(300,228);  // picture 9
				picture.src = "../images/gallery/moscow01.jpg";
				aryImages['8'] = picture;
			var picture = new Image(300,235);  // picture 10
				picture.src = "../images/gallery/moscow02.jpg";
				aryImages['9'] = picture;
			var picture = new Image(300,191);  // picture 11
				picture.src = "../images/gallery/sf01.jpg";
				aryImages['10'] = picture;
			var picture = new Image(300,204);  // picture 12
				picture.src = "../images/gallery/storm.jpg";
				aryImages['11'] = picture;
			var picture = new Image(300,206);  // picture 13
				picture.src = "../images/gallery/window_july.jpg";
				aryImages['12'] = picture;
			var picture = new Image(300,246);  // picture 14
				picture.src = "../images/gallery/carmel.jpg";
				aryImages['13'] = picture;
			var picture = new Image(300,215);  // picture 15
				picture.src = "../images/gallery/just_before.jpg";
				aryImages['14'] = picture;
			var picture = new Image(300,213);  // picture 16
				picture.src = "../images/gallery/thinking_of_kita.jpg";
				aryImages['15'] = picture;
			var picture = new Image(300,216);  // picture 17
				picture.src = "../images/gallery/dreaming_tropics.jpg";
				aryImages['16'] = picture;
			var picture = new Image(300,213);  // picture 18
				picture.src = "../images/gallery/yellow_lines.jpg";
				aryImages['17'] = picture;

	aryAltText['0'] = 'Beach Scene';
	aryAltText['1'] = '3 Figures Beneath the Moon in Belgium';
	aryAltText['2'] = 'North Sea of Belgium Coast';
	aryAltText['3'] = 'Sketch from Big Sur';
	aryAltText['4'] = 'Near Big Sur';
	aryAltText['5'] = 'Returning Home One Night from Big Sur';
	aryAltText['6'] = 'View From My Window &#151; Germany';
	aryAltText['7'] = 'One Morning North of Monterey';
	aryAltText['8'] = 'Woods Outside Moscow';
	aryAltText['9'] = 'Woods Outside Moscow &#151; Winter';
	aryAltText['10'] = 'Off San Francisco &#151; Night Scene of Bay';
	aryAltText['11'] = 'Storm';
	aryAltText['12'] = 'View From My Window &#151; July';
	aryAltText['13'] = 'Bay Above Carmel';
	aryAltText['14'] = 'Just Before the End';
	aryAltText['15'] = 'Thinking of Kita and Joe While Listening to Heavy Metal';
	aryAltText['16'] = 'Dreaming of the Tropics';
	aryAltText['17'] = 'Yellow Lines';
}


function preloadImages2(){	
			var picture = new Image(300,214); // picture 1
				picture.src = "../images/gallery/dark_passage.jpg";
				aryImages['18'] = picture; 
			var picture = new Image(300,212); // picture 2
				picture.src = "../images/gallery/study_on_winter.jpg";
				aryImages['19'] = picture;
			var picture = new Image(300,225); // picture 3
				picture.src = "../images/gallery/view_of_sf_from_ec.jpg";
				aryImages['20'] = picture; 
			var picture = new Image(300,225); // picture 4
				picture.src = "../images/gallery/distant_light.jpg";
				aryImages['21'] = picture;  
			var picture = new Image(300,216); // picture 5
				picture.src = "../images/gallery/lights_saints_left.jpg";
				aryImages['22'] = picture;
			var picture = new Image(300,211); // picture 6
				picture.src = "../images/gallery/winter_presses.jpg";
				aryImages['23'] = picture;
			var picture = new Image(300,234); // picture 7
				picture.src = "../images/gallery/suitable_meeting.jpg";
				aryImages['24'] = picture;
			var picture = new Image(300,224); // picture 8
				picture.src = "../images/gallery/white_painting.jpg";
				aryImages['25'] = picture;
			var picture = new Image(300,211); // picture 9
				picture.src = "../images/gallery/sunday_morning_rushed.jpg";
				aryImages['26'] = picture;
			var picture = new Image(300,214); // picture 10
				picture.src = "../images/gallery/wednesday_evening.jpg";
				aryImages['27'] = picture;
			var picture = new Image(300,213); // picture 11
				picture.src = "../images/gallery/stormy_stormy_tuesday.jpg";
				aryImages['28'] = picture;
			var picture = new Image(300,180); // picture 12
				picture.src = "../images/gallery/sunday_morning.jpg";
				aryImages['29'] = picture;
			var picture = new Image(300,216); // picture 13
				picture.src = "../images/gallery/merci_que.jpg";
				aryImages['30'] = picture;
			var picture = new Image(300,212); // picture 14
				picture.src = "../images/gallery/light_irrepressible.jpg";
				aryImages['31'] = picture;
			var picture = new Image(300,210); // picture 15
				picture.src = "../images/gallery/longing_for_what.jpg";
				aryImages['32'] = picture;
			var picture = new Image(300,216); // picture 16
				picture.src = "../images/gallery/lumiere.jpg";
				aryImages['33'] = picture;
			var picture = new Image(300,216); // picture 17
				picture.src = "../images/gallery/red_and_grey.jpg";
				aryImages['34'] = picture;

	aryAltText['0'] = 'Beach Scene';
	aryAltText['1'] = '3 Figures Beneath the Moon in Belgium';
	aryAltText['2'] = 'North Sea of Belgium Coast';
	aryAltText['3'] = 'Sketch from Big Sur';
	aryAltText['4'] = 'Near Big Sur';
	aryAltText['5'] = 'Returning Home One Night from Big Sur';
	aryAltText['6'] = 'View From My Window &#151; Germany';
	aryAltText['7'] = 'One Morning North of Monterey';
	aryAltText['8'] = 'Woods Outside Moscow';
	aryAltText['9'] = 'Woods Outside Moscow &#151; Winter';
	aryAltText['10'] = 'Off San Francisco &#151; Night Scene of Bay';
	aryAltText['11'] = 'Storm';
	aryAltText['12'] = 'View From My Window &#151; July';
	aryAltText['13'] = 'Bay Above Carmel';
}
	
function swapImage(id) {
  var contentId = document.getElementById('GalleryImage');
  var content = "<IMG SRC='"+aryImages[id].src+"'ALT='"+aryAltText[id]+"'>";
  //if (id == 11){content = "<IMG SRC='"+aryImages[id].src+"' ALT='"+aryAltText[id]+"'><BR><P>* Doors provided by Liberty Valley Doors, Sebastopol, CA.</P>"}
  contentId.innerHTML = content;
}

