//
var wallPaper = "";
//
//°°° Dimensions de l'animation:
var dimCoef = 1;
var scrHmin = 760;
var priTime = true;
var scrLarg, scrHaut, winLarg, winHaut;
var clipTop, clipLeft, clipLarg, clipHaut;
var tlsLarg= 250, tlsHaut= 20; //Barre d'outils
var flaLarg= 900, flaHaut= 700, winHref= flaHaut;
var aniLarg = 1300, aniHaut =920, animHaut, animLarg; 
//
//---------- tableaux des cibles
var oFrame= new Array();
oFrame[0] =	"_self";
oFrame[1] =	"_blank"	;
oFrame[2] =	"_parent";
oFrame[3] = "frm_Main";
oFrame[4] =	"";
oFrame[5] =	"frm_Fond";
oFrame[6] =	"frm_Anim";
oFrame[7] =	"";
oFrame[8] =	"";
oFrame[9] =	"";
oFrame[10]= "";
oFrame[11]= "";
//---------- Initialisation des pages
function onloadPage(oPage){ resizePage(oPage); }
//---------- Dimensionnement des pages
function resizePage(oPage){
		scrLarg = screen.availWidth;	scrHaut = screen.availHeight;
		winLarg = document.body.clientWidth;	winHaut = document.body.clientHeight;
	switch(oPage){
//
	case "pgeIntroFlash":
		clipTop = 30;
		((winHaut<flaHaut)? dimCoef=winHaut/winHref: dimCoef=1); // Taille écran : Taille Flash
		mainLarg= flaLarg*dimCoef; mainHaut= flaHaut*dimCoef;
		animLarg = Math.round((aniLarg/1.50)*dimCoef); animHaut = Math.round((aniHaut/1.50)*dimCoef);
 	poziTop= (winHaut-mainHaut)/2; poziLeft= (winLarg-mainLarg)/2;		
	 if (priTime==true){clipTop = poziTop; clipLeft = poziLeft;} 
//
	with(document.getElementById("frm_Tool").style){top= 7; left=winLarg-tlsLarg; height= tlsHaut; width= tlsLarg;}	
	with(document.getElementById("frm_Fond").style){top= poziTop; left=poziLeft; height= mainHaut; width= mainLarg;}	
	with(document.getElementById("frm_Main").style){top= poziTop; left=poziLeft; height= mainHaut; width= mainLarg;}
	with(document.getElementById("frm_Anim").style){top= 110; left=poziLeft; height= animHaut; width= animLarg; zIndex=500;}
	with(document.getElementById("bandoTop").style){top=20; left=(winLarg-700)/2; width=700; height= 100};
	with(document.getElementById("panoPub_V1").style){top=70; left=winLarg-120; width=160; height= 600};
		break;
	}
}

function moveMovie(oTop, oLeft){
 clipTop = oTop; clipLeft = oLeft; priTime = false;
	with(document.getElementById("frm_Anim").style){zIndex=100; top= clipTop; left=clipLeft; height= mainHaut; width= mainLarg;}		
}
//
//---------- Chargement animation flash

function getFlash(oFlash){
 document.write(	
	 '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id='+oFlash+' width=100% height=100%'+
		' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">'+
	 '<param NAME="Base" VALUE="" />'+
	 '<param NAME="Menu" VALUE="0" />'+
	 '<param NAME="Loop" VALUE="0" />'+
	 '<param NAME="Play" VALUE="-1" />'+
	 '<param NAME="SAlign" VALUE="" />'+
	 '<param NAME="_cx" VALUE="21167" />'+
	 '<param NAME="_cy" VALUE="10583" />'+
	 '<param NAME="SWRemote" VALUE="" />'+
	 '<param NAME="Profile" VALUE="0" />'+
	 '<param NAME="MovieData" VALUE="" />'+
	 '<param NAME="FlashVars" VALUE="" />'+
	 '<param NAME="Quality" VALUE="High" />'+
	 '<param NAME="DeviceFont" VALUE="0" />'+
	 '<param NAME="EmbedMovie" VALUE="0" />'+
	 '<param NAME="ProfilePort" VALUE="0" />'+
	 '<param NAME="Scale" VALUE="noborder" />'+
	 '<param NAME="BGColor" VALUE="#FFFFFF" />'+
	 '<param NAME="ProfileAddress" VALUE="" />'+
 	'<param NAME="SeamlessTabbing" VALUE="1" />'+
  '<param NAME="WMode" VALUE="Transparent" />'+
 	'<param NAME="AllowNetworking" VALUE="all" />'+
 	'<param NAME="AllowFullScreen" VALUE="true" />'+
 	'<param NAME="AllowScriptAccess" VALUE="sameDomain" />'+	//	 '<param NAME="javascript" VALUE="include/sflash.js" />'+
	 '<param NAME="Src" VALUE='+oFlash+' /><param	 NAME="movie" value='+oFlash+' />'+
 	'<embed SRC='+oFlash+' WMode=Transparent loop=0 width=100% height=100% quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'+
	'</OBJECT>');
}

function hideFrame(idxFrame){
	document.getElementById(oFrame[idxFrame]).style.visibility= "hidden";
	};
function showFrame(idxFrame){
	document.getElementById(oFrame[idxFrame]).style.visibility= "visible";
	};

