﻿// JavaScript Document

function includeJsFiles(fileName)
{
	document.write("<script type='text/javascript' src='/js/"+fileName+"'></script>" );
}

includeJsFiles('bdv.js');
includeJsFiles('pub.js');
includeJsFiles('drag.js');




/**************************************************************************************

		Moteur de recherche : switch moteur Vols +hotel et moteur Vols

****************************************************************************************/

var tabNames = "tabVolsHotels;tabVols";

function switchTo(tabName)
{
	var oTab = document.getElementById(tabName);
	var tTabs = tabNames.split(";");
	for(var i=0; i<tTabs.length; i++){document.getElementById(tTabs[i]).style.display="none";}
	oTab.style.display = "block";
}

/**-------------------------------------CALENDRIER DATEPICKER----------------------------------------**/
var datePickerDivID = "datepicker";
var iFrameDivID = "datepickeriframe";

var dayArrayShort = new Array('Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa');
var dayArrayMed = new Array('Dim', 'Lun', 'Mar', 'Mar', 'Jeu', 'Ven', 'Dim');
var dayArrayLong = new Array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi');
var monthArrayShort = new Array('Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Jui', 'Jui', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec');
var monthArrayMed = new Array('Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Jui', 'Jui', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec');
var monthArrayLong = new Array('Janvier', 'F&eacute;vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao&ucirc;t', 'Septembre', 'Octobre', 'Novembre', 'Decembre');
 
// these variables define the date formatting we're expecting and outputting.
// If you want to use a different format by default, change the defaultDateSeparator
// and defaultDateFormat variables either here or on your HTML page.
var defaultDateSeparator = "/";        // common values would be "/" or "."
var defaultDateFormat = "dmy"    // valid values are "mdy", "dmy", and "ymd"
var dateSeparator = defaultDateSeparator;
var dateFormat = defaultDateFormat;

/**
This is the main function you'll call from the onClick event of a button.
Normally, you'll have something like this on your HTML page:

Start Date: <input name="StartDate">
<input type=button value="select" onclick="displayDatePicker('StartDate');">

That will cause the datepicker to be displayed beneath the StartDate field and
any date that is chosen will update the value of that field. If you'd rather have the
datepicker display beneath the button that was clicked, you can code the button
like this:

<input type=button value="select" onclick="displayDatePicker('StartDate', this);">

So, pretty much, the first argument (dateFieldName) is a string representing the
name of the field that will be modified if the user picks a date, and the second
argument (displayBelowThisObject) is optional and represents an actual node
on the HTML document that the datepicker should be displayed below.

In version 1.1 of this code, the dtFormat and dtSep variables were added, allowing
you to use a specific date format or date separator for a given call to this function.
Normally, you'll just want to set these defaults globally with the defaultDateSeparator
and defaultDateFormat variables, but it doesn't hurt anything to add them as optional
parameters here. An example of use is:

<input type=button value="select" onclick="displayDatePicker('StartDate', false, 'dmy', '.');">

This would display the datepicker beneath the StartDate field (because the
displayBelowThisObject parameter was false), and update the StartDate field with
the chosen value of the datepicker using a date format of dd.mm.yyyy
*/
function displayDatePicker(dateFieldName, displayBelowThisObject, dtFormat, dtSep)
{
  var targetDateField = document.getElementById (dateFieldName);
 
  // if we weren't told what node to display the datepicker beneath, just display it
  // beneath the date field we're updating
  if (!displayBelowThisObject)
    displayBelowThisObject = targetDateField;
 
  // if a date separator character was given, update the dateSeparator variable
  if (dtSep)
    dateSeparator = dtSep;
  else
    dateSeparator = defaultDateSeparator;
 
  // if a date format was given, update the dateFormat variable
  if (dtFormat)
    dateFormat = dtFormat;
  else
    dateFormat = defaultDateFormat;
 
  var x = displayBelowThisObject.offsetLeft;
  var y = displayBelowThisObject.offsetTop + displayBelowThisObject.offsetHeight ;
 
  // deal with elements inside tables and such
  var parent = displayBelowThisObject;
  while (parent.offsetParent) {
    parent = parent.offsetParent;
    x += parent.offsetLeft;
    y += parent.offsetTop ;
  }
 
  drawDatePicker(targetDateField, x, y);
}


/**
Draw the datepicker object (which is just a table with calendar elements) at the
specified x and y coordinates, using the targetDateField object as the input tag
that will ultimately be populated with a date.

This function will normally be called by the displayDatePicker function.
*/
function drawDatePicker(targetDateField, x, y)
{
  var dt = getFieldDate(targetDateField.value );
 
  // the datepicker table will be drawn inside of a <div> with an ID defined by the
  // global datePickerDivID variable. If such a div doesn't yet exist on the HTML
  // document we're working with, add one.
  if (!document.getElementById(datePickerDivID)) {
    // don't use innerHTML to update the body, because it can cause global variables
    // that are currently pointing to objects on the page to have bad references
    //document.body.innerHTML += "<div id='" + datePickerDivID + "' class='dpDiv'></div>";
    var newNode = document.createElement("div");
    newNode.setAttribute("id", datePickerDivID);
    newNode.setAttribute("class", "dpDiv");
    newNode.setAttribute("style", "visibility: hidden;");
    document.body.appendChild(newNode);
  }
 
  // move the datepicker div to the proper x,y coordinate and toggle the visiblity
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.position = "absolute";
  pickerDiv.style.left = x + "px";
  pickerDiv.style.top = y + "px";
  pickerDiv.style.visibility = (pickerDiv.style.visibility == "visible" ? "hidden" : "visible");
  pickerDiv.style.display = (pickerDiv.style.display == "block" ? "none" : "block");
  pickerDiv.style.zIndex = 10000;
 
  // draw the datepicker table
  refreshDatePicker(targetDateField.name, dt.getFullYear(), dt.getMonth(), dt.getDate());
}


/**
This is the function that actually draws the datepicker calendar.
*/
function refreshDatePicker(dateFieldName, year, month, day)
{
  // if no arguments are passed, use today's date; otherwise, month and year
  // are required (if a day is passed, it will be highlighted later)
  var thisDay = new Date();
 
  if ((month >= 0) && (year > 0)) {
    thisDay = new Date(year, month, 1);
  } else {
    day = thisDay.getDate();
    thisDay.setDate(1);
  }
 
  // the calendar will be drawn as a table
  // you can customize the table elements with a global CSS style sheet,
  // or by hardcoding style and formatting elements below
  var crlf = "\r\n";
  var TABLE = "<table cols=7 class='dpTable'>" + crlf;
  var xTABLE = "</table>" + crlf;
  var TR = "<tr class='dpTR'>";
  var TR_title = "<tr class='dpTitleTR'>";
  var TR_days = "<tr class='dpDayTR'>";
  var TR_todaybutton = "<tr class='dpTodayButtonTR'>";
  var xTR = "</tr>" + crlf;
  var TD = "<td class='dpTD' onMouseOut='this.className=\"dpTD\";' onMouseOver=' this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var TD_title = "<td colspan=5 class='dpTitleTD'>";
  var TD_buttons = "<td class='dpButtonTD'>";
  var TD_todaybutton = "<td colspan=7 class='dpTodayButtonTD'>";
  var TD_days = "<td class='dpDayTD'>";
  var TD_selected = "<td class='dpDayHighlightTD' onMouseOut='this.className=\"dpDayHighlightTD\";' onMouseOver='this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var xTD = "</td>" + crlf;
  var DIV_title = "<div class='dpTitleText'>";
  var DIV_selected = "<div class='dpDayHighlight'>";
  var xDIV = "</div>";
 
  // start generating the code for the calendar table
  var html = TABLE;
 
  // this is the title bar, which displays the month and the buttons to
  // go back to a previous month or forward to the next month
  html += TR_title;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, -1, "&lt;") + xTD;
  html += TD_title + DIV_title + monthArrayLong[ thisDay.getMonth()] + " " + thisDay.getFullYear() + xDIV + xTD;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, 1, "&gt;") + xTD;
  html += xTR;
 
  // this is the row that indicates which day of the week we're on
  html += TR_days;
  for(i = 0; i < dayArrayShort.length; i++)
    html += TD_days + dayArrayShort[i] + xTD;
  html += xTR;
 
  // now we'll start populating the table with days of the month
  html += TR;
 
  // first, the leading blanks
  for (i = 0; i < thisDay.getDay(); i++)
    html += TD + "&nbsp;" + xTD;
 
  // now, the days of the month
  do {
    dayNum = thisDay.getDate();
    TD_onclick = " onclick=\"updateDateField('" + dateFieldName + "', '" + getDateString(thisDay) + "');\">";
    
    if (dayNum == day)
      html += TD_selected + TD_onclick + DIV_selected + dayNum + xDIV + xTD;
    else
      html += TD + TD_onclick + dayNum + xTD;
    
    // if this is a Saturday, start a new row
    if (thisDay.getDay() == 6)
      html += xTR + TR;
    
    // increment the day
    thisDay.setDate(thisDay.getDate() + 1);
  } while (thisDay.getDate() > 1)
 
  // fill in any trailing blanks
  if (thisDay.getDay() > 0) {
    for (i = 6; i > thisDay.getDay(); i--)
      html += TD + "&nbsp;" + xTD;
  }
  html += xTR;
 
  // add a button to allow the user to easily return to today, or close the calendar
  var today = new Date();
  var todayString = "Today is " + dayArrayMed[today.getDay()] + ", " + monthArrayMed[ today.getMonth()] + " " + today.getDate();
  html += TR_todaybutton + TD_todaybutton;
 /* html += "<button class='dpTodayButton' onClick='refreshDatePicker(\"" + dateFieldName + "\");'>this month</button> ";*/
  html += "<button class='dpTodayButton' onClick='updateDateField(\"" + dateFieldName + "\");'>X Fermer</button>";
  html += xTD + xTR;
 
  // and finally, close the table
  html += xTABLE;
 
  document.getElementById(datePickerDivID).innerHTML = html;
  // add an "iFrame shim" to allow the datepicker to display above selection lists
  adjustiFrame();
}


/**
Convenience function for writing the code for the buttons that bring us back or forward
a month.
*/
function getButtonCode(dateFieldName, dateVal, adjust, label)
{
  var newMonth = (dateVal.getMonth () + adjust) % 12;
  var newYear = dateVal.getFullYear() + parseInt((dateVal.getMonth() + adjust) / 12);
  if (newMonth < 0) {
    newMonth += 12;
    newYear += -1;
  }
 
  return "<button class='dpButton' onClick='refreshDatePicker(\"" + dateFieldName + "\", " + newYear + ", " + newMonth + ");'>" + label + "</button>";
}


/**
Convert a JavaScript Date object to a string, based on the dateFormat and dateSeparator
variables at the beginning of this script library.
*/
function getDateString(dateVal)
{
  var dayString = "00" + dateVal.getDate();
  var monthString = "00" + (dateVal.getMonth()+1);
  dayString = dayString.substring(dayString.length - 2);
  monthString = monthString.substring(monthString.length - 2);
 
  switch (dateFormat) {
    case "dmy" :
      return dayString + dateSeparator + monthString + dateSeparator + dateVal.getFullYear();
    case "ymd" :
      return dateVal.getFullYear() + dateSeparator + monthString + dateSeparator + dayString;
    case "mdy" :
    default :
      return monthString + dateSeparator + dayString + dateSeparator + dateVal.getFullYear();
  }
}


