var which=0

function backward()
{
	if (which>0){
		which--
	}
	show()
}

function forward()
{
	if (which<photos.length-1){
		which++
	}
	show()
}

function show()
{
  which2 = which + 1
	document.images.photoslider.src=photos[which]
	document.getElementById('photolink').href=photos[which]
	document.getElementById('photolink').title=opis[which]
	document.getElementById('fotoopis').innerHTML=opis[which]
	document.getElementById('fotonum').innerHTML='( ' + which2 + ' / ' + photos.length + ' )'
}

