var coeff=2;//Coefficient de reduction
var larg=80;//largeur maxi de l'image
var haut=80;//hauteur maxi de l'image
var coeffinit=coeff;

function changer(nom_de_limage) {
if (document.images[nom_de_limage].width < larg) {
coeff = coeff-0.2;
document.images[nom_de_limage].width = Math.round(larg/coeff);
document.images[nom_de_limage].height = Math.round(haut/coeff);
chang=window.setTimeout('changer("'+document.images[nom_de_limage].name+'");',40);//vitesse de l'effet
}
else {window.clearTimeout(chang);}
}


function initial(nom_de_limage) {
if (document.images[nom_de_limage].width > larg/coeffinit) {
window.clearTimeout(chang);
coeff = coeff+0.2;
document.images[nom_de_limage].width = Math.round(larg/coeff);
document.images[nom_de_limage].height = Math.round(haut/coeff);
initi=window.setTimeout('initial("'+document.images[nom_de_limage].name+'");',40);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}

//-->