/**
Convert a string to a JavaScript Date object.
*/
function getFieldDate(dateString)
{
  var dateVal;
  var dArray;
  var d, m, y;
 
  try {
    dArray = splitDateString(dateString);
    if (dArray) {
      switch (dateFormat) {
        case "dmy" :
          d = parseInt(dArray[0], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
        case "ymd" :
          d = parseInt(dArray[2], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[0], 10);
          break;
        case "mdy" :
        default :
          d = parseInt(dArray[1], 10);
          m = parseInt(dArray[0], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
      }
      dateVal = new Date(y, m, d);
    } else if (dateString) {
      dateVal = new Date(dateString);
    } else {
      dateVal = new Date();
    }
  } catch(e) {
    dateVal = new Date();
  }
 
  return dateVal;
}


/**
Try to split a date string into an array of elements, using common date separators.
If the date is split, an array is returned; otherwise, we just return false.
*/
function splitDateString(dateString)
{
  var dArray;
  if (dateString.indexOf("/") >= 0)
    dArray = dateString.split("/");
  else if (dateString.indexOf(".") >= 0)
    dArray = dateString.split(".");
  else if (dateString.indexOf("-") >= 0)
    dArray = dateString.split("-");
  else if (dateString.indexOf("\\") >= 0)
    dArray = dateString.split("\\");
  else
    dArray = false;
 
  return dArray;
}

/**
Update the field with the given dateFieldName with the dateString that has been passed,
and hide the datepicker. If no dateString is passed, just close the datepicker without
changing the field value.

Also, if the page developer has defined a function called datePickerClosed anywhere on
the page or in an imported library, we will attempt to run that function with the updated
field as a parameter. This can be used for such things as date validation, setting default
values for related fields, etc. For example, you might have a function like this to validate
a start date field:

function datePickerClosed(dateField)
{
  var dateObj = getFieldDate(dateField.value);
  var today = new Date();
  today = new Date(today.getFullYear(), today.getMonth(), today.getDate());
 
  if (dateField.name == "StartDate") {
    if (dateObj < today) {
      // if the date is before today, alert the user and display the datepicker again
      alert("Please enter a date that is today or later");
      dateField.value = "";
      document.getElementById(datePickerDivID).style.visibility = "visible";
      adjustiFrame();
    } else {
      // if the date is okay, set the EndDate field to 7 days after the StartDate
      dateObj.setTime(dateObj.getTime() + (7 * 24 * 60 * 60 * 1000));
      var endDateField = document.getElementsByName ("EndDate").item(0);
      endDateField.value = getDateString(dateObj);
    }
  }
}

*/
function updateDateField(dateFieldName, dateString)
{
  var targetDateField = document.getElementsByName (dateFieldName).item(0);
  if (dateString)
    targetDateField.value = dateString;
 
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.visibility = "hidden";
  pickerDiv.style.display = "none";
 
  adjustiFrame();
  targetDateField.focus();
 
  // after the datepicker has closed, optionally run a user-defined function called
  // datePickerClosed, passing the field that was just updated as a parameter
  // (note that this will only run if the user actually selected a date from the datepicker)
  if ((dateString) && (typeof(datePickerClosed) == "function"))
    datePickerClosed(targetDateField);
}


/**
Use an "iFrame shim" to deal with problems where the datepicker shows up behind
selection list elements, if they're below the datepicker. 
*/
function adjustiFrame(pickerDiv, iFrameDiv)
{
  // we know that Opera doesn't like something about this, so if we
  // think we're using Opera, don't even try
  var is_opera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
  if (is_opera)
    return;
  
  // put a try/catch block around the whole thing, just in case
  try {
    if (!document.getElementById(iFrameDivID)) {
      // don't use innerHTML to update the body, because it can cause global variables
      // that are currently pointing to objects on the page to have bad references
      //document.body.innerHTML += "<iframe id='" + iFrameDivID + "' src='javascript:false;' scrolling='no' frameborder='0'>";
      var newNode = document.createElement("iFrame");
      newNode.setAttribute("id", iFrameDivID);
      newNode.setAttribute("src", "javascript:false;");
      newNode.setAttribute("scrolling", "no");
      newNode.setAttribute ("frameborder", "0");
      document.body.appendChild(newNode);
    }
    
    if (!pickerDiv)
      pickerDiv = document.getElementById(datePickerDivID);
    if (!iFrameDiv)
      iFrameDiv = document.getElementById(iFrameDivID);
    
    try {
      iFrameDiv.style.position = "absolute";
      iFrameDiv.style.width = pickerDiv.offsetWidth;
      iFrameDiv.style.height = pickerDiv.offsetHeight ;
      iFrameDiv.style.top = pickerDiv.style.top;
      iFrameDiv.style.left = pickerDiv.style.left;
      iFrameDiv.style.zIndex = pickerDiv.style.zIndex - 1;
      iFrameDiv.style.visibility = pickerDiv.style.visibility ;
      iFrameDiv.style.display = pickerDiv.style.display;
    } catch(e) {
    }
 
  } catch (ee) {
  }
 
}





/*************************************************************************
   				SCROLLER 
        
*************************************************************************/

var	imgPath = "/img/scroller/";

var	wdCtrlWidth;
var	wdCtrlHeight;


//Preloading images;
var oUpArrowImg		= new Image();
var oDownArrowImg	= new Image();
var oFiletImg		= new Image();
var oFiletHImg		= new Image();
var oFiletBImg		= new Image();
var oScrollerCentralImg = new Image();
var oScrollBg		= new Image();

oUpArrowImg.src		= imgPath + "upArrow.gif";
oDownArrowImg.src	= imgPath + "downArrow.gif";
oFiletImg.src		= imgPath + "filet.gif";
oFiletHImg.src		= imgPath + "filet-h.gif";
oFiletBImg.src		= imgPath + "filet-b.gif";
oScrollerCentralImg.src = imgPath + "scrollerCentral.gif";
oScrollBg.src		= imgPath +"scrollBg.gif";

// Init vars Divs
var oDivContainer;
var oDivContent;
var oDivScrollBar;
var oDivUpArrow;
var oDivScrollButton;
var oDivFiletBorderUp;
var oDivFiletUp;
var oDivCentre;
var oDivFiletDown;
var oDivFiletBorderDown;
var oDivDownArrow;

var usableWidth ;
var scrollRatio;
var contentHeight;
var oDivScrollButtonHeight;

var clipTop = 0;
var curEvt;
var hiddenRatio;

var ubound, lbound;
var debug ;	
function InitScroller(oFather)
{
	InitDebug();
	oFather.style.cssText			= oFather.style.cssText + ";overflow:hidden;"
	var usableHalfHeight;
	var usableBottomHalfHeight;
	wdCtrlWidth = parseInt(oFather.offsetWidth);
	wdCtrlHeight = parseInt(oFather.offsetHeight);
	
	InitDivObjects(oFather);
	
	contentHeight = parseInt(oDivContent.offsetHeight);
	hiddenRatio = (contentHeight < wdCtrlHeight *2) ? contentHeight : contentHeight-wdCtrlHeight;
	
	if (contentHeight < wdCtrlHeight)
		oDivScrollBar.style.display="none";
	
	scrollRatio = (wdCtrlHeight - oUpArrowImg.height - oDownArrowImg.height- oScrollerCentralImg.height)/hiddenRatio;
	if (contentHeight < wdCtrlWidth && scrollRatio < 1) 
		scrollRatio= (wdCtrlHeight - oUpArrowImg.height - oDownArrowImg.height- oScrollerCentralImg.height) /contentHeight;


	// Demi hauteur utile = hauteur des filets se répetant sur Y
	usableTopHalfHeight = Math.ceil(((wdCtrlHeight-oScrollerCentralImg.height)/2 - oUpArrowImg.height - oFiletHImg.height)*scrollRatio);
	usableBottomHalfHeight = Math.ceil(((wdCtrlHeight-oScrollerCentralImg.height)/2 - oDownArrowImg.height - oFiletBImg.height)*scrollRatio);

	oDivUpArrow.style.cssText			= "overflow:hidden;background:url('"+ oUpArrowImg.src +"') repeat-y;position:relative;width:"+ oUpArrowImg.width +"px;height:"+ oUpArrowImg.height + "px;";
	
	oDivFiletBorderUp.style.cssText		= "overflow:hidden;background:url('"+ oFiletHImg.src +"') no-repeat;position:relative;width:"+ oFiletHImg.width +"px;height:"+ oFiletHImg.height + "px;";
	oDivFiletUp.style.cssText 			= "position:relative;width:"+ oFiletImg.width +"px;height:"+ usableTopHalfHeight + "px;background-image:url('"+ oFiletImg.src +"');";
	oDivCentre.style.cssText 			= "height:"+ oScrollerCentralImg.height +"px;width:"+ oScrollerCentralImg.width +"px;background-image:url('"+oScrollerCentralImg.src+"');";
	oDivFiletDown.style.cssText 		= "background-image:url('"+ oFiletImg.src +"');position:relative;width:"+ oFiletImg.width +"px;height:"+ usableBottomHalfHeight + "px;";
	oDivFiletBorderDown.style.cssText 	= "overflow:hidden;background-image:url('"+ oFiletBImg.src +"');position:relative;width:"+ oFiletBImg.width +"px;height:"+ oFiletBImg.height + "px;";

	oDivDownArrow.style.cssText			= "background:url('"+ oDownArrowImg.src +"') no-repeat;position:absolute;width:"+ oDownArrowImg.width +"px;height:"+ oDownArrowImg.height + "px;top:"+ (wdCtrlHeight - oDownArrowImg.height)
	 + "px;";

	
	//Scrolling item height
	oDivScrollButtonHeight =	_getCtrlheight(oDivScrollButton);
	scrlHeight =  oFiletHImg.height + oScrollerCentralImg.height + oFiletBImg.height + parseInt(oDivFiletDown.style.height) + parseInt(oDivFiletUp.style.height) -3;

	
	ubound = oUpArrowImg.height + oDivUpArrow.style.top;
	lbound = wdCtrlHeight - oDownArrowImg.height -  oDivScrollButtonHeight;
	
	if (document.addEventListener)
	{
		oDivScrollButton.addEventListener("mousedown", mouseDown, true);//true à la fin dispatch à tous les fils
		document.addEventListener("mouseup", mouseUp, true);
		oDivScrollBar.addEventListener("mousedown", mouseMove, true);//true à la fin dispatch à tous les fils
		oDivContainer.addEventListener("DOMMouseScroll", mouseWheel, true); 
		oDivContainer.addEventListener("mousewheel", mouseWheel, true); 
	}
	else
	{
		oDivScrollButton.attachEvent("onmousedown", mouseDownIE);//true à la fin dispatch à tous les fils
		document.attachEvent("onmouseup", mouseUpIE);
		oDivScrollBar.attachEvent("onmousedown", mouseMove);//true à la fin dispatch à tous les fils
		oDivContainer.attachEvent("onmousewheel", mouseWheel, true); 
	}
	
}

function InitDebug()
{
	debug = document.createElement("DIV")
	debug.id = "_debug";
	document.body.appendChild(debug)
}
function InitDivObjects(oFather)
{
	oDivContainer 			= document.createElement("DIV");
	oDivContainer.id		= "_SB_Container";
	oDivContent 			= document.createElement("DIV");
	oDivContent.id			= "_SB_Content";
	oDivScrollBar			= document.createElement("DIV");
	oDivScrollBar.id		= "_SB_ScrollBar";
	oDivUpArrow 			= document.createElement("DIV");
	oDivUpArrow.id			= "_SB_UpArrow";
	oDivScrollButton		= document.createElement("DIV");
	oDivScrollButton.id		= "_SB_ScrollButton";
	oDivFiletBorderUp		= document.createElement("DIV");
	oDivFiletBorderUp.id	= "_SB_FiletBorderUp";
	oDivFiletUp				= document.createElement("DIV");
	oDivFiletUp.id			= " _SB_FiletUp";
	oDivCentre				= document.createElement("DIV");
	oDivCentre.id			= "_SB_Centre";
	oDivFiletDown			= document.createElement("DIV");
	oDivFiletDown.id		= "_SB_FiletDown";
	oDivFiletBorderDown		= document.createElement("DIV");
	oDivFiletBorderDown.id	= "_SB_FiletBorderDown";
	oDivDownArrow			= document.createElement("DIV");
	oDivDownArrow.id		= "_SB_DownArrow";
	
	oDivContent.innerHTML = oFather.innerHTML;
	oFather.innerHTML = "";
	
	oDivContainer.appendChild(oDivContent);
	oDivScrollBar.appendChild(oDivUpArrow);
	oDivScrollButton.appendChild(oDivFiletBorderUp);
	oDivScrollButton.appendChild(oDivFiletUp);
	oDivScrollButton.appendChild(oDivCentre);
	oDivScrollButton.appendChild(oDivFiletDown);
	oDivScrollButton.appendChild(oDivFiletBorderDown);
	oDivScrollBar.appendChild(oDivScrollButton);
	oDivScrollBar.appendChild(oDivDownArrow);

	// Attachnig to father object.
	oFather.appendChild(oDivContainer);
	oFather.appendChild(oDivScrollBar);
	
	oDivContainer.style.cssText		= "position:absolute;overflow:hidden;width:"+ wdCtrlWidth +"px;height:"+ wdCtrlHeight +"px;float:left;";
	oDivScrollBar.style.cssText		= "background-image:url('"+ oScrollBg.src +"');width:"+ 15 +"px; height:"+ wdCtrlHeight +"px;position:relative;float:right";
	oDivScrollButton.style.cssText		= "position:absolute;";
	usableWidth				= wdCtrlWidth - _getBiggestImgWidth(oDivScrollBar);
	
	oDivContent.style.cssText		= "position:relative;width:"+ usableWidth +"px;";
	
}
function mouseDown(evt)
{
	var obj = document;
	obj.addEventListener("mousemove", mouseMove, true);
}
function mouseDownIE(evt)
{

	var obj = document;
	obj.attachEvent("onmousemove", mouseMove);
}
function mouseUp(evt)
{
	var obj = document;
	obj.removeEventListener("mousemove", mouseMove, true);
}
function mouseUpIE(evt)
{
	var obj = document;
	obj.detachEvent("onmousemove", mouseMove);
}
function mouseWheel(evt)
{
	//new_oDivScrollButtonTop = evt.detail + ((parseInt(oDivScrollButton.style.top)>0)? parseInt(oDivScrollButton.style.top):0) - parseInt(oDivScrollBar.offsetTop) -oDivScrollButtonHeight/2 - oUpArrowImg.height;

	if (evt.detail)
		wheelDelta = evt.detail;
	else if (evt.wheelDelta)
		wheelDelta = - evt.wheelDelta *6 / 120;

	new_oDivScrollButtonTop = ((parseInt(oDivScrollButton.style.top)>0)? parseInt(oDivScrollButton.style.top):0) + wheelDelta;

	if (new_oDivScrollButtonTop >= ubound && new_oDivScrollButtonTop <= lbound)
		oDivScrollButton.style.top = new_oDivScrollButtonTop +"px";
	else if(new_oDivScrollButtonTop < ubound)
		oDivScrollButton.style.top = ubound +"px";
	else if(new_oDivScrollButtonTop > lbound)
		oDivScrollButton.style.top= lbound +"px";

	clipTop = Math.floor((parseInt(oDivScrollButton.style.top)- oUpArrowImg.height + oDivScrollButtonHeight * clipTop/hiddenRatio)/scrollRatio ) ;

	if (clipTop + wdCtrlHeight > contentHeight)
		clipTop = contentHeight-wdCtrlHeight;
		
	//oDivContent.style.cssText = "width:"+ usableWidth +"px; position:relative;top:-"+ clipTop +"px;clip:rect("+ clipTop +"px "+ usableWidth +"px "+ (wdCtrlHeight) +"px 0px);";	
	oDivContent.style.top = "-"+ clipTop +"px" ;	
	return true;
}
function mouseMove(evt)
{
	mouseY = (evt.pageY) ? evt.pageY: evt.clientY + document.body.parentElement.scrollTop;

	new_oDivScrollButtonTop = mouseY - parseInt(oDivScrollBar.offsetTop) -oDivScrollButtonHeight/2 - oUpArrowImg.height;

	if (new_oDivScrollButtonTop >= ubound && new_oDivScrollButtonTop <= lbound)
		oDivScrollButton.style.top = new_oDivScrollButtonTop +"px";
	else if(new_oDivScrollButtonTop < ubound)
		oDivScrollButton.style.top = ubound +"px";
	else if(new_oDivScrollButtonTop > lbound)
		oDivScrollButton.style.top= lbound +"px";

	clipTop = Math.floor((parseInt(oDivScrollButton.style.top)- oUpArrowImg.height + oDivScrollButtonHeight * clipTop/hiddenRatio)/scrollRatio ) ;

	if (clipTop + wdCtrlHeight > contentHeight)
		clipTop = contentHeight-wdCtrlHeight;
		
	//oDivContent.style.cssText = "width:"+ usableWidth +"px; position:relative;top:-"+ clipTop +"px;clip:rect("+ clipTop +"px "+ usableWidth +"px "+ (wdCtrlHeight) +"px 0px);";	
	oDivContent.style.top = "-"+ clipTop +"px" ;	
	return true;
}

function _getCtrlheight(curNode)
{
	var rootElement = document.body;
	var ctrlHeight=0;

	if (typeof(curNode) != "undefined")
		rootElement = curNode;
	for(var i=0;i<rootElement.childNodes.length;i++)
	{
		if(rootElement.childNodes[i].nodeType ==1 )
		{
			if (parseInt(rootElement.childNodes[i].style.height))
				ctrlHeight += parseInt(rootElement.childNodes[i].style.height);			
				 
			if (rootElement.childNodes[i].hasChildNodes()) // 1=node, 3=text
				_getCtrlheight(rootElement.childNodes[i]);
		}
	}
	return ctrlHeight;
}
function _getBiggestImgWidth(curNode)
{
	var rootElement = document.body;
	var maxWidth = 0;

	if (typeof(curNode) != "undefined")
		rootElement = curNode;
	for(var i=0;i<rootElement.childNodes.length;i++)
	{
		if(rootElement.childNodes[i].nodeType ==1 )
		{
			if (parseInt(rootElement.childNodes[i].offsetWidth) > maxWidth)
				maxWidth = parseInt(rootElement.childNodes[i].offsetWidth);
				 
			if (rootElement.childNodes[i].hasChildNodes()) // 1=node, 3=text
				_getBiggestImgWidth(rootElement.childNodes[i]);
		}
	}
	return maxWidth;
}

//AJOUT BY BL le 14 avril 2008 pour autocomplete sur le menu

/* Event Functions */

// Add an event to the obj given
// event_name refers to the event trigger, without the "on", like click or mouseover
// func_name refers to the function callback when event is triggered
function addEvent(obj,event_name,func_name){
	if (obj.attachEvent){
		obj.attachEvent("on"+event_name, func_name);
	}else if(obj.addEventListener){
		obj.addEventListener(event_name,func_name,true);
	}else{
		obj["on"+event_name] = func_name;
	}
}

// Removes an event from the object
function removeEvent(obj,event_name,func_name){
	if (obj.detachEvent){
		obj.detachEvent("on"+event_name,func_name);
	}else if(obj.removeEventListener){
		obj.removeEventListener(event_name,func_name,true);
	}else{
		obj["on"+event_name] = null;
	}
}

// Stop an event from bubbling up the event DOM
function stopEvent(evt){
	evt || window.event;
	if (evt.stopPropagation){
		evt.stopPropagation();
		evt.preventDefault();
	}else if(typeof evt.cancelBubble != "undefined"){
		evt.cancelBubble = true;
		evt.returnValue = false;
	}
	return false;
}

// Get the obj that starts the event
function getElement(evt){
	if (window.event){
		return window.event.srcElement;
	}else{
		return evt.currentTarget;
	}
}
// Get the obj that triggers off the event
function getTargetElement(evt){
	if (window.event){
		return window.event.srcElement;
	}else{
		return evt.target;
	}
}
// For IE only, stops the obj from being selected
function stopSelect(obj){
	if (typeof obj.onselectstart != 'undefined'){
		addEvent(obj,"selectstart",function(){ return false;});
	}
}

/*    Caret Functions     */

// Get the end position of the caret in the object. Note that the obj needs to be in focus first
function getCaretEnd(obj){
	if(typeof obj.selectionEnd != "undefined"){
		return obj.selectionEnd;
	}else if(document.selection&&document.selection.createRange){
		var M=document.selection.createRange();
		try{
			var Lp = M.duplicate();
			Lp.moveToElementText(obj);
		}catch(e){
			var Lp=obj.createTextRange();
		}
		Lp.setEndPoint("EndToEnd",M);
		var rb=Lp.text.length;
		if(rb>obj.value.length){
			return -1;
		}
		return rb;
	}
}
// Get the start position of the caret in the object
function getCaretStart(obj){
	if(typeof obj.selectionStart != "undefined"){
		return obj.selectionStart;
	}else if(document.selection&&document.selection.createRange){
		var M=document.selection.createRange();
		try{
			var Lp = M.duplicate();
			Lp.moveToElementText(obj);
		}catch(e){
			var Lp=obj.createTextRange();
		}
		Lp.setEndPoint("EndToStart",M);
		var rb=Lp.text.length;
		if(rb>obj.value.length){
			return -1;
		}
		return rb;
	}
}
// sets the caret position to l in the object
function setCaret(obj,l){
	obj.focus();
	if (obj.setSelectionRange){
		obj.setSelectionRange(l,l);
	}else if(obj.createTextRange){
		m = obj.createTextRange();		
		m.moveStart('character',l);
		m.collapse();
		m.select();
	}
}
// sets the caret selection from s to e in the object
function setSelection(obj,s,e){
	obj.focus();
	if (obj.setSelectionRange){
		obj.setSelectionRange(s,e);
	}else if(obj.createTextRange){
		m = obj.createTextRange();		
		m.moveStart('character',s);
		m.moveEnd('character',e);
		m.select();
	}
}

/*    Escape function   */
String.prototype.addslashes = function(){
	return this.replace(/(["\\\.\|\[\]\^\*\+\?\$\(\)])/g, '\\$1');
}
String.prototype.trim = function () {
    return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1");
};
/* --- Escape --- */

/* Offset position from top of the screen */
function curTop(obj){
	toreturn = 0;
	while(obj){
		toreturn += obj.offsetTop;
		obj = obj.offsetParent;
	}
	return toreturn;
}
function curLeft(obj){
	toreturn = 0;
	while(obj){
		toreturn += obj.offsetLeft;
		obj = obj.offsetParent;
	}
	return toreturn;
}
/* ------ End of Offset function ------- */

/* Types Function */

// is a given input a number?
function isNumber(a) {
    return typeof a == 'number' && isFinite(a);
}

/* Object Functions */

function replaceHTML(obj,text){
	while(el = obj.childNodes[0]){
		obj.removeChild(el);
	};
	obj.appendChild(document.createTextNode(text));
}

function rechsimpl(){
	
	var domaine = 'http://'+window.location.hostname+'/';
	var dest = document.getElementById('txtDestination').value;
		dest = trim(dest);
		dest = dest.replace(/[ ]/gi,"-");
		dest = dest.replace(/[ÈÉÊËèéêë]/gi,"e");
		dest = dest.replace(/[ÀÁÂÃÄÅàáâãäå]/gi,"a");
		dest = dest.replace(/[Çç]/gi,"c");
		dest = dest.replace(/[ÌÍÎÏìíîï]/gi,"i");
		dest = dest.replace(/[ÒÓÔÕÖðòóôõö]/gi,"o");
		dest = dest.replace(/[ÙÚÛÜùúûü]/gi,"u");
		dest = dest.replace(/[Ýýÿ]/gi,"y");
	var test = dest.toUpperCase();

	var destinations = new Array();
		destinations["ABRUZZES"] = new Array("{57D61953-4C5C-4EB6-A030-CF4BBC34DDCD}","G");
		destinations["ABRUZZE"] = new Array("{57D61953-4C5C-4EB6-A030-CF4BBC34DDCD}","G");
		destinations["ABRUZE"] = new Array("{57D61953-4C5C-4EB6-A030-CF4BBC34DDCD}","G");
		destinations["ABRUZES"] = new Array("{57D61953-4C5C-4EB6-A030-CF4BBC34DDCD}","G");
		destinations["AÇORES"] = new Array("{5AA7059C-C332-4C78-966B-566BEE387F22}","G");
		destinations["ASSORES"] = new Array("{5AA7059C-C332-4C78-966B-566BEE387F22}","G");
		destinations["ACORE"] = new Array("{5AA7059C-C332-4C78-966B-566BEE387F22}","G");
		destinations["ACORES"] = new Array("{5AA7059C-C332-4C78-966B-566BEE387F22}","G");
		destinations["ASSORE"] = new Array("{5AA7059C-C332-4C78-966B-566BEE387F22}","G");
		destinations["AÇORE"] = new Array("{5AA7059C-C332-4C78-966B-566BEE387F22}","G");
		destinations["AFGHANISTAN"] = new Array("{CD082FFD-8A92-4909-B396-AF6315421222}","G");
		destinations["AFRIQUE-DU-SUD"] = new Array("{E26B3205-A3E6-4812-AA53-879CEF92CD5A}","G");
		destinations["ALABAMA"] = new Array("{FDF9084C-06B8-4604-B7AF-445A3CACBDF4}","G");
		destinations["ALASKA"] = new Array("{218839C0-0DD8-4086-B0F0-EF87A9E4007E}","G");
		destinations["ALBANIE"] = new Array("{3A454D75-F074-41E8-AAE8-44E157548CDE}","G");
		destinations["ALBERTA"] = new Array("{D029B2A3-CB7B-4037-A76D-804190162E76}","G");
		destinations["ALENTEJO"] = new Array("{1E97A8B4-756A-4E28-A990-84287BF9F3CD}","G");
		destinations["ALGARVE"] = new Array("{5D654E20-6F9B-400F-928F-A74F48F22EE5}","G");
		destinations["ALGERIE"] = new Array("{6BCC2B18-5339-4223-9560-EC7034762B23}","G");
		destinations["ALLEMAGNE"] = new Array("{DB9801A8-9E98-4C61-8861-52C71C9DAC19}","G");
		destinations["ALSACE"] = new Array("{355DE971-F725-4FE9-A895-FC81050AC192}","G");
		destinations["ANDALOUSIE"] = new Array("{E126D058-2E4F-4F13-B8A1-E29C49CAF053}","G");
		destinations["ANDORRE"] = new Array("{CF67B44A-FA0A-43DF-8A63-D68B256C4A86}","G");
		destinations["ANGLETERRE"] = new Array("{723A24EC-2E03-428A-9FAF-E3FFE7DDF81F}","G");
		destinations["ANGOLA"] = new Array("{C28DAF79-8D3E-45FE-8751-EF8E1A1694B4}","G");
		destinations["ANTIGUA-ET-BARBUDA"] = new Array("{B80F4F68-6461-4BF1-8CA6-5F1C97767DFE}","G");
		destinations["ANTILLES"] = new Array("{EE5F1D43-C5BE-4277-BA59-8990C82476FE}","G");
		destinations["ANTILLE"] = new Array("{EE5F1D43-C5BE-4277-BA59-8990C82476FE}","G");
		destinations["ANTILLES-NEERLANDAISES"] = new Array("{1F459B27-49C8-41D3-B278-85EDD600564D}","G");
		destinations["AQUITAINE"] = new Array("{2A7E75B0-98A7-4050-B7C1-A4DAE6D3645E}","G");
		destinations["ARABIE-SAOUDITE"] = new Array("{BD65F686-B168-48E8-BF93-4B99A177C8B6}","G");
		destinations["ARAGON"] = new Array("{629833A7-5D1E-4A47-910E-350BB1DBE132}","G");
		destinations["ARGENTINE"] = new Array("{22CB9F2C-9FBB-4D26-9BAD-D9DC62A2B98B}","G");
		destinations["ARIZONA"] = new Array("{B258BFBF-BFC3-45D2-8DFF-660355F85D70}","G");
		destinations["ARISONA"] = new Array("{B258BFBF-BFC3-45D2-8DFF-660355F85D70}","G");
		destinations["ARKANSAS"] = new Array("{DD89C445-6F65-4D74-9F57-DECC3699A5BF}","G");
		destinations["ARMENIE"] = new Array("{C4608CBF-F525-4596-9333-7CFE7D2537EF}","G");
		destinations["ARUBA"] = new Array("{394487EE-61CC-4ECF-AB2B-889D1264A024}","G");
		destinations["ASTURIES"] = new Array("{CA5DD8F8-0DAF-4647-8B7A-181718B5FF58}","G");
		destinations["AUSTRALIE"] = new Array("{041DD916-BB57-49D2-A66C-FF3BC17C5468}","G");
		destinations["AUTRE-REGION-CHINE"] = new Array("{0A734978-5B7D-4281-9635-86D286EF8B63}","G");
		destinations["CHINE"] = new Array("{911E1B5D-41DD-470A-9C22-753D5644058E}","G");
		destinations["AUTRICHE"] = new Array("{C7EA607F-73FF-4641-AF03-94014322EF32}","G");
		destinations["AUVERGNE"] = new Array("{2DFCD71E-A732-4663-A8FD-E5FD5075C11D}","G");
		destinations["AZERBAIJAN"] = new Array("{77D7DA65-9331-4218-A71C-C07F4474DA60}","G");
		destinations["AZERBAIDJAN"] = new Array("{77D7DA65-9331-4218-A71C-C07F4474DA60}","G");
		destinations["BAHAMAS"] = new Array("{1E12A0BB-2A4F-4582-8DFE-D036281F7C10}","G");
		destinations["BALEARES"] = new Array("{C7E6BE16-00F9-4131-870D-F39AC042BE71}","G");
		destinations["BALEARE"] = new Array("{C7E6BE16-00F9-4131-870D-F39AC042BE71}","G");
		destinations["BALI"] = new Array("{6216BB37-19EB-4AFB-8A78-E964B43F6C31}","G");
		destinations["BANGLADESH"] = new Array("{30B52855-2252-4745-A327-AC79A8865A59}","G");
		destinations["BARBADE"] = new Array("{4E583F95-0642-4F22-9DA1-56F6A83E3312}","G");
		destinations["BARHREIN"] = new Array("{112BC914-910B-4784-8B39-FD2F5494CBCB}","G");
		destinations["BASILICATE"] = new Array("{DCFE2449-767F-4E5B-8DCA-9A1244CC475F}","G");
		destinations["BASSE-NORMANDIE"] = new Array("{192DE583-7B28-49E5-8EB1-8BE7ECE03642}","G");
		destinations["BELGIQUE"] = new Array("{36CCC399-F804-4C6F-8A15-8DB12E3AECEA}","G");
		destinations["BELIZE"] = new Array("{342C66F6-DD63-4771-8E18-86D9C3FF5878}","G");
		destinations["BELISE"] = new Array("{342C66F6-DD63-4771-8E18-86D9C3FF5878}","G");
		destinations["BENIN"] = new Array("{D761DD7B-CA91-4E3C-953F-4288EDCAEFDC}","G");
		destinations["BERMUDES"] = new Array("{1E8EDCB0-B772-412C-A0D7-A1E45336DE99}","G");
		destinations["BHOUTAN"] = new Array("{82591031-C269-47EF-B44B-41E7A43C4135}","G");
		destinations["BOUTAN"] = new Array("{82591031-C269-47EF-B44B-41E7A43C4135}","G");
		destinations["BIELORUSSIE"] = new Array("{F47921D5-C73D-4EFE-A865-884ED54FFF0C}","G");
		destinations["BIRMANIE-MYANMAR"] = new Array("{18815352-A9AC-496C-A743-66FE913903BF}","G");
		destinations["BIRMANIE-MIANMAR"] = new Array("{18815352-A9AC-496C-A743-66FE913903BF}","G");
		destinations["BIRMANIE"] = new Array("{18815352-A9AC-496C-A743-66FE913903BF}","G");
		destinations["BOLIVIE"] = new Array("{77221669-AFF1-4E4D-A738-33A07155C810}","G");
		destinations["BOSNIE-HERZEGOVINE"] = new Array("{6A1CB351-9D05-472A-949E-3C16E9152569}","G");
		destinations["BOSNIE"] = new Array("{6A1CB351-9D05-472A-949E-3C16E9152569}","G");
		destinations["BOTSWANA"] = new Array("{D9C87721-3A0F-452B-B781-B301AB710C2C}","G");
		destinations["BOURGOGNE"] = new Array("{C171613D-FE78-4E5D-9712-62C7E8647C84}","G");
		destinations["BRESIL"] = new Array("{B4758702-EDE8-44F8-B1B3-F9A8A101DEBE}","G");
		destinations["BRETAGNE"] = new Array("{1CFD3261-97D4-4FCB-B9BD-56678B436154}","G");
		destinations["BRUNEI"] = new Array("{345C5787-91B9-4E88-8107-D20CB7B10639}","G");
		destinations["BULGARIE"] = new Array("{62D6D645-AE87-4E13-B733-AEE538BC6192}","G");
		destinations["BULGARI"] = new Array("{62D6D645-AE87-4E13-B733-AEE538BC6192}","G");
		destinations["BURKINA-FASO"] = new Array("{AA46F65C-BE87-40E9-8ACD-DCAEE148B0F3}","G");
		destinations["BURKINA-FASSO"] = new Array("{AA46F65C-BE87-40E9-8ACD-DCAEE148B0F3}","G");
		destinations["BURUNDI"] = new Array("{C5B50934-D51C-4C11-885F-AB0C394776AD}","G");
		destinations["CALABRE"] = new Array("{65D698ED-DB9C-477E-9100-ABF7A02C6DF1}","G");
		destinations["CALIFORNIE"] = new Array("{56AE3DE3-B1BB-4170-AD95-F96278C9F9C8}","G");
		destinations["CAMBODGE"] = new Array("{5E4E9AAB-E2A8-419B-A6DC-1C1A2B0584B8}","G");
		destinations["CAMEROUN"] = new Array("{BF9A880D-71EE-4E07-B430-FFAC5ABA5154}","G");
		destinations["CAMPANIE"] = new Array("{52CC4E5C-FF0E-4E3E-9C9A-EC0BD568D73F}","G");
		destinations["CANARIES"] = new Array("{99F9B971-0D85-4AC6-87F5-4BA7AEF6026A}","G");
		destinations["CANARIE"] = new Array("{99F9B971-0D85-4AC6-87F5-4BA7AEF6026A}","G");
		destinations["CANTABRIE"] = new Array("{E251BC5C-0E13-4E5A-8501-250245AAD2AE}","G");
		destinations["CAP-VERT"] = new Array("{8CB0F11A-F6EB-4AFD-9E88-C7159830D8AD}","G");
		destinations["CARAIBES"] = new Array("{99B3F392-B6C4-416F-9599-6ED10EDE2F50}","G");
		destinations["CAROLINE-DU-NORD"] = new Array("{1EECDB43-81CF-40CD-B736-C0390848E7A3}","G");
		destinations["CAROLINE-DU-SUD"] = new Array("{D50AA85C-8EE2-4168-8BA1-35D24D15BCD6}","G");
		destinations["CASTILLE-ET-LEON"] = new Array("{BD16C4DD-585A-4665-AAE7-9B9458CB4EF0}","G");
		destinations["CASTILLE-LA-MANCHE"] = new Array("{BED7E441-3B4E-4086-9D58-8A4EAF15779F}","G");
		destinations["CATALOGNE"] = new Array("{48DAD493-8208-44EE-8468-B768A0110B65}","G");
		destinations["CENTRE"] = new Array("{6BCC3F7B-1E85-4A4B-B4A9-0219360A7C2D}","G");
		destinations["CHAMPAGNE-ARDENNES"] = new Array("{A475A469-A01A-4E19-AB19-57681720FF2D}","G");
		destinations["CHAMPAGNE-ARDENNE"] = new Array("{A475A469-A01A-4E19-AB19-57681720FF2D}","G");
		destinations["CHILI"] = new Array("{DFB955E5-4ACE-4284-97B5-8D7B95DC1C46}","G");
		destinations["CHYPRE"] = new Array("{0A7220BE-1DB7-41F7-8DEB-02B9560999A3}","G");
		destinations["CHIPRE"] = new Array("{0A7220BE-1DB7-41F7-8DEB-02B9560999A3}","G");
		destinations["CHYPRES"] = new Array("{0A7220BE-1DB7-41F7-8DEB-02B9560999A3}","G");
		destinations["COLOMBIE"] = new Array("{F7649EAC-0CF3-4556-B668-023D1DD5C750}","G");
		destinations["COLOMBIE---BRITANNIQUE"] = new Array("{8F5E6FEC-F9F6-4A20-AEEB-16AF3A602EF4}","G");
		destinations["COLOMBIE-BRITANNIQUE"] = new Array("{8F5E6FEC-F9F6-4A20-AEEB-16AF3A602EF4}","G");
		destinations["COLORADO"] = new Array("{A3059792-6A71-4230-BEA7-4D2E71B6B3AF}","G");
		destinations["COMMUNAUTE-DE-VALENCE"] = new Array("{3B7845FA-AC04-4BEB-A4F8-CAB42F52438C}","G");
		destinations["COMORES"] = new Array("{B06D1D21-1177-4C27-A895-2D455E29922A}","G");
		destinations["CONGO"] = new Array("{FC70442A-7170-4BBA-AC30-FCC31AA0C51E}","G");
		destinations["CONGO-(RDC)"] = new Array("{2ED43D50-AE46-4B9F-88E8-7395F4DA89CC}","G");
		destinations["CONNECTICUT"] = new Array("{11790939-2EA5-47C9-B07F-DF6347B69E9D}","G");
		destinations["CONECTICUT"] = new Array("{11790939-2EA5-47C9-B07F-DF6347B69E9D}","G");
		destinations["COREE-DU-NORD"] = new Array("{B0F97789-8BE9-4F4D-9B2C-798D787DC978}","G");
		destinations["COREE-DU-SUD"] = new Array("{B93F023E-1C51-47F3-88AF-2B7CF38075CB}","G");
		destinations["COREE"] = new Array("{B93F023E-1C51-47F3-88AF-2B7CF38075CB}","G");
		destinations["CORE"] = new Array("{B93F023E-1C51-47F3-88AF-2B7CF38075CB}","G");
		destinations["CORFOU"] = new Array("{9CBA56F5-FA40-47E8-91E2-6D3333AAA4C3}","G");
		destinations["CORSE"] = new Array("{514F8468-2861-432B-A014-8BA5B393EE78}","G");
		destinations["COSTA-RICA"] = new Array("{257863FB-2747-4078-A8E9-8AA36BFA07CC}","G");
		destinations["COTE-D'IVOIRE"] = new Array("{6A971A3A-284A-4B86-AE45-B662217FAA2F}","G");
		destinations["COTE-D'IVOIRE"] = new Array("{6A971A3A-284A-4B86-AE45-B662217FAA2F}","G");
		destinations["COTE-D-IVOIRE"] = new Array("{6A971A3A-284A-4B86-AE45-B662217FAA2F}","G");
		destinations["COTE-DIVOIRE"] = new Array("{6A971A3A-284A-4B86-AE45-B662217FAA2F}","G");
		destinations["COTE-IVOIRE"] = new Array("{6A971A3A-284A-4B86-AE45-B662217FAA2F}","G");
		destinations["CRETE"] = new Array("{B991DDA9-D7C3-4060-A7D3-9A2A51831A14}","G");
		destinations["CROATIE"] = new Array("{8D6F7A2A-380F-4D2B-96BE-6D8BAF4CF9C8}","G");
		destinations["CROATI"] = new Array("{8D6F7A2A-380F-4D2B-96BE-6D8BAF4CF9C8}","G");
		destinations["CUBA"] = new Array("{116CC013-4D79-4B6F-B15A-06959828B626}","G");
		destinations["DAKOTA-DU-NORD"] = new Array("{4A0BFB2C-1015-47BA-B611-8CA5BECA42F0}","G");
		destinations["DAKOTA-DU-SUD"] = new Array("{5EC2679F-F3AF-45DA-BEC5-D51C3EC39FBF}","G");
		destinations["DANEMARK"] = new Array("{A96D891C-A8E4-4CB9-9BCB-9CCC765B39F5}","G");
		destinations["DANEMARCK"] = new Array("{A96D891C-A8E4-4CB9-9BCB-9CCC765B39F5}","G");
		destinations["DELAWARE"] = new Array("{CD7BAF2C-855E-4AA0-B543-AC24D9750BDB}","G");
		destinations["DISTRICT-DE-COLUMBIA"] = new Array("{BEB69541-61C2-4D97-B7FA-4593C75C3C71}","G");
		destinations["DJIBOUTI"] = new Array("{E97283E8-E238-418D-83E4-11D7132F5C6B}","G");
		destinations["DOMINIQUE"] = new Array("{974DC285-2C56-4E8B-A813-58A01D7F00B0}","G");
		destinations["DOM-TOM"] = new Array("{8194671E-9E30-4BB6-BE73-78D8511139BC}","G");
		destinations["ECOSSE"] = new Array("{B271BDF2-FD20-410F-8EC0-232A61EE5862}","G");
		destinations["EGYPTE"] = new Array("{32CEB07A-502B-4170-9A49-2EC3F9614082}","G");
		destinations["EGIPTE"] = new Array("{32CEB07A-502B-4170-9A49-2EC3F9614082}","G");
		destinations["EGIPTES"] = new Array("{32CEB07A-502B-4170-9A49-2EC3F9614082}","G");
		destinations["EGYPTES"] = new Array("{32CEB07A-502B-4170-9A49-2EC3F9614082}","G");
		destinations["EL-SALVADOR"] = new Array("{FE59729C-2127-4040-A8BA-B0F606D98973}","G");
		destinations["SALVADOR"] = new Array("{FE59729C-2127-4040-A8BA-B0F606D98973}","G");
		destinations["EMILIE-ROMAGNE"] = new Array("{746A9F2D-3C24-47CB-B672-29F6F240DC1B}","G");
		destinations["EMIRATS-ARABES-UNIS"] = new Array("{E4513BE9-33B6-4610-A09D-04C4B57E7537}","G");
		destinations["EMIRATS-ARABE-UNI"] = new Array("{E4513BE9-33B6-4610-A09D-04C4B57E7537}","G");
		destinations["EQUATEUR"] = new Array("{41A94C92-A6A1-4E4A-A837-4CF57B39FD89}","G");
		destinations["ERYTHREE"] = new Array("{0A80B83E-EB78-46E0-A64E-27FD8A6E02DB}","G");
		destinations["ERITHREE"] = new Array("{0A80B83E-EB78-46E0-A64E-27FD8A6E02DB}","G");
		destinations["ERYTHRE"] = new Array("{0A80B83E-EB78-46E0-A64E-27FD8A6E02DB}","G");
		destinations["ERITHRE"] = new Array("{0A80B83E-EB78-46E0-A64E-27FD8A6E02DB}","G");
		destinations["ESTONIE"] = new Array("{29E527BE-80FD-4EE3-908E-E375226D1502}","G");
		destinations["ESTREMADURE"] = new Array("{064E5A7F-E413-446C-9615-A11BD63809B3}","G");
		destinations["ETAT-DE-GEORGIE"] = new Array("{6AA2383F-8CA2-47D6-A710-D4E7481635C2}","G");
		destinations["ETAT-DE-NEW-YORK"] = new Array("{29648448-1D58-4A07-A2FF-0EE5DA3E53A5}","G");
		destinations["ETAT-DE-NEWYORK"] = new Array("{29648448-1D58-4A07-A2FF-0EE5DA3E53A5}","G");
		destinations["ETAT-DU-GUJARAT"] = new Array("{F1FDEA06-B1B4-4FC7-AF03-41137759B032}","G");
		destinations["ETHIOPIE"] = new Array("{BC5EFB91-5D6A-4252-888E-461CE6642D61}","G");
		destinations["ETIOPIE"] = new Array("{BC5EFB91-5D6A-4252-888E-461CE6642D61}","G");
		destinations["FIDJI"] = new Array("{186AEA15-FAC9-429D-A93F-3EDB6809F82A}","G");
		destinations["FIJI"] = new Array("{186AEA15-FAC9-429D-A93F-3EDB6809F82A}","G");
		destinations["FINLANDE"] = new Array("{2C616473-D85C-4DF4-8860-16EF0BB2F132}","G");
		destinations["FLORIDE"] = new Array("{A70B7654-CBE9-4C36-8BE9-36914B87B3E3}","G");
		destinations["FRANCE"] = new Array("{51D1B93A-7886-4918-9A84-4A4E10EE4C4B}","G");
		destinations["FRANCHE-COMTE"] = new Array("{35E97A03-CB8F-4569-88DD-83DA9E4837CA}","G");
		destinations["FRIOUL-VENETIE-JULIENNE"] = new Array("{8B9F6D5D-9959-4F66-ACBE-150C3E0B017C}","G");
		destinations["GABON"] = new Array("{3B7CF71E-8BDF-4E29-892F-21C343507BC0}","G");
		destinations["GAMBIE"] = new Array("{6C3060A3-F4A8-4BEC-BA72-148B661DFDFF}","G");
		destinations["GANBIE"] = new Array("{6C3060A3-F4A8-4BEC-BA72-148B661DFDFF}","G");
		destinations["GEORGIE"] = new Array("{A72E7EBE-CBB7-4F1D-9A19-72070E7FD4A5}","G");
		destinations["GHANA"] = new Array("{E22480A6-347D-470F-938E-5E312C05B196}","G");
		destinations["GANA"] = new Array("{E22480A6-347D-470F-938E-5E312C05B196}","G");
		destinations["GRECE-AUTRE"] = new Array("{B4C5A61D-4335-4267-A230-FB077979F00E}","G");
		destinations["GRECE"] = new Array("{5DD5337E-61F6-46E7-AA0C-256CDC486DAC}","G");
		destinations["GRENADE"] = new Array("{5A275501-C149-4A28-BBC0-AAAED433A5B2}","G");
		destinations["GROENLAND"] = new Array("{A9C60849-8020-4E9B-ABEC-97CE34D90BFE}","G");
		destinations["GUADELOUPE"] = new Array("{80907E81-EE26-4258-BE27-4456EAF4CC33}","G");
		destinations["GUANGDONG"] = new Array("{E2B3210A-397C-432D-8F72-3491754CEF8D}","G");
		destinations["GUATEMALA"] = new Array("{AFE2C4C5-046E-4A1A-845E-1A41EAA8C220}","G");
		destinations["GUINEE"] = new Array("{ABD5857D-4172-45E0-AA56-4AF06DC6CA70}","G");
		destinations["GUINE"] = new Array("{ABD5857D-4172-45E0-AA56-4AF06DC6CA70}","G");
		destinations["GUINEE-EQUATORIALE"] = new Array("{359A3D2F-9E5E-4B2F-B3C6-BDC11B73E9C2}","G");
		destinations["GUINE-EQUATORIALE"] = new Array("{359A3D2F-9E5E-4B2F-B3C6-BDC11B73E9C2}","G");
		destinations["GUINEE-BISSAU"] = new Array("{46DCFC0D-22B8-4115-B6E0-055AA28C69F2}","G");
		destinations["GUINE-BISSAU"] = new Array("{46DCFC0D-22B8-4115-B6E0-055AA28C69F2}","G");
		destinations["GUYANA"] = new Array("{F194FA0C-82C6-414D-8499-53200937D51F}","G");
		destinations["GUIANA"] = new Array("{F194FA0C-82C6-414D-8499-53200937D51F}","G");
		destinations["GUYANE"] = new Array("{7BCA8380-99ED-4888-A53A-CC497AD110F4}","G");
		destinations["GUIANE"] = new Array("{7BCA8380-99ED-4888-A53A-CC497AD110F4}","G");
		destinations["HAITI"] = new Array("{4C6BA950-952D-46DE-8971-CA4B3F643FC1}","G");
		destinations["HAUTE-NORMANDIE"] = new Array("{34C5C175-64E0-49C6-9CAF-50E9D6775A68}","G");
		destinations["HAWAII"] = new Array("{5BD64EC7-B528-4A85-B3A1-2C53A95CA456}","G");
		destinations["HAWAI"] = new Array("{5BD64EC7-B528-4A85-B3A1-2C53A95CA456}","G");
		destinations["HONDURAS"] = new Array("{10C2AA89-C512-44AF-BF86-D2CFDD7A9E5C}","G");
		destinations["HONG-KONG"] = new Array("{04F98784-3FA3-48EF-B208-4B42738E288F}","G");
		destinations["HONGKONG"] = new Array("{04F98784-3FA3-48EF-B208-4B42738E288F}","G");
		destinations["HONGRIE"] = new Array("{64DBEAE7-D20E-4A9E-8EC6-4C2B648891CB}","G");
		destinations["IDAHO"] = new Array("{8F13ACE2-AFC7-496A-A3A1-C16C9D6BBB3C}","G");
		destinations["ILE-DE-SAINT-MARTIN"] = new Array("{4544D4C1-E727-417A-8027-F638A69998F0}","G");
		destinations["SAINT-MARTIN"] = new Array("{4544D4C1-E727-417A-8027-F638A69998F0}","G");
		destinations["ILE-SAINT-MARTIN"] = new Array("{4544D4C1-E727-417A-8027-F638A69998F0}","G");
		destinations["ILE-MAURICE"] = new Array("{B2C4C8C1-B7BF-40B0-9262-968C2B316296}","G");
		destinations["MAURICE"] = new Array("{B2C4C8C1-B7BF-40B0-9262-968C2B316296}","G");
		destinations["ILE-DE-FRANCE"] = new Array("{EDCB4587-6AFA-49B8-A4E4-780C8F69F25E}","G");
		destinations["ÎLES-CAÏMANS"] = new Array("{E3218054-F012-4665-9F8F-DDCB6D987060}","G");
		destinations["ILE-CAIMANS"] = new Array("{E3218054-F012-4665-9F8F-DDCB6D987060}","G");
		destinations["ILE-CAIMAN"] = new Array("{E3218054-F012-4665-9F8F-DDCB6D987060}","G");
		destinations["CAIMANS"] = new Array("{E3218054-F012-4665-9F8F-DDCB6D987060}","G");
		destinations["ÎLES-COCOS"] = new Array("{C3E0D54D-769E-405A-A10E-AC737B1FDE57}","G");
		destinations["ILE-COCOS"] = new Array("{C3E0D54D-769E-405A-A10E-AC737B1FDE57}","G");
		destinations["COCOS"] = new Array("{C3E0D54D-769E-405A-A10E-AC737B1FDE57}","G");
		destinations["ÎLES-COOK"] = new Array("{9F1C9561-93E4-48BB-93DC-A7F84CE96A92}","G");
		destinations["ILE-COOK"] = new Array("{9F1C9561-93E4-48BB-93DC-A7F84CE96A92}","G");
		destinations["COOK"] = new Array("{9F1C9561-93E4-48BB-93DC-A7F84CE96A92}","G");
		destinations["ÎLES-FEROE"] = new Array("{1BA07BD6-A373-4F10-B5C6-B8C378E6AD14}","G");
		destinations["ILES-FEROE"] = new Array("{1BA07BD6-A373-4F10-B5C6-B8C378E6AD14}","G");
		destinations["ÎLES-MARIANNES"] = new Array("{AA981CEA-9C38-4CF6-9CF7-EC0CBC2B784B}","G");
		destinations["ILE-MARIANNES"] = new Array("{AA981CEA-9C38-4CF6-9CF7-EC0CBC2B784B}","G");
		destinations["ÎLES-SAMOA"] = new Array("{BD1BBD13-B7C5-4100-8F78-412C68B75B15}","G");
		destinations["ILE-SAMOA"] = new Array("{BD1BBD13-B7C5-4100-8F78-412C68B75B15}","G");
		destinations["ÎLES-VIERGES-AMERICAINES"] = new Array("{85C55BCD-9DFB-4DA3-8543-49BCE68DE9B4}","G");
		destinations["ILLINOIS"] = new Array("{B4B4B31F-E948-438E-B499-CA11D11E533C}","G");
		destinations["ILINOIS"] = new Array("{B4B4B31F-E948-438E-B499-CA11D11E533C}","G");
		destinations["INDE-AUTRE"] = new Array("{E6E2300F-0A68-4E56-92A7-9F2310DB681A}","G");
		destinations["INDE"] = new Array("{7C30395A-6B9A-4273-A487-043B11B9A103}","G");
		destinations["INDIANA"] = new Array("{D66C6D25-0E22-446E-8276-051B792C0706}","G");
		destinations["IOWA"] = new Array("{83A1D0FC-8CBC-42CE-96E9-9569F4BF9749}","G");
		destinations["IRAK"] = new Array("{B6B789FB-5E6E-4187-A0CF-BD67E935AC31}","G");
		destinations["IRAN"] = new Array("{FA419EA9-0B4E-41F8-8D8D-A9009205E59D}","G");
		destinations["IRLANDE"] = new Array("{8E93047C-219A-4F4D-811F-8CE7643B06BE}","G");
		destinations["IRLANDE-DU-NORD"] = new Array("{9F7835F0-2948-4808-B4E6-394797DF103B}","G");
		destinations["ISLANDE"] = new Array("{2FFE6934-AF51-49A3-80A4-DE48B33B3943}","G");
		destinations["ISRAËL"] = new Array("{9A52B905-6968-44F5-A6E3-18A67D387154}","G");
		destinations["ISRAEL"] = new Array("{9A52B905-6968-44F5-A6E3-18A67D387154}","G");
		destinations["JAMAIQUE"] = new Array("{64DFB92A-7416-407B-963F-94FDC17E26A6}","G");
		destinations["JAPON"] = new Array("{AF1B4BBB-1872-41B2-9FBF-CBAA78416F87}","G");
		destinations["JAVA"] = new Array("{7408A0D2-EBAB-42F1-8AA5-8A9EA397FEE1}","G");
		destinations["JORDANIE"] = new Array("{DBBD062D-D7FC-4570-9EBC-0016BDB43006}","G");
		destinations["KANSAS"] = new Array("{CAAAE3D7-50B0-49AB-A223-E96268678983}","G");
		destinations["KAZAKHSTAN"] = new Array("{1781CBB3-DF13-4227-85E1-6A692830E11A}","G");
		destinations["KAZAKSTAN"] = new Array("{1781CBB3-DF13-4227-85E1-6A692830E11A}","G");
		destinations["KENTUCKY"] = new Array("{8C789DB7-CDAD-4BB2-91C1-69C4E6CA31B2}","G");
		destinations["KENTUCKI"] = new Array("{8C789DB7-CDAD-4BB2-91C1-69C4E6CA31B2}","G");
		destinations["KENTUKY"] = new Array("{8C789DB7-CDAD-4BB2-91C1-69C4E6CA31B2}","G");
		destinations["KENTUKI"] = new Array("{8C789DB7-CDAD-4BB2-91C1-69C4E6CA31B2}","G");
		destinations["KENYA"] = new Array("{3F28E9EB-64A0-4BAB-A6EB-9B8DB3747D49}","G");
		destinations["KENIA"] = new Array("{3F28E9EB-64A0-4BAB-A6EB-9B8DB3747D49}","G");
		destinations["KIRGHIZISTAN"] = new Array("{5FF55539-CC5E-4857-B136-CA8B34379AB0}","G");
		destinations["KIRGIZISTAN"] = new Array("{5FF55539-CC5E-4857-B136-CA8B34379AB0}","G");
		destinations["KOWEÏT"] = new Array("{C9DC2724-8FAC-4897-8982-9109947016F7}","G");
		destinations["KOWEIT"] = new Array("{C9DC2724-8FAC-4897-8982-9109947016F7}","G");
		destinations["LA-RIOJA"] = new Array("{6C689061-7A97-47D4-A193-309AB8253766}","G");
		destinations["LANGUEDOC-ROUSSILLON"] = new Array("{FFD89978-AF8B-4A5D-9CFE-7E549E622A66}","G");
		destinations["LAOS"] = new Array("{BBC7B3B4-6276-4D7C-B672-1B2C0D937936}","G");
		destinations["LATIUM"] = new Array("{22925824-4A10-4610-9DDB-5DDDABE10E79}","G");
		destinations["LESOTHO"] = new Array("{04B5608F-BD20-49AB-883B-BBBA9A88C93A}","G");
		destinations["LESOTO"] = new Array("{04B5608F-BD20-49AB-883B-BBBA9A88C93A}","G");
		destinations["LETTONIE"] = new Array("{988FB119-9F48-41C5-AE40-E6C6F96093D7}","G");
		destinations["LETONIE"] = new Array("{988FB119-9F48-41C5-AE40-E6C6F96093D7}","G");
		destinations["LIBAN"] = new Array("{BDE6C87C-B596-496F-A451-A2311B245CF4}","G");
		destinations["LIBERIA"] = new Array("{A11BF8BD-6F5F-4D81-A3A6-EB1864B70879}","G");
		destinations["LIBYE"] = new Array("{D65A771C-98EC-4DD7-93C4-7D8FBC1C0FB2}","G");
		destinations["LIBIE"] = new Array("{D65A771C-98EC-4DD7-93C4-7D8FBC1C0FB2}","G");
		destinations["LIECHTENSTEIN"] = new Array("{CF45AA9B-750A-440C-8550-264848279DB7}","G");
		destinations["LICHTENSTEIN"] = new Array("{CF45AA9B-750A-440C-8550-264848279DB7}","G");
		destinations["LIGURIE"] = new Array("{E0304D4B-D218-4ECD-93E0-D86C51398D01}","G");
		destinations["LIMOUSIN"] = new Array("{F3CC4F5D-FAD6-4EDC-A311-881224F9A212}","G");
		destinations["LITUANIE"] = new Array("{3762FE65-557D-48E7-B18C-C862C7E4089B}","G");
		destinations["LOMBARDIE"] = new Array("{0DA82656-5BB3-4A04-9F91-2750B86FE004}","G");
		destinations["LORRAINE"] = new Array("{C8B8020E-6F81-4FCD-8EB8-3E6130B845F3}","G");
		destinations["LOUISIANE"] = new Array("{221C88B0-21ED-4D9B-A847-41A532996CFE}","G");
		destinations["LUXEMBOURG"] = new Array("{80AF1CA3-BFB2-4AAE-97A5-E9603FBD16C0}","G");
		destinations["MACAO"] = new Array("{E83FA1AC-6A92-4AC8-94EF-CF80A6289A4F}","G");
		destinations["MACEDOINE"] = new Array("{A5C2E6A3-33CC-4B90-BB08-65EA1D92DC8D}","G");
		destinations["MADAGASCAR"] = new Array("{96C2B972-7F1F-4EA6-81D3-1E50855E1551}","G");
		destinations["MADERE"] = new Array("{B8A12890-1D30-479E-BDF4-A8FC06282E2B}","G");
		destinations["MAINE"] = new Array("{FA99E255-8E91-4D84-9434-0C96DC1EFD6E}","G");
		destinations["MALAISIE"] = new Array("{7EFF1F15-5366-4A17-BC42-DB485E2738DA}","G");
		destinations["MALAWI"] = new Array("{FF0DCEF8-1AB8-4993-A623-37266833BAA6}","G");
		destinations["MALAOUI"] = new Array("{FF0DCEF8-1AB8-4993-A623-37266833BAA6}","G");
		destinations["MALDIVES"] = new Array("{3BA6C5F4-724B-4E96-8F9C-D772513E0C1F}","G");
		destinations["MALDIVES"] = new Array("{3BA6C5F4-724B-4E96-8F9C-D772513E0C1F}","G");
		destinations["MALI"] = new Array("{E1F4032D-9958-4E4C-9D57-C4419BA0A173}","G");
		destinations["MALTE"] = new Array("{EE056A3A-E422-467F-B809-10A0766ABF9F}","G");
		destinations["MANITOBA"] = new Array("{EFDD9E63-4A97-4E30-BC7D-0331E5B135F7}","G");
		destinations["MAROC"] = new Array("{39034547-6CC5-42F6-9351-C9B8D963F2E3}","G");
		destinations["MARTINIQUE"] = new Array("{24E6502B-3D70-45DA-99F9-97962102DDCA}","G");
		destinations["MARYLAND"] = new Array("{C5205FF1-701E-49EE-B157-994A6409EA35}","G");
		destinations["MARILAND"] = new Array("{C5205FF1-701E-49EE-B157-994A6409EA35}","G");
		destinations["MASSACHUSETTS"] = new Array("{C538EA5D-8EFA-48E8-9CD7-73722FF83FEB}","G");
		destinations["MASSACHUSSETTS"] = new Array("{C538EA5D-8EFA-48E8-9CD7-73722FF83FEB}","G");
		destinations["MASACHUSSETTS"] = new Array("{C538EA5D-8EFA-48E8-9CD7-73722FF83FEB}","G");
		destinations["MASACHUSETS"] = new Array("{C538EA5D-8EFA-48E8-9CD7-73722FF83FEB}","G");
		destinations["MAURITANIE"] = new Array("{5A584E0D-B35D-4AAC-8B1E-8FDA58AFADCD}","G");
		destinations["MAYOTTE"] = new Array("{C9203C3B-E7D4-40B4-8025-B7AFAEACA4DB}","G");
		destinations["MAIOTTE"] = new Array("{C9203C3B-E7D4-40B4-8025-B7AFAEACA4DB}","G");
		destinations["MEXIQUE"] = new Array("{696CA454-C31A-4B53-8D73-0D4CF1CA37A7}","G");
		destinations["MICHIGAN"] = new Array("{225B30D8-0141-471C-B3BD-BADB07A01468}","G");
		destinations["MIDI-PYRENEES"] = new Array("{D21E2D1F-5AA5-4E46-8316-540077878BE2}","G");
		destinations["MIDI-PYRENES"] = new Array("{D21E2D1F-5AA5-4E46-8316-540077878BE2}","G");
		destinations["MIDI-PYRENE"] = new Array("{D21E2D1F-5AA5-4E46-8316-540077878BE2}","G");
		destinations["MINNESOTA"] = new Array("{DEDA5DC9-5B7C-4A17-9125-CD5DA0B8F321}","G");
		destinations["MINESOTA"] = new Array("{DEDA5DC9-5B7C-4A17-9125-CD5DA0B8F321}","G");
		destinations["MINESSOTA"] = new Array("{DEDA5DC9-5B7C-4A17-9125-CD5DA0B8F321}","G");
		destinations["MINNESSOTA"] = new Array("{DEDA5DC9-5B7C-4A17-9125-CD5DA0B8F321}","G");
		destinations["MISSISSIPPI"] = new Array("{31FAFD71-3D87-4759-8251-D5D67D6E94CF}","G");
		destinations["MISSISSIPI"] = new Array("{31FAFD71-3D87-4759-8251-D5D67D6E94CF}","G");
		destinations["MISISSIPPI"] = new Array("{31FAFD71-3D87-4759-8251-D5D67D6E94CF}","G");
		destinations["MISSISIPPI"] = new Array("{31FAFD71-3D87-4759-8251-D5D67D6E94CF}","G");
		destinations["MISISIPI"] = new Array("{31FAFD71-3D87-4759-8251-D5D67D6E94CF}","G");
		destinations["MISSOURI"] = new Array("{E02E3550-E805-4E5E-BED5-BE54566D036F}","G");
		destinations["MISOURI"] = new Array("{E02E3550-E805-4E5E-BED5-BE54566D036F}","G");
		destinations["MOLDAVIE"] = new Array("{517B35D7-823C-4802-9E69-187D7A34868A}","G");
		destinations["MONACO"] = new Array("{8D09BDD9-0EA5-4C08-B2E0-23F45E7E060C}","G");
		destinations["MONGOLIE"] = new Array("{78D94F37-1745-4FC7-A600-4629F47075F3}","G");
		destinations["MONGOLI"] = new Array("{78D94F37-1745-4FC7-A600-4629F47075F3}","G");
		destinations["MONTANA"] = new Array("{8DB07CA3-F620-4EED-BC84-98251B0DB1CB}","G");
		destinations["MONTENEGRO"] = new Array("{8F052E45-F2A7-46CA-8B9C-229FB4F9E94B}","G");
		destinations["MOZAMBIQUE"] = new Array("{4D9A5126-215A-4987-B2B7-704EEDDFC5CE}","G");
		destinations["MOSAMBIQUE"] = new Array("{4D9A5126-215A-4987-B2B7-704EEDDFC5CE}","G");
		destinations["NAMIBIE"] = new Array("{196D8ECD-A50B-45E8-9B1E-21E6034824AF}","G");
		destinations["NAMIBI"] = new Array("{196D8ECD-A50B-45E8-9B1E-21E6034824AF}","G");
		destinations["NAVARRE"] = new Array("{9E08E40B-265C-462E-A7FA-741659C1F293}","G");
		destinations["NAVARE"] = new Array("{9E08E40B-265C-462E-A7FA-741659C1F293}","G");
		destinations["NEBRASKA"] = new Array("{6F758608-ABAC-4A76-BAA5-0F9481953214}","G");
		destinations["NEPAL"] = new Array("{93050FAF-743C-47BB-AD22-BB1A5D0B7343}","G");
		destinations["NEVADA"] = new Array("{0BDA6045-1DF3-4AA0-8D81-5B930E263E80}","G");
		destinations["NEW-HAMPSHIRE"] = new Array("{5AF8F30B-DF2D-47A1-9F51-6DCC608D5C60}","G");
		destinations["NEW-HAMPCHIRE"] = new Array("{5AF8F30B-DF2D-47A1-9F51-6DCC608D5C60}","G");
		destinations["NEW-AMPSHIRE"] = new Array("{5AF8F30B-DF2D-47A1-9F51-6DCC608D5C60}","G");
		destinations["NEW-AMPCHIRE"] = new Array("{5AF8F30B-DF2D-47A1-9F51-6DCC608D5C60}","G");
		destinations["NEW-JERSEY"] = new Array("{EF43CBE1-1819-456C-BB85-A9F1DFD3A2C6}","G");
		destinations["NICARAGUA"] = new Array("{AB81E728-C1FC-4259-8121-9B384C8C560C}","G");
		destinations["NIGER"] = new Array("{D080D8DB-B400-4929-A855-B2D68F5DD57B}","G");
		destinations["NIGERIA"] = new Array("{A5821D4A-8E31-4D35-8090-845183B05D5C}","G");
		destinations["NORD-PAS-DE-CALAIS"] = new Array("{078A61FD-EA41-4AC6-9D20-85A2E5FFB813}","G");
		destinations["NORVEGE"] = new Array("{8622B9E8-2F61-483A-8ADC-3C670AA39694}","G");
		destinations["NOUVEAU---MEXIQUE"] = new Array("{31C6957B-1435-4232-90E6-1F257D8DA9EF}","G");
		destinations["NOUVEAU-MEXIQUE"] = new Array("{31C6957B-1435-4232-90E6-1F257D8DA9EF}","G");
		destinations["NOUVEAU-BRUNSWICK"] = new Array("{03515976-DA15-4900-A75F-5648DC02CFBA}","G");
		destinations["NOUVELLE---ECOSSE"] = new Array("{88948493-D6CD-4E82-ACCE-522336ED664B}","G");
		destinations["NOUVELLE-ECOSSE"] = new Array("{88948493-D6CD-4E82-ACCE-522336ED664B}","G");
		destinations["NOUVELLE-CALEDONIE"] = new Array("{382BD8E6-D9B3-47A1-BD38-82D11527ECF9}","G");
		destinations["NOUVELLE-ZELANDE"] = new Array("{7858F071-835C-4D39-9298-A6750EC50549}","G");
		destinations["OHIO"] = new Array("{4407D54F-5B60-4ADD-954C-D4BF8F07EBAF}","G");
		destinations["OKLAHOMA"] = new Array("{E8DC42EE-1764-47B5-94CC-8EF5E2451268}","G");
		destinations["OMBRIE"] = new Array("{46D2A8F2-225F-4859-A4BC-890A89706CDC}","G");
		destinations["ONTARIO"] = new Array("{88714908-445A-4A98-AE2A-B76A71089C66}","G");
		destinations["OREGON"] = new Array("{A88876EA-BCF0-4369-B1F9-0A727B16BBE3}","G");
		destinations["OUGANDA"] = new Array("{483C8430-FA17-4E72-837E-008817430B96}","G");
		destinations["OUZBEKISTAN"] = new Array("{480DEFDA-0592-4D42-AC23-559DE2D9B398}","G");
		destinations["PAKISTAN"] = new Array("{2BBC5505-4E47-4953-ACB0-7B099FCB928A}","G");
		destinations["PANAMA"] = new Array("{52270481-5704-4FC2-B887-FF3C654AFA6F}","G");
		destinations["PAPOUASIE-NOUVELLE-GUINEE"] = new Array("{EC8D93EE-DB0B-415D-A84F-9E5208A8AB4E}","G");
		destinations["PAPOUASIE"] = new Array("{EC8D93EE-DB0B-415D-A84F-9E5208A8AB4E}","G");
		destinations["PARAGUAY"] = new Array("{BAE8DD8F-BC2A-4D3A-BEDE-139384C836AE}","G");
		destinations["PAYS-BAS-CONTINENTAL"] = new Array("{59067955-8AC9-4EDD-8AA6-11FB1D81A150}","G");
		destinations["PAYS-BAS"] = new Array("{59067955-8AC9-4EDD-8AA6-11FB1D81A150}","G");
		destinations["HOLLANDE"] = new Array("{59067955-8AC9-4EDD-8AA6-11FB1D81A150}","G");
		destinations["PAYS-BASQUE"] = new Array("{52A0EAEE-CE40-479A-BA6C-08B541763082}","G");
		destinations["PAYS-DE-GALLES"] = new Array("{E5DFBCD4-7E6B-4F34-A6D8-57A4A0EB09FB}","G");
		destinations["PAYS-DE-LA-LOIRE"] = new Array("{FA71EAB9-B9F6-4E9C-861B-83965F8165D7}","G");
		destinations["PENNSYLVANIE"] = new Array("{F0AC9519-8EDE-41B1-9C7C-4282B6095543}","G");
		destinations["PEROU"] = new Array("{9FB24405-37F1-40FA-9F3E-AC16CAADF848}","G");
		destinations["PHILIPPINES"] = new Array("{75353E05-408E-41AB-85D7-41E162586563}","G");
		destinations["PHILIPPINE"] = new Array("{75353E05-408E-41AB-85D7-41E162586563}","G");
		destinations["PICARDIE"] = new Array("{D8260166-23F2-4077-9CE7-F2587D5E10AB}","G");
		destinations["PIEMONT"] = new Array("{70D683FD-DB04-4BA0-806A-4A84260B55D2}","G");
		destinations["POITOU-CHARENTES"] = new Array("{09F1CA14-7E2A-4C96-BDA9-02E5B1DD0B97}","G");
		destinations["POLOGNE"] = new Array("{FC6B2BDD-C993-4631-A7A6-54C3F4927B85}","G");
		destinations["POLYNESIE-FRANÇAISE"] = new Array("{12DBCCC5-DF42-4B60-A104-2A560F497AEF}","G");
		destinations["POLYNESIE"] = new Array("{12DBCCC5-DF42-4B60-A104-2A560F497AEF}","G");
		destinations["PORTO-RICO"] = new Array("{61A5DDB2-26CE-47E5-931A-4EE806FC16D1}","G");
		destinations["POUILLES"] = new Array("{399B8D3D-6342-4DBD-91CA-A8E57D167B8F}","G");
		destinations["PROVENCE-ALPES-COTE-D'AZUR"] = new Array("{7DA980CF-52F1-47A3-A5B9-F55E3B2B5E41}","G");
		destinations["QATAR"] = new Array("{D46400AB-981B-42DE-B085-AD722DF5D69E}","G");
		destinations["QUEBEC"] = new Array("{01744134-CB69-4434-9598-464ABEEF4CCB}","G");
		destinations["RAJASTHAN-(INDE)"] = new Array("{D8D2B112-592B-4886-8FF9-99AA9C04A9CF}","G");
		destinations["RAJASTHAN"] = new Array("{D8D2B112-592B-4886-8FF9-99AA9C04A9CF}","G");
		destinations["REGION-CENTRE"] = new Array("{E2F53915-EEA0-46C7-8B83-58CB9DEFDBA8}","G");
		destinations["REGION-DE-MURCIE"] = new Array("{F357C70D-3084-4327-B91E-176BCC55C57A}","G");
		destinations["REGION-LISBONNE"] = new Array("{275D99AC-6556-4E62-B9BF-518902487087}","G");
		destinations["REGION-MADRID"] = new Array("{F6431197-333F-41D8-9098-D5E9189D5AB1}","G");
		destinations["REGION-NORD"] = new Array("{3E63C60B-4B83-4ADB-8AE5-6614CBCC626C}","G");
		destinations["REGION-PEKIN"] = new Array("{A1FC47FF-A133-4FDD-B48D-2D57E81930E5}","G");
		destinations["REGION-SHANGAI"] = new Array("{5A61AF6B-851A-4D9C-A747-F1B6CF533D3F}","G");
		destinations["REPUBLIQUE-CENTRAFRICAINE"] = new Array("{91996B1B-8A7F-426F-890F-7AEC450982A0}","G");
		destinations["REPUBLIQUE-DOMINICAINE"] = new Array("{54990F13-2E09-4D7E-A50B-7A3B0E5809D4}","G");
		destinations["REP-DOM"] = new Array("{54990F13-2E09-4D7E-A50B-7A3B0E5809D4}","G");
		destinations["REP-DOMINICAINE"] = new Array("{54990F13-2E09-4D7E-A50B-7A3B0E5809D4}","G");
		destinations["REPUBLIQUE-TCHEQUE"] = new Array("{719C9792-6E8F-4D30-91CA-69D885AFC0DB}","G");
		destinations["REUNION"] = new Array("{E1E24465-F283-4ECF-AA02-1A8DDFA65460}","G");
		destinations["RHODE-ISLAND"] = new Array("{E0F926CF-992F-4479-BB8A-49831990D362}","G");
		destinations["RHONE-ALPES"] = new Array("{B7F154DF-181F-4D88-B0B7-3274E2C8E512}","G");
		destinations["RODRIGUES"] = new Array("{2B3FCFF5-AD8E-4BA3-9D79-A91011AF3FDE}","G");
		destinations["ROUMANIE"] = new Array("{87D0EA05-3BB2-4749-92D7-872E9E7AC0A4}","G");
		destinations["RUSSIE"] = new Array("{516030C9-058A-40D3-9F2A-A9CE6C1FB8B5}","G");
		destinations["RWANDA"] = new Array("{E50E1637-3854-47B7-B5CB-7614A76EDDB4}","G");
		destinations["SAINT-VINCENT-ET-LES-GRENADINES"] = new Array("{A87DB763-3454-4E52-8B25-CE17D02F1F97}","G");
		destinations["SAINTE-LUCIE"] = new Array("{789FC925-C9B2-4115-A43B-B315AB282F09}","G");
		destinations["SAINT-PIERRE-ET-MIQUELON"] = new Array("{EF768E9A-4397-4CF6-AE90-B9C344C4A684}","G");
		destinations["SAINT-VINCENT-LES-GRENADINES"] = new Array("{F09A0217-93E8-4B08-A195-1F3CD9F608BA}","G");
		destinations["SAO-TOME-ET-PRINCIPE"] = new Array("{61998C40-16C6-4961-828E-C4E952023E69}","G");
		destinations["SARDAIGNE"] = new Array("{45B5C475-AC05-4BF4-A5EB-DFABFEE7DCD8}","G");
		destinations["SASKATCHEWAN"] = new Array("{CBFA351D-CE06-426A-B42A-3BE51C29F8E7}","G");
		destinations["SENEGAL"] = new Array("{905FDA72-C76B-4E6E-8D2A-F36D2BD71B30}","G");
		destinations["SERBIE"] = new Array("{7BB04827-D7F3-4358-86D5-644B6BAFA2EE}","G");
		destinations["SEYCHELLES"] = new Array("{7EDE8C89-650A-4929-BAC2-0D379BD4CEE7}","G");
		destinations["SICILE"] = new Array("{0FD102D6-27C4-4F70-B795-8F0DD69A9534}","G");
		destinations["SIERRA-LEONE"] = new Array("{A6E16918-ECB6-498D-97F3-D9E7DE24FF2C}","G");
		destinations["SINGAPOUR"] = new Array("{AABD235F-C7B4-4D0A-8F75-A8014DB06449}","G");
		destinations["SLOVAQUIE"] = new Array("{2152EF47-A09B-486A-A40A-4F52BFED8855}","G");
		destinations["SLOVENIE"] = new Array("{E5737C4B-DD32-487E-A5B4-2B1422C44AB3}","G");
		destinations["SOMALIE"] = new Array("{A86F2DD4-DC93-4B5B-B003-B14A021FC3B6}","G");
		destinations["SOUDAN"] = new Array("{5A614EBD-805F-4358-B9EE-1DC0637E462D}","G");
		destinations["SRI-LANKA"] = new Array("{8A596FA9-36D2-496B-ABA9-02240906DECB}","G");
		destinations["SUEDE"] = new Array("{15FCB37E-ECD3-482E-AA57-8370A90CB09C}","G");
		destinations["SUISSE"] = new Array("{CBA779D9-B53B-4FF1-A3D6-3FEF5EAA2C88}","G");
		destinations["SULTANAT-D'OMAN"] = new Array("{47058FFF-8293-4DCD-A6E3-B96F0C21F2BE}","G");
		destinations["SUMATRA"] = new Array("{274E2C57-99D7-4555-B52A-0D63BDB32198}","G");
		destinations["SURINAME"] = new Array("{B86007DF-6F8C-4931-99AB-F973E2801B11}","G");
		destinations["SWAZILAND"] = new Array("{56759F9B-1004-4940-915F-21BA7986A188}","G");
		destinations["SYRIE"] = new Array("{499101CC-958D-41A5-B16C-6F30FCB6287A}","G");
		destinations["TADJIKISTAN"] = new Array("{4A0781F6-086C-4CEC-BFB7-062EAB0F324C}","G");
		destinations["TAHITI"] = new Array("{F36FFB56-CB91-4AE2-9231-2A96DFF8CF65}","G");
		destinations["TAIWAN"] = new Array("{BDA9116F-A907-4B64-ADEB-56CD8001EEE9}","G");
		destinations["TANZANIE"] = new Array("{DEE5C0CD-9B3F-4995-B05E-49DDCDBF1BA5}","G");
		destinations["TCHAD"] = new Array("{16959FE4-0952-4EFF-93CA-8FD45A569500}","G");
		destinations["TENNESSEE"] = new Array("{A97E6494-1644-44D3-B7EE-BB0B57CB9455}","G");
		destinations["TERRE-NEUVE-ET-LABRADOR"] = new Array("{AE821963-06BA-4AA3-A5F3-DC0B95757CFF}","G");
		destinations["TERRITOIRE-DE-DELHI"] = new Array("{31903E70-1996-4C3F-91FB-EB9485A6CD37}","G");
		destinations["DELHI"] = new Array("{31903E70-1996-4C3F-91FB-EB9485A6CD37}","G");
		destinations["TERRITOIRES-DU-NORD-OUEST"] = new Array("{C92BBA23-EA34-4326-88B0-F4C907A9097A}","G");
		destinations["TEXAS"] = new Array("{ADEB5FB9-797F-45FE-8A8C-7288F699AAA7}","G");
		destinations["THAILANDE"] = new Array("{EEE08DA0-F026-472A-8EBF-FE9D94C26A89}","G");
		destinations["TAILANDE"] = new Array("{EEE08DA0-F026-472A-8EBF-FE9D94C26A89}","G");
		destinations["THAYLANDE"] = new Array("{EEE08DA0-F026-472A-8EBF-FE9D94C26A89}","G");
		destinations["TAYLANDE"] = new Array("{EEE08DA0-F026-472A-8EBF-FE9D94C26A89}","G");
		destinations["TOGO"] = new Array("{68B04C73-DC4B-4F17-A209-AE2A508E1166}","G");
		destinations["TONGA"] = new Array("{1A72CFEA-49B3-4E72-B9AD-2B3B6AE03858}","G");
		destinations["TOSCANE"] = new Array("{EFC4B2AA-55B7-43E4-99A9-A72FC4B67FB0}","G");
		destinations["TRINITE-ET-TOBAGO"] = new Array("{6D4CE79B-1BD1-4B78-ABAB-28BFE245F40B}","G");
		destinations["TUNISIE"] = new Array("{7314C17E-4847-4178-8FC1-64389707E251}","G");
		destinations["TUNISI"] = new Array("{7314C17E-4847-4178-8FC1-64389707E251}","G");
		destinations["TURKMENISTAN"] = new Array("{11F3D7A6-9DB8-4A28-8835-EBB9FCC336C1}","G");
		destinations["TURQUIE"] = new Array("{F3469AD5-A42F-47BB-AC3F-C3042A62ABD7}","G");
		destinations["TURQUI"] = new Array("{F3469AD5-A42F-47BB-AC3F-C3042A62ABD7}","G");
		destinations["UKRAINE"] = new Array("{80069950-A1FA-4824-8D88-0C13728C64E7}","G");
		destinations["URUGUAY"] = new Array("{AA65572E-014B-467C-A8FC-97ADC7FB888A}","G");
		destinations["UTAH"] = new Array("{BE88EC03-E1FA-459B-847C-E9C05C868012}","G");
		destinations["VAL-D-AOSTE"] = new Array("{3FEBCA12-BC14-43F7-A823-B7BF5B443D4B}","G");
		destinations["VANUATU"] = new Array("{AAFDE463-EA62-4488-8909-4AF3003969FD}","G");
		destinations["VENETIE"] = new Array("{16B2C7E3-AD5E-40F0-AE9F-EE8B937F64F7}","G");
		destinations["VENEZUELA"] = new Array("{24EB52CB-C987-4DE6-B8F0-431CCC2C9DF9}","G");
		destinations["VERMONT"] = new Array("{AA299399-5BC6-4099-9BB5-687B561F562B}","G");
		destinations["VIETNAM"] = new Array("{32D27B9A-D96F-412E-9B75-A8F17E5E0D2C}","G");
		destinations["VIET-NAM"] = new Array("{32D27B9A-D96F-412E-9B75-A8F17E5E0D2C}","G");
		destinations["VIRGINIE"] = new Array("{784F1515-73B6-4846-8306-7C9FA63D06B5}","G");
		destinations["VIRGINIE-OCCIDENTALE"] = new Array("{F8437293-7D8A-4763-9123-B678747929D9}","G");
		destinations["WALLIS-ET-FUTUNA"] = new Array("{7E0870C0-83F5-49D3-845B-0275EE074458}","G");
		destinations["WASHINGTON"] = new Array("{CF066B5C-01CC-437A-8125-EFD43FB390EB}","G");
		destinations["WISCONSIN"] = new Array("{0C20DE53-8359-4675-9EF3-FB4CF3C37EBA}","G");
		destinations["WYOMING"] = new Array("{BF66E7B0-7A4B-4F5F-B05C-A785A558EC06}","G");
		destinations["YEMEN"] = new Array("{899A2706-D6A9-4EBB-93F8-865FB441AB8C}","G");
		destinations["YOUGOSLAVIE"] = new Array("{C623FC1B-F700-4B02-9FED-37FD246B0D49}","G");
		destinations["ZAMBIE"] = new Array("{876AC70A-4ADC-4D67-BF9B-9E7A548A5A6F}","G");
		destinations["ZANZIBAR"] = new Array("{F9187A1F-B7BA-475C-8137-EC5AF2D931B2}","G");
		destinations["ZIMBABWE"] = new Array("{37E0CC33-562C-4640-A745-BF52EBBCA8F1}","G");
		destinations["ETATS-UNIS"] = new Array("{F0F50ADF-CC69-4E03-A6CB-DD7582C408BC}","G");
		destinations["ETAT-UNIS"] = new Array("{F0F50ADF-CC69-4E03-A6CB-DD7582C408BC}","G");
		destinations["ETATS-UNI"] = new Array("{F0F50ADF-CC69-4E03-A6CB-DD7582C408BC}","G");
		destinations["ETAT-UNI"] = new Array("{F0F50ADF-CC69-4E03-A6CB-DD7582C408BC}","G");
		destinations["USA"] = new Array("{F0F50ADF-CC69-4E03-A6CB-DD7582C408BC}","G");
		destinations["ISTAMBUL"] = new Array("ISTAMBUL","U");
		destinations["BODRUM"] = new Array("BODRUM","U");
		destinations["CANCUN"] = new Array("CANCUN","U");
		destinations["MARRAKECH"] = new Array("MARRAKECH","U");
		destinations["MARRAKEC"] = new Array("MARRAKECH","U");
		destinations["MARAKECH"] = new Array("MARRAKECH","U");
		destinations["AGADIR"] = new Array("AGADIR","U");
		destinations["DJERBA"] = new Array("DJERBA","U");
		destinations["JERBA"] = new Array("DJERBA","U");
		destinations["HAMMAMET"] = new Array("HAMMAMET","U");
		destinations["HAMAMET"] = new Array("HAMMAMET","U");
		destinations["ATHENES"] = new Array("ATHENES","U");
		destinations["HURGHADA"] = new Array("HURGHADA","U");
		destinations["URGHADA"] = new Array("HURGHADA","U");
		destinations["HURGADA"] = new Array("HURGHADA","U");
		destinations["URGADA"] = new Array("HURGHADA","U");
		destinations["PRAGUE"] = new Array("PRAGUE","U");
		destinations["ITALIE"] = new Array("{8C41AB7B-1E73-4964-8222-1715C5E4DDE7}","G");
		destinations["PAYS-BAS"] = new Array("{42C005D4-72C4-417B-8E28-33F133B5ACDB}","G");
		destinations["ASIE"] = new Array("{58556FEB-F344-47B0-823F-5CBB8AFF5E1B}","G");
		destinations["ESPAGNE"] = new Array("{FC4A4814-9D0A-45EF-B637-854DC3BBF435}","G");
		destinations["ROYAUME-UNI"] = new Array("{E94880B2-BB7C-4319-AC1C-8D880F4C0C0A}","G");
		destinations["INDONESIE"] = new Array("{A1778CDD-F69C-4BDB-89DE-B4A9B3355DF6}","G");
		destinations["PORTUGAL"] = new Array("{5835097B-DD86-49FF-BD1B-C56B44756203}","G");
		destinations["CANADA"] = new Array("{130F150B-A8B7-45F5-BF7F-F30979A4F3BB}","G");
		destinations["ROME"] = new Array("ROME","U");
		destinations["MADRID"] = new Array("MADRID","U");
		destinations["FLORENCE"] = new Array("FLORENCE","U");
		destinations["SAINT-MARTIN"] = new Array("SAINT-MARTIN","U");
		destinations["ABU-DHABI"] = new Array("ABU-DHABI","U");
		destinations["ABOU-DHABI"] = new Array("ABU-DHABI","U");
		destinations["ABOU-DABI"] = new Array("ABU-DHABI","U");
		destinations["ABU-DABI"] = new Array("ABU-DHABI","U");
		destinations["ACAPULCO"] = new Array("ACAPULCO","U");
		destinations["ALGER"] = new Array("ALGER","U");
		destinations["ALICANTE"] = new Array("ALICANTE","U");
		destinations["AMSTERDAM"] = new Array("AMSTERDAM","U");
		destinations["ANTALYA"] = new Array("ANTALYA","U");
		destinations["ANTALIA"] = new Array("ANTALYA","U");
		destinations["AQUABA"] = new Array("AQUABA","U");
		destinations["AKABA"] = new Array("AQUABA","U");
		destinations["AUCKLAND"] = new Array("AUCKLAND","U");
		destinations["AUKLAND"] = new Array("AUCKLAND","U");
		destinations["OCKLAND"] = new Array("AUCKLAND","U");
		destinations["OKLAND"] = new Array("AUCKLAND","U");
		destinations["BANGKOK"] = new Array("BANGKOK","U");
		destinations["BANKOK"] = new Array("BANGKOK","U");
		destinations["BARCELONE"] = new Array("BARCELONE","U");
		destinations["BERLIN"] = new Array("BERLIN","U");
		destinations["BRUXELLES"] = new Array("BRUXELLES","U");
		destinations["BRUXELES"] = new Array("BRUXELLES","U");
		destinations["BRUSSELLES"] = new Array("BRUXELLES","U");
		destinations["BRUSSELS"] = new Array("BRUXELLES","U");
		destinations["BUDAPEST"] = new Array("BUDAPEST","U");
		destinations["CAP-SKIRRING"] = new Array("CAP-SKIRRING","U");
		destinations["CAP-SKIRING"] = new Array("CAP-SKIRRING","U");
		destinations["CARACAS"] = new Array("CARACAS","U");
		destinations["CAYENNE"] = new Array("CAYENNE","U");
		destinations["CAYENE"] = new Array("CAYENNE","U");
		destinations["COPENHAGUE"] = new Array("COPENHAGUE","U");
		destinations["COPENAGUE"] = new Array("COPENHAGUE","U");
		destinations["CORFOU"] = new Array("CORFOU","U");
		destinations["DAKAR"] = new Array("DAKAR","U");
		destinations["DAMAS"] = new Array("DAMAS","U");
		destinations["DAR-ES-SALAAM"] = new Array("DAR-ES-SALAAM","U");
		destinations["DAR-ES-SALAM"] = new Array("DAR-ES-SALAAM","U");
		destinations["DUBAI"] = new Array("DUBAI","U");
		destinations["DUBLIN"] = new Array("DUBLIN","U");
		destinations["ESSAOUIRA"] = new Array("ESSAOUIRA","U");
		destinations["FES"] = new Array("FEZ","U");
		destinations["FEZ"] = new Array("FEZ","U");
		destinations["FLORENCE"] = new Array("FLORENCE","U");
		destinations["FORT-DE-FRANCE"] = new Array("FORT-DE-FRANCE","U");
		destinations["FUNCHAL"] = new Array("FUNCHAL","U");
		destinations["GENEVE"] = new Array("GENEVE","U");
		destinations["GUATEMALA-CITY"] = new Array("GUATEMALA-CITY","U");
		destinations["HAMMAMET"] = new Array("HAMMAMET","U");
		destinations["HAMAMET"] = new Array("HAMMAMET","U");
		destinations["HANOI"] = new Array("HANOI","U");
		destinations["ANOI"] = new Array("HANOI","U");
		destinations["HONG-KONG"] = new Array("HONG-KONG","U");
		destinations["IBIZA"] = new Array("IBIZA","U");
		destinations["IBISA"] = new Array("IBIZA","U");
		destinations["MAHEBOURG"] = new Array("MAHEBOURG","U");
		destinations["MAHEBOUR"] = new Array("MAHEBOURG","U");
		destinations["IZMIR"] = new Array("IZMIR","U");
		destinations["ISMIR"] = new Array("IZMIR","U");
		destinations["DJAKARTA"] = new Array("DJAKARTA","U");
		destinations["JAKARTA"] = new Array("DJAKARTA","U");
		destinations["JERUSALEM"] = new Array("JERUSALEM","U");
		destinations["JOHANNESBOURG"] = new Array("JOHANNESBOURG","U");
		destinations["JOANNESBOURG"] = new Array("JOHANNESBOURG","U");
		destinations["JOHANESBOURG"] = new Array("JOHANNESBOURG","U");
		destinations["JOANESBOURG"] = new Array("JOHANNESBOURG","U");
		destinations["KUALA-LUMPUR"] = new Array("KUALA-LUMPUR","U");
		destinations["KUALA-LOUMPUR"] = new Array("KUALA-LUMPUR","U");
		destinations["KUALA-LOUMPOUR"] = new Array("KUALA-LUMPUR","U");
		destinations["KINGSTON"] = new Array("KINGSTON","U");
		destinations["KOH-SAMUI"] = new Array("KOH-SAMUI","U");
		destinations["KO-SAMUI"] = new Array("KOH-SAMUI","U");
		destinations["LA-HAVANE"] = new Array("LA-HAVANE","U");
		destinations["LA-AVANE"] = new Array("LA-HAVANE","U");
		destinations["LA-ROMANA"] = new Array("LA-ROMANA","U");
		destinations["LANGKAWI"] = new Array("LANGKAWI","U");
		destinations["LANGKAOUI"] = new Array("LANGKAWI","U");
		destinations["LANZAROTE"] = new Array("LANZAROTE","U");
		destinations["LE-CAIRE"] = new Array("LE-CAIRE","U");
		destinations["LECAIRE"] = new Array("LE-CAIRE","U");
		destinations["LISBONNE"] = new Array("LISBONNE","U");
		destinations["LISBONE"] = new Array("LISBONNE","U");
		destinations["LONDRES"] = new Array("LONDRES","U");
		destinations["LONDON"] = new Array("LONDRES","U");
		destinations["LOS-ANGELES"] = new Array("LOS-ANGELES","U");
		destinations["LOUXOR"] = new Array("LOUXOR","U");
		destinations["MALAGA"] = new Array("MALAGA","U");
		destinations["MEXICO"] = new Array("MEXICO","U");
		destinations["MIAMI"] = new Array("MIAMI","U");
		destinations["MILAN"] = new Array("MILAN","U");
		destinations["MONASTIR"] = new Array("MONASTIR","U");
		destinations["MOMBASA"] = new Array("MOMBASA","U");
		destinations["MOMBASSA"] = new Array("MOMBASA","U");
		destinations["MONBASA"] = new Array("MOMBASA","U");
		destinations["MONTREAL"] = new Array("MONTREAL","U");
		destinations["MONREAL"] = new Array("MONTREAL","U");
		destinations["MOSCOU"] = new Array("MOSCOU","U");
		destinations["MUNICH"] = new Array("MUNICH","U");
		destinations["MUNIK"] = new Array("MUNICH","U");
		destinations["NAPLES"] = new Array("NAPLES","U");
		destinations["NAPLE"] = new Array("NAPLES","U");
		destinations["NASSAU"] = new Array("NASSAU","U");
		destinations["NASSO"] = new Array("NASSAU","U");
		destinations["NEW-BURGH"] = new Array("NEW-BURGH","U");
		destinations["NEW-BURG"] = new Array("NEW-BURGH","U");
		destinations["NEW-YORK"] = new Array("NEW-YORK","U");
		destinations["NOUMEA"] = new Array("NOUMEA","U");
		destinations["OUARZAZATE"] = new Array("OUARZAZATE","U");
		destinations["OSLO"] = new Array("OSLO","U");
		destinations["PALERME"] = new Array("PALERME","U");
		destinations["PARIS"] = new Array("PARIS","U");
		destinations["PAPEETE"] = new Array("PAPEETE","U");
		destinations["PAPETE"] = new Array("PAPEETE","U");
		destinations["PEKIN"] = new Array("PEKIN","U");
		destinations["PHUKET"] = new Array("PHUKET","U");
		destinations["PUKET"] = new Array("PHUKET","U");
		destinations["POINTE-A-PITRE"] = new Array("POINTE-A-PITRE","U");
		destinations["PORTO"] = new Array("PORTO","U");
		destinations["PUERTO-PLATA"] = new Array("PUERTO-PLATA","U");
		destinations["PUNTA-CANA"] = new Array("PUNTA-CANA","U");
		destinations["PUNTA-KANA"] = new Array("PUNTA-CANA","U");
		destinations["QUEBEC"] = new Array("QUEBEC","U");
		destinations["QEBEC"] = new Array("QUEBEC","U");
		destinations["KEBEC"] = new Array("QUEBEC","U");
		destinations["IVALO"] = new Array("IVALO","U");
		destinations["BRASILIA"] = new Array("BRASILIA","U");
		destinations["ROVAMIENI"] = new Array("ROVAMIENI","U");
		destinations["RHODES"] = new Array("RHODES","U");
		destinations["RODES"] = new Array("RHODES","U");
		destinations["SAINT-PETERSBOURG"] = new Array("SAINT-PETERSBOURG","U");
		destinations["SANTIAGO"] = new Array("SANTIAGO","U");
		destinations["SEOUL"] = new Array("SEOUL","U");
		destinations["SHARM-EL-SHEIKH"] = new Array("SHARM-EL-SHEIKH","U");
		destinations["SHARM-EL-CHEIKH"] = new Array("SHARM-EL-SHEIKH","U");
		destinations["SHARM-EL-SHEIK"] = new Array("SHARM-EL-SHEIKH","U");
		destinations["SAINT-DOMINGUE"] = new Array("SAINT-DOMINGUE","U");
		destinations["SOFIA"] = new Array("SOFIA","U");
		destinations["STOCKHOLM"] = new Array("STOCKHOLM","U");
		destinations["STOCKOLM"] = new Array("STOCKHOLM","U");
		destinations["STOKOLM"] = new Array("STOCKHOLM","U");
		destinations["STOKHOLM"] = new Array("STOCKHOLM","U");
		destinations["SYDNEY"] = new Array("SYDNEY","U");
		destinations["SIDNEY"] = new Array("SYDNEY","U");
		destinations["SEVILLE"] = new Array("SEVILLE","U");
		destinations["TABARKA"] = new Array("TABARKA","U");
		destinations["ANTANANARIVO"] = new Array("ANTANANARIVO","U");
		destinations["ANTANARIVO"] = new Array("ANTANANARIVO","U");
		destinations["TEL-AVIV"] = new Array("TEL-AVIV","U");
		destinations["TOKYO"] = new Array("TOKYO","U");
		destinations["TOKIO"] = new Array("TOKYO","U");
		destinations["TOZEUR"] = new Array("TOZEUR","U");
		destinations["TOZER"] = new Array("TOZEUR","U");
		destinations["VIENNE"] = new Array("VIENNE","U");
		destinations["VARADERO"] = new Array("VARADERO","U");
		destinations["VENISE"] = new Array("VENISE","U");
		destinations["VENIZE"] = new Array("VENISE","U");
		destinations["ZADAR"] = new Array("ZADAR","U");
		destinations["ZANZIBAR"] = new Array("ZANZIBAR","U");
		
		if (!test){
			alert("OK");
			return false;
		}
		else if (destinations[test] == undefined){	
			document.getElementById('txtDestination').value="";
			alert("Destination non trouvee");
			return false;
		}
		else{
			switch (destinations[test][1]){
				case "G" :
				window.location.href = domaine + "recherche.aspx?pays=" + destinations[test][0];
				break;
				
				case "U" :
				window.location.href = domaine + destinations[test][0] + "/";
				break;
			}
		}
}

function trim (myString) 
{ 
return myString.replace(/^\s+/g,'').replace(/\s+$/g,'') 
} 


function doRech(){
    var dest=document.getElementById('iddest').value;
    var dep=document.getElementById('iddep').value;
    var ld=document.getElementById('ctl00_ctl01_Rech1_txtDate').value;
    window.location.href = '/recherche.aspx?pays=' + dest + '&ville=' + dep + '&dt=' + ld;
}

function doRechCompagnieInit(){
	document.getElementById('code').value="";
	document.getElementById('compagnie').value="";
}

function doRechCompagnie(){
var compagnies = new Array();
		compagnies["VX"] = "ACES";
		compagnies["ZY"] = "Ada Air";
		compagnies["JP"] = "Adria Airways";
		compagnies["A3"] = "Aegean Airlines";
		compagnies["RE"] = "Aer Arann";
		compagnies["EI"] = "Aer Lingus";
		compagnies["EE"] = "Aero Airlines";
		compagnies["E4"] = "Aero Asia";
		compagnies["JR"] = "Aero California";
		compagnies["9D"] = "Aero Continente Dominicana ou Perm Airlines";
		compagnies["Z9"] = "Aero Zambia";
		compagnies["DW"] = "Aero-Charter Airlines";
		compagnies["QA"] = "Aerocaribe";
		compagnies["2B"] = "Aerocondor";
		compagnies["AJ"] = "AeroContractors of Nigeria";
		compagnies["SU"] = "Aeroflot Russian Airlines";
		compagnies["AR"] = "Aerolineas Argentinas";
		compagnies["N2"] = "Aerolineas Internacionales";
		compagnies["BQ"] = "Aeromar";
		compagnies["VW"] = "Aeromar Airlines";
		compagnies["AM"] = "Aeromexico Aerovias de Mexico";
		compagnies["QO"] = "Aeromexpress SA de CV";
		compagnies["HT"] = "Aeromist-Kharkiv";
		compagnies["PL"] = "Aeroperu";
		compagnies["VH"] = "Aeropostal Alas de Venezuela CA";
		compagnies["P5"] = "AeroRepublica";
		compagnies["5L"] = "Aerosur";
		compagnies["VV"] = "Aerosvit";
		compagnies["8U"] = "Afriqiyah Airways";
		compagnies["X5"] = "Afrique Airlines";
		compagnies["ZI"] = "Aigle Azur";
		compagnies["AH"] = "Air Algerie";
		compagnies["3S"] = "Air Antilles Express";
		compagnies["AK"] = "Air Asia Sen";
		compagnies["KC"] = "Air Astana";
		compagnies["UU"] = "Air Austral";
		compagnies["BT"] = "Air Baltic";
		compagnies["AB"] = "Air Berlin";
		compagnies["JA"] = "Air Bosna";
		compagnies["KF"] = "Air Botnia devenue Blue1 Oy";
		compagnies["BP"] = "Air Botswana Corp";
		compagnies["ZN"] = "Air Bourbon";
		compagnies["MC"] = "Air Cairo";
		compagnies["TY"] = "Air Caledonie";
		compagnies["AC"] = "Air Canada";
		compagnies["TX"] = "Air Caraibes";
		compagnies["XC"] = "Air Caribbean";
		compagnies["CA"] = "Air China Ltd";
		compagnies["A7"] = "Air Comet";
		compagnies["AG"] = "Air Contractors";
		compagnies["EN"] = "Air Dolomiti";
		compagnies["UX"] = "Air Europa Lineas Aereas S.A.";
		compagnies["PE"] = "Air Europe SpA";
		compagnies["DN"] = "Air Exel Belgique";
		compagnies["PC"] = "Air Fiji Ltd.";
		compagnies["AF"] = "Air France";
		compagnies["GN"] = "Air Gabon";
		compagnies["DA"] = "Air Georgia";
		compagnies["LD"] = "Air Hong Kong";
		compagnies["RN"] = "Air Horizons";
		compagnies["AI"] = "Air India";
		compagnies["VU"] = "Air Ivoire";
		compagnies["JM"] = "Air Jamaica";
		compagnies["NQ"] = "Air Japan";
		compagnies["4A"] = "Air Kiribati,";
		compagnies["JS"] = "Air Koryo Korean Airways";
		compagnies["WJ"] = "Air Labrador";
		compagnies["TT"] = "Air Lithuania";
		compagnies["LK"] = "Air Luxor SA";
		compagnies["NX"] = "Air Macau";
		compagnies["MD"] = "Air Madagascar";
		compagnies["QM"] = "Air Malawi";
		compagnies["KM"] = "Air Malta";
		compagnies["CW"] = "Air Marshall Islands";
		compagnies["MR"] = "Air Mauritanie";
		compagnies["MK"] = "Air Mauritius Ltd";
		compagnies["DZ"] = "Air Metro North";
		compagnies["9U"] = "Air Moldova";
		compagnies["RM"] = "Air Moldova International";
		compagnies["3R"] = "Air Moldova International";
		compagnies["SW"] = "Air Namibia";
		compagnies["ON"] = "Air Nauru";
		compagnies["NZ"] = "Air New Zealand";
		compagnies["EL"] = "Air Nippon";
		compagnies["PX"] = "Air Niugini";
		compagnies["DY"] = "Air Norway";
		compagnies["YW"] = "Air Nostrum L.A.M.S.A.";
		compagnies["YH"] = "Air Nunavut Ltd.";
		compagnies["AP"] = "Air One";
		compagnies["FJ"] = "Air Pacific";
		compagnies["AD"] = "Air Paradise";
		compagnies["2P"] = "Air Philippines";
		compagnies["GZ"] = "Air Rarotonga";
		compagnies["PJ"] = "Air Saint-Pierre";
		compagnies["EX"] = "Air Santo Domingo";
		compagnies["V7"] = "Air Senegal International";
		compagnies["HM"] = "Air Seychelles";
		compagnies["4D"] = "Air Sinai";
		compagnies["GM"] = "Air Slovakia";
		compagnies["VT"] = "Air Tahiti";
		compagnies["TN"] = "Air Tahiti Nui";
		compagnies["TC"] = "Air Tanzania Co. Ltd.";
		compagnies["YT"] = "Air Togo";
		compagnies["TS"] = "Air Transat";
		compagnies["RT"] = "Air Turquoise";
		compagnies["6U"] = "Air Ukraine";
		compagnies["3N"] = "Air Urga";
		compagnies["DO"] = "Air Vallee";
		compagnies["NF"] = "Air Vanuatu";
		compagnies["6G"] = "Air Wales";
		compagnies["UM"] = "Air Zimbabwe";
		compagnies["SB"] = "Aircalin Air Caledonie International";
		compagnies["A5"] = "Airlinair";
		compagnies["SH"] = "AirToulouse/Aeris";
		compagnies["FL"] = "AirTran";
		compagnies["AS"] = "Alaska Airlines";
		compagnies["LV"] = "Albanian Airlines MAK S.H.P.K.";
		compagnies["AZ"] = "Alitalia";
		compagnies["RD"] = "Alitalia Team";
		compagnies["NH"] = "All Nippon Airways ou ANA";
		compagnies["G4"] = "Allegiant Air";
		compagnies["CD"] = "Alliance Air filiale d'Indian Airlines";
		compagnies["QQ"] = "Alliance Airlines";
		compagnies["AQ"] = "Aloha Airlines";
		compagnies["E8"] = "Alpi Eagles S.p.A.";
		compagnies["HP"] = "America West Airlines";
		compagnies["AA"] = "American Airlines";
		compagnies["FG"] = "Ariana Afghan Airlines";
		compagnies["IZ"] = "Arkia Israeli Airlines";
		compagnies["U8"] = "Armavia";
		compagnies["A6"] = "Asia Pacific Airlines";
		compagnies["OZ"] = "Asiana Airlines";
		compagnies["5W"] = "Astraeus";
		compagnies["OB"] = "Astrahan Airlines";
		compagnies["TZ"] = "ATA Airlines";
		compagnies["RC"] = "Atlantic Airways";
		compagnies["EV"] = "Atlantic Southeast Airlines";
		compagnies["8A"] = "Atlas Blue";
		compagnies["KK"] = "Atlasjet Uluslararasi Havacilik AS, ou Atlas Jet";
		compagnies["IQ"] = "Augsburg Airways GmbH";
		compagnies["AU"] = "Austral Lineas Aereas-Cielos del Sur";
		compagnies["AO"] = "Australian Airlines";
		compagnies["OS"] = "Austrian Airlines";
		compagnies["VE"] = "Avensa";
		compagnies["6A"] = "Aviacsa";
		compagnies["AV"] = "Avianca";
		compagnies["GU"] = "Aviateca";
		compagnies["U3"] = "Avies";
		compagnies["QZ"] = "Awair";
		compagnies["6V"] = "Axis Airways";
		compagnies["J2"] = "Azerbaijan Airlines Hava Yollary";
		compagnies["ZE"] = "Azteca Lineas Aereas";
		compagnies["ZS"] = "Azzurra Air";
		compagnies["B4"] = "B.A.C.H. Flugbetriebs";
		compagnies["LZ"] = "Balkan Bulgarian Airlines";
		compagnies["PG"] = "Bangkok Airways";
		compagnies["V9"] = "Bashkir Airlines";
		compagnies["BM"] = "Bayu Indonesia Air";
		compagnies["B2"] = "Belavia";
		compagnies["B3"] = "Bellview Airlines";
		compagnies["A8"] = "Benin Golf Air";
		compagnies["BG"] = "Biman Bangladesh Airlines";
		compagnies["NT"] = "Binter Canarias";
		compagnies["BV"] = "Blue Panorama Airlines";
		compagnies["BF"] = "Bluebird Cargo";
		compagnies["WW"] = "bmi baby Regional";
		compagnies["E9"] = "Boston-Maine Airways";
		compagnies["BO"] = "Bouraq Indonesia Airlines";
		compagnies["BU"] = "Braathens groupe SAS";
		compagnies["K6"] = "Bravo AirCongo";
		compagnies["DB"] = "Brit Air";
		compagnies["6B"] = "Britannia Airways AB";
		compagnies["BA"] = "British Airways";
		compagnies["BE"] = "British European";
		compagnies["BS"] = "British International Helicopters";
		compagnies["BD"] = "British Midland Airways";
		compagnies["SN"] = "Brussels Airlines";
		compagnies["FB"] = "Bulgaria Air";
		compagnies["II"] = "Business Air";
		compagnies["4P"] = "Business Aviation";
		compagnies["BW"] = "BWIA West Indies Airways";
		compagnies["UY"] = "Cameroon Airlines";
		compagnies["CP"] = "Canadian Airlines International";
		compagnies["C6"] = "CanJet";
		compagnies["9K"] = "Cape Air";
		compagnies["CV"] = "Cargolux Airlines International";
		compagnies["CX"] = "Cathay Pacific Airways";
		compagnies["XK"] = "CCM Airlines";
		compagnies["C0"] = "Centralwings";
		compagnies["J7"] = "Centre-Avia";
		compagnies["LS"] = "Channel Express";
		compagnies["CI"] = "China Airlines";
		compagnies["MU"] = "China Eastern Airlines";
		compagnies["CJ"] = "China Northern";
		compagnies["CZ"] = "China Southern Airlines";
		compagnies["SZ"] = "China Southwest";
		compagnies["XO"] = "China Xinjiang Airlines";
		compagnies["3Q"] = "China Yunnan Airlines";
		compagnies["X7"] = "Chita Avia";
		compagnies["A2"] = "Cielos del Peru";
		compagnies["QI"] = "Cimber Air";
		compagnies["C9"] = "Cirrus Airlines";
		compagnies["WX"] = "Cityjet";
		compagnies["CN"] = "CN Airlines";
		compagnies["BX"] = "Coast Air";
		compagnies["DQ"] = "Coastal Air Transport";
		compagnies["OH"] = "Comair Inc.";
		compagnies["I5"] = "Compagnie Aerienne du Mali";
		compagnies["DE"] = "Condor Flugdienst";
		compagnies["DD"] = "Conti-Flug";
		compagnies["CO"] = "Continental Airlines";
		compagnies["CS"] = "Continental Micronesia";
		compagnies["V0"] = "Conviasa";
		compagnies["CM"] = "Copa Airlines Compania Panamena de Aviacion";
		compagnies["SS"] = "Corse Air International devenue Corsairfly";
		compagnies["OR"] = "Crimea Air";
		compagnies["OU"] = "Croatia Airlines";
		compagnies["OK"] = "CSA Czech Airlines";
		compagnies["CU"] = "Cubana";
		compagnies["CY"] = "Cyprus Airways";
		compagnies["YK"] = "Cyprus Turkish Airlines";
		compagnies["D3"] = "Daallo Airlines";
		compagnies["6P"] = "Dacair Romanian Airlines";
		compagnies["H8"] = "Dalavia";
		compagnies["D2"] = "Damania Airways";
		compagnies["DX"] = "Danish Air Transport";
		compagnies["DL"] = "Delta Air Lines";
		compagnies["DI"] = "Deutsche BA Luftfahrtgesellschaft mbH";
		compagnies["LH"] = "Deutsche Lufthansa AG";
		compagnies["ES"] = "DHL International EC";
		compagnies["D8"] = "Diamond Sakha Airlines";
		compagnies["D7"] = "Dinar Lineas Aereas";
		compagnies["Z6"] = "Dniproavia";
		compagnies["E3"] = "Domodedovo Airlines";
		compagnies["D9"] = "Donavia";
		compagnies["7D"] = "Donbassaero";
		compagnies["KA"] = "Dragonair";
		compagnies["KB"] = "Druk Air";
		compagnies["VB"] = "Duo Airways Ltd.";
		compagnies["S9"] = "East African Safari Air";
		compagnies["P7"] = "East Line";
		compagnies["DG"] = "Eastern Pacific";
		compagnies["DK"] = "Eastland Air";
		compagnies["U2"] = "EasyJet";
		compagnies["MS"] = "Egypt Air";
		compagnies["LY"] = "El Al-Israel Airlines";
		compagnies["EK"] = "Emirates";
		compagnies["G5"] = "Enkor Airlines";
		compagnies["B8"] = "Eritrean Airlines";
		compagnies["OV"] = "Estonian Air";
		compagnies["ET"] = "Ethiopian Airlines";
		compagnies["EY"] = "Etihad Airways";
		compagnies["MM"] = "euroAtlantic Airways";
		compagnies["GJ"] = "Eurofly";
		compagnies["EA"] = "European Air Express";
		compagnies["QY"] = "European Air Transport";
		compagnies["EW"] = "Eurowings AG";
		compagnies["BR"] = "EVA Airways";
		compagnies["DS"] = "ex Air Senegal";
		compagnies["FW"] = "Fairinc";
		compagnies["IH"] = "Falcon Air AB";
		compagnies["CF"] = "Faucett";
		compagnies["FX"] = "Federal Express Corp ou FedEx";
		compagnies["AY"] = "Finnair Oyj";
		compagnies["7F"] = "First Air";
		compagnies["DP"] = "First Choice Airways";
		compagnies["B5"] = "Flightline";
		compagnies["X2"] = "Fly Globespan";
		compagnies["4H"] = "Fly Linhas Aereas";
		compagnies["LF"] = "Fly Nordic";
		compagnies["F7"] = "Flybaboo";
		compagnies["BN"] = "Forward Air International Airlines";
		compagnies["SJ"] = "Freedom Air";
		compagnies["F9"] = "Frontier Airlines";
		compagnies["GC"] = "Gambia International Airlines";
		compagnies["G7"] = "Gandalf Airlines";
		compagnies["GA"] = "Garuda Indonesia";
		compagnies["GT"] = "GB Airways";
		compagnies["A9"] = "Georgian Airlines";
		compagnies["4U"] = "German Wings";
		compagnies["ST"] = "Germania Express";
		compagnies["GH"] = "Ghana Airways Corp";
		compagnies["G3"] = "Gol";
		compagnies["DC"] = "Golden Air";
		compagnies["G4"] = "Guizhou Airlines";
		compagnies["GF"] = "Gulf Air";
		compagnies["3M"] = "Gulfstream International Airlines";
		compagnies["GB"] = "Gurbet Airlines";
		compagnies["HR"] = "Hahn Air Lines";
		compagnies["HU"] = "Hainan Airlines";
		compagnies["HF"] = "Hapag-Lloyd Fluggesellschaft";
		compagnies["JH"] = "Harlequin Air";
		compagnies["HA"] = "Hawaiian Airlines";
		compagnies["BH"] = "Hawkair Aviation Services";
		compagnies["YO"] = "Heli Air Monaco";
		compagnies["ZU"] = "Helios Airways";
		compagnies["T4"] = "Hellas Jet";
		compagnies["2L"] = "Helvetic";
		compagnies["DU"] = "Hemus Air";
		compagnies["EO"] = "Hewa Bora Airways";
		compagnies["HD"] = "Hokkaido International Airlines ou Air Do";
		compagnies["DR"] = "Hyeres Aero Services";
		compagnies["IB"] = "Iberia Lineas Aereas de Espana";
		compagnies["FI"] = "Icelandair";
		compagnies["IK"] = "Imair Airlines";
		compagnies["DH"] = "Independence Air";
		compagnies["IC"] = "Indian Airlines Limited";
		compagnies["D6"] = "Inter-Aviation Services";
		compagnies["ZA"] = "Interavia Airlines";
		compagnies["IR"] = "Iran Air";
		compagnies["B9"] = "Iran Air Tours";
		compagnies["EP"] = "Iran Aseman Airlines";
		compagnies["WP"] = "Island Air";
		compagnies["HH"] = "Islandsflug";
		compagnies["6H"] = "Israir Airlines and Tourism Limited";
		compagnies["XM"] = "J-Air";
		compagnies["JO"] = "JALways";
		compagnies["3X"] = "Japan Air Commuter JAC";
		compagnies["JL"] = "Japan Airlines";
		compagnies["EG"] = "Japan Asia Airways";
		compagnies["NU"] = "Japan Transocean Air";
		compagnies["JU"] = "Jat Airways";
		compagnies["9W"] = "Jet Airways";
		compagnies["S2"] = "Jet Lite";
		compagnies["8J"] = "Jet4you";
		compagnies["B6"] = "jetBlue Airways";
		compagnies["SG"] = "Jetsgo";
		compagnies["JQ"] = "Jetstar Airways";
		compagnies["GX"] = "JetX Airlines";
		compagnies["KD"] = "Kaliningradavia";
		compagnies["K8"] = "Kaliningradavia";
		compagnies["RQ"] = "Kam Air";
		compagnies["KV"] = "Kavminvodyavia";
		compagnies["KW"] = "Kelowna Flightcraft";
		compagnies["KQ"] = "Kenya Airways";
		compagnies["BZ"] = "Keystone Air Service";
		compagnies["X9"] = "Khors Aircompany";
		compagnies["IT"] = "Kingfisher";
		compagnies["Y9"] = "Kish Airline";
		compagnies["WA"] = "KLM Cityhopper";
		compagnies["XT"] = "KLM Exel";
		compagnies["KL"] = "KLM Royal Dutch Airlines";
		compagnies["7K"] = "Kogalymavia Air Company";
		compagnies["KE"] = "Korean Air";
		compagnies["7B"] = "Krasnojarsky Airlines ou KrasAir";
		compagnies["GW"] = "Kuban Airlines";
		compagnies["KU"] = "Kuwait Airways";
		compagnies["A0"] = "L'Avion";
		compagnies["LR"] = "Lacsa Lineas Aereas Costarricenses SA";
		compagnies["N7"] = "Lagunair";
		compagnies["LA"] = "Lan Airlines";
		compagnies["XL"] = "Lan Ecuador";
		compagnies["LP"] = "Lan Peru";
		compagnies["QV"] = "Lao Aviation";
		compagnies["MJ"] = "LAPA Lineas Aereas Privadas Argentinas";
		compagnies["L4"] = "Lauda Air Italia S.p.A.";
		compagnies["NG"] = "Lauda Air Luftfahrt AG";
		compagnies["LI"] = "Liat";
		compagnies["LN"] = "Libyan Arab Airlines";
		compagnies["PZ"] = "Lineas Aereas Paraguayas devenues TAM Mercosur";
		compagnies["TM"] = "Linhas Aereas de Mocambique";
		compagnies["JT"] = "Lion Air";
		compagnies["TE"] = "Lithuanian Airlines";
		compagnies["LM"] = "Livingston S.p.A.";
		compagnies["LB"] = "Lloyd Aereo Boliviano LAB";
		compagnies["LO"] = "Lot Polish Airlines";
		compagnies["LT"] = "LTU International Airways";
		compagnies["CL"] = "Lufthansa CityLine GmbH";
		compagnies["LG"] = "Luxair";
		compagnies["5V"] = "Lviv Airlines";
		compagnies["CC"] = "Macair Airlines";
		compagnies["DM"] = "Maersk Air";
		compagnies["H5"] = "Magadan Airlines";
		compagnies["W5"] = "Mahan Airlines";
		compagnies["MH"] = "Malaysia Airlines";
		compagnies["MA"] = "Malev Hungarian Airlines";
		compagnies["TF"] = "Malmo Aviation";
		compagnies["AE"] = "Mandarin Airlines";
		compagnies["MP"] = "Martinair Holland";
		compagnies["IN"] = "MAT Macedonian Airlines";
		compagnies["IG"] = "Meridiana S.p.A.";
		compagnies["YV"] = "Mesa Airlines";
		compagnies["XJ"] = "Mesaba Airlines";
		compagnies["MX"] = "Mexicana";
		compagnies["OM"] = "MIAT Mongolian Airlines Mongolie";
		compagnies["ME"] = "Middle East Airlines";
		compagnies["YX"] = "Midwest Airlines ou Midwest Connect";
		compagnies["AL"] = "Midwest Connect";
		compagnies["MB"] = "MNG Cargo Airlines";
		compagnies["YM"] = "Montenegro Airlines";
		compagnies["M9"] = "Motor Sich";
		compagnies["YW"] = "MyAir";
		compagnies["8I"] = "MyAir";
		compagnies["UB"] = "Myanmar Airways";
		compagnies["8M"] = "Myanmar Airways International";
		compagnies["VZ"] = "MyTravel Airways";
		compagnies["NV"] = "Nakanihon";
		compagnies["DV"] = "Nantucket Airlines";
		compagnies["CE"] = "Nationwide Airlines";
		compagnies["NO"] = "Neos";
		compagnies["D5"] = "NEPC Airlines";
		compagnies["HG"] = "Niki";
		compagnies["KZ"] = "Nippon Cargo Airlines";
		compagnies["NW"] = "Northwest Airlines";
		compagnies["BJ"] = "Nouvelair Tunisia";
		compagnies["N6"] = "Nuevo Continente";
		compagnies["UQ"] = "O'Connor Airlines";
		compagnies["CR"] = "OAG Worldwide";
		compagnies["BK"] = "OKAir";
		compagnies["OA"] = "Olympic Airlines";
		compagnies["WY"] = "Oman Air";
		compagnies["N3"] = "Omskavia Airlines";
		compagnies["6M"] = "On Air";
		compagnies["8Q"] = "Onur Air";
		compagnies["R2"] = "Orenburg Airlines";
		compagnies["QO"] = "Origin Pacific";
		compagnies["OL"] = "Ostfriesische Lufttransport GmbH";
		compagnies["BL"] = "Pacific Airlines";
		compagnies["PK"] = "Pakistan International Airlines";
		compagnies["PD"] = "Palau Micronesia Air";
		compagnies["PF"] = "Palestinian Airlines";
		compagnies["PR"] = "Philippine Airlines";
		compagnies["9R"] = "Phuket Air";
		compagnies["PU"] = "Pluna Lineas Aereas Uruguayas";
		compagnies["PH"] = "Polynesian Airlines";
		compagnies["NI"] = "Portugalia Companhia Portuguesa de";
		compagnies["FV"] = "Pulkovo Aviation Entreprise";
		compagnies["QF"] = "Qantas Airways";
		compagnies["QR"] = "Qatar Airways";
		compagnies["YS"] = "Regional";
		compagnies["FN"] = "Regional Airlines";
		compagnies["ZL"] = "Regional Express";
		compagnies["VJ"] = "Royal Air Cambodge";
		compagnies["AT"] = "Royal Air Maroc";
		compagnies["BI"] = "Royal Brunei Airlines";
		compagnies["RJ"] = "Royal Jordanian";
		compagnies["RA"] = "Royal Nepal Airlines Corporation";
		compagnies["ZC"] = "Royal Swazi National Airways Corp.";
		compagnies["R4"] = "Russia Airline";
		compagnies["WB"] = "Rwandair Express";
		compagnies["FR"] = "Ryanair";
		compagnies["FA"] = "Safair";
		compagnies["MM"] = "SAM";
		compagnies["E5"] = "Samara Airlines";
		compagnies["S3"] = "Santa Barbara Airlines";
		compagnies["6W"] = "Saravia";
		compagnies["HZ"] = "SAT Airlines ou Sakhalinskie Aviatrassy";
		compagnies["SP"] = "SATA Air Acores";
		compagnies["S4"] = "SATA Internacional";
		compagnies["SV"] = "Saudi Arabian Airlines";
		compagnies["SK"] = "Scandinavian Airlines";
		compagnies["AW"] = "Schreiner Airways";
		compagnies["CB"] = "Scot Airways";
		compagnies["BB"] = "Seaborne Airlines";
		compagnies["SC"] = "Shandong Airlines";
		compagnies["FM"] = "Shanghai Airlines Co. Ltd.";
		compagnies["ZH"] = "Shenzhen Airlines";
		compagnies["4G"] = "Shenzhen Airlines";
		compagnies["S7"] = "Siberia Airlines";
		compagnies["LJ"] = "Sierra National Airlines";
		compagnies["MI"] = "Silk Air";
		compagnies["SQ"] = "Singapore Airlines LTD.";
		compagnies["NE"] = "Sky Europe Airlines";
		compagnies["5P"] = "SkyEurope Airlines";
		compagnies["BC"] = "Skymark Airlines";
		compagnies["5G"] = "Skyservice Airlines";
		compagnies["JZ"] = "Skyways AB";
		compagnies["OO"] = "SkyWest Airlines";
		compagnies["QS"] = "Smart Wings";
		compagnies["SN"] = "SN Brussels Airlines";
		compagnies["Q7"] = "Sobelair";
		compagnies["8R"] = "SOL LINEAS AEREAS";
		compagnies["IE"] = "Solomon Airlines";
		compagnies["4Z"] = "South African Airlink";
		compagnies["SA"] = "South African Airways";
		compagnies["YB"] = "South African Express";
		compagnies["A4"] = "Southern Winds";
		compagnies["WN"] = "Southwest Airlines";
		compagnies["JK"] = "Spanair SA";
		compagnies["NK"] = "Spirit Airlines";
		compagnies["UL"] = "SriLankan Airlines";
		compagnies["SE"] = "Star Airlines";
		compagnies["NB"] = "Sterling Airways";
		compagnies["Z2"] = "Styrian Spirit";
		compagnies["SD"] = "Sudan Airways";
		compagnies["7L"] = "Sun d'Or International Airlines";
		compagnies["XQ"] = "SunExpress,";
		compagnies["WG"] = "Sunwing Airlines,";
		compagnies["PY"] = "Surinam Airways";
		compagnies["VD"] = "Swedjet Airways";
		compagnies["LX"] = "Swiss International Air Lines Ltd ou SWISS";
		compagnies["RB"] = "Syrian Arab Airlines";
		compagnies["DT"] = "TAAG Angola Airlines";
		compagnies["TA"] = "Taca International Airlines";
		compagnies["VR"] = "TACV Cabo Verde Airlines";
		compagnies["7J"] = "Tajikistan Airlines";
		compagnies["JJ"] = "TAM Linhas Aereas";
		compagnies["TQ"] = "Tandem Aero";
		compagnies["TP"] = "TAP Portugal";
		compagnies["RO"] = "Tarom";
		compagnies["U9"] = "Tatarstan JSC Aircompany";
		compagnies["T6"] = "Tavrey Airlines";
		compagnies["FD"] = "Thai Air Asia";
		compagnies["TG"] = "Thai Airways International";
		compagnies["MT"] = "Thomas Cook Airlines";
		compagnies["FQ"] = "Thomas Cook Airlines Belgium";
		compagnies["BY"] = "Thomsonfly ltd";
		compagnies["TR"] = "Tiger Airways";
		compagnies["3V"] = "TNT Airways SA";
		compagnies["TL"] = "Trans Mediterranean Airways";
		compagnies["AX"] = "Trans States Airlines";
		compagnies["UN"] = "Transaero Airlines";
		compagnies["GE"] = "Transasia Airways";
		compagnies["TO"] = "Transavia France";
		compagnies["HV"] = "Transavia Holland";
		compagnies["UG"] = "Tuninter";
		compagnies["TU"] = "Tunisair";
		compagnies["TK"] = "Turkish Airlines";
		compagnies["T5"] = "Turkmenistan Airlines";
		compagnies["T7"] = "Twin Jet";
		compagnies["VO"] = "Tyrolean Airways";
		compagnies["PS"] = "Ukraine International Airlines";
		compagnies["6Z"] = "Ukrainian Cargo Airways";
		compagnies["UF"] = "UM Airlines";
		compagnies["B7"] = "UNI Airways";
		compagnies["UA"] = "United Airlines Inc.";
		compagnies["UW"] = "Universal Airlines";
		compagnies["U6"] = "Ural Airlines";
		compagnies["US"] = "US Airways";
		compagnies["U5"] = "USA 3000 Airlines";
		compagnies["UT"] = "UTair";
		compagnies["HY"] = "Uzbekistan Airways";
		compagnies["RG"] = "Varig Brasil";
		compagnies["VP"] = "VASP";
		compagnies["VN"] = "Vietnam Airlines";
		compagnies["VS"] = "Virgin Atlantic Airways Ltd.";
		compagnies["DJ"] = "Virgin Blue et Pacific Blue";
		compagnies["TV"] = "Virgin Express";
		compagnies["XF"] = "Vladivostok Avia JSC";
		compagnies["VA"] = "Volare Web Volare Airlines SpA";
		compagnies["VI"] = "Volga-Dnepr Airline JSC";
		compagnies["WS"] = "WestJet";
		compagnies["WF"] = "Wideroe's Flyveselskap AS";
		compagnies["IV"] = "Wind Jet";
		compagnies["WM"] = "Windward Islands Airways ou Winair";
		compagnies["WU"] = "Wuhan Airlines";
		compagnies["MF"] = "Xiamen Airlines";
		compagnies["XW"] = "Xinhua Airlines";
		compagnies["YL"] = "Yamal Airlines";
		compagnies["IY"] = "Yemenia";
		compagnies["Q3"] = "Zambian Airways";
		compagnies["Z4"] = "Zoom Airlines";
				
	var code = document.getElementById('code').value;
	var code = code.toUpperCase();
	if (!code){
	return false;
	}
	else if (compagnies[code] == undefined)
	{	
		document.getElementById('code').value="";
		alert('Code non trouve');
		return false;
	}
	else
	{
	    document.getElementById('compagnie').value='Compagnie aerienne : ' + (compagnies[code]);
	}
}

var customarray = new Array();
customarray= Array('Acores','Afrique du Sud','Angleterre','Antilles','Antilles Neerlandaises','Aquitaine','Australie','Autriche','Auvergne','Bahamas','Baleares','Bali','Basse-Normandie','Belgique','Bourgogne','Bresil','Bretagne','Brunei','Bulgarie','Californie','Cambodge','Canada','Canaries','Cap Vert','Caraibes','Centre','Champagne-Ardenne','Chine','Chypre','Coree du Sud','Corse','Crete','Croatie','Cuba','Danemark','Ecosse','Egypte','Espagne','Estonie','Etats-Unis','Finlande','Floride','France','Franche-Comte','Grece','Guadeloupe','Guyane','Haute-Normandie','Hongrie','Ile Maurice','Ile-De-France','Inde','Indonesie','Irlande','Islande','Israel','Italie','Jamaique','Japon','Java','Jordanie','Kenya','Languedoc-Roussillon','Laos','Limousin','Lorraine','Louisiane','Luxembourg', 'Madagascar','Madere','Malaisie','Maldives','Malte','Maroc','Martinique','Mexique','Midi-Pyrenees','Nord-Pas-de-Calais','Norvege','Nouvelle-Caledonie', 'Nouvelle-Zelande','Pays de Galles','Pays de la Loire','Pays-Bas','Perou','Philippines','Picardie','Poitou-Charentes','Polynesie Francaise','Portugal','Provence-Alpes-Cote d\'Azur','Quebec','Rajasthan (Inde)','Republique Dominicaine','Republique Tcheque','Reunion','Rhone-Alpes','Roumanie','Royaume-Uni','Russie','Saint Vincent et les Grenadines','Sainte-Lucie','Sardaigne','Senegal','Seychelles','Sicile','Suede','Suisse','Tahiti','Taiwan','Tanzanie','Thailande','Toscane','Tunisie','Turquie','Vietnam','Wallis-et-Futuna','Zimbabwe');

//AJOUT BY BL le 14 avril 2008 pour autocomplete sur le menu

function actb(obj,ca){
	/* ---- Public Variables ---- */
	this.actb_timeOut = -1; // Autocomplete Timeout in ms (-1: autocomplete never time out)
	this.actb_lim = -1;    // Number of elements autocomplete can show (-1: no limit)
	this.actb_firstText = false; // should the auto complete be limited to the beginning of keyword?
	this.actb_mouse = true; // Enable Mouse Support
	this.actb_delimiter = new Array(';',',');  // Delimiter for multiple autocomplete. Set it to empty array for single autocomplete
	this.actb_startcheck = 2; // Show widget only after this number of characters is typed in.
	/* ---- Public Variables ---- */

	/* --- Styles --- */
	this.actb_bgColor = 'white';
	this.actb_textColor = 'black';
	this.actb_hColor = 'orange';
	this.actb_fFamily = 'Arial';
	this.actb_fSize = '11px';
	this.actb_hStyle = 'text-decoration:underline;font-weight="bold"';
	/* --- Styles --- */

	/* ---- Private Variables ---- */
	var actb_delimwords = new Array();
	var actb_cdelimword = 0;
	var actb_delimchar = new Array();
	var actb_display = false;
	var actb_pos = 0;
	var actb_total = 0;
	var actb_curr = null;
	var actb_rangeu = 0;
	var actb_ranged = 0;
	var actb_bool = new Array();
	var actb_pre = 0;
	var actb_toid;
	var actb_tomake = false;
	var actb_getpre = "";
	var actb_mouse_on_list = 1;
	var actb_kwcount = 0;
	var actb_caretmove = false;
	this.actb_keywords = new Array();
	/* ---- Private Variables---- */
	
	this.actb_keywords = ca;
	var actb_self = this;

	actb_curr = obj;
	
	addEvent(actb_curr,"focus",actb_setup);
	function actb_setup(){
		addEvent(document,"keydown",actb_checkkey);
		addEvent(actb_curr,"blur",actb_clear);
		addEvent(document,"keypress",actb_keypress);
	}

	function actb_clear(evt){
		if (!evt) evt = event;
		removeEvent(document,"keydown",actb_checkkey);
		removeEvent(actb_curr,"blur",actb_clear);
		removeEvent(document,"keypress",actb_keypress);
		actb_removedisp();
	}
	function actb_parse(n){
		if (actb_self.actb_delimiter.length > 0){
			var t = actb_delimwords[actb_cdelimword].trim().addslashes();
			var plen = actb_delimwords[actb_cdelimword].trim().length;
		}else{
			var t = actb_curr.value.addslashes();
			var plen = actb_curr.value.length;
		}
		var tobuild = '';
		var i;

		if (actb_self.actb_firstText){
			var re = new RegExp("^" + t, "i");
		}else{
			var re = new RegExp(t, "i");
		}
		var p = n.search(re);
				
		for (i=0;i<p;i++){
			tobuild += n.substr(i,1);
		}
		tobuild += "<font style='"+(actb_self.actb_hStyle)+"'>"
		for (i=p;i<plen+p;i++){
			tobuild += n.substr(i,1);
		}
		tobuild += "</font>";
			for (i=plen+p;i<n.length;i++){
			tobuild += n.substr(i,1);
		}
		return tobuild;
	}
	function actb_generate(){
		if (document.getElementById('tat_table')){ actb_display = false;document.body.removeChild(document.getElementById('tat_table')); } 
		if (actb_kwcount == 0){
			actb_display = false;
			return;
		}
		a = document.createElement('table');
		a.cellSpacing='1px';
		a.cellPadding='2px';
		a.style.position='absolute';
		a.style.top = eval(curTop(actb_curr) + actb_curr.offsetHeight) + "px";
		a.style.left = curLeft(actb_curr) + "px";
		a.style.backgroundColor=actb_self.actb_bgColor;
		a.id = 'tat_table';
		document.body.appendChild(a);
		var i;
		var first = true;
		var j = 1;
		if (actb_self.actb_mouse){
			a.onmouseout = actb_table_unfocus;
			a.onmouseover = actb_table_focus;
		}
		var counter = 0;
		for (i=0;i<actb_self.actb_keywords.length;i++){
			if (actb_bool[i]){
				counter++;
				r = a.insertRow(-1);
				if (first && !actb_tomake){
					r.style.backgroundColor = actb_self.actb_hColor;
					first = false;
					actb_pos = counter;
				}else if(actb_pre == i){
					r.style.backgroundColor = actb_self.actb_hColor;
					first = false;
					actb_pos = counter;
				}else{
					r.style.backgroundColor = actb_self.actb_bgColor;
				}
				r.id = 'tat_tr'+(j);
				c = r.insertCell(-1);
				c.style.color = actb_self.actb_textColor;
				c.style.fontFamily = actb_self.actb_fFamily;
				c.style.fontSize = actb_self.actb_fSize;
				c.innerHTML = actb_parse(actb_self.actb_keywords[i]);
				c.id = 'tat_td'+(j);
				c.setAttribute('pos',j);
				if (actb_self.actb_mouse){
					c.style.cursor = 'pointer';
					c.onclick=actb_mouseclick;
					c.onmouseover = actb_table_highlight;
				}
				j++;
			}
			if (j - 1 == actb_self.actb_lim && j < actb_total){
				r = a.insertRow(-1);
				r.style.backgroundColor = actb_self.actb_bgColor;
				c = r.insertCell(-1);
				c.style.color = actb_self.actb_textColor;
				c.style.fontFamily = 'arial narrow';
				c.style.fontSize = actb_self.actb_fSize;
				c.align='center';
				replaceHTML(c,'\\/');
				if (actb_self.actb_mouse){
					c.style.cursor = 'pointer';
					c.onclick = actb_mouse_down;
				}
				break;
			}
		}
		actb_rangeu = 1;
		actb_ranged = j-1;
		actb_display = true;
		if (actb_pos <= 0) actb_pos = 1;
	}
	function actb_remake(){
		document.body.removeChild(document.getElementById('tat_table'));
		a = document.createElement('table');
		a.cellSpacing='1px';
		a.cellPadding='2px';
		a.style.position='absolute';
		a.style.top = eval(curTop(actb_curr) + actb_curr.offsetHeight) + "px";
		a.style.left = curLeft(actb_curr) + "px";
		a.style.backgroundColor=actb_self.actb_bgColor;
		a.id = 'tat_table';
		if (actb_self.actb_mouse){
			a.onmouseout= actb_table_unfocus;
			a.onmouseover=actb_table_focus;
		}
		document.body.appendChild(a);
		var i;
		var first = true;
		var j = 1;
		if (actb_rangeu > 1){
			r = a.insertRow(-1);
			r.style.backgroundColor = actb_self.actb_bgColor;
			c = r.insertCell(-1);
			c.style.color = actb_self.actb_textColor;
			c.style.fontFamily = 'arial narrow';
			c.style.fontSize = actb_self.actb_fSize;
			c.align='center';
			replaceHTML(c,'/\\');
			if (actb_self.actb_mouse){
				c.style.cursor = 'pointer';
				c.onclick = actb_mouse_up;
			}
		}
		for (i=0;i<actb_self.actb_keywords.length;i++){
			if (actb_bool[i]){
				if (j >= actb_rangeu && j <= actb_ranged){
					r = a.insertRow(-1);
					r.style.backgroundColor = actb_self.actb_bgColor;
					r.id = 'tat_tr'+(j);
					c = r.insertCell(-1);
					c.style.color = actb_self.actb_textColor;
					c.style.fontFamily = actb_self.actb_fFamily;
					c.style.fontSize = actb_self.actb_fSize;
					c.innerHTML = actb_parse(actb_self.actb_keywords[i]);
					c.id = 'tat_td'+(j);
					c.setAttribute('pos',j);
					if (actb_self.actb_mouse){
						c.style.cursor = 'pointer';
						c.onclick=actb_mouseclick;
						c.onmouseover = actb_table_highlight;
					}
					j++;
				}else{
					j++;
				}
			}
			if (j > actb_ranged) break;
		}
		if (j-1 < actb_total){
			r = a.insertRow(-1);
			r.style.backgroundColor = actb_self.actb_bgColor;
			c = r.insertCell(-1);
			c.style.color = actb_self.actb_textColor;
			c.style.fontFamily = 'arial narrow';
			c.style.fontSize = actb_self.actb_fSize;
			c.align='center';
			replaceHTML(c,'\\/');
			if (actb_self.actb_mouse){
				c.style.cursor = 'pointer';
				c.onclick = actb_mouse_down;
			}
		}
	}
	function actb_goup(){
		if (!actb_display) return;
		if (actb_pos == 1) return;
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
		actb_pos--;
		if (actb_pos < actb_rangeu) actb_moveup();
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
	}
	function actb_godown(){
		if (!actb_display) return;
		if (actb_pos == actb_total) return;
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
		actb_pos++;
		if (actb_pos > actb_ranged) actb_movedown();
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
	}
	function actb_movedown(){
		actb_rangeu++;
		actb_ranged++;
		actb_remake();
	}
	function actb_moveup(){
		actb_rangeu--;
		actb_ranged--;
		actb_remake();
	}

	/* Mouse */
	function actb_mouse_down(){
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
		actb_pos++;
		actb_movedown();
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
		actb_curr.focus();
		actb_mouse_on_list = 0;
		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
	}
	function actb_mouse_up(evt){
		if (!evt) evt = event;
		if (evt.stopPropagation){
			evt.stopPropagation();
		}else{
			evt.cancelBubble = true;
		}
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
		actb_pos--;
		actb_moveup();
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
		actb_curr.focus();
		actb_mouse_on_list = 0;
		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list=0;actb_removedisp();},actb_self.actb_timeOut);
	}
	function actb_mouseclick(evt){
		if (!evt) evt = event;
		if (!actb_display) return;
		actb_mouse_on_list = 0;
		actb_pos = this.getAttribute('pos');
		actb_penter();
	}
	function actb_table_focus(){
		actb_mouse_on_list = 1;
	}
	function actb_table_unfocus(){
		actb_mouse_on_list = 0;
		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list = 0;actb_removedisp();},actb_self.actb_timeOut);
	}
	function actb_table_highlight(){
		actb_mouse_on_list = 1;
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_bgColor;
		actb_pos = this.getAttribute('pos');
		while (actb_pos < actb_rangeu) actb_moveup();
		while (actb_pos > actb_ranged) actb_movedown();
		document.getElementById('tat_tr'+actb_pos).style.backgroundColor = actb_self.actb_hColor;
		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list = 0;actb_removedisp();},actb_self.actb_timeOut);
	}
	/* ---- */

	function actb_insertword(a){
		if (actb_self.actb_delimiter.length > 0){
			str = '';
			l=0;
			for (i=0;i<actb_delimwords.length;i++){
				if (actb_cdelimword == i){
					prespace = postspace = '';
					gotbreak = false;
					for (j=0;j<actb_delimwords[i].length;++j){
						if (actb_delimwords[i].charAt(j) != ' '){
							gotbreak = true;
							break;
						}
						prespace += ' ';
					}
					for (j=actb_delimwords[i].length-1;j>=0;--j){
						if (actb_delimwords[i].charAt(j) != ' ') break;
						postspace += ' ';
					}
					str += prespace;
					str += a;
					l = str.length;
					if (gotbreak) str += postspace;
				}else{
					str += actb_delimwords[i];
				}
				if (i != actb_delimwords.length - 1){
					str += actb_delimchar[i];
				}
			}
			actb_curr.value = str;
			setCaret(actb_curr,l);
		}else{
			actb_curr.value = a;
		}
		actb_mouse_on_list = 0;
		actb_removedisp();
	}
	function actb_penter(){
		if (!actb_display) return;
		actb_display = false;
		var word = '';
		var c = 0;
		for (var i=0;i<=actb_self.actb_keywords.length;i++){
			if (actb_bool[i]) c++;
			if (c == actb_pos){
				word = actb_self.actb_keywords[i];
				break;
			}
		}
		actb_insertword(word);
		l = getCaretStart(actb_curr);
	}
	function actb_removedisp(){
		if (actb_mouse_on_list==0){
			actb_display = 0;
			if (document.getElementById('tat_table')){ document.body.removeChild(document.getElementById('tat_table')); }
			if (actb_toid) clearTimeout(actb_toid);
		}
	}
	function actb_keypress(e){
		if (actb_caretmove) stopEvent(e);
		return !actb_caretmove;
	}
	function actb_checkkey(evt){
		if (!evt) evt = event;
		a = evt.keyCode;
		caret_pos_start = getCaretStart(actb_curr);
		actb_caretmove = 0;
		switch (a){
			case 38:
				actb_goup();
				actb_caretmove = 1;
				return false;
				break;
			case 40:
				actb_godown();
				actb_caretmove = 1;
				return false;
				break;
			case 13: case 9:
				if (actb_display){
					actb_caretmove = 1;
					actb_penter();
					return false;
				}else{
					return true;
				}
				break;
			default:
				setTimeout(function(){actb_tocomplete(a)},50);
				break;
		}
	}

	function actb_tocomplete(kc){
		if (kc == 38 || kc == 40 || kc == 13) return;
		var i;
		if (actb_display){ 
			var word = 0;
			var c = 0;
			for (var i=0;i<=actb_self.actb_keywords.length;i++){
				if (actb_bool[i]) c++;
				if (c == actb_pos){
					word = i;
					break;
				}
			}
			actb_pre = word;
		}else{ actb_pre = -1};
		
		if (actb_curr.value == ''){
			actb_mouse_on_list = 0;
			actb_removedisp();
			return;
		}
		if (actb_self.actb_delimiter.length > 0){
			caret_pos_start = getCaretStart(actb_curr);
			caret_pos_end = getCaretEnd(actb_curr);
			
			delim_split = '';
			for (i=0;i<actb_self.actb_delimiter.length;i++){
				delim_split += actb_self.actb_delimiter[i];
			}
			delim_split = delim_split.addslashes();
			delim_split_rx = new RegExp("(["+delim_split+"])");
			c = 0;
			actb_delimwords = new Array();
			actb_delimwords[0] = '';
			for (i=0,j=actb_curr.value.length;i<actb_curr.value.length;i++,j--){
				if (actb_curr.value.substr(i,j).search(delim_split_rx) == 0){
					ma = actb_curr.value.substr(i,j).match(delim_split_rx);
					actb_delimchar[c] = ma[1];
					c++;
					actb_delimwords[c] = '';
				}else{
					actb_delimwords[c] += actb_curr.value.charAt(i);
				}
			}

			var l = 0;
			actb_cdelimword = -1;
			for (i=0;i<actb_delimwords.length;i++){
				if (caret_pos_end >= l && caret_pos_end <= l + actb_delimwords[i].length){
					actb_cdelimword = i;
				}
				l+=actb_delimwords[i].length + 1;
			}
			var ot = actb_delimwords[actb_cdelimword].trim(); 
			var t = actb_delimwords[actb_cdelimword].addslashes().trim();
		}else{
			var ot = actb_curr.value;
			var t = actb_curr.value.addslashes();
		}
		if (ot.length == 0){
			actb_mouse_on_list = 0;
			actb_removedisp();
		}
		if (ot.length < actb_self.actb_startcheck) return this;
		if (actb_self.actb_firstText){
			var re = new RegExp("^" + t, "i");
		}else{
			var re = new RegExp(t, "i");
		}

		actb_total = 0;
		actb_tomake = false;
		actb_kwcount = 0;
		for (i=0;i<actb_self.actb_keywords.length;i++){
			actb_bool[i] = false;
			if (re.test(actb_self.actb_keywords[i])){
				actb_total++;
				actb_bool[i] = true;
				actb_kwcount++;
				if (actb_pre == i) actb_tomake = true;
			}
		}

		if (actb_toid) clearTimeout(actb_toid);
		if (actb_self.actb_timeOut > 0) actb_toid = setTimeout(function(){actb_mouse_on_list = 0;actb_removedisp();},actb_self.actb_timeOut);
		actb_generate();
	}
	return this;
}

