var photos=new Array()
var photoslink=new Array()
var which=0
var nocount=1

photos[0]="images/weddings/01.jpg"
photos[1]="images/weddings/02.jpg"
photos[2]="images/weddings/03.jpg"
photos[3]="images/weddings/04.jpg"
photos[4]="images/weddings/05.jpg"
photos[5]="images/weddings/06.jpg"
photos[6]="images/weddings/07.jpg"
photos[7]="images/weddings/08.jpg"
photos[8]="images/weddings/09.jpg"
photos[9]="images/weddings/10.jpg"
photos[10]="images/weddings/11.jpg"
photos[11]="images/weddings/12.jpg"
photos[12]="images/weddings/13.jpg"
photos[13]="images/weddings/14.jpg"
photos[14]="images/weddings/15.jpg"
photos[15]="images/weddings/16.jpg"
photos[16]="images/weddings/17.jpg"
photos[17]="images/weddings/18.jpg"
photos[18]="images/weddings/19.jpg"
photos[19]="images/weddings/20.jpg"
photos[20]="images/weddings/21.jpg"
photos[21]="images/weddings/22.jpg"
photos[22]="images/weddings/23.jpg"
photos[23]="images/weddings/24.jpg"
photos[24]="images/weddings/25.jpg"
photos[25]="images/weddings/26.jpg"
photos[26]="images/weddings/27.jpg"
photos[27]="images/weddings/28.jpg"
photos[28]="images/weddings/29.jpg"

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}

function backward(){
if (which>0){
which--
document.images.photoslider.src=photos[which]
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
keeptrack()
}
}

function down(){
if (nocount>1){
nocount--
document.getElementById("count").innerHTML = nocount;
}
}

function up(){
if (nocount<29){
nocount++
document.getElementById("count").innerHTML = nocount;
}
}