var largIntroFlash=800;	var hautIntroFlash=620;//Dimensions en pixels de l'animation Flash non redimensionnée
var coefFlash=hautIntroFlash/largIntroFlash;//Rapport hauteur/largeur de l'animation Flash
var larg;var haut;//Dimensions en pixels de l'animation à afficher (après calcul)
var largDispo; var hautDispo;//Dimensions de la fenêtre
var xAnim; var yAnim;//Coordonnées de l'animation à afficher (après calcul)
var windowSize=0;//Témoin conservant l'ancienne taille de fenêtre

function defDim(){
	//Calcul des dimensions de l'animation Flash à afficher
	if(document.getElementById && !document.all){
		if(document.body.clientWidth) largDispo = (document.body.clientWidth);
		else largDispo = (window.innerWidth);
		if(document.body.clientHeight) hautDispo = (document.body.clientHeight);
		else if(window.innerHeight) hautDispo = (window.innerHeight);
		var coef=hautDispo/largDispo;
		if(document.all) var IE=1;
		else var IE=0;
		larg=largDispo;
		haut=hautDispo;
		if(((larg>0)&&(coefFlash<coef))||!(haut>0)) haut=larg*hautIntroFlash/largIntroFlash;
		else larg=haut*largIntroFlash/hautIntroFlash;
		if(IE==1) var retrecissement=0.94;
		else var retrecissement=0.97;
		larg=larg*retrecissement;
		haut=haut*retrecissement;
		xAnim=(largDispo-larg)/2;
		yAnim=10;
			
		//Modification du style de l'animation d'intro
		flashStyle=findDOM('anim',1);
		flashStyle.left=xAnim+'px';
		flashStyle.top=yAnim+'px';
		flashStyle.width=larg+'px';
		flashStyle.height=haut+'px';
	}
		
	windowSize=document.body.clientWidth;
}

function resize(){
	if(document.all){
		if(windowSize != document.body.clientWidth){
			defDim();
		}
	}else defDim();
}