/**********************************************************************/
/** Force l'affichage en plein écran **********************************/
/**********************************************************************/
function PleinEcran()
{
	window.moveTo(0,0);
	if (document.all) 
		{
		window.resizeTo(screen.availWidth,screen.availHeight);
		}
	else if (document.layers) 
		{
		if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)
			{
			window.outerHeight = screen.availHeight;
			window.outerWidth = screen.availWidth;
			}
		}
}
/**********************************************************************/
/** Force l'affichage sur 800 *****************************************/
/**********************************************************************/
function Ecran800()
{
	window.moveTo((screen.availWidth-800)/2,0);
	if (document.all) 
		{
		window.resizeTo(780,screen.availHeight);
		}
	else if (document.layers) 
		{
		if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)
			{
			window.outerHeight = screen.availHeight;
			window.outerWidth = 780;
			}
		}
}
/**********************************************************************/
/** Affiche un message d'attente en attendant le chargement complet  **/
/**------------------------------------------------------------------**/
/**		Paramètres :	1. - Couleur de Fond,						 **/
/**						2. - Couleur de la Bordure,					 **/
/**						3. - Couleur du Texte.						 **/
/**********************************************************************/
function ChargementEnCours(Fond,Bord,Texte,x,y)
{
	ver = navigator.appVersion.substring(0,1)
	if (ver >= 4)
		{
		document.write('<DIV Id="cache" Style="position:absolute;top:'+y+'px;left:'+x+'px;visibility:hidden;">');
		document.write('<TABLE Width=400 BgColor='+Fond+' BORDER=2 BorderColor='+Bord+' Cellpadding=2>');
		document.write('<TR><TD Align=Center VAlign=Middle>');
		document.write('<FONT Size=4 Color='+Texte+'>');
		document.write('<BR>PAGE EN COURS DE CHARGEMENT....<BR><BR>');
		document.write('</FONT></TD></TR></TABLE></DIV>');
		var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
		var HIDDEN = (navi) ? 'hide' : 'hidden';
		var VISIBLE = (navi) ? 'show' : 'visible';
		var cache = (navi) ? document.cache : document.all.cache.style;
		largeur = screen.width;
		cache.left = Math.round((largeur/2)-200);
		cache.visibility = VISIBLE;
		}
}
/**********************************************************************/
/** Supprime le message d'attente *************************************/
/**********************************************************************/
function ChargementOk()
{
	var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
	var HIDDEN = (navi) ? 'hide' : 'hidden';
	var VISIBLE = (navi) ? 'show' : 'visible';
	var cache = (navi) ? document.cache : document.all.cache.style;
	if (ver >= 4)
		{
		cache.visibility = HIDDEN;
		}
}
/**********************************************************************/
/** Alerte pour un site optimisé pour du 800x600 minimum **************/
/**********************************************************************/
function Res800x600()
{
	if (screen.Width<800)
		{
		alert("Une résolution écran de 800x600 \r est neccessaire pour visiter ce site !");
		}
}
/**********************************************************************/
/** Alerte pour un site optimisé pour du 1024x768 minimum *************/
/**********************************************************************/
function Res1024x768()
{
	if (screen.Width<800)
		{
		alert("Une résolution écran de 1024x768 \r est neccessaire pour visiter ce site !");
		}
}
/**********************************************************************/
/** Affichage d'un objet Flash										 **/
/**------------------------------------------------------------------**/
/**		Paramètres :  Envoyé directement par la fonction TestFlash	 **/
/**********************************************************************/
function FlashOk(swf)
{
document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0' ID=Untitled2 WIDTH=500 HEIGHT=100>");
document.write("<PARAM NAME=movie VALUE='"+swf+"'>");
document.write("<PARAM NAME=quality VALUE=high>");
document.write("<PARAM NAME=bgcolor VALUE=#FFFF99>");
document.write("<EMBED src='"+swf+"' quality=high bgcolor=#FFFF99 WIDTH=500 HEIGHT=100 TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>");
document.write("</EMBED>");
document.write("</OBJECT>");
}
function FlashOk2(swf)
{
document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0' ID=Untitled2 WIDTH=134 HEIGHT=32>");
document.write("<PARAM NAME=movie VALUE='"+swf+"'>");
document.write("<PARAM NAME=quality VALUE=high>");
document.write("<PARAM NAME=bgcolor VALUE=#FFFF99>");
document.write("<EMBED src='"+swf+"' quality=high bgcolor=#FFFF99 WIDTH=134 HEIGHT=32 TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>");
document.write("</EMBED>");
document.write("</OBJECT>");
}
/**********************************************************************/
/** Affichage d'une image remplaçant l'objet Flash					 **/
/**------------------------------------------------------------------**/
/**		Paramètres :  Envoyé directement par la fonction TestFlash	 **/
/**********************************************************************/
function FlashPasOk(image,lien)
{
if (lien!="")
	{
	document.write("<A Href='"+lien+"' OnFocus='this.blur()'>");
	}
if (image!="")
	{
	document.write("<IMG Src='"+image+"' Border='0'>");
	}
if (lien!="")
	{
	document.write("</A>");
	}

}
/**********************************************************************/
/** Affichage d'une image remplaçant l'objet Flash					 **/
/**------------------------------------------------------------------**/
/**		Paramètres :	1. - Nom du fichier SWF, extension comprise	 **/
/**							 (coller le chemin si neccessaire)		 **/
/**						2. - Image, extension comprise				 **/
/**							 (coller le chemin si neccessaire)		 **/
/**						3. - Possibilité d'un lien si neccessaire	 **/
/**********************************************************************/
function TestFlash(swf,image,lien)
{
	noautoinstall = ""
	if(navigator.appName == "Microsoft Internet Explorer" &&
		(navigator.appVersion.indexOf("Mac") != -1 ||
		 navigator.appVersion.indexOf("3.1") != -1)){
			noautoinstall = "true";
	}
	if (navigator.appName == "Microsoft Internet Explorer" && noautoinstall != "true")
	{
			if (swf=='entrez.swf')
			   { FlashOk2(swf); }
			else
			   { FlashOk(swf);  }

	}
	else if(navigator.plugins)
	{
		if(navigator.plugins["Shockwave Flash"] || navigator.plugins["Shockwave Flash 2.0"])
		{
			if (swf=='entrez.swf')
			   { FlashOk2(swf); }
			else
			   { FlashOk(swf);  }
		}
		else
		{
			FlashPasOk(image,lien)
		}
	}
	else
	{
	FlashPasOk(image,lien)
	}
}
/**********************************************************************/
/** Saute des lignes si la résolution est supérieur à 1000 pixels	 **/
/**------------------------------------------------------------------**/
/**		Paramètre :		1. - Nombre de lignes sauté					 **/
/**********************************************************************/
function Saut_1024(Nbr)
{ 
	if (screen.Width>1000) 
		{ 
		for (i=0; i<Nbr; i++) 
			{
			document.write("<BR>"); 
			} 
		} 
}
/**********************************************************************/
/**	Fin 															 **/
/**********************************************************************/
