function toggle(submenu) { if (document.getElementById(submenu).style.display == "none") document.getElementById(submenu).style.display = "block"; else if (document.getElementById(submenu).style.display == "block") document.getElementById(submenu).style.display = "none" else alert("An error occured in the menu. Contact the web master."); } var imgGrande = document.getElementById ("imgGrande"); // Caixa para a imagem grande // Coluna de tres fotos onde estamos var coluna = 0; // Caixas para as imagens pequenas var img1 = document.getElementById ("img1"); var img2 = document.getElementById ("img2"); var img3 = document.getElementById ("img3"); var img4 = document.getElementById ("img4"); var img5 = document.getElementById ("img5"); var img6 = document.getElementById ("img6"); var img7 = document.getElementById ("img7"); var caixas = new Array(7); caixas [0] = img1; caixas [1] = img2; caixas [2] = img3; caixas [3] = img4; caixas [4] = img5; caixas [5] = img6; caixas [6] = img7; // Variavel que guarda as fotos do slide-show // nos numeros pares ficam as miniaturas e nos numeros impares ficam as grandes var fotos = new Array (); fotos [0]="imagens/3D0.jpg"; fotos [1]="imagens/3D0Grande.jpg"; fotos [2]="imagens/3D1.jpg"; fotos [3]="imagens/3D1Grande.jpg"; fotos [4]="imagens/3D2.jpg"; fotos [5]="imagens/3D2Grande.jpg"; fotos [6]="imagens/3D3.jpg"; fotos [7]="imagens/3D3Grande.jpg"; fotos [8]="imagens/3D4.jpg"; fotos [9]="imagens/3D4Grande.jpg"; fotos [10]="imagens/3D5.jpg"; fotos [11]="imagens/3D5Grande.jpg"; fotos [12]="imagens/3D6.jpg"; fotos [13]="imagens/3D6Grande.jpg"; function verFoto (numeroFoto) { var n = coluna*6+numeroFoto*2+1; imgGrande.src = fotos[n]; }