﻿//#1 SPECIFY number of slideshows
var number_of_slideshows=3

//#2 SPECIFY interval between slide (2000=2 seconds)
var interval=3000

//#3 SHOULD each slide be linked to a unique URL?
var linked=0

var slideshows=new Array(number_of_slideshows)
for (i=0; i <number_of_slideshows; i++)
slideshows[i]=new Array()

//#4 SPECIFY image paths of 1st slideshow
slideshows[0][0]='images/gallery/rogers_brown_house.jpg'
slideshows[0][1]='images/gallery/patio_arbor.jpg'
slideshows[0][2]='images/gallery/sitting_porch.jpg'
slideshows[0][3]='images/gallery/secret.jpg'
slideshows[0][4]='images/gallery/boy_with_turtle.jpg'
slideshows[0][5]='images/gallery/pump_and_bushes.jpg'
slideshows[0][6]='images/gallery/watering_can.jpg'
slideshows[0][7]='images/gallery/porch_fall_season.jpg'



//SPECIFY image paths of 2nd slideshow (remove if number_of_slides less than 2)
slideshows[1][0]='images/gallery/breakfast.jpg'
slideshows[1][1]='images/gallery/country_queen_bedroom.jpg'
slideshows[1][2]='images/gallery/country_reading_room.jpg'
slideshows[1][3]='images/gallery/cross_stitch_samplers.jpg'
slideshows[1][4]='images/gallery/dining_room.jpg'
slideshows[1][5]='images/gallery/dining_table.jpg'
slideshows[1][6]='images/gallery/federal_queen_fireplace.jpg'
slideshows[1][7]='images/gallery/federal_queen_room.jpg'
slideshows[1][8]='images/gallery/first_period_kitchen.jpg'
slideshows[1][9]='images/gallery/hallway.jpg'
slideshows[1][10]='images/gallery/king_bedroom.jpg'
slideshows[1][11]='images/gallery/king_fireplace.jpg'
slideshows[1][12]='images/gallery/lamps_mirrors.jpg'
slideshows[1][13]='images/gallery/living_room_mantel.jpg'
slideshows[1][14]='images/gallery/plates.jpg'
slideshows[1][15]='images/gallery/sitting_room.jpg'
slideshows[1][16]='images/gallery/living_ room_overmantel.jpg'
slideshows[1][17]='images/gallery/cropped_kitchen.jpg'
slideshows[1][18]='images/gallery/country_room.jpg'


//SPECIFY image paths of 3rd slideshow (remove if number_of_slides less than 3)
slideshows[2][0]='images/gallery/barn.jpg'
slideshows[2][1]='images/gallery/bedroom.jpg'
slideshows[2][2]='images/gallery/cabinet.jpg'
slideshows[2][3]='images/gallery/giclees,.jpg'
slideshows[2][4]='images/gallery/shop.jpg'
slideshows[2][5]='images/gallery/canopy_bed.jpg'
slideshows[2][5]='images/gallery/crafts_gourds.jpg'


//EXTEND THIS ARRAY if more than 3 slide shows



var maininc=0
var subinc=0

if (linked)
document.write('<a href="javascript:clickredir()"><img src="'+slideshows[0][0]+'" name="multislide" border=0></a>')
else
document.write('<img src="'+slideshows[0][0]+'" name="multislide">')

function slideit(){
subinc= (subinc<slideshows[maininc].length-1)? subinc+1: 0
document.images.multislide.src=slideshows[maininc][subinc]
}

function setslide(which){
clearInterval(runit)
maininc=which
subinc=0
runit=setInterval("slideit()",interval)
}

runit=setInterval("slideit()",interval)