var ns = (document.layers);var ie = (document.all);var mz = (!document.all && document.getElementById);function getBrowser(){  return navigator.appName + navigator.appVersion;}function changeCssClass(theID, theClass){  document.getElementById(theID).className=theClass;}function searchFlightsFormSubmit(){  document.flightsSearch.submit();}function closeLayers(){  if((document.getElementById("idFrameAirlines")) && (document.getElementById("idFrameAirlines").style.display=='block')){      document.getElementById("idFrameAirlines").style.display='none';  }  if((document.getElementById("idFrameCityDeparture")) && (document.getElementById("idFrameCityDeparture").style.display=='block')){      document.getElementById("idFrameCityDeparture").style.display='none';  }  if((document.getElementById("idFrameCityArrival")) && (document.getElementById("idFrameCityArrival").style.display=='block')){      document.getElementById("idFrameCityArrival").style.display='none';  }  if((document.getElementById("idCalendarFrame")) && (document.getElementById("idCalendarFrame").style.display=='inline')){      document.getElementById("idCalendarFrame").style.display='none';  }}function showFrameAirlines(idPosition){  var theFrame=window.frames["idFrameAirlines"];  if((theFrame.name)!="idFrameAirlines"){     alert(no_aerolineas);     return;  }  var frameIsLoaded = theFrame.frameIsLoaded;  if((frameIsLoaded==null) || (frameIsLoaded==false)){     alert(no_aerolineas);     return;  }  theFrame.showTheAirlinesFrame(document.getElementById(idPosition), 1);}function showFrameCityDeparture(idPosition){  var theFrame = window.frames.idFrameCityDeparture;  var frameIsLoaded = theFrame.frameIsLoaded;  if((frameIsLoaded == null) || (frameIsLoaded == false))  {     alert(no_city_orig);     return;  }    theFrame.idFrame = "idFrameCityDeparture";  theFrame.showTheFrame(document.getElementById(idPosition), "idFrameCityDeparture", "departureCity");}function showFrameCityArrival(idPosition){  var theFrame = window.frames.idFrameCityArrival;  var frameIsLoaded = theFrame.frameIsLoaded;  if((frameIsLoaded == null) || (frameIsLoaded == false))  {     alert(no_city_dest);     return;  }    theFrame.idFrame = "idFrameCityArrival";  theFrame.showTheFrame(document.getElementById(idPosition), "idFrameCityArrival", "arrivalCity");}function showFrameCity(idPosition, fldDest){	var theFrame = window.frames["idFrameCity"];	var frameIsLoaded = theFrame.frameIsLoaded;		if(theFrame.name != "idFrameCity")	{		alert(no_city_dest);		return;	}		if(frameIsLoaded == null || frameIsLoaded == false)	{		alert(no_city_dest);		return;	}		//theFrame.showFrameCity(idPosition, fldDest);	theFrame.idFrame = "idFrameCity";	theFrame.showTheFrame(document.getElementById(idPosition), "idFrameCity", fldDest);}function showFrameCalendar(idPosition, dMin, dMax, campo, frame, isExt){  var theFrame=window.frames["idCalendarFrame"];      	if ((document.flightsSearch) && (document.flightsSearch.depDate.value=='Je suis flexible' && campo!='depDate')){  		alert("Si vous cliquez sur le bouton Rechercher, le 'chercheur de prix' vous montrera les dates de retour disponibles.");  		return;	}  if((theFrame.name)!="idCalendarFrame"){     alert(no_calendario);     return;  }  var frameIsLoaded = theFrame.frameIsLoaded;  if((frameIsLoaded==null) || (frameIsLoaded==false)){     alert(no_calendario);     return;  }    theFrame.showTheCalendarFrame(document.getElementById(idPosition), dMin, dMax, campo, frame);}function openPopUp(url, name, userprops) {  props = 'resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=no,top=100,left=100,screenX=100,screenY=100,' + userprops;  var w = window.open(url, name, props);}function makeHomePage(){  if(ie){     document.body.style.behavior='url(#default#homepage)';     document.body.setHomePage(document.location.href);  }else if(mz){  }}function addToBookmarks(){  if(ie){     window.external.AddFavorite(document.location.href,'eDreams');  }else if(mz){  }}function closeAlertBox(elem) {  if(document.getElementById(elem)){     document.getElementById(elem).style.display = 'none';  }  if(document.getElementById(elem + 'Shim')){     document.getElementById(elem + 'Shim').style.display = 'none';  }}function showAlertBox(elem, obj, ofy){  if((document.getElementById(elem)) && (document.getElementById(elem + 'Shim')) && (document.getElementById(obj))){      aBox = document.getElementById(elem);      aShim = document.getElementById(elem + 'Shim');  //workaround: msie div over select      var sheight = aShim.style.height.substring(0, (aShim.style.height.length - 2));      if(isNaN(sheight)){         sheight = 150;      }      if(isNaN(ofy)) ofy = 35;  //default value for y-offset      aBox.style.top = findOffsetTop(document.getElementById(obj)) - ofy - sheight + 'px';      aBox.style.left = findOffsetLeft(document.getElementById(obj)) + 'px';      aShim.style.top = findOffsetTop(document.getElementById(obj)) - ofy - sheight + 2 + 'px';      aShim.style.left = findOffsetLeft(document.getElementById(obj)) + 2 + 'px';      aShim.style.zIndex = aBox.style.zIndex - 1;      aBox.style.display = 'inline';      if(_sbShowBGIframe()){         aShim.style.display = 'inline';      }  }}function showDynAlertBox(elem, obj, posX, posY, posZ){  if((document.getElementById(elem)) && (document.getElementById(elem + 'Shim')) && (document.getElementById(obj))){      var aBox = document.getElementById(elem);      var aShim = document.getElementById(elem + 'Shim');  //workaround: msie div over select      aBox.style.top = findOffsetTop(document.getElementById(obj)) + posY/1 + 'px';      aBox.style.left = findOffsetLeft(document.getElementById(obj)) + posX/1 + 'px';      aShim.style.top = findOffsetTop(document.getElementById(obj)) + posY/1 + 'px';      aShim.style.left = findOffsetLeft(document.getElementById(obj)) + posX/1 + 'px';      aBox.style.display = 'inline';      if(_sbShowBGIframe()){         aShim.style.display = 'inline';      }  }}function findOffsetLeft(element){  return findOffset(element, "offsetLeft");}function findOffsetTop(element){  return findOffset(element, "offsetTop");}function findOffset(element, type){  var os = 0;  while(element) {     os += element[type];     element = element.offsetParent;  }  return os;}function _sbShowBGIframe(){  return ( window.opera ) ? false : true;}function openHelpWindow(url) {  props = 'width=500,height=530,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=no,top=100,left=100,screenX=100,screenY=100';  var w = window.open(url, 'help', props);}function submitFormLoadSwoosh(){  document.getElementById('edreamsScreen').style.display="none";  document.getElementById('waitScreen').style.display="block";  document.getElementById('waitScreen').style.visibility="visible";  window.scrollTo(1,1);  return true;}function cssChangeStyleDisplay(inDiv, inValue){	document.getElementById(inDiv).style.display=inValue;}