
var requiredVersion=6;var actualVersion=0;var useRedirect=false;var flashPage=""
var noFlashPage=""
var upgradePage=""
var flash2Installed=false;var flash3Installed=false;var flash4Installed=false;var flash5Installed=false;var flash6Installed=false;var flash7Installed=false;var flash8Installed=false;var flash9Installed=false;var maxVersion=9;var actualVersion=0;var hasRightVersion=false;var jsVersion=1.0;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;jsVersion=1.1;if(isIE&&isWin){document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');document.write('on error resume next \n');document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');document.write('flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');document.write('<\/SCR'+'IPT\> \n');}
function detectFlash(){if(navigator.plugins){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var isVersion2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+isVersion2].description;var flashVersion=parseInt(flashDescription.substring(16));flash2Installed=flashVersion==2;flash3Installed=flashVersion==3;flash4Installed=flashVersion==4;flash5Installed=flashVersion==5;flash6Installed=flashVersion==6;flash7Installed=flashVersion==7;flash8Installed=flashVersion==8;flash9Installed=flashVersion>=9;}}
for(var i=2;i<=maxVersion;i++){if(eval("flash"+i+"Installed")==true)actualVersion=i;}
if(navigator.userAgent.indexOf("WebTV")!=-1)actualVersion=4;if(actualVersion>=requiredVersion){if(useRedirect){if(jsVersion>1.0){window.location.replace(flashPage);}else{window.location=flashPage;}}
hasRightVersion=true;}else{if(useRedirect){if(jsVersion>1.0){window.location.replace((actualVersion>=2)?upgradePage:noFlashPage);}else{window.location=(actualVersion>=2)?upgradePage:noFlashPage;}}}}
detectFlash();function write_flash(fobj,fvers,fobjw,fobjh,falt){if(actualVersion>=fvers){var prm="";if(write_flash.arguments.length>5){for(i=5;i<write_flash.arguments.length;i++)
prm+=write_flash.arguments[i]+'&';}
prm=prm.substring(0,prm.length-1);var oeTags='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'
+' width="'+fobjw+'" height="'+fobjh+'">'
+'<param name="movie" value="'+fobj+'" />'
+'<param name="quality" value="high" />'
+'<param name="scale" value="exactfit" />'
+'<param name="wmode" value="transparent" />'
+'<param name="flashvars" value="'+prm+'" />'
+'<embed src="'+fobj+'" quality="high" wmode=transparent flashvars="'+prm+'" width="'+fobjw+'" height="'+fobjh+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
+'</object>';document.write(oeTags);}else{var alternateContent='<img src="'+falt+'" alt=""/>';document.write(alternateContent);}}
function xt_clic(typecl,section,page,url,nvlle)
{Xt_r=document.referrer;Xt_h=new Date();xt_img=new Image();Xt_i='http://logi6.xiti.com/hit.xiti?s=124894&s2='+section;Xt_i+='&p='+page+'&clic='+typecl+'&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();if(parseFloat(navigator.appVersion)>=4)
{Xiti_s=screen;Xt_i+='&r='+Xiti_s.width+'x'+Xiti_s.height+'x'+Xiti_s.pixelDepth+'x'+Xiti_s.colorDepth;}
Xt_i+='&ref='+Xt_r.replace(/[<>"]/g,'').replace(/&/g,'$');xt_img.src=Xt_i;if((url!=null)&&(url!=undefined))
{if((nvlle=='')||(nvlle==null)){document.location=url;}else{xfen=window.open(url,'xfen','');xfen.focus();}}
else
{return;}}
function auto_fill(o,i){if(i){if(o.refv==null)
o.refv=o.value;if(o.value==o.refv)
o.value='';o.select();}
else{if(o.value=='')
o.value=o.refv;}}
function auto_fill_password(o,i){if(i){if(o.refv==null)
o.refv=o.value;if(o.value==o.refv)
o.value='';o.type='password';o.select();}
else{if(o.value=='')
{o.value=o.refv;o.type='text';}}}
function textareaLimiter(field,maxlimit)
{if(field.value.length>maxlimit)
field.value=field.value.substring(0,maxlimit);}
var curmap=null;function show_map(o,mid,dir){if(document.layers)
return;theobj=document.getElementById(mid);theobj.frm=theobj.getElementsByTagName("DIV").item(0);rcoords=findxy(document.getElementById(o.parentNode.name));coords=o.coords.split(",");if(curmap!=null){if(curmap==theobj)
return;else
hide_map();}
if(dir==1){theobj.style.left=rcoords.x+parseInt(coords[2])+3+'px';theobj.style.top=rcoords.y+parseInt(coords[1])+1+'px';}
else{theobj.style.left=rcoords.x+parseInt(coords[0])-theobj.offsetWidth-2+'px';theobj.style.top=rcoords.y+parseInt(coords[1])+1+'px';}
theobj.frm.style.height=theobj.offsetHeight-2+'px';theobj.frm.style.width=theobj.offsetWidth-2+'px';theobj.style.visibility='visible';curmap=theobj;}
function hide_map(){if(curmap==null)
return;curmap.style.visibility='hidden';curmap=null;}
function getmapxy(oid){var rd={x:0,y:0};o=document.getElementById(oid).getBoungingClietRect();rd.x+=o.left;rd.y+=o.top;return rd;}
function findxy(o){var rd={x:0,y:0};tmp=o;rd.x+=o.offsetLeft;rd.y+=o.offsetTop;if(SAF)
return rd;if(!MACIE5){while(o=o.offsetParent){rd.x+=o.offsetLeft;rd.y+=o.offsetTop;}}
else{while((o=o.offsetParent)&&(o.offsetParent.tagName!="BODY")){rd.x+=o.offsetLeft;rd.y+=o.offsetTop;}}
return rd;}
function popopen(u,w,h,l,t){var rcpop=window.open(u,'rcpop','width='+w+', height='+h+', top='+t+', left='+l+', location=no, menubar=no, resizable=0, scrollbars=yes, status=no, toolbar=no, fullscreen=no');rcpop.focus();}
function _print(){if(window.print)
window.print();return false;}
var SAF=(navigator.userAgent.toLowerCase().indexOf('safari')>=0);var MACIE5=(navigator.appVersion.indexOf("Mac")!=-1)&&(document.all)&&(navigator.appVersion.indexOf("5.")!=-1);function init_button_MAC(){spcol=document.getElementsByTagName("SPAN");for(i=0;i<spcol.length;i++){if(spcol[i].className.indexOf('button')>=0){spcol[i].onmouseover=function(){this.refImage=this.style.backgroundImage;this.style.backgroundImage='url(p.gif)';this.childNodes[0].className='on';}
spcol[i].onmouseout=function(){this.childNodes[0].className='off';this.style.backgroundImage=this.refImage;}}}}
if(MACIE5){document.write('<link href="RelaisChateaux/mcover.css" rel="stylesheet" type="text/css" />');onload=init_button_MAC;}
document.write('<style type="text/css">@import "RelaisChateaux/noscript.css";</style>');function submitFormAvailability(nomForm)
{document.forms[nomForm].elements['arriveMonth'].value=document.forms[nomForm].elements['date_mois'].options[document.forms[nomForm].elements['date_mois'].selectedIndex].value-1;document.forms[nomForm].elements['arriveDate'].value=document.forms[nomForm].elements['date_jour'].options[document.forms[nomForm].elements['date_jour'].selectedIndex].value;document.forms[nomForm].elements['arriveYear'].value=document.forms[nomForm].elements['date_annee'].options[document.forms[nomForm].elements['date_annee'].selectedIndex].value;var dateArrivee=new Date(document.forms[nomForm].elements['arriveYear'].value,document.forms[nomForm].elements['arriveMonth'].value,document.forms[nomForm].elements['arriveDate'].value);dateDepart=DateAdd(dateArrivee,parseInt(document.forms[nomForm].elements['arriveDate'].value,10),parseInt(document.forms[nomForm].elements['arriveMonth'].value,10),parseInt(document.forms[nomForm].elements['arriveYear'].value,10));alert(dateArrivee.toString()+' - - '+dateDepart.toString());document.forms[nomForm].elements['departMonth'].value=document.forms[nomForm].elements['date_mois'].options[document.forms[nomForm].elements['date_mois'].selectedIndex].value;document.forms[nomForm].elements['departDate'].value=document.forms[nomForm].elements['date_jour'].options[document.forms[nomForm].elements['date_jour'].selectedIndex].value;document.forms[nomForm].elements['departYear'].value=document.forms[nomForm].elements['date_annee'].options[document.forms[nomForm].elements['date_annee'].selectedIndex].value;alert(document.forms[nomForm].elements['arriveMonth'].value+' -- '+document.forms[nomForm].elements['arriveDate'].value+' -- '+document.forms[nomForm].elements['arriveYear'].value);document.forms[nomForm].submit();}
function DateAdd(startDate,numDays,numMonths,numYears)
{var returnDate=new Date(startDate.getTime());var yearsToAdd=numYears;var month=returnDate.getMonth()+numMonths;if(month>11)
{yearsToAdd=Math.floor((month+1)/12);month-=12*yearsToAdd;yearsToAdd+=numYears;}
returnDate.setMonth(month);returnDate.setFullYear(returnDate.getFullYear()+yearsToAdd);returnDate.setTime(returnDate.getTime()+60000*60*24*numDays);return returnDate;}
function printPage(){if(window.print)
window.print()
else
alert("Désolé, votre navigateur ne supporte pas cette fonction.");}
function addFav(message){if(document.all)
window.external.AddFavorite(location.href,document.title);else
alert(message);}
function controle(str,type,champs){switch(type){case"email":re=new RegExp("^([0-9a-zA-Z-_.]+)(@{1})([0-9a-zA-Z-_.]+)([.]{1})([a-zA-Z]{2,4})$");break;case"num":re=new RegExp("^([0-9]*)$");break;case"texte":re=new RegExp("^([\\x20-\\x7Fàâéèêîôùûçüïöäëñõ])*$");break;case"textarea":re=new RegExp("^([\\x20-\\x7F\\xA0\\xAB\\xBB\\x9C\\xB2\\xA3\\xA7\\xA4\\n\\ràâéèêîôùûçüïöäëñõÀÂÉÈÊÎÔÙÛÇÜÏÖÄËÑÕ€])*$");break;case"alnum":re=new RegExp("^([0-9a-zA-Z\(\)_ \-])*$");break;case"alpha":re=new RegExp("^([a-zA-Z\(\)_ \-])*$");break;case"lien":re=new RegExp("^([0-9a-zA-Z_./\:\-\?\&])*$");break;case"float":re=new RegExp("^([0-9]*[.]*[0-9]*)$");break
case"reference":re=new RegExp("^([0-9]*[-]*[0-9]*[-]*[0-9]*)$");break
default:re='';break}
if(re!=''){if(!re.test(str)&&str!=""){return false;}else{return true;}
return true;}}
function _go(u){location.href=u;return false;}
var curform=null;function init_forms(){var formcol=document.getElementsByTagName("FORM");for(f=0;f<formcol.length;f++){if(formcol[f].className=="allowentkey"){elmcol=get_form_elements(formcol[f]);for(i=0;i<elmcol.length;i++)
elmcol[i].onkeydown=function(e){if(e==null)
e=window.event;curform=this.prt;if(e.keyCode==13)
curform.submit();}}}}
function get_form_elements(f){var ret=new Array();var icol=f.getElementsByTagName("INPUT");for(i=0;i<icol.length;i++){icol[i].prt=f;ret[ret.length]=icol[i];}
var scol=f.getElementsByTagName("SELECT");for(i=0;i<scol.length;i++){scol[i].prt=f;ret[ret.length]=scol[i];}
return ret;}
if(MACIE5){document.write('<link href="mcover.css" rel="stylesheet" type="text/css" />');onload=init_button_MAC;}
var TN=null,TNSP=null,TNA=null,TNH=0;function IE_init_topnav(){if(!document.all)
return;TN=document.getElementById("topnav");TNSP=TN.getElementsByTagName("SPAN");TNA=TN.getElementsByTagName("A");TN.onresize=IE_match_topnav;}
function IE_match_topnav(){TNH=TN.offsetHeight;for(i=0;i<TNSP.length;i++)
TNSP[i].style.marginTop=TNA[i].offsetHeight-TNH;}
onload=function(){init_forms();IE_init_topnav();}
sas_switch=1;sas_tmstp=Math.round(Math.random()*10000000000);sas_masterflag=1;function SmartAdServer(sas_pageid,sas_formatid,sas_target){if(sas_switch==1)
{if(sas_masterflag==1){sas_masterflag=0;sas_master='M';}else{sas_master='S';};document.write('<SCR'+'IPT SRC="http://www.smartadserver.com/call/pubj/'+sas_pageid+'/'+sas_formatid+'/'+sas_master+'/'+sas_tmstp+'/'+escape(sas_target)+'?"></SCR'+'IPT>');}}
var stick=null;var stick_val=243;var stick_high=0;var stick_spd=0.1;if(document.all)
stick_spd=0.05;function stick_move(){stick.style.top=Math.round(stick_val)+'px';stick_val+=(stick_high-stick_val)*stick_spd;if(Math.round(stick_val)<=stick_high){stick.style.top=stick_high+'px';return;}
window.setTimeout("stick_move()",10);}
function stick_init(){stick=document.getElementById("SE_sticker");window.setTimeout("stick_move()",1000);}
function hide_sticker(){document.getElementById("SE_sticker").className="SE_sticker_hide";}
var forfaits=new Array();var forfait_pause=6000;function forfait_init(){fname=arguments[0];forfaits[fname]=new Array();for(i=1;i<arguments.length;i++){forfaits[fname][i]=new Image();forfaits[fname][i].src=arguments[i];}
forfaits[fname].imobj=document.getElementById("SE_banner_flash").getElementsByTagName("IMG")[0];forfaits[fname].imind=1;forfait_rotate(fname);stick_init();}
function forfait_rotate(fname){ind=forfaits[fname].imind;forfaits[fname].imobj.src=forfaits[fname][ind++].src;forfaits[fname].imind=(ind==(forfaits[fname].length))?1:ind;window.setTimeout("forfait_rotate('"+fname+"')",forfait_pause);}
function etab_move(){if(arguments.length==0){window.setTimeout("etab_move(0)",10);return;}
globobj=document.getElementById("SE_etab");statobj=globobj.getElementsByTagName("UL")[0];licol=statobj.getElementsByTagName("LI");curli=null;for(i=0;i<licol.length;i++){if(licol[i].className=='on'){curli=licol[i];break;}}
if(curli==null)
return;if((document.all)&&(typeof document.body.style.maxHeight=="undefined")){}
dynobj=document.getElementById("SE_etab_list");dynobjM=Number(dynobj.style.marginTop.substr(0,dynobj.style.marginTop.lastIndexOf("px")));globobjH=parseInt(globobj.offsetHeight);statobjH=parseInt(statobj.offsetHeight);dynobjH=parseInt(dynobj.offsetHeight);dynobjT=parseInt(dynobj.offsetTop);mtopmax=globobjH-dynobjH-dynobjT-14+dynobjM;mtop=parseInt(parseInt(curli.offsetTop)-parseInt(dynobj.offsetTop)-dynobjH/2+parseInt(curli.offsetHeight)/2)+dynobjM;;dynobj.style.marginTop=Math.min(Math.max(0,mtop),mtopmax)+'px';}
function getElementsByClass(searchClass,node,tag){var classElements=new Array();if(node==null)
node=document;if(tag==null)
tag='*';var els=node.getElementsByTagName(tag);var elsLen=els.length;var pattern=new RegExp("(^|\\s)"+searchClass+"(\\s|$)");for(i=0,j=0;i<elsLen;i++){if(pattern.test(els[i].className)){classElements[j]=els[i];j++;}}
return classElements;}
function showHideOnglet(indice,objet){if(document.getElementById('gcContenuOnglet1')){document.getElementById('gcContenuOnglet1').style.display='none'};if(document.getElementById('gcContenuOnglet2')){document.getElementById('gcContenuOnglet2').style.display='none'};if(document.getElementById('gcContenuOnglet3')){document.getElementById('gcContenuOnglet3').style.display='none'};if(document.getElementById('gcContenuOnglet4')){document.getElementById('gcContenuOnglet4').style.display='none'};if(eval("document.getElementById('gcContenuOnglet"+indice+"')")){eval("document.getElementById('gcContenuOnglet"+indice+"').style.display='block'");}
if(document.getElementById('gcOngletCourant').className=="gcDernierOngletActifChef"){document.getElementById('gcOngletCourant').className="gcDernierOngletChef";}else{document.getElementById('gcOngletCourant').className="";}
document.getElementById('gcOngletCourant').id="";if(objet.parentNode.className=="gcDernierOngletChef"){objet.parentNode.className="gcDernierOngletActifChef";}else{objet.parentNode.className="gcOngletActifChef";}
objet.parentNode.id="gcOngletCourant";return false;}
premiereFoisArticles=true;premiereFoisRecettes=true;premiereFoisLivres=true;gcLienPlusArticles="";gcLienPlusRecettes="";gcLienPlusLivres="";function showHideBlocs(idBloc,lien,texteMoins){if(premiereFoisArticles&&idBloc=="gcBlocPlusArticles"){premiereFoisArticles=false;gcLienPlusArticles=lien.innerHTML;}
if(premiereFoisRecettes&&idBloc=="gcBlocPlusRecettes"){premiereFoisRecettes=false;gcLienPlusRecettes=lien.innerHTML;}
if(premiereFoisLivres&&idBloc=="gcBlocPlusLivres"){premiereFoisLivres=false;gcLienPlusLivres=lien.innerHTML;}
if(document.getElementById(idBloc).style.display=="none"){document.getElementById(idBloc).style.display="block";lien.innerHTML=texteMoins;lien.style.backgroundImage="url('/RelaisChateaux/img/chefs/fleche_bleue_haut.png')";}else{document.getElementById(idBloc).style.display="none";if(idBloc=="gcBlocPlusArticles"){lien.innerHTML=gcLienPlusArticles;}
if(idBloc=="gcBlocPlusRecettes"){lien.innerHTML=gcLienPlusRecettes;}
if(idBloc=="gcBlocPlusLivres"){lien.innerHTML=gcLienPlusLivres;}
lien.style.backgroundImage="url('/RelaisChateaux/img/chefs/fleche_bleue_bas.png')";}}
function overVignette(lien){if(navigator.userAgent.indexOf("MSIE 6")!=-1){lien.parentNode.className="gcVideoEnCoursChef";lien.childNodes[0].style.display="block";}
return false;}
function outVignette(lien){if(navigator.userAgent.indexOf("MSIE 6")!=-1){if(lien.id!="gcVideoEnCours"){lien.parentNode.className="";lien.childNodes[0].style.display="none";}}
return false;}
function showMap(booleen){if(booleen){document.getElementById('gcBlocGoogleEarth').style.display='block';document.getElementById('gcBlocLienTerre').style.display='none';}else{document.getElementById('gcBlocGoogleEarth').style.display='none';document.getElementById('gcBlocLienTerre').style.display='block';}
return false;}
tabLiens=Array();selCour=selCour2=null;intervalle=true;function initCalendarLinks(){synxis=$("#synxis").val();srp_code=$("#srp_code").val();dislang=$("#dislang").val();$("#check_availZZZZ").click(function(){action=$('#form_avail').attr('action');arrive=$('#date_jour_arrivee').val()+'/'+$('#date_mois_arrivee').val()+'/'+$('#date_annee_arrivee').val();rooms=$('#nb_chambres').val();nights=$('#nb_nuit').val();adult=$('#adults').val();switch(dislang){case'fr':locale='fr-FR';break;case'en':locale='en-US';arrive=$('#date_mois_arrivee').val()+'/'+$('#date_jour_arrivee').val()+'/'+$('#date_annee_arrivee').val();;break;case'es':locale='es-ES';break;case'de':locale='de-DE';break;case'it':locale='it-IT';break;case'pt':locale='pt-BR';break;case'jp':locale='jp-JP';break;}
action+='&hotel='+synxis+'&Nights='+nights+'&adult='+adult+'&Rooms='+rooms+'&start=1'+'&Rate='+srp_code+'&arrive='+arrive+'&locale='+locale+'&shell=corporate&template=corporate&src=RC_WEBSITE&Rate='+srp_code;window.location=action;return false;});$("#prev_year").click(function(){offset=$('#offset_month').val();offset=parseInt(offset)-3;offset=offset<0?0:offset;$('#offset_month').val(offset);$.ajax({type:"GET",url:"spip.php?page=cal_dispo&lang="+dislang+"&synxis="+synxis+"&srp_code="+srp_code+"&offset_month="+offset,success:function(msg){$("#replaceCalendar").html(msg);initCalendarLinks();}});return false;});$("#prev_month").click(function(){offset=$('#offset_month').val();offset--;$('#offset_month').val(offset);$.ajax({type:"GET",url:"spip.php?page=cal_dispo&lang="+dislang+"&synxis="+synxis+"&srp_code="+srp_code+"&offset_month="+offset,success:function(msg){$("#replaceCalendar").html(msg);initCalendarLinks();}});return false;});$("#next_month").click(function(){offset=$('#offset_month').val();offset++;$('#offset_month').val(offset);$.ajax({type:"GET",url:"spip.php?page=cal_dispo&lang="+dislang+"&synxis="+synxis+"&srp_code="+srp_code+"&offset_month="+offset,success:function(msg){$("#replaceCalendar").html(msg);initCalendarLinks();}});return false;});$("#next_year").click(function(){offset=$('#offset_month').val();offset=parseInt(offset)+3;offset=offset>10?10:offset;$('#offset_month').val(offset);$.ajax({type:"GET",url:"spip.php?page=cal_dispo&lang="+dislang+"&synxis="+synxis+"&srp_code="+srp_code+"&offset_month="+offset,success:function(msg){$("#replaceCalendar").html(msg);initCalendarLinks();}});return false;});tabLiens=document.getElementById('gcTableCalendrier').getElementsByTagName("A");for(i=0;i<tabLiens.length;i++){tabLiens[i].onclick=function(){var dateArr=this.title;var duree=1;var lang=document.getElementById('hid_lang').value;var arrivee=dateArr;if(document.formDetailOffre.dateArrivee.value==''){document.formDetailOffre.dateArrivee.value=dateArr;}else{if(document.formDetailOffre.dateDepart.value==''){document.formDetailOffre.dateDepart.value=dateArr;var strDate1=document.formDetailOffre.dateArrivee.value;var strDate2=document.formDetailOffre.dateDepart.value;if(lang=='en'){datDate1=Date.parse(strDate1);datDate2=Date.parse(strDate2);}
else{var tabDate1=strDate1.split('/');var tabDate2=strDate2.split('/');datDate1=Date.parse(tabDate1[1]+'/'+tabDate1[0]+'/'+tabDate1[2]);datDate2=Date.parse(tabDate2[1]+'/'+tabDate2[0]+'/'+tabDate2[2]);}
dateDiff=((datDate1-datDate2)/(24*60*60*1000));duree=Math.abs(dateDiff);duree=duree>15?15:duree;if(dateDiff<0){arrivee=document.formDetailOffre.dateArrivee.value;}}else{document.formDetailOffre.dateArrivee.value=dateArr;document.formDetailOffre.dateDepart.value='';}}
var tabTemp=arrivee.split('/');if(lang=='en'){document.getElementById('date_jour_arrivee').selectedIndex=tabTemp[1]-1;document.getElementById('date_mois_arrivee').selectedIndex=tabTemp[0]-1;}
else{document.getElementById('date_jour_arrivee').selectedIndex=tabTemp[0]-1;document.getElementById('date_mois_arrivee').selectedIndex=tabTemp[1]-1;}
document.getElementById('nb_nuit').selectedIndex=duree-1;if(intervalle){for(j=0;j<tabLiens.length;j++){tabLiens[j].className='';}
this.className='gcSelection';for(j=0;j<tabLiens.length;j++){if(tabLiens[j].className=="gcSelection"&&tabLiens[j+1]){tabLiens[j+1].className='gcSelection2';selCour2=tabLiens[j+1];break;}}
selCour=this;intervalle=false;}else{if(this.className!="gcSelection"){for(j=0;j<tabLiens.length;j++){if(tabLiens[j].className=="gcSelection2"){tabLiens[j].className='';}}
this.className='gcSelection';dansIntervalle=false;for(j=0;j<tabLiens.length;j++){if(tabLiens[j].className=="gcSelection"){if(!dansIntervalle){selCour=tabLiens[j];dansIntervalle=true;}else{selCour2=tabLiens[j];dansIntervalle=false;}}else{if(dansIntervalle){tabLiens[j].className='gcSelection';}}}
intervalle=true;}}
return false;};}}<!--
var xtpif="0",xtpim="0",xtpiq="0",xtpir="0",xtpip="0";function xtHex(n){str="";do{r=n%16;n=n>>4;switch(r){case 10:str='A'+str;break;case 11:str='B'+str;break;case 12:str='C'+str;break;case 13:str='D'+str;break;case 14:str='E'+str;break;case 15:str='F'+str;break;default:str=r+str;break;}}while(n>=1);return str;}
function xtcQTv(s){intg=parseInt(s);if(isNaN(intg)||intg<0)return"";hex=xtHex(intg);if(hex.length<3)return"";hex=hex.substring(0,1)+"."+hex.substring(1,2)+"."+hex.substring(2,3);return hex;}
xn=navigator.plugins;if(xn&&xn.length){xnok=true;}
else{xnok=false;document.write("<object id='xtRealObj' style='display: none' classid='clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA'></object>");}
if(!xnok)
{chaine='<SC'+'RIPT LANGUAGE="VBScript">\n';chaine+='On error resume next\n';chaine+='xtpir = xtRealObj.GetVersionInfo() \n';chaine+='if xtpir = "" Then \n';chaine+='set xtpirO = CreateObject("rmocx.RealPlayer G2 Control") \n';chaine+='if IsObject(xtpirO) then \n';chaine+='xtpir = xtpirO.GetVersionInfo() \n';chaine+='End if \n';chaine+='End if \n';chaine+='set xtpiq0 = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1") \n';chaine+='If IsObject(xtpiq0) then \n';chaine+='xtpiq = escape(xtcQTv(xtpiq0.QuickTimeVersion)) \n';chaine+='End if \n';chaine+='set xtmpo = CreateObject("WMPlayer.OCX.7") \n';chaine+='If IsObject(xtmpo) then \n';chaine+='xtpim = xtmpo.versionInfo \n';chaine+='End if \n';chaine+='</script> \n';document.write(chaine);}
if(xnok){for(var xi=0;xi<xn.length;xi++){if((xn[xi].name.indexOf('Flash Player')!=-1))
{xtpif="1";if(xn[xi].description.split('Shockwave Flash ')[1].length)
{xtpif=xn[xi].description.split('Shockwave Flash ')[1].substring(0,3);}}
if((xn[xi].name.indexOf('Shockwave Flash')!=-1)&&(xtpif==0))
{xtpif="1";if(xn[xi].description.split('Shockwave Flash ')[1].length)
{xtpif=xn[xi].description.split('Shockwave Flash ')[1].substring(0,3);}}
if(xn[xi].name.indexOf('Windows Media Player')!=-1){xtpim="1";}
if(xn[xi].name.indexOf('QuickTime')!=-1)
{if(xn[xi].name.split('QuickTime Plug-in ')[1].length)
{xtpiq=xn[xi].name.split('QuickTime Plug-in ')[1].substring(0,3);}}
if(xn[xi].name.indexOf('RealPlayer ')!=-1)
{if(xn[xi].description.length)
{xtpir=xn[xi].description.substring(0,3);}}}}
else if(window.ActiveXObject){for(var xi=0;xi<20;xi++){try{if(eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+xi+"');")){xtpif=xi;}}catch(e){};}}
if(window.xtparam!=null){window.xtparam+="&pif="+xtpif+"&pir="+xtpir+"&pim="+xtpim+"&piq="+xtpiq}
else{window.xtparam="&pif="+xtpif+"&pir="+xtpir+"&pim="+xtpim+"&piq="+xtpiq};
function check_synxis_form(myform){if(myform.Hotel.value>0){if(myform.Locale.value=="en-US"){myform.arrive.value=myform.date_mois.value+"/"+myform.date_jour.value+"/"+myform.date_annee.value;}
else{myform.arrive.value=myform.date_jour.value+"/"+myform.date_mois.value+"/"+myform.date_annee.value;}
_gaq.push(['_linkByPost',myform]);return true;}
else{str=myform.listeID.value;str=str.replace(/AAAA/gi,"|");url="/spip.php?rc_list="+str+"&lang="+myform.lang.value+"&ong=rech_crit_res&id_rubrique=4&date_jour="+myform.date_jour.value+"&date_mois="+myform.date_mois.value+"&date_annee="+myform.date_annee.value+"&country=0&region=0&numberOfNights="+myform.Nights.value+"&numberOfRooms="+myform.Rooms.value+"&adults="+myform.adult.value+"&change=change&page=recherche&verif_dispo=1";document.location=url;return false;}}
function check_synxis_form_SRP(myform){myform.Nights.value=myform.nb_nuit.value;if(myform.Locale.value=="en-US"){myform.arrive.value=myform.date_mois_arrivee.value+"/"+myform.date_jour_arrivee.value+"/"+myform.date_annee_arrivee.value;}
else{myform.arrive.value=myform.date_jour_arrivee.value+"/"+myform.date_mois_arrivee.value+"/"+myform.date_annee_arrivee.value;}
_gaq.push(['_linkByPost',myform]);return true;}
