// 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]="panels/1.jpg"
photos[1]="panels/2.jpg"
photos[2]="panels/3.jpg"
photos[3]="panels/4.jpg"
photos[4]="panels/5.jpg"
photos[5]="panels/6.jpg"
photos[6]="panels/7.jpg"
photos[7]="panels/8.jpg"





//change coresponding description
text[0]="Create a playful theme.  ( 1 of 8)"
text[1]="Personalize a bold design."
text[2]="Personalize a bold design."
text[3]="Personalize a bold design."
text[4]="Create a personalized theme for a child's room."
text[5]="A soft and pretty way to personalize a room."
text[6]="Create a dynamic color scheme off of a playful theme."
text[7]="Personalize any design. ( 8 of 8)"




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")
	}
