// 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]="kids/14.jpg"
photos[1]="kids/13.jpg"
photos[2]="kids/3.jpg"
photos[3]="kids/4.jpg"
photos[4]="kids/5.jpg"
photos[5]="kids/18.jpg"
photos[6]="kids/19.jpg"
photos[7]="kids/20.jpg"
photos[8]="kids/21.jpg"
photos[9]="kids/12.jpg"
photos[10]="kids/10.jpg"
photos[11]="kids/11.jpg"
photos[12]="kids/17.jpg"
photos[13]="kids/2.jpg"
photos[14]="kids/16.jpg"
photos[15]="kids/15.jpg"
photos[16]="kids/1.jpg"
photos[17]="kids/6.jpg"
photos[18]="kids/7.jpg"
photos[19]="kids/8.jpg"
photos[20]="kids/9.jpg"
photos[21]="kids/22.jpg"




//change coresponding description
text[0]="A farm theme is great for a boy or girl. ( 1 of 22)"
text[1]="The details add whimsy and carry the theme throughout the space."
text[2]="A harlequin pattern adds texture and drama."
text[3]="Combining bold color and pattern creates a fun space."
text[4]="Each design can be bright and bold or soft and subtle."
text[5]="Small details can really personalize a room."
text[6]="Small details can really personalize a room."
text[7]="Creating an ocean theme has endless possibilities."
text[8]="The border adds the finishing touch to this custom look."
text[9]="Create a theme, then personalize it."
text[10]="A soft and pretty girls room."
text[11]="Rose vines up close."
text[12]="Flowers and vines are perfect as borders."
text[13]="Flowers make great accents that add a splash of color."
text[14]="Flowers also look great climbing up the walls."
text[15]="Flowers also look great climbing up the walls."
text[16]="A carnival border adds to a playful theme."
text[17]="Borders add that extra bit of punch and color to a room."
text[18]="Borders add that extra bit of punch and color to a room."
text[19]="Borders add that extra bit of punch and color to a room."
text[20]="Borders can also carry a theme."
text[21]="The options are endless...(22 of 22)"





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