﻿/*-------------------------------
	Copyright (c) 2004-2005 Eira inc.
	http://www.origano.com
-------------------------------*/
var BasVisible=true;var incx=0;var hor1=null;var hor3=null;var PremFois=false;
var nbElSpiraleP=0;var nbElSpiraleM=9;var nbElSpiraleT=9;function anime(){
document.getElementById('divFenAnim').style.visibility='visible';
if(BasVisible){
document.getElementById('divInstrZoom').style.visibility='visible';BasVisible=false;}
else document.getElementById('divInstrZoom').style.visibility='hidden';}
function FenetreSpirale(){hor3=window.setInterval("CouleurSpirale()",175);}
function CouleurSpirale(){
nbElSpiraleM--;
if(nbElSpiraleM>nbElSpiraleT/2){document.getElementById('Dimg'+nbElSpiraleM).className="nvi";}
nbElSpiraleP++;	
if(nbElSpiraleP<nbElSpiraleT/2){document.getElementById('Dimg'+nbElSpiraleP).className="nvi";}
if((nbElSpiraleP>nbElSpiraleT/2)&&(nbElSpiraleM<nbElSpiraleT/2)){	
document.getElementById('Dimg'+nbElSpiraleT).className="nvi";
window.clearInterval(hor3);
document.getElementById('divFenAnim').style.visibility='hidden';
document.getElementById('divFenAnim').style.display='none';
initInstructions();}}
function initInstructions(){
document.getElementById("divInstrZoom").className="clsNPI vis";PremFois=true;}
function masquerInstrZoom(){
document.getElementById('divInstrZoom').style.visibility='hidden';window.clearTimeout(hor1);}
function svd(){
if(PremFois){hor1=window.setTimeout("masquerInstrZoom()",3000);PremFois=false;}}
var valZoomA=0;var ZoomIn=true;
function zoom0(siIn){
document.getElementById('imgPieta').width=465;document.getElementById('imgPieta').height=483;valZoomA=1;ZoomIn=siIn;}
function zoom25(siIn){
document.getElementById('imgPieta').width=558;document.getElementById('imgPieta').height=579;valZoomA=2;ZoomIn=siIn;}
function zoom50(siIn){
document.getElementById('imgPieta').width=372;document.getElementById('imgPieta').height=386;valZoomA=0;ZoomIn=siIn;}
function zoom(){switch(valZoomA){
case 0:if(ZoomIn)zoom0(true);else zoom25(true);break;
case 1:if(ZoomIn)zoom25(false);else zoom50(true);break;
case 2:if(ZoomIn)zoom50(false);else zoom0(false);break;}}

