//---------------------------------------------------------------------------------------------
// Fichier de scripts automatiques du site
//---------------------------------------------------------------------------------------------

//----------------------------------------------------------
// Configuration des variables (Partie administration)
//----------------------------------------------------------


	/* Variable de la version et de la taille du logiciel */
	//---------------------------------------------------------------------------------------------	
	Version = "10.02b du 15.02.2010";
	OSComp  = "Windows 98 à Seven";
	Taille  = "23,24 Mo";
	LD = "CCD# hPxwcf9+ztw #CCF"  

	/* Variable pour l'activation de la page presse */
	//---------------------------------------------------------------------------------------------	
	
	EtatPresse = 0;      /* 0 = Désactivée , 1 = Activée */


//----------------------------------------------------------
// Fonctions du site (Partie à ne pas modifier)
//----------------------------------------------------------

var nompop="";

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function VersionLogiciel()
{
	document.write(Version+" ("+Taille+")");
}

function CompatibiliteLogiciel()
{
	document.write(OSComp);
}

function Presse(Page)
{
	if (EtatPresse==0)
		{
		document.write('<table cellpadding="0" cellspacing="0" width="158" height="45"><tr><td width="33" align="left" valign="top" height="45"><p><font face="Verdana" size="2">&nbsp;</font></p></td><td width="125" align="left" valign="middle" height="45"><p><font face="Verdana" size="2">&nbsp;</font></p></td></tr></table>');
		}
	else
		{
		if (Page=="presse")
			{
			document.write('<table cellpadding="0" cellspacing="0" width="158" height="45"><tr><td width="33" align="left" valign="top" height="45"><p><font face="Verdana" size="2"><img src="images/puce1.png" width="27" height="27" border="0" vspace="9" hspace="3"></font></p></td><td width="125" align="left" valign="middle" height="45"><p><font face="Verdana" size="2" color="#FF6600"><u>La presse</u></font></p></td></tr></table>');
			}
		else
			{
			document.write('<table cellpadding="0" cellspacing="0" width="158" height="45"><tr><td width="33" align="left" valign="top" height="45"><p><font face="Verdana" size="2"><img src="images/puce2.png" width="27" height="27" border="0" vspace="9" hspace="3"></font></p></td><td width="125" align="left" valign="middle" height="45"><p><font face="Verdana" size="2"><a href="presse.htm" target="_parent">La presse</a></font></p></td></tr></table>');
			}
		}
}

function afficheMaxi(nom,chemin)
{
	var Haut    = (screen.height-600)/2;
	var Gauche  = (screen.width-800)/2;
	var titre   = "";
	i1 = new Image;
	i1.src = chemin;
	if (nom=="ap1")
		{
		titre = "Comptes First - Ecran d'accueil";
		}
	else if (nom=="ap2")
		{
		titre = "Comptes First - Liste des opérations";
		}
	else if (nom=="ap3")
		{
		titre = "Comptes First - Ventilation d'une opération";
		}
	else if (nom=="ap4")
		{
		titre = "Comptes First - Budget";
		}
	else if (nom=="ap5")
		{
		titre = "Comptes First - Calculs financiers";
		}
	else 
		{
		titre = "Comptes First - Ecran d'aperçu avant impression";
		}
html = '<HTML><HEAD><TITLE>'+ titre +'</TITLE><script language="javascript">function fermepop(){window.close();}</script></HEAD><BODY bgcolor="#C9D5E9" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><IMG SRC="'+chemin+'" BORDER=0 OnClick="fermepop();"></CENTER></BODY></HTML>';
popupImage = window.open("","_blank","top="+Haut+",left="+Gauche+",width=800,height=600,menubar=no,scrollbars=no,statusbar=no,resizable=no,location=no");
popupImage.document.write(html);
}

function popinfos()
{
	var Haut    = (screen.height-440)/2;
	var Gauche  = (screen.width-460)/2;
	var Page    = "popinfoslegales.htm";
	
	Fen = window.open(Page,"_blank","top="+Haut+",left="+Gauche+",width=460,height=440,menubar=no,scrollbars=no,statusbar=no,resizable=no,location=no");	
}

//----------------------------------------------------------
// Fin du script
//----------------------------------------------------------

