var seq = 0;
var isNS6 = ((navigator.appName=='Netscape') && parseInt(navigator.appVersion) >= 5);

function prev( check_foto, lingua ) {
	seq = seq - 1;
	var foto = (isNS6) ? document.getElementById('src_foto') : document.all.src_foto;
	var prev = (isNS6) ? document.getElementById('prev') : document.all.prev;
	var next = (isNS6) ? document.getElementById('next') : document.all.next;
	var didascalia = (isNS6) ? document.getElementById('didascalia') : document.all.didascalia;
	foto.innerHTML = '<a href="/photo/' + lingua + '-' + id[seq] + '.htm"><img src="/foto/_' + id[seq] + '.jpg" height="220" border="0" vspace="20" /></a>';
	if ( seq==0 ) { prev.style.display = 'none'; }
	if ( seq!=check_foto ) { next.style.display = ''; }
	didascalia.innerHTML = dida[seq];
}

function next( check_foto, lingua ) {
	seq = seq + 1;
	var foto = (isNS6) ? document.getElementById('src_foto') : document.all.src_foto;
	var prev = (isNS6) ? document.getElementById('prev') : document.all.prev;
	var next = (isNS6) ? document.getElementById('next') : document.all.next;
	var didascalia = (isNS6) ? document.getElementById('didascalia') : document.all.didascalia;
	foto.innerHTML = '<a href="/photo/' + lingua + '-' + id[seq] + '.htm"><img src="/foto/_' + id[seq] + '.jpg" height="220" border="0" vspace="20" /></a>';
	if ( seq!=0 ) { prev.style.display = ''; }
	if ( seq==check_foto ) { next.style.display = 'none'; }
	didascalia.innerHTML = dida[seq];
}
