/*Multi image slideshow script- by javascriptkit.com
Visit JavaScript Kit (http://javascriptkit.com) for script
Credit must stay intact for use*/

//#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=1

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]='kitchens/2000.jpg'
slideshows[0][1]='kitchens/2016.jpg'
slideshows[0][2]='kitchens/2135.jpg'
slideshows[0][3]='kitchens/2136.jpg'
slideshows[0][4]='kitchens/2142.jpg'
slideshows[0][5]='kitchens/2181.jpg'


//SPECIFY image paths of 2nd slideshow (remove if number_of_slides less than 2)
slideshows[1][0]='bathrooms/2011.jpg'
slideshows[1][1]='bathrooms/2012.jpg'
slideshows[1][2]='bathrooms/2031.jpg'
slideshows[1][3]='bathrooms/2032.jpg'
slideshows[1][4]='bathrooms/2042.jpg'
slideshows[1][5]='bathrooms/2059.jpg'
slideshows[1][6]='bathrooms/2072.jpg'
slideshows[1][7]='bathrooms/2102.jpg'
slideshows[1][8]='bathrooms/2105.jpg'
slideshows[1][9]='bathrooms/2152.jpg'
slideshows[1][10]='bathrooms/2156.jpg'
slideshows[1][11]='bathrooms/2159.jpg'
slideshows[1][12]='bathrooms/2166.jpg'
slideshows[1][13]='bathrooms/2169.jpg'
slideshows[1][14]='bathrooms/2170.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)

