﻿/*-------------------------------
	Copyright (c) 2004-2005 Eira inc.
	http://www.origano.com
	revision 2005-04-04
-------------------------------*/
var ttaff=false;
var ttIntervalID=0;
var txt=new Array();
var ttEcart=8;
var pgeLng;
var sceneHTML=self.location.hash.substr(1);
var ans=new Array(6);
var anneeActuelle=0;
var themeActuel=1;
var modeMenu=true;
var oFenGeo=null;
var oFenSono=null;
var thmEtat=new Array(6);
function afficherFenGeo(){
oFenGeo=window.open("moz-geo.htm",null,"top=100,left=100,height=430,width=442,status=no,resizable=no,toolbar=no,menubar=no,location=no");
oFenGeo.focus();}
function sonoMedSvlDeb(){
with(document.getElementById("divMediaTexte").style){textDecoration='underline';color="#cc6633"}}
function sonoMedSvlFin(){
with(document.getElementById("divMediaTexte").style){textDecoration='none';color="#999999"}}
function sonoMedClk(){
var fi=((pgeLng=='f')?"sonomidi_f.htm":"sonomidi_a.htm");
oFenSono=window.open(fi,null,"top=100,left=100,height=428,width=465,status=no,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
oFenSono.focus();}
function activeX_existePour(nom){
var obj=null;
var existe=false;
try{
obj=new ActiveXObject(nom);
if(typeof(obj)=="object") existe=true;
else existe=false;
}
catch(e){existe=false;}
return existe;
}
function plugin_existePour(nom){
var existe=false;
if(navigator.plugins){
for(var i=0;i<navigator.plugins.length;i++){
if(navigator.plugins[i].name.toLowerCase().indexOf(nom)>=0){existe=true;break;}
}
}
return existe;
}
function bandeMediaLancerAvec(nomFichier){
var chn="";
var chl="";
var cht="";
var rechargerPourOpera=false;
if(nomFichier.toLowerCase().indexOf("swf")!=-1){
xFlashBienCharge("divMedia","idFlsSon",620,24,"#000000",nomFichier,6,true);
}
else{
if(xHote.navIE550eu){
if(activeX_existePour("WMPlayer.OCX")){
chn='<object id="objMIDI" height="48" width="200" '+
'classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6">'+
'<param name="url" value="'+nomFichier+'" />'+
'<param name="uiMode" value="full" />'+
'<param name="volume" value="65" />'+
'<param name="autoStart" value="false" />'+
'</object>';
}
else if(activeX_existePour("QuickTimeCheckObject.QuickTimeCheck.1")){
chn='<object id="objMIDI" height="16" width="280" '+
'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" '+
'codebase="http://www.apple.com/qtactivex/qtplugin.cab">'+
'<param name="src" value="'+nomFichier+'" />'+
'<param name="autoplay" value="false" />'+
'<param name="bgcolor" value="000000" />'+
'<param name="controller" value="true" />'+
'</object>';
}
else if(activeX_existePour("rmocx.RealPlayer G2 Control")){
chn='<object id="objMIDI" height=36 width=350 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">'+
'<param name="controls" value="ControlPanel" />'+
'<param name="autostart" value="false" />'+
'<param name="src" value="'+nomFichier+'" />'+
'</object>';
}
else{}
}
else{
if(plugin_existePour("windows media player")){
chn='<embed name="objMIDI" '+
'type="application/x-mplayer2" '+
'height="46" width="300" '+
'src="'+nomFichier+'" '+
'uiMode="full" '+
'autostart="0">'+
'</embed>';
}
else if(plugin_existePour("quicktime")){
chn='<embed	name="objMIDI" '+
'type="video/quicktime" '+
'pluginspage="http://www.apple.com/quicktime/download/" '+
'width="280" '+
'height="16" '+
'src="'+nomFichier+'" '+
'qtsrc="'+nomFichier+'" '+
'controller="true" '+
'bgcolor="000000" '+
'autoplay="false">'+
'</embed>';
}
else if(plugin_existePour("realone")){
chn='<embed type="audio/x-pn-realaudio-plugin" '+
'height="36" '+
'width="350" '+
'pluginspage="http://www.real.com/player/" '+
'src="'+nomFichier+'" '+
'controls="ControlPanel" '+
'autostart="false">'+
'</embed>';
}
else{}
}
cht='title="';
if(pgeLng=='f'){chl="La sono est absente ou médiocre ?";cht+="Consultez l'aide sur la sono.";}
else{chl="No sound or bad sound?";cht+="See help about sound.";}
cht+='" ';
chn+='<br /><a id="divMediaTexte" href="#" '+ cht + 'onclick="sonoMedClk()">'+chl+'</a>';
document.getElementById("divMedia").innerHTML=chn;
}
}
function mozMenSvlDeb(){document.getElementById('mozMen').style.backgroundImage='url(art/accSvl_'+pgeLng+'.gif)';}
function mozMenSvlFin(){document.getElementById('mozMen').style.backgroundImage='url(art/accNsv_'+pgeLng+'.gif)';}
function navigBack(){
if(xHote.navIE)// pour changer le background seulement dans ie
	if(document.getElementById('mozMen')!=null)
	with(document.getElementById('mozMen')){onmouseover=mozMenSvlDeb;onmouseout=mozMenSvlFin;}}
function bandeMediaEnlever(){xFlashSupprimerContenuDe("divMedia");}
function afficherInfoTheme(num){}
function xMenuSurvol(bAfficher){}
function xCentrerScene(){}
function xInit(lng,tt){
pgeLng=lng;
if(pgeLng=='f'){
	xInitMenPage("galeries","musique","amadeus");
	if(document.getElementById('aParouty')!=null)
		document.getElementById('aParouty').href="http://www.amazon.com/exec/obidos/external-search?tag=origano-20&keyword=michel%20parouty&mode=blended";
	}
else{
	xInitMenPage("on exhibit now","music","amadeus");
	if(document.getElementById('aParouty')!=null)
		document.getElementById('aParouty').href="http://www.amazon.com/exec/obidos/external-search?tag=origano-20&keyword=michel%20parouty&mode=blended";
	}

if(tt)xttInit('#BDAD94','#000000','#0000CC','#993300',100,true);
navigBack();
window.onresize=xReDim;
}
function xExit(){}

