﻿/*-------------------------------
	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-11
-------------------------------*/
var SceneURL=self.location.href;
var flashOK=false;
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=11;
var nbElSpiraleT=11;
var pgeLng;
function FenetreSpirale(){document.getElementById("xScnDMozaik").style.visibility='visible';
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('xScnDPann').style){
if((incx==0) && (incy==0))svf();
if((incx>0) && (parseInt(left)<35))left=(parseInt(left,10)+incx)+'px';
if((incx<0) && (parseInt(left)>-313))left=(parseInt(left,10)+incx)+'px';
if((incy>0) && (parseInt(top)<152))top=(parseInt(top,10)+incy)+'px';
if((incy<0) && (parseInt(top)>-75))top=(parseInt(top,10)+incy)+'px';
}
}
function initPge(lng){pgeLng=lng;xttInit('#000000','#999999','#9999CC','#9999CC',90,true);
document.getElementById('xScnDPann').style.left="-120px";
document.getElementById('xScnDPann').style.top="40px";
document.getElementById("xScnDMask").style.display="none";
initInstructions();sonoSwf();FenetreSpirale();window.onresize=xReDim;}

