// +---------------------------+
// | Liste des modules chargés |
// +---------------------------+

var AL_Liste_librairie;

if (AL_Liste_librairie!=undefined)
  AL_Liste_librairie[AL_Liste_librairie.length]=new AL_Definir_module_librairie("script","V2.0b");

// +-----------------------------------+

var AL_Fenetre_detail=null;
var AL_Fenetre_image=null;

function Fermer_details()
{
  if (AL_Fenetre_detail != null)
  {
    if (! AL_Fenetre_detail.closed)
      AL_Fenetre_detail.close();
  }
}

function Afficher_details(url,longueur,largeur,nom)
{
  if (nom==null)
    nom='AL_Fenetre_detail';

  if (AL_Fenetre_detail != null)
  {
    if (! AL_Fenetre_detail.closed)
      AL_Fenetre_detail.close();
  }
  
  if ((url)&&(longueur)&&(largeur))
    AL_Fenetre_detail=window.open(url,nom,'width='+longueur+',height='+largeur+',resizable=no,dependent');
}

function Afficher_fenetre(url,longueur,largeur,nom)
{
  if (nom==null)
    nom='AL_Fenetre_detail';

  if (AL_Fenetre_detail != null)
  {
    if (! AL_Fenetre_detail.closed)
      AL_Fenetre_detail.close();
  }

  if ((url)&&(longueur)&&(largeur))
    AL_Fenetre_detail=window.open(url,nom,'width='+longueur+',height='+largeur+',resizable=no,dependent,scrollbars=yes');
}

function Afficher_texte(texte,longueur,largeur,nom)
{
  if (nom==null)
    nom='AL_Fenetre_detail';

  if (AL_Fenetre_detail != null)
  {
    if (! AL_Fenetre_detail.closed)
      AL_Fenetre_detail.close();
  }

  if ((texte)&&(longueur)&&(largeur))
  {
    AL_Fenetre_detail=window.open('',nom,'width='+longueur+',height='+largeur+',resizable=no,dependent,scrollbars=yes');
    AL_Fenetre_detail.document.open("text/html","replace");
    AL_Fenetre_detail.document.write(texte);
    AL_Fenetre_detail.document.close();
  }
}

function Fermer_image()
{
  if (AL_Fenetre_image != null)
  {
    if (! AL_Fenetre_image.closed)
      AL_Fenetre_image.close();
  }
}

function Afficher_image(url,longueur,largeur,libelle,nom)
{
  if (nom==null)
    nom='AL_Fenetre_image';

  if (AL_Fenetre_image != null)
  {
    if (! AL_Fenetre_image.closed)
      AL_Fenetre_image.close();
  }

  if ((url)&&(longueur)&&(largeur))
  {
    AL_Fenetre_image=window.open(url,nom,'width='+longueur+',height='+largeur+',resizable=no');
    if (AL_Fenetre_image!=null)
      AL_Fenetre_image.document.title=libelle;
  }
}

function Choix_aleatoire()
{
  var n=Math.floor(Math.random()*Choix_aleatoire.arguments.length);
  
  return(Choix_aleatoire.arguments[n]);
}

function Choix_liste_aleatoire(liste)
{
  var n=Math.floor(Math.random()*liste.length);
  
  return(liste[n]);
}