var photos=new Array()
var photoslink=new Array()
var which=0
var nocount=1

photos[0]="images/nature/01.jpg"
photos[1]="images/nature/02.jpg"
photos[2]="images/nature/03.jpg"
photos[3]="images/nature/04.jpg"
photos[4]="images/nature/05.jpg"
photos[5]="images/nature/06.jpg"
photos[6]="images/nature/07.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<7){
nocount++
document.getElementById("count").innerHTML = nocount;
}
}