function changeChecked(checkbox, valeur){				
	for(var i=0; i < document.f.elements[checkbox].length ; i++){
		if (i == valeur) {
			document.f.elements[checkbox][i].checked = true;
		}
		else {
			document.f.elements[checkbox][i].checked = false;
		}
	}
}

function ChangementOnglet(IdClick){
	var IdArray = new Array('div_form_onglet', 'div_form_onglet2', 'div_form_onglet3', 'div_form_onglet4');
	for(var i = 0; i<IdArray.length; i++){
		if(IdArray[i]==IdClick){
			document.getElementById(IdArray[i]).style.display = "block";
		}
		else {
			document.getElementById(IdArray[i]).style.display = "none";
		}
	}
}

function redirection(url){
	var villedep = document.getElementById("villesdepart").value;
	window.location.replace(url+villedep);
	
}

function erreur(ErreurImage)
{
	ErreurImage.src="http://www.advences.com/share/hotels2/gt.gif";
}

function erreurhotel(ErreurImage, nbre)
{
	ErreurImage.src="http://test.bourse-des-voyages.com/images/hotels/nh"+nbre+".jpg";
	//ErreurImage.className="erreurImage";
}

function affich_div_hotel(idDiv, nbre){
	document.getElementById(idDiv).style.display="block";
	recup_pos(document.getElementById(idDiv), nbre);
}

