// JavaScript Document

self.name = "gallery";

var photos=new Array();
var which=0;

/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="images/social_wedphotogall_1.jpg";
photos[1]="images/social_wedphotogall_2.jpg";
photos[2]="images/social_wedphotogall_3.jpg";
photos[3]="images/social_wedphotogall_4.jpg";
photos[4]="images/social_wedphotogall_5.jpg";
photos[5]="images/social_wedphotogall_6.jpg";
photos[6]="images/social_wedphotogall_7.jpg";
photos[7]="images/social_wedphotogall_8.jpg";
photos[8]="images/social_wedphotogall_9.jpg";

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

function forward(){
	if (which<photos.length-1){
		which++;
		document.images.photoslider.src=photos[which];
	}else {
		document.images.photoslider.src=photos[0];
	}
}
