// JavaScript Document

var currentPic=1;

function nextPic(t) {
	currentPic++;
	if (currentPic>3) currentPic=1;
	document.getElementById('picImg').src='pic'+currentPic+'.jpg';
	if (t>0) setTimeout("nextPic(19999)",19999);	
}

setTimeout("nextPic(19999)",19999);	

function foto(i) {
	t=document.getElementById('fotos');
	if (i<1) 
		t.style.display="none";
	else {
		t.style.display="";
		t.style.backgroundImage="url(foto"+i+"g.jpg)";
	}
}
