/******************************************************/
/* Détermine l'environnement et sur base de celui-ci, */
/* diverses variables globales au site.               */
/******************************************************/

var enviro; /* Valeurs possibles : TEST, HOMO ou PROD */
var strMailServer;
var strPathCGIMail;
var strEmailQuestion;
var strEmailRaccordement;

//Déterminer l'environnement sur base du hostname.
var serverName = location.hostname.toLowerCase();

switch (serverName) {
  case 'cesar': enviro = 'TEST'; break;
  case 'algpreprod.nrb.be': enviro = 'HOMO'; break;
  case 'www.alg.be': enviro = 'PROD'; break;
  default: enviro = 'PROD'; break;
  break;
}

//Déterminer les variables globales au site.
switch (enviro) {
  case 'TEST' : strMailServer = 'mail.nrb.be';
                strPathCGIMail = '/cgi-bin/CGIMail.exe';
                strEmailQuestion = 'mremacle@nrb.be';
                strEmailRaccordement = 'mremacle@nrb.be';
                break;
  case 'HOMO' : strMailServer = 'mail.nrb.be';
                strPathCGIMail = '/cgi-bin/CGIMail.exe';
                strEmailQuestion = 'distribution.gaz@alg.be';
                strEmailRaccordement = 'distribution.gaz@alg.be';
                break;
  case 'PROD' : strMailServer = 'mail.nrb.be';
                strPathCGIMail = '/cgi-bin/CGIMail.exe';
                strEmailQuestion = 'distribution.gaz@alg.be';
                strEmailRaccordement = 'distribution.gaz@alg.be';
                break;
}
