
var num=0, num2=0, num3=0, num4=0, num5=0, nbim=0;
function changer() {
switch(nbim){
case 1 :
if (num == 0) {
num = 1;
document.image.src = "images/apercu_geniokados.jpg";// grande image
document.image.width = 758;
document.image.height = 1460;
}
else {
num = 0;
document.image.src = "images/apercu_geniokados.jpg";// petite image
document.image.width = 150;
document.image.height = 289;
}
break;
case 2 :
if (num2 == 0) {
num2 = 1;
document.image2.src = "images/quete-perdu.jpg";// grande image
document.image2.width = 500;
document.image2.height = 178;
}
else {
num2 = 0;
document.image2.src = "images/quete-perdu.jpg";// petite image
document.image2.width = 100;
document.image2.height = 36;
}
break;
case 3 :
if (num3 == 0) {
num3 = 1;
document.image3.src = "images/quete-gagne";// grande image
document.image3.width = 500;
document.image3.height = 303;
}
else {
num3 = 0;
document.image3.src = "images/quete-gagne";// petite image
document.image3.width = 100;
document.image3.height = 61;
}
break;
case 4 :
if (num4 == 0) {
num4 = 1;
document.image4.src = "coffre_fort/coffre_fort4.jpg";// grande image
document.image4.width = 610;
document.image4.height = 313;
}
else {
num4 = 0;
document.image4.src = "coffre_fort/coffre_fort4.jpg";// petite image
document.image4.width = 150;
document.image4.height = 77;
}
break;
case 5 :
if (num5 == 0) {
num5 = 1;
document.image5.src = "coffre_fort/coffre_fort5.jpg";// grande image
document.image5.width = 620;
document.image5.height = 104;
}
else {
num5 = 0;
document.image5.src = "coffre_fort/coffre_fort5.jpg";// petite image
document.image5.width = 150;
document.image5.height = 25;
}
break;
}
}
