var c=0
var b=0
var s
var t

function photos()
{
numar0 = c%10
numar1 = (c+1)%10
numar2 = (c+2)%10
numar3 = (c+3)%10
numar4 = (c+4)%10

document.getElementById('gallery0a').href = "photos/image"+numar0+".jpg";
document.getElementById('gallery0').src = "photos/image"+numar0+"_small.jpg";

document.getElementById('gallery1a').href = "photos/image"+numar1+".jpg";
document.getElementById('gallery1').src = "photos/image"+numar1+"_small.jpg";

document.getElementById('gallery2a').href = "photos/image"+numar2+".jpg";
document.getElementById('gallery2').src = "photos/image"+numar2+"_small.jpg";

document.getElementById('gallery3a').href = "photos/image"+numar3+".jpg";
document.getElementById('gallery3').src = "photos/image"+numar3+"_small.jpg";

c=c+1
s=setTimeout("photos()",7000)

}
