if (document.images) {

//create "on" array and populate with image objects
   var onImgArray = new Array ()
   onImgArray[0] = new Image(579,386)
   onImgArray[1] = new Image(579,386)
   onImgArray[2] = new Image(579,386)
   onImgArray[3] = new Image(579,386)
   onImgArray[4] = new Image(579,386)
   onImgArray[5] = new Image(579,386)
   onImgArray[6] = new Image(579,386)
   onImgArray[7] = new Image(579,386)
   onImgArray[8] = new Image(579,386)
   onImgArray[9] = new Image(579,386)
   onImgArray[10] = new Image(579,386)
   onImgArray[11] = new Image(579,386)
   onImgArray[12] = new Image(579,386)
   onImgArray[13] = new Image(579,386)
   
//set URLs for the "on" images
   onImgArray[0].src = "images/z98-ancient_jars.jpg"
   onImgArray[1].src = "images/z98-biblical_stones.jpg"
   onImgArray[2].src = "images/z98-cladding.jpg"
   onImgArray[3].src = "images/z98-columns.jpg"
   onImgArray[4].src = "images/z98-encaustic_tiles.jpg"
   onImgArray[5].src = "images/z98-fireplaces.jpg"
   onImgArray[6].src = "images/z98-fountains.jpg"
   onImgArray[7].src = "images/z98-kitchen_hoods.jpg"
   onImgArray[8].src = "images/z98-mosaics.jpg"
   onImgArray[9].src = "images/z98-well_heads.jpg"
   onImgArray[10].src = "images/z98-benches.jpg"
   onImgArray[11].src = "images/z98-gates.jpg"
   onImgArray[12].src = "images/z98-sinks.jpg"
   onImgArray[13].src = "images/z98-doors.jpg"
  
   onImgArray[0].alt = "Ancient Jars"
   onImgArray[1].alt = "Biblical Stones"
   onImgArray[2].alt = "Cladding"
   onImgArray[3].alt = "Columns"
   onImgArray[4].alt = "Encaustic Tiles"
   onImgArray[5].alt = "Fireplaces"
   onImgArray[6].alt = "Fountains"
   onImgArray[7].alt = "Kitchen Hoods"
   onImgArray[8].alt = "Mosaics"
   onImgArray[9].alt = "Well Heads"
   onImgArray[10].alt = "Stone Benches"
   onImgArray[11].alt = "Metal Gates"
   onImgArray[12].alt = "Sinks and Troughs"
   onImgArray[13].alt = "Antique Doors"
   
   onImgArray[0].title = "Ancient Jars"
   onImgArray[1].title = "Biblical Stones"
   onImgArray[2].title = "Cladding"
   onImgArray[3].title = "Columns"
   onImgArray[4].title = "Encaustic Tiles"
   onImgArray[5].title = "Fireplaces"
   onImgArray[6].title = "Fountains"
   onImgArray[7].title = "Kitchen Hoods"
   onImgArray[8].title = "Mosaics"
   onImgArray[9].title = "Well Heads"
   onImgArray[10].title = "Stone Benches"
   onImgArray[11].title = "Metal Gates"
   onImgArray[12].title = "Sinks and Troughs"
   onImgArray[13].title = "Antique Doors"

//create "off" array and populate with image objects
   var offImgArray = new Array ()
   offImgArray[0] = new Image(579,386)
   offImgArray[1] = new Image(579,386)
   offImgArray[2] = new Image(579,386)
   offImgArray[3] = new Image(579,386)
   offImgArray[4] = new Image(579,386)
   offImgArray[5] = new Image(579,386)
   offImgArray[6] = new Image(579,386)
   offImgArray[7] = new Image(579,386)
   offImgArray[8] = new Image(579,386)
   offImgArray[9] = new Image(579,386)
   offImgArray[10] = new Image(579,386)
   offImgArray[11] = new Image(579,386)
   offImgArray[12] = new Image(579,386)
   offImgArray[13] = new Image(579,386)   

//set URLs for the "off" images
   offImgArray[0].src = "images/z98-ancient_jars.jpg"
   offImgArray[1].src = "images/z98-biblical_stones.jpg"
   offImgArray[2].src = "images/z98-cladding.jpg"
   offImgArray[3].src = "images/z98-columns.jpg"
   offImgArray[4].src = "images/z98-encaustic_tiles.jpg"
   offImgArray[5].src = "images/z98-fireplaces.jpg"
   offImgArray[6].src = "images/z98-fountains.jpg"
   offImgArray[7].src = "images/z98-kitchen_hoods.jpg"
   offImgArray[8].src = "images/z98-mosaics.jpg"
   offImgArray[9].src = "images/z98-well_heads.jpg"
   offImgArray[10].src = "images/z98-benches.jpg"
   offImgArray[11].src = "images/z98-gates.jpg"
   offImgArray[12].src = "images/z98-sinks.jpg"
   offImgArray[13].src = "images/z98-doors.jpg"   
  }

function imageOn(i) {
     if (document.images) {
	     document.images[i].src = onImgArray[i].src
	 }
}

function imageOff(i) {
     if (document.images) {
	     document.images[i].src = offImgArray[i].src
	 }
}	 
function imageOn(i) {
     if (document.images) {
	     document.images["SLIDESIMG"].src = onImgArray[i].src
		 document.images["SLIDESIMG"].alt = onImgArray[i].alt
	     document.images["SLIDESIMG"].title = onImgArray[i].title
	 }     		       
}

function imageOff(i) {
     if (document.images) {
	     document.images["SLIDESIMG"].src = offImgArray[i].src
	 }     		       
}


