// JavaScript Document



/*
Photo Slider II- By Kevin Adams (kadams70@hotmail.com)
For this script and more
Visit http://www.javascriptkit.com
*/

var photos=new Array()
var text=new Array()
var which=0
var what=0

//Change the below variables to reference your own images. You may have as many images in the slider as you wish
photos[0]="furniture/1.jpg"
photos[1]="furniture/2.jpg"
photos[2]="furniture/3.jpg"
photos[3]="furniture/5.jpg"
photos[4]="furniture/6.jpg"
photos[5]="furniture/7.jpg"
photos[6]="furniture/8.jpg"





//change coresponding description
text[0]="A distressed black vanity completes this dramatic bathroom.  ( 1 of 7)"
text[1]="The details make the difference in the finished piece."
text[2]="Kitchen cabinets before refacing."
text[3]="AFTER. What a dramatic change!"
text[4]="Refacing is much more affordable than new cabinets."
text[5]="An old dresser..."
text[6]="Becomes a unique new piece.(7 of 7)"




window.onload=new Function("document.rotater.description.value=text[0]")

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];
}
else window.status='End of gallery'
}

function type()
	{
	alert("This textbox will only display default comments")
	}