function recup_pos(div_pos,  nbre){
	div_pos.style.top = ((nbre-1)*180+630)+"px";
	//div_pos.style.top = "200px";
	div_pos.style.left = "830px";
	//div_pos.style.left = "200px";
}

function fermer(idDiv){
	document.getElementById(idDiv).style.display = 'none';
}

function hotel_valid(ville, codehotel, nbre){
	var depart = document.getElementById('DateWEDep_hotel'+nbre);
	var retour = document.getElementById('DateWERet_hotel'+nbre);
	var nb_adulte = document.getElementById('Adultes_hotel'+nbre).value;
	var nb_enfant = document.getElementById('Enfants_hotel'+nbre).value;
	var nb_bebe = document.getElementById('Bebes_hotel'+nbre).value;
	var message_erreur = "";
	var bool = true;
	if(depart.value==""||retour.value==""){
		if(depart.value=="") message_erreur += "Vous n'avez pas rempli la date de depart\n";
		if(retour.value=="") message_erreur += "Vous n'avez pas rempli la date de retour";
		bool = false;
	}
	else if(!is_date(depart.value)||!is_date(retour.value)){
		if(!is_date(depart.value)) message_erreur += "Vous n'avez pas rempli la date de depart au bon format : 'dd/mm/aaaa'\n";
		if(!is_date(retour.value)) message_erreur += "Vous n'avez pas rempli la date de retour au bon format : 'dd/mm/aaaa'";
		bool = false;
	}
	else{
		var DD = depart.value.substring(0,2);
		var MD = depart.value.substring(3,5);
		var AD = depart.value.substring(6,10);
		var DR = retour.value.substring(0,2);
		var MR = retour.value.substring(3,5);
		var AR = retour.value.substring(6,10);
		var url = "http://www.bourse-des-voyages.com/bdv4/reservation-hotels.php?Destination="+ville+"&Adultes="+nb_adulte+"&Enfants="+nb_enfant+"&Bebes="+nb_bebe+"&DEPART_YYYY_H="+AD+"&DEPART_MM_H="+MD+"&DEPART_DD_H="+DD+"&RETOUR_YYYY_H="+AR+"&RETOUR_MM_H="+MR+"&RETOUR_DD_H="+DR+"&CRID="+codehotel;
		window.location.replace(url);
	}
	if(!bool) alert(message_erreur);
}

function is_date(date){
	if(!isNumeric(date.substring(0,2))||!isNumeric(date.substring(3,5))||!isNumeric(date.substring(6,10))||date.substring(2,3)!="/"||date.substring(5,6)!="/")
		return false;
	else return true;
}

function isNumeric(sText){ 
	var ValidChars = "0123456789."; 
	var IsNumber=true; 
	var Char; 
	for (i = 0; i < sText.length && IsNumber == true; i++){ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1){ 
			IsNumber = false; 
		} 
	} 
	return IsNumber; 
}

function changement_couleur_onglet3(){
	if(document.location.href == "http://www.bourse-des-voyages.com/ellipse-voyages/"||document.location.href == "http://test.bourse-des-voyages.com/ellipse-voyages/"||document.location.href == "http://bourse-des-voyages.com/ellipse-voyages/"){
		document.getElementById("onglet3").id="onglet3_actif";
		document.getElementById("onglet1_actif").id="onglet1";
	}
}
