function setBold(link){
	var nav = document.getElementById("nav");
	var links = nav.getElementsByTagName('a');
	for(j=0; j<links.length; j++)
		links[j].style.fontWeight = 'normal';
	link.style.fontWeight = 'bold';
}
function changeFoto(i, link){
	document.getElementById("foto").src = foto[i];
	count = i;
	setBold(link);
	return false;
}
function next(){
	if(count+1 < foto.length)
		document.getElementById("foto").src = foto[++count];
	setBold(document.getElementById("pag-"+count));
	return false;
}
function prev(){
	if(count > 0)
		document.getElementById("foto").src = foto[--count];
	setBold(document.getElementById("pag-"+count));
	return false;
}