// variables globales
var currentPage="";
var currentDep="";
var lienCarte="";


// Fonction d'ouverture des popups
function ouvrir(fich, haut, larg, absc, ordo, scrol)
	{
	var options = "toolbar=0,location=0,menubar=0,resizable=0,scrollbars="
	+ scrol
	+ ",width="
	+ larg
	+ ",height="
	+ haut
	+ ",left="
	+ absc
	+ ",top="
	+ ordo;
    window.open(fich, "transport", options)
	}

//**********************
//TRAITEMENT DES IMAGES
//**********************
if (document.images){
  var N=8; //nombre d'images
  var MaxEtat=2; //nombre d'état des images (2 ou 3)
  var SelectMode=0; // mode de sélection d'une image => 0 : bouton radio, 1 : checkbox
  var Selection=-1; // numéro de l'image séléctionnée (-1 : pas de sélection)

  var ImgPath="/images/";  // répertoire des images
  var ImgName=new Array(N); // noms des images
  var ImageList=new Array(N*MaxEtat); // nombre d'images
  var Checked=new Array(N); // 1 => image sélectionnée

  // initialise la liste des images sélectionnées (aucune image sélectionnée)
  for (I = 0;I < N;I++){
    if (I != Selection)
      Checked[I]=0;
    else Checked[I]=1;
  }

// initialise la liste des noms d'image
ImgName[0] = "bt1";
ImgName[1] = "bt2";
ImgName[2] = "bt3";
ImgName[3] = "bt4";
ImgName[4] = "bt5";
ImgName[5] = "bt6";
ImgName[6] = "bt7";
ImgName[7] = "bt8";

//initialise les images
  for (I = 0;I < N;I++){
   J = I*MaxEtat;
   ImageList[J] = new Image();
   ImageList[J++].src = ImgPath+ImgName[I]+"_no.gif"; //image non activée
   ImageList[J] = new Image();
   ImageList[J++].src = ImgPath+ImgName[I]+".gif"; //image roll-over
   if (MaxEtat == 3){
     ImageList[J] = new Image();
     ImageList[J++].src = ImgPath+ImgName[I]+".gif"; //image activée
   }
  }
}
// ChangeMode : passe l'image de nom Id en mode rollover Etat = 0 => _of | Etat = 1 => _of
function ChangeMode(Id,Etat){
 if (document.images){
   if (Checked[Id]==0)
     document.images[ImgName[Id]].src=ImageList[Id*MaxEtat+Etat].src;
 }
}

// ChangeSelection : passe l'image numéro Id à l'état On
function ChangeSelection(Id){
  if (Id !=-1) {
	  if (document.images) {
	    if (Selection != -1) {
	      Checked[Selection] = 0;
	      document.images[ImgName[Selection]].src=ImageList[Selection*MaxEtat].src;
	    }
	    if ((SelectMode==0) || (Id != Selection)) {
	       document.images[ImgName[Id]].src=ImageList[(Id*MaxEtat+(MaxEtat-1))].src;
	       Checked[Id] = 1;
	       Selection = Id;
	    }
	    else if (Id == Selection) {
	            Checked[Id] = 0;
	  	    Selection = -1;
	         }
	  }
  }
  return false;
}

//***************************************
//DECLARATION DU TABLEAU DES DEPARTEMENTS
//***************************************


function Element(lePronomDpt, leLibelleDpt, leCodeDpt, leDpt1, leDpt2, leDpt3, leDpt4, leDpt5, leDpt6, leDpt7, leDpt8, laHauteur, laLargeur, lAut1, lAut2, lAut3, lAut4, lAut5, lAut6, lAut7, lAut8, lAut9, lAut10, lAut11, lAut12, lAut13, lAut14, lAut15, lAut16, lAut17, lAut18, lAut19, lAut20)
{
	this.pronom=lePronomDpt;
	this.libelle=leLibelleDpt;
	this.code=leCodeDpt;
	this.dpt1=leDpt1;
	this.dpt2=leDpt2;
	this.dpt3=leDpt3;
	this.dpt4=leDpt4;
	this.dpt5=leDpt5;
	this.dpt6=leDpt6;
	this.dpt7=leDpt7;
	this.dpt8=leDpt8;
	this.hauteur=laHauteur;
	this.largeur=laLargeur;
	this.aut1=lAut1;
	this.aut2=lAut2;
	this.aut3=lAut3;
	this.aut4=lAut4;
	this.aut5=lAut5;
	this.aut6=lAut6;
	this.aut7=lAut7;
	this.aut8=lAut8;
	this.aut9=lAut9;
	this.aut10=lAut10;
	this.aut11=lAut11;
	this.aut12=lAut12;
	this.aut13=lAut13;
	this.aut14=lAut14;
	this.aut15=lAut15;
	this.aut16=lAut16;
	this.aut17=lAut17;
	this.aut18=lAut18;
	this.aut19=lAut19;
	this.aut20=lAut20;
}

