﻿/*-------------------------------
	Copyright (c) 2004-2005 Eira inc.
	http://www.origano.com
	Tous droits réservés pour tous pays
	All rights reserved for all countries
	revision 2005-04-09
-------------------------------*/
var SceneURL=self.location.href;
var flashOK=false;
var BasVisible=true;
var PositionY=60;
var PGincx=0;
var PPincx=0;
var PGincy=0;
var PPincy=0;
var valZoomA=0;
var ZoomIn=true;
var incx=0;
var incy=0;
var hor1=null;
var hor2=null;
var hor3=null;
var increment=2;
var PremFois=false;
var nbElSpiraleP=0;
var nbElSpiraleM=9;
var nbElSpiraleT=9;
var pgeLng;
function FenetreSpirale(){hor3=window.setInterval("CouleurSpirale()",50);}
function CouleurSpirale(){
nbElSpiraleM--;
if(nbElSpiraleM>nbElSpiraleT/2){document.getElementById("Dimg"+nbElSpiraleM).style.background="url(art/unpix-tr.gif) repeat";}
nbElSpiraleP++;
if(nbElSpiraleP<nbElSpiraleT/2){document.getElementById("Dimg"+nbElSpiraleP).style.background="url(art/unpix-tr.gif) repeat";}
if((nbElSpiraleP>nbElSpiraleT/2) && (nbElSpiraleM<nbElSpiraleT/2)){
document.getElementById("Dimg"+nbElSpiraleT).style.background="url(art/unpix-tr.gif) repeat";
window.clearInterval(hor3);
}
}
function initInstructions(){document.getElementById("Bas").style.display="block";PremFois=true;}
function sonoSwf(){
if(!xFlashBienCharge("sono","idFls1",1,1,"#000000","art/vagues.swf",5,false)){
var msg=((pgeLng=='f')?"Oops ! Vous n'avez pas la dernière version du lecteur Flash !"+
"\r\n\r\n Cliquez sur OK pour accéder à notre page Oops sur Flash "+
"\r\n\r\n sinon, le son sera désactivé.":
"Oops! You don't have the last version of the Flash reader!"+
"\r\n\r\nClick OK to reach our Oops page on Flash;"+
"\r\n\r\nif not, the sound will be unavailable.");
if(window.confirm(msg))xFlashOops();
}
}
function fairedisparaitrelebas(){document.getElementById("Bas").style.visibility='hidden';window.clearTimeout(hor1);}
function svd(x,y){
if(PremFois){hor1=window.setTimeout("fairedisparaitrelebas()",3000);PremFois=false;}
if((x==0)&&(y==0)){svf();return;}
incx=0;incy=0;
if(x>0)incx=increment;else{if(x<0)incx=-increment;}
if(y>0)incy=increment;else{if(y<0)incy=-increment;}
AmorcerPlanning();
}
function svf(){window.clearInterval(hor2);}
function AmorcerPlanning(){hor2=window.setInterval("Panning()",50);}
function Panning(){
with(document.getElementById('fenImg').style){
if((incx==0) && (incy==0))svf();
Pos=parseInt(left);
if((incx>0) && (Pos<PGincx))left=(Pos+incx)+'px';
if((incx<0) && (Pos>PPincx))left=(Pos+incx)+'px';
Pos=parseInt(top);
if((incy>0) && (Pos<PGincy))top=(Pos+incy)+'px';
if((incy<0) && (Pos>PPincy))top=(Pos+incy)+'px';
}
}
function curseurs(SiMouvement){
if(SiMouvement){
document.getElementById("Dimg1").style.cursor="nw-resize";
document.getElementById("Dimg2").style.cursor="n-resize";
document.getElementById("Dimg3").style.cursor="ne-resize";
document.getElementById("Dimg4").style.cursor="e-resize";
document.getElementById("Dimg5").style.cursor="se-resize";
document.getElementById("Dimg6").style.cursor="s-resize";
document.getElementById("Dimg7").style.cursor="sw-resize";
document.getElementById("Dimg8").style.cursor="w-resize";
document.getElementById("Dimg9").style.cursor=(xHote.navIE599ea?'hand':'pointer');
}
else{for(var i=1;i<10;i++){document.getElementById("Dimg"+i).style.cursor=(xHote.navIE599ea?'hand':'pointer');}}
}
function dimPos(Format){
var imgEben=document.getElementById("ebenPelee");
var divFen=document.getElementById("fenImg").style;
switch(Format){
case 0:imgEben.width=467;imgEben.height=323;divFen.left='-50px';divFen.top='0px';PGincx=0;
PPincx=-93;PGincy=0;PPincy=0;curseurs(true);break;
case 1:imgEben.width='584';imgEben.height='404';divFen.left='-88px';divFen.top='-14px';PGincx=0;
PPincx=-212;PGincy=0;PPincy=-14;curseurs(true);break;
case 2:imgEben.width='730';imgEben.height='505';divFen.left='-125px';divFen.top='-115px';PGincx=0;
PPincx=-357;PGincy=0;PPincy=-115;curseurs(true);break;
}
}
function zoom(){switch(ZoomIn){
case true:switch(valZoomA){
case 0:dimPos(1);valZoomA=1;ZoomIn=true;break;
case 1:dimPos(2);valZoomA=2;ZoomIn=false;break;
case 2:dimPos(0);valZoomA=0;ZoomIn=false;break;
}
break;
case false:switch(valZoomA){
case 0:dimPos(2);valZoomA=2;ZoomIn=true;break;
case 1:dimPos(0);valZoomA=0;ZoomIn=true;break;
case 2:dimPos(1);valZoomA=1;ZoomIn=false;break;
}
break;
}
}
function initPge(lng){
pgeLng=lng;xttInit('#222222','#999999','#99CCCC','#99CCCC',100,true);initInstructions();sonoSwf();FenetreSpirale();window.onresize=xReDim;}

