max=1;
function visu(x){
max=x;
plan();
}

function plan(){
if(max>=16){max=1;}
temp=document.getElementById('lapho').src;
deb=temp.lastIndexOf("_")+1;
fin=temp.lastIndexOf(".");
chemin=temp.substr(0,deb)+max+temp.substr(fin,temp.length);
document.getElementById('lapho').src=chemin;
max++;
timerid=setTimeout("plan()",3000);
}

function flipflop(x,y){document.getElementById(x.id).style.cursor="pointer";document.getElementById(x.id).src="/images/"+y+".gif";}

photo=[[2,1],[3,4],[6,5],[8,7],[10,9],[12,11],[14,13],[16,15]];
function imghaut2(x){
document.getElementById('ph1').src="photos/p_"+photo[x][0]+".jpg";
document.getElementById('ph2').src="photos/p_"+photo[x][1]+".jpg";
}
