
// JavaScript Document
 

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]="http://www.freedomweddingvideos.co.uk/fading%20images/02.jpg"
photos[1]="http://www.freedomweddingvideos.co.uk/fading%20images/03.jpg"
photos[2]="http://www.freedomweddingvideos.co.uk/fading%20images/04.jpg"
photos[3]="http://www.freedomweddingvideos.co.uk/fading%20images/05.jpg"
photos[4]="http://www.freedomweddingvideos.co.uk/fading%20images/06.jpg"
photos[5]="http://www.freedomweddingvideos.co.uk/fading%20images/07.jpg"
photos[6]="http://www.freedomweddingvideos.co.uk/fading%20images/08.jpg"
//change coresponding description
text[0]="wedding video marwell zoo"
text[1]="dvd marwell zoo"
text[2]="wedding videos"
text[3]="wedding dvds"
text[4]="civil wedding video"
text[5]="church wedding video"
text[6]="wedding video speeches"

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")
	}