// tableau des départements : libellé, code, limitrophes, tailles et autoroutes
var liste=new Array();

liste[0]=new Element("de l'", "Ain", "01", "71", "39", "", "69", "74", "69", "38", "73", "643", "700", "A39", "A40", "A42", "A404", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[1]=new Element("de l'", "Aisne", "02", "62", "59", "", "60", "08", "77", "51", "51", "1001", "700", "A26", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[2]=new Element("de l'", "Allier", "03", "18", "58", "71", "23", "71", "23", "63", "42", "521", "700", "A71", "A719", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[3]=new Element("des ", "Alpes de Hautes Provence", "04", "26", "05", "", "26", "06", "13", "83", "06", "682", "700", "A51", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[4]=new Element("des ", "Hautes Alpes", "05", "38", "73", "", "26", "", "84", "04", "06", "587", "700", "A51", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[5]=new Element("des ", "Alpes Maritimes", "06", "04", "", "", "04", "", "83", "", "", "795", "700", "A8", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[6]=new Element("de l'", "Ardèche", "07", "63", "42", "38", "43", "26", "48", "30", "84", "1030", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[7]=new Element("des ", "Ardennes", "08", "59", "", "", "02", "", "51", "51", "55", "736", "700", "A34", "A203", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[8]=new Element("de l'", "Ariège", "09", "31", "31", "11", "31", "11", "", "", "66", "543", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[9]=new Element("de l'", "Aube", "10", "77", "51", "51", "89", "52", "89", "89", "21", "573", "700", "A5", "A26", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[10]=new Element("de l'", "Aude", "11", "31", "81", "34", "09", "", "66", "66", "", "516", "700", "A9", "A61", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[11]=new Element("de l'", "Aveyron", "12", "19", "15", "43", "46", "48", "81", "81", "34", "749", "700", "A75", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[12]=new Element("des ", "Bouches du Rhône", "13", "30", "84", "04", "34", "83", "", "", "83", "472", "700", "A7", "A8", "A50", "A51", "A52", "A54", "A55", "A501", "A502", "A557", "", "", "", "", "", "", "", "", "", "");
liste[13]=new Element("du ", "Calvados", "14", "50", "", "76", "50", "27", "50", "61", "61", "452", "700", "A13", "A29", "A84", "A132", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[14]=new Element("du ", "Cantal", "15", "19", "63", "63", "19", "43", "46", "12", "48", "658", "700", "A75", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[15]=new Element("de la ", "Charente", "16", "79", "86", "87", "17", "87", "33", "24", "24", "665", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[16]=new Element("de la ", "Charente-Maritime", "17", "85", "85", "86", "", "16", "33", "33", "24", "1025", "700", "A837", "A10", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[17]=new Element("du ", "Cher", "18", "41", "45", "89", "36", "58", "23", "03", "03", "923", "700", "A20", "A71", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[18]=new Element("de la ", "Corrèze", "19", "87", "23", "63", "24", "15", "24", "46", "15", "648", "700", "A20", "A89", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[19]=new Element("de la ", "Corse du Sud", "2A", "", "2B", "2B", "", "", "", "", "", "947", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[20]=new Element("de la ", "Haute Corse", "2B", "", "", "", "", "", "", "2A", "", "1057", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[21]=new Element("de la ", "Côte d’Or", "21", "10", "52", "52", "89", "70", "58", "71", "39", "788", "700", "A6", "A31", "A36", "A39", "A311", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[22]=new Element("des ", "Côtes d’Armor", "22", "", "", "", "29", "35", "56", "56", "35", "539", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[23]=new Element("de la ", "Creuse", "23", "36", "36", "03", "87", "63", "87", "19", "63", "650", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[24]=new Element("de la ", "Dordogne", "24", "16", "87", "87", "17", "19", "33", "47", "46", "756", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[25]=new Element("du ", "Doubs", "25", "70", "70", "68", "39", "", "39", "", "", "785", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[26]=new Element("de la ", "Drôme", "26", "42", "38", "38", "07", "05", "30", "84", "04", "986", "700", "A7", "A49", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[27]=new Element("de l'", "Eure", "27", "76", "76", "60", "14", "95", "61", "28", "78", "595", "700", "A13", "A131", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[28]=new Element("de l'", "Eure et Loir", "28", "27", "27", "95", "61", "91", "72", "41", "45", "822", "700", "A10", "A11", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[29]=new Element("du ", "Finistère", "29", "", "", "22", "", "22", "", "", "", "759", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[30]=new Element("du ", "Gard", "30", "48", "07", "26", "12", "84", "34", "", "13", "617", "700", "A9", "A54", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[31]=new Element("de la ", "Haute Garonne", "31", "32", "82", "81", "65", "11", "", "", "66", "721", "700", "A7", "A61", "A62", "A64", "A68", "A620", "A621", "A623", "A624", "A680", "A61_62", "", "", "", "", "", "", "", "", "");
liste[32]=new Element("du ", "Gers", "32", "40", "47", "82", "40", "31", "64", "65", "31", "516", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[33]=new Element("de la ", "Gironde", "33", "", "17", "16", "", "24", "40", "40", "47", "849", "700", "A10", "A62", "A63", "A630", "A660", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[34]=new Element("de l'", "Hérault", "34", "12", "12", "30", "81", "30", "11", "", "", "464", "700", "A9", "A75", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[35]=new Element("de l'", "Ille et Vilaine", "35", "", "", "50", "22", "53", "56", "44", "49", "857", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[36]=new Element("de l'", "Indre", "36", "37", "41", "18", "86", "18", "86", "23", "23", "707", "700", "A20", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[37]=new Element("de l'", "Indre et Loir", "37", "72", "41", "41", "49", "41", "79", "86", "36", "757", "700", "A10", "A85", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[38]=new Element("de l'", "Isère", "38", "69", "01", "74", "42", "73", "07", "26", "05", "705", "700", "A7", "A41", "A43", "A48", "A49", "A51", "A480", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[39]=new Element("du ", "Jura", "39", "21", "70", "25", "71", "25", "01", "01", "", "1048", "700", "A36", "A39", "A391", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[40]=new Element("des ", "Landes", "40", "", "33", "47", "", "32", "", "64", "65", "602", "700", "A63", "A64", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[41]=new Element("du ", "Loir et Cher", "41", "", "28", "", "72", "45", "37", "36", "18", "600", "700", "A10", "A71", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[42]=new Element("de la ", "Loire", "42", "03", "71", "01", "63", "69", "43", "43", "07", "923", "700", "A47", "A72", "A89", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[43]=new Element("de la ", "Haute Loire", "43", "63", "63", "42", "15", "07", "48", "48", "07", "494", "700", "A75", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[44]=new Element("de la ", "Loire Atlantique", "44", "56", "35", "53", "", "49", "", "85", "79", "620", "700", "A11", "A83", "A811", "A821", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[45]=new Element("du ", "Loiret", "45", "28", "91", "77", "41", "89", "41", "18", "58", "568", "700", "A6", "A10", "A71", "A77", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[46]=new Element("du ", "Lot", "46", "24", "19", "15", "47", "12", "82", "82", "81", "672", "700", "A20", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[47]=new Element("du ", "Lot et Garonne", "47", "33", "24", "24", "33", "46", "40", "32", "82", "634", "700", "A62", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[48]=new Element("de la ", "Lozère", "48", "15", "43", "43", "12", "07", "12", "30", "30", "810", "700", "A75", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[49]=new Element("du ", "Maine et Loire", "49", "02", "53", "55", "44", "37", "85", "79", "86", "559", "700", "A11", "A85", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[50]=new Element("de la ", "Manche", "50", "", "", "", "", "14", "35", "35", "53", "1148", "700", "A84", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[51]=new Element("de la ", "Marne", "51", "", "08", "", "02", "55", "77", "10", "52", "592", "700", "A4", "A26", "A34", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[52]=new Element("de la ", "Haute-Marne", "52", "51", "55", "54", "10", "88", "21", "21", "70", "873", "700", "A5", "A31", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[53]=new Element("de la ", "Mayenne", "53", "50", "61", "61", "35", "72", "44", "49", "72", "704", "700", "A81", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[54]=new Element("de la ", "Meurthe et Moselle", "54", "08", "", "", "55", "67", "52", "88", "68", "733", "700", "A4", "A31", "A313", "A330", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[55]=new Element("de la ", "Meuse", "55", "08", "", "", "51", "54", "52", "52", "88", "1255", "700", "A4", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[56]=new Element("du ", "Morbihan", "56", "29", "22", "22", "29", "35", "", "", "44", "511", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[57]=new Element("de la ", "Moselle", "57", "54", "", "", "55", "67", "88", "54", "67", "580", "700", "A4", "A30", "A31", "A314", "A315", "A320", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[58]=new Element("de la ", "Nièvre", "58", "45", "89", "21", "18", "71", "03", "03", "71", "705", "700", "A77", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[59]=new Element("du ", "Nord", "59", "", "", "", "62", "", "80", "02", "08", "567", "700", "A1", "A2", "A16", "A21", "A22", "A23", "A25", "A26", "A27", "", "", "", "", "", "", "", "", "", "", "");
liste[60]=new Element("de l'", "Oise", "60", "76", "80", "02", "27", "2", "76", "95", "02", "529", "700", "A1", "A16", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[61]=new Element("de l'", "Orne", "61", "14", "14", "27", "50", "28", "53", "72", "28", "476", "700", "A28", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[62]=new Element("du ", "Pas de Calais", "62", "", "59", "", "", "59", "76", "80", "02", "663", "700", "A1", "A2", "A16", "A21", "A26", "A211", "A216", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[63]=new Element("du ", "Puy de Dôme", "63", "23", "03", "71", "23", "42", "15", "15", "43", "611", "700", "A71", "A72", "A75", "A89", "A711", "A712", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[64]=new Element("des ", "Pyrénées Atlantiques", "64", "", "40", "32", "", "65", "", "", "65", "449", "700", "A63", "A64", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[65]=new Element("des ", "Hautes Pyrénées", "65", "40", "32", "32", "64", "31", "", "", "", "895", "700", "A64", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[66]=new Element("des ", "Pyrénées Orientales", "66", "09", "11", "", "09", "", "", "", "", "408", "700", "A9", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[67]=new Element("du ", "Bas Rhin", "67", "57", "", "", "54", "", "88", "68", "", "778", "700", "A4", "A35", "A350", "A351", "A352", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[68]=new Element("du ", "Haut Rhin", "68", "88", "67", "67", "88", "", "25", "", "", "700", "440", "A35", "A36", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[69]=new Element("du ", "Rhône", "69", "71", "71", "01", "42", "01", "42", "42", "38", "889", "700", "A6", "A7", "A42", "A43", "A46n", "RN346", "A46s", "A47", "A432", "", "", "", "", "", "", "", "", "", "", "");
liste[70]=new Element("de la ", "Haute Saône", "70", "52", "88", "88", "52", "90", "21", "25", "25", "575", "700", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[71]=new Element("de la ", "Saône et Loire", "71", "58", "21", "39", "03", "39", "03", "69", "01", "563", "700", "A6", "A39", "A40", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[72]=new Element("de la ", "Sarthe", "72", "61", "61", "28", "53", "41", "49", "49", "37", "695", "700", "A11", "A28", "A81", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[73]=new Element("de la ", "Savoie", "73", "01", "74", "", "38", "", "38", "05", "", "558", "700", "A41", "A43", "A430", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[74]=new Element("de la ", "Haute Savoie", "74", "39", "", "", "05", "", "73", "73", "", "610", "700", "A40", "A41", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[75]=new Element("de ", "Paris", "75", "92", "93", "93", "92", "", "92", "94", "94", "705", "700", "A1", "A3", "A4", "A6", "A13", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[76]=new Element("de la ", "Seine Maritime", "76", "", "", "80", "", "60", "14", "27", "60", "524", "700", "A13", "A28", "A29", "A131", "A139", "A150", "A151", "A154", "", "", "", "", "", "", "", "", "", "", "", "");
liste[77]=new Element("de la ", "Seine et Marne", "77", "60", "60", "51", "75", "51", "45", "45", "89", "882", "700", "A4", "A5", "A6", "A77", "A104", "A105", "A140", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[78]=new Element("des ", "Yvelines", "78", "27", "95", "60", "28", "92", "28", "28", "91", "851", "700", "A10", "A11", "A12", "A13", "A86", "RE118", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[79]=new Element("des ", "Deux Sèvres", "79", "49", "49", "37", "85", "86", "17", "17", "16", "1027", "700", "A10", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[80]=new Element("de la ", "Somme", "80", "", "62", "59", "76", "02", "76", "60", "02", "490", "700", "A1", "A2", "A16", "A28", "A29", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[81]=new Element("du ", "Tarn", "81", "82", "12", "12", "31", "12", "31", "11", "34", "577", "700", "A20", "A68", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[82]=new Element("du ", "Tarn et Garonne", "82", "47", "46", "12", "47", "81", "32", "31", "81", "504", "700", "A20", "A62", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[83]=new Element("du ", "Var", "83", "04", "04", "06", "13", "", "", "", "", "606", "700", "A8", "A50", "A57", "A570", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[84]=new Element("du ", "Vaucluse", "84", "07", "26", "05", "30", "04", "", "13", "83", "569", "700", "A7", "A9", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[85]=new Element("de la ", "Vendée", "85", "", "44", "49", "", "79", "", "17", "79", "538", "700", "A83", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[86]=new Element("de la ", "Vienne", "86", "49", "37", "37", "79", "36", "79", "16", "87", "872", "700", "A10", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[87]=new Element("de la ", "Haute Vienne", "87", "86", "36", "36", "16", "23", "24", "19", "19", "746", "700", "A20", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[88]=new Element("des ", "Vosges", "88", "55", "54", "67", "52", "68", "", "70", "68", "434", "700", "A31", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[89]=new Element("de l'", "Yonne", "89", "77", "10", "10", "45", "21", "18", "58", "21", "747", "700", "A5", "A6", "A19", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[90]=new Element("du ", "Territoire de Belfort", "90", "88", "68", "68", "70", "68", "25", "", "", "765", "585", "A36", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[91]=new Element("de l'", "Essonne", "91", "78", "75", "75", "28", "77", "28", "45", "77", "759", "700", "A6", "A10", "A105", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[92]=new Element("des ", "Hauts de Seine", "92", "", "95", "93", "78", "75", "", "91", "94", "505", "353", "A13", "A15", "A86", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[93]=new Element("de la ", "Seine Saint Denis", "93", "95", "95", "60", "92", "77", "75", "94", "77", "479", "482", "A1", "A3", "A4", "A86", "A104", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[94]=new Element("du ", "Val de Marne", "94", "75", "93", "77", "92", "77", "91", "91", "77", "427", "472", "A4", "A6", "A86", "A106", "A115", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
liste[95]=new Element("du ", "Val d’Oise", "95", "27", "60", "60", "78", "77", "28", "92", "93", "402", "700", "A1", "A3", "A15", "A16", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");

//**********************
//TRAITEMENT DES LIENS
//**********************

function chargeVarGlobales()
{
// récuperer le nom du fichier qui contient le numéro de département
currentPage = window.location.href;

// récuperer le nø du d‚partement pass‚ en paramŠtre
currentDep = currentPage.substring(currentPage.length-2,currentPage.length);

}


function renvoiePronom()
{
	chargeVarGlobales();
	indice=rechIndiceTabDpt(currentDep);
	var pronomDep=liste[indice].pronom;
	return(pronomDep);
}

function renvoieLibelle()
{
	chargeVarGlobales();
	indice=rechIndiceTabDpt(currentDep);
	var libelleDep=liste[indice].libelle;
	return(libelleDep);
}

function rechIndiceTabDpt(dpt)
{
var trouve;
	for (i=0;i<liste.length;i++)
	{
		if (liste[i].code == dpt)
		{
			trouve=i;
			i=liste.length;
		}
	}
	return(trouve);
}

function renvoieLien(boussole)
	{
	chargeVarGlobales();
	indice=rechIndiceTabDpt(currentDep);

//Dpt cherché selon la boussole
	monDep=eval("liste["+indice+"].dpt"+boussole);

// Génération du lien
	if (monDep != "")
//       	 lienCarte = '<a href="' + monDep + '.htm">';
      	 lienCarte = '<a href="carte1.htm?' + monDep +'">';
	else
//         lienCarte = '<a href="#" title="Pas de département adjacent">';
		 lienCarte = "";


	return(lienCarte);
}

//**************************
// TRAITEMENT DES AUTOROUTES
//**************************
function renvoieAutoroute()
{
	chargeVarGlobales();
	indice=rechIndiceTabDpt(currentDep);

//Aut cherché selon le Dpt
	mesLiensAutoroutes="";

	for (j=1;j<=20;j++)
	{
		lAutoroute=eval("liste["+indice+"].aut"+j);

		leLienAutoroute="<a href=javascript:ouvrir('../autoroutes/" + lAutoroute + ".htm',400,770,50,50,1)>" + lAutoroute + "</a>";

		// si une autoroute de renseignée
		if (lAutoroute != "")
		{
			// ma chaine de liens
			if (mesLiensAutoroutes == "")
				mesLiensAutoroutes=leLienAutoroute;
			else
				mesLiensAutoroutes+=" - "+leLienAutoroute;
		}
	}

	// pas d'autoroute
	if (mesLiensAutoroutes == "")
		mesLiensAutoroutes="pas d'autoroute concernée.";

	return (mesLiensAutoroutes);
}


//*******************
// TRAITEMENT DES SWF
//*******************


function renvoieNomCarte()
 {
	chargeVarGlobales();
	if (currentDep == "75")
	  var nomCarteFlash = '<img src="75.gif" width="710" height="523" usemap="#Map" border="0">';
	else
  	var nomCarteFlash = '<embed src="' + currentDep + '.swf" quality=high ';
	return(nomCarteFlash);
}

function renvoieLargeur()
 {
	chargeVarGlobales();
	if (currentDep != "75") {
  	indice = rechIndiceTabDpt(currentDep);
  	var largeurCarte = 'width="' + liste[indice].largeur + '" ';
  }
  else
    var largeurCarte ='';

	return(largeurCarte);
}

function renvoieHauteur()
 {
	chargeVarGlobales();
	if (currentDep != "75") {
  	indice=rechIndiceTabDpt(currentDep);
  	var hauteurCarte = 'height="' + liste[indice].hauteur + '"></embed>';
  }
  else
    var hauteurCarte ='';
	return(hauteurCarte);
}

function renvoieParis()
  {
  var Paris = '';
	if (currentDep == "75") {
    Paris = '<map name="Map">';
    a ="'75a.htm'";
    b ="'75b.htm'";
    c ="'75c.htm'";
    d ="'75d.htm'";
    e ="'75e.htm'";
    f ="'75f.htm'";
    g ="'75g.htm'";
    h ="'75h.htm'";
    i ="'75i.htm'";
    j ="'75j.htm'";
    k ="'75k.htm'";
    l ="'75l.htm'";
    Paris += '  <area shape="rect" coords="1,1,152,158" href="javascript:ouvrir('+a+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="154,2,354,157" href="javascript:ouvrir('+b+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="355,2,557,156" href="javascript:ouvrir('+c+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="558,1,708,156" href="javascript:ouvrir('+d+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="557,158,709,365" href="javascript:ouvrir('+h+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="354,158,556,364" href="javascript:ouvrir('+g+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="156,159,353,364" href="javascript:ouvrir('+f+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="1,158,154,363" href="javascript:ouvrir('+e+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="557,368,709,521" href="javascript:ouvrir('+l+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="355,367,555,521" href="javascript:ouvrir('+k+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="156,367,354,523" href="javascript:ouvrir('+j+',500,750,50,50,1)">';
    Paris += '  <area shape="rect" coords="2,366,154,542" href="javascript:ouvrir('+i+',500,750,50,50,1)">';
    Paris += '</map>';
    }
  return(Paris);
}


