if(!Array.prototype.push){Array.prototype.push=function(){var l=this.length;for(var i=0;i<arguments.length;++i){this[l+i]=arguments[i];}return this.length;};}if(!Array.prototype.pop){Array.prototype.pop=function(){if(this.length===0){return null;}var t=this[this.length-1];--this.length;return t;};}
if(!Function.prototype.apply){ Function.prototype.apply=function(o,p){if(!o){o=window;}if(!p){p=[];}var a=[];for(var i=0;i<p.length;++i){a[i]='p['+i+']';}o.__apply__=this;var r=eval('o.__apply__('+a.join(',')+')');o.__apply__=null;return r;};}if(!Function.prototype.call){ Function.prototype.call=function(s){var a=[];for(var i=1;i<arguments.length;++i){a[i-1]=arguments[i];}return this.apply(s,a);};}Function.prototype.bind=function(o){var m=this;var a=arguments;return function(){var p=[];for(var i=0;i<arguments.length;++i){p.push(arguments[i]);}for(var j=1;j<a.length;++j){p.push(a[j]);}m.apply(o,p);};};Function.prototype.bindAsEventListener=function(o){var m=this;return function(e){m.call(o,e||window.event);};};Function.EMPTY=function(){};
if(typeof EventListener=="undefined"){ var EventListener={};}EventListener.patch=function(o){if(!o||o.addEventListener){ return;}var e=EventListener._;if(o.prototype){if(o.prototype.addEventListener){ return;}o.prototype.__refObj=o;o.prototype.addEventListener=e.A;o.prototype.removeEventListener=e.R;o.prototype.dispatchEvent=e.D;}else{if(o.addEventListener){ return;}o.__refObj=o;o.addEventListener=e.A;o.removeEventListener=e.R;o.dispatchEvent=e.D;}};EventListener._={ D:function(e,ev){if(!this._events){ return;}var es=this._events[e];if(!es){return true;}for(var i=0,l=es.length;i<l;++i){  var f=es[i];if(typeof(f)=="function"&&f.call(this,ev)===false){return false;}}return true;}, A:function(e,f,p){if(!f){return;}if(!this._events){this._events=[];}if(!this._events[e]){this._events[e]=[];var fo=this.__refObj["on"+e];if(fo){this._events[e].push(fo);}this.__refObj["on"+e]=new Function("ev","if(!ev){ev = event;}return this.dispatchEvent(\x27"+e+"\x27,ev);");}this._events[e].push(f);}, R:function(e,f,p){if(!f||!this._events[e]){return;}var fs=this._events[e];for(var i=0;i<fs.length;++i){if(fs[i]===f){fs[i]=null;}}}};EventListener.patch(window);EventListener.patch(document);
var ArrayUtil={ addAll:function( a, s){if(!a){return;}for(var i=0,l=s.length;i<l;++i){a.push(s[i]);}}, forEach:function( a, f, c){if(!a){return;}c=c||window;for(var i=0,l=a.length;i<l;++i){f.call(c,a[i],i,a);}}, indexOf:function( a, v, i){if(!a){return;}for(i=i||0;i<a.length;++i){if(a[i]===v){return i;}}return-1;}};
var XPathUtil={  RE1:/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/,RE2:/\s+/,getElementsBySelector:function( s, d){if(!d){d=document;} var v0=s.split(',');var founds=[];for(var i0=0;i0<v0.length;++i0){var tokens=v0[i0].split(' ');var currentContext=[d];for(var i=0;i<tokens.length;++i){var bits,tagName,found,elements;token=tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');if(token.indexOf('#')>-1){ bits=token.split('#');tagName=bits[0];var id=bits[1];var element=document.getElementById(id);if(!element||tagName&&element.nodeName.toLowerCase()!=tagName){ currentContext=[];break;} currentContext=[element];continue;}if(token.indexOf('.')>-1){ bits=token.split('.');tagName=bits[0];var className=bits[1];if(!tagName){tagName='*';} found=[];for(var h=0;h<currentContext.length;h++){if(tagName=='*'){elements=XPathUtil.getAllChildren(currentContext[h]);}else{elements=currentContext[h].getElementsByTagName(tagName);}ArrayUtil.addAll(found,elements);}currentContext=[];for(var k=0;k<found.length;k++){if(found[k].className&&found[k].className.match(new RegExp('\x5Cb'+className+'\x5Cb'))){currentContext.push(found[k]);}}continue;} if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){tagName=RegExp.$1;var attrName=RegExp.$2;var attrOperator=RegExp.$3;var attrValue=RegExp.$4;if(!tagName){tagName='*';} found=[];for(var h0=0;h0<currentContext.length;++h0){if(tagName=='*'){elements=XPathUtil.getAllChildren(currentContext[h0]);}else{elements=currentContext[h0].getElementsByTagName(tagName);}ArrayUtil.addAll(found,elements);}currentContext=[];var checkFunction; switch(attrOperator){case '=': checkFunction=function(e){return(e.getAttribute(attrName)==attrValue);};break;case '~': checkFunction=function(e){return(e.getAttribute(attrName).match(new RegExp('\x5Cb'+attrValue+'\x5Cb')));};break;case '|': checkFunction=function(e){return(e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?')));};break;case '^': checkFunction=function(e){return(e.getAttribute(attrName).indexOf(attrValue)===0);};break;case '$': checkFunction=function(e){return(e.getAttribute(attrName).lastIndexOf(attrValue)==e.getAttribute(attrName).length-attrValue.length);};break;case '*': checkFunction=function(e){return(e.getAttribute(attrName).indexOf(attrValue)>-1);};break;default: checkFunction=function(e){return e.getAttribute(attrName);};}currentContext=[];for(var k1=0;k1<found.length;++k1){if(checkFunction(found[k1])){currentContext.push(found[k1]);}} continue;}if(!currentContext[0]){currentContext=[];break;} tagName=token;found=[];for(var h2=0;h2<currentContext.length;++h2){elements=currentContext[h2].getElementsByTagName(tagName);ArrayUtil.addAll(found,elements);}currentContext=found;}ArrayUtil.addAll(founds,currentContext);}return founds;},getParentByNodeName:function(o,t){t=t.toLowerCase();var r=o;while(r&&r.nodeName&&r.nodeName.toLowerCase()!=t){r=r.parentNode;}return r;},getNextSiblingByNodeName:function(o,t){t=t.toLowerCase();var r=o;while(r&&r.nodeName&&r.nodeName.toLowerCase()!=t){r=r.nextSibling;}return r;},getFirstChildByNodeName:function(o,t){t=t.toLowerCase();var c=o.childNodes;for(var i=0,l=c.length;i<l;++i){if(c[i]&&c[i].nodeName&&c[i].nodeName.toLowerCase()==t){return c[i];}}return null;},getChildrenByNodeName:function(o,t){if(!o){return[];} var elementParts=t.split("@");t=elementParts[0].toLowerCase();var attributs=[];for(var k=1;k<elementParts.length;++k){var a=elementParts[k].split("=");attributs.push([a[0].toLowerCase(),a[1]]);}var result=[];var childNodes=o.childNodes;for(var i=0;i<childNodes.length;++i){if(childNodes[i]&&childNodes[i].nodeName&&childNodes[i].nodeName.toLowerCase()==t){ var ok=true;for(var j=0;j<attributs.length;++j){var attributeValue=null;if(childNodes[i].getAttributeNode){if(childNodes[i].getAttributeNode(attributs[j][0])){attributeValue=childNodes[i].getAttributeNode(attributs[j][0]).value;}}else if(childNodes[i].getAttribute){attributeValue=childNodes[i].getAttribute(attributs[j][0]);}ok=false;if(attributeValue!==null&&typeof(attributeValue)!="undefined"&&attributeValue==attributs[j][1]){ok=true;}else{ok=false;break;}}if(ok){result[result.length]=childNodes[i];}}}return result;},getChildren:function(o){var childNodes=o.childNodes;var result=[];for(var i=0;i<childNodes.length;++i){if(childNodes[i].nodeType==1){result.push(childNodes[i]);}}return result;},getElementsByXPath:function(xPath,root){var result=[];if(typeof(root)=="undefined"){root=document.getElementsByNodeName("body")[0];}var indexSlash=xPath.indexOf("/");if(indexSlash===0){xPath=xPath.substring(1,xPath.length);indexSlash=xPath.indexOf("/");}var element="";var otherElements="";if(indexSlash!=-1){element=xPath.substring(0,indexSlash);otherElements=xPath.substring(indexSlash+1,xPath.length);}else{element=xPath.substring(0,xPath.length);} elements=XPathUtil.getChildrenByNodeName(root,element);if(otherElements!==""){for(var i=0;i<elements.length;++i){result.addAll(XPathUtil.getElementsByXPath(otherElements,elements[i]));}}else{for(var j=0;j<elements.length;++j){result.push(elements[j]);}}return result;},getIndex:function(o){var c=XPathUtil.getChildren(o.parentNode);for(var i=0,l=c.length;i<l;++i){if(c[i]==o){return i;}}return-1;},getAllChildren:function(e){ return e.all?e.all:e.getElementsByTagName('*');}};
function I18N(b){this.setBundleRessource(b);}I18N.prototype={ get:function(k){var m=this.br[k];if(typeof(m)=="undefined"||m===null){ return "";}if(typeof(m)!="string"){return m;}for(var i=1,l=arguments.length;i<l;++i){m=m.replace(new RegExp("\x5C{"+(i-1)+"\x5C}","g"),arguments[i]);} m=m.replace(I18N.R[0],"");return m;},     setBundleRessource:function( b, e){if(!b){b=[];}if(e&&this.brDef){ for(var l in this.brDef){if(typeof(l)!="string"||typeof(this.brDef[l])!="object"||!b[l]){continue;}for(var r in this.brDef[l]){if(typeof(r)!="string"||typeof(this.brDef[l][r])!="string"||typeof(b[l][r])!="undefined"){continue;}b[l][r]=this.brDef[l][r];}}} this.brDef=b; this.br=b[I18N.getLang()];if(!this.br){  this.br=b[I18N.defLang];}if(!this.br){  for(var i in b){this.br=b[i];break;}}if(!this.br){  this.br=[];}}}; I18N.defLang="fr_FR"; I18N.lang=null;I18N.getLang=function(){var s=I18N,l=I18N.lang;if(!l){ l=document.getElementsByTagName("html")[0].lang;if(!l){ l=navigator.language;} if(!l){l=navigator.browserLanguage;}I18N.lang=l=l.replace(I18N.R[1],"_").split("_")[0];}return l;}; I18N.R=[(/{\d+}/g),(/\W/g)]; I18N.setup=function( o, f, e){if(!o){return;}if(!o.i18nDef){o.i18nDef={};}if(o.i18n&&!f){ return;}if(!o.i18n||e){o.i18n=new I18N(o.i18nDef);}else{o.i18n.setBundleRessource(o.i18nDef,e);}if(o.i18nSetup){o.i18nSetup(f);}};
var HtmlUtil={ getAbsolutePos:function( o){var r={x:0,y:0};while(o){r.x+=o.offsetLeft;r.y+=o.offsetTop;o=o.offsetParent;}return r;}, favoris:function( title, url){if(window.sidebar&&window.sidebar.addPanel){ window.sidebar.addPanel(title,url,'');}else if(window.external&&typeof window.external.AddFavorite!="undefined"){ window.external.AddFavorite(url,title);}}};
if(typeof HTMLElement=="undefined"){  HTMLElement=function(){}; HTMLElement.patch=function(o){if(!o){return;}if(o._HTMLElement_patch){ return o;}o._HTMLElement_patch=true;for(var i in HTMLElement.prototype){o[i]=HTMLElement.prototype[i];}return o;};}else{HTMLElement.patch=function(o){return o;};} HTMLElement.prototype.getAbsolutePos=function(){HtmlUtil.getAbsolutePos(this);}; HTMLElement.prototype.getAbsoluteLeftPos=function(){return HtmlUtil.getAbsolutePos(this).x;}; HTMLElement.prototype.getAbsoluteTopPos=function(){return HtmlUtil.getAbsolutePos(this).y;};
var CUi={ _:function(className,obj){return(function( o, opt){if(!o||o["_x"+className]){return;}var c=window[className];this.constructor=c; I18N.setup(c);  EventListener.patch(o); EventListener.patch(this);HTMLElement.patch(o);this.el=o;this.el.className+=" CUi_"+className;this.el["_"+className]=this;this.opt=opt?opt:{};if(this._){ this._();}});},create:function(n,d){var o=CUi._(n);for(var p in d){o[p]=d[p];}o=window[n]=o;o.className=n; o.i18nDef={}; if(o.init){o.init();}return o;}};
var ObjectUtil={ forEach:function( o, f, c){if(!o){return;}c=c||o;for(var p in o){f.call(c,o[p],p,o);}},extend:function(s,d){for(var p in s){d[p]=s[p];}return s;}};
var UiBuilder=CUi.create("UiBuilder",{prototype:{ _:function(){this.list={_d:[]};this.timer={};}, register:function( o){if(!o){return;}if(o.push){for(var i=0;i<o.length;++i){this.register(o[i]);}return;}else if(!o.selectors){return;}if(o.isValid&&o.isValid()===false){return;}var v=o.selectors,s=o.starter,l=this.list,d=o.delay,e=this;if(!d){d=20;}if(!s){s="_d";}else if(!l[s]){l[s]=[];}ObjectUtil.forEach(v,function(def,sel){l[s][sel]=def;},this);if(s!="_d"){this.timer[s]=setInterval(function(){e.runStarter(s);},d);}}, runStarter:function( s, f){if(this.timer[s]!==null&&(document.getElementById(s)||f)){clearInterval(this.timer[s]);this.timer[s]=null;this.build(s);}}, runStarters:function(f){ObjectUtil.forEach(this.timer,function(o,l){this.runStarter(l,f);},this);}, build:function( s){var o=this.list[s||'_d'];for(var e in o){var l=XPathUtil.getElementsBySelector(e,this.el);if(!l){continue;}for(var i=0;i<l.length;++i){if(!l[i]){continue;}if(o[e](l[i],l)===false){break;}}}},getPagePath:function(){var e=this.el;if(!e._pagePath){ var M=e.getElementsByTagName("meta");for(var i=0,m;(m=M[i]);++i){if(m.httpEquiv=="Page-Path"||m.name=="Page-Path"){e._pagePath=m.content;break;}}}return e._pagePath;},getSite:function(){var e=this.el;if(!e._site){ var M=e.getElementsByTagName("meta");for(var i=0,m;(m=M[i]);++i){if(m.httpEquiv=="Page-Site"||m.name=="Page-Site"){e._site=m.content;break;}}}return e._site;},getCountry:function(){var e=this.el;if(!e._country){ var M=e.getElementsByTagName("meta");for(var i=0,m;(m=M[i]);++i){if(m.httpEquiv=="country"||m.name=="country"){e._country=m.content;break;}}}return e._country;},getAgency:function(){var e=this.el;if(!e._agency){ var M=e.getElementsByTagName("meta");for(var i=0,m;(m=M[i]);++i){if(m.httpEquiv=="agency"||m.name=="agency"){e._agency=m.content;break;}}}return e._agency;}}});if(typeof uiBuilder=="undefined"){ uiBuilder=new UiBuilder(document);window.addEventListener("load",function(){uiBuilder.runStarters(true);uiBuilder.build();},false);}
var header={STATIC:{applyRFRR:function(o,param1,param2){var urlLink=o.href;var urlCurrent=window.location.href;if(urlLink.indexOf('?',0)==-1){urlLink+="?rfrr=";if(urlCurrent.indexOf('/leisure/fr/launch/home/',0)!=-1){urlLink+=param1;}else{urlLink+=param2;}}else{var urlParam=urlLink.slice(urlLink.indexOf('?',0)+1,urlLink.length);urlLink=urlLink.slice(0,urlLink.indexOf('?',0)+1); var paramToSplit=urlParam.split("\x26");for(n=0;n<paramToSplit.length;n++){if(paramToSplit[n].slice(0,4)=='rfrr'){urlLink+="rfrr=";if(urlCurrent.indexOf('/leisure/fr/launch/home/',0)!=-1){urlLink+=param1;}else{urlLink+=param2;}}else{urlLink+=paramToSplit[n];}if((n+1)<paramToSplit.length){urlLink+="\x26";}}}o.href=urlLink;}},uiDef:{starter:"l_foot",selectors:{"#l_head li":function(o){if(o.childNodes[1]){var ul=o.childNodes[1];if(ul.tagName=="UL"){o.onmouseover=function(){ul.className="niveau_2 hover";};o.onmouseout=function(){ul.className="niveau_2";};}}}, "#a_weekend":function(o){header.STATIC.applyRFRR(o,'-9463','-3173');},"#a_holidays":function(o){header.STATIC.applyRFRR(o,'-9464','-3174');},"#a_ski":function(o){header.STATIC.applyRFRR(o,'-9466','-3176');},"#a_france":function(o){header.STATIC.applyRFRR(o,'-9468','-3178');},"#a_hotel":function(o){header.STATIC.applyRFRR(o,'-9461','-3171');},"#a_fly":function(o){header.STATIC.applyRFRR(o,'-9460','-3170');},"#a_car":function(o){header.STATIC.applyRFRR(o,'-9462','-3172');},"#a_leisures":function(o){header.STATIC.applyRFRR(o,'-9467','-3177');},"#a_promo":function(o){header.STATIC.applyRFRR(o,'-9465','-3175');}, "#nli_f_fly a":function(o){header.STATIC.applyRFRR(o,'-9460','-3170');},"#nli_f_flyDiscount a":function(o){header.STATIC.applyRFRR(o,'-9446','-3179');},"#nli_f_car a":function(o){header.STATIC.applyRFRR(o,'-9462','-3172');},"#nli_f_ski a":function(o){header.STATIC.applyRFRR(o,'-9466','-3176');},"#nli_f_hotel a":function(o){header.STATIC.applyRFRR(o,'-9461','-3171');},"#nli_f_weekend a":function(o){header.STATIC.applyRFRR(o,'-9463','-3173');},"#nli_f_holidays a":function(o){header.STATIC.applyRFRR(o,'-9464','-3174');},"#nli_f_france a":function(o){header.STATIC.applyRFRR(o,'-30045','-3178');},"#nli_f_leisures a":function(o){header.STATIC.applyRFRR(o,'-9467','-3177');},"#nli_f_promo a":function(o){header.STATIC.applyRFRR(o,'-9465','-3175');}, "#d_panier #d_KisDeconnect a#pp_KisDeconnect":function(o){new PopupOpener(o,{width:500,height:300,resizable:true,scrollbars:true,top:50,left:100});}}}};uiBuilder.register(header.uiDef);
function corners_456(e,o){o=o?o:{};var oOuter,oI1,oI2; oOuter=document.createElement('div');oOuter.className=e.className; if(e.getAttribute("id")){tempId=e.id;e.removeAttribute('id');oOuter.setAttribute('id','');oOuter.id=tempId;} e.className='i3';e.parentNode.replaceChild(oOuter,e); oI1=document.createElement('div');oI1.className='i1';oOuter.appendChild(oI1);oI2=document.createElement('div');oI2.className='i2';oI1.appendChild(oI2); oI2.appendChild(e); var R=corners_456._;R.insertTop(oOuter);R.insertBottom(oOuter);}corners_456._={insertTop:function(obj){var oOuter,oInner; oOuter=document.createElement("div");oOuter.className="cornerTop"; oInner=document.createElement("div");oOuter.appendChild(oInner);obj.insertBefore(oOuter,obj.firstChild);},insertBottom:function(obj){var oOuter,oInner; oOuter=document.createElement("div");oOuter.className="cornerBottom"; oInner=document.createElement("div");oOuter.appendChild(oInner);obj.appendChild(oOuter);}};
var p_456={uiDef:{selectors:{".corners_456":function(o){new corners_456(o,{});}}}};uiBuilder.register(p_456.uiDef);
function Is(){var n=navigator; var a=n.userAgent.toLowerCase(),t=this;function c(v){return a.indexOf(v)!=-1;}  t.major=parseInt(n.appVersion,10);t.minor=parseFloat(n.appVersion);t.gecko=c('gecko');t.mac=c("mac");if(c("msie")&&!c("opera")){t.ie=true;t.ie3=t.major<4;t.ie4=t.major==4&&c("msie 4");t.ie4up=t.major>=4;t.ie5=t.major==4&&c("msie 5.0");t.ie5_5=t.major==4&&c("msie 5.5");t.ie5up=!t.ie3&&!t.ie4;t.ie5_5up=!t.ie3&&!t.ie4&&!t.ie5;t.ie6=t.major==4&&c("msie 6.");t.ie6up=!t.ie3&&!t.ie4&&!t.ie5&&!t.ie5_5;t.ie7=t.ie6up&&c("msie 7.");t.ie8=t.ie6up&&c("msie 8.");}else if(c("opera")){t.opera=true;t.opera2=c("opera 2")||c("opera/2");t.opera3=c("opera 3")||c("opera/3");t.opera4=c("opera 4")||c("opera/4");t.opera5=c("opera 5")||c("opera/5");t.opera5up=!t.opera2&&!t.opera3&&!t.opera4;}else if(c("mozilla")){if(navigator.userAgent.toLowerCase().indexOf("firefox/2")>-1){t.ff2=true;}}else{ if(/chrome/i.test(a)){t.chrome=/chrome/i.test(a);}else{t.safari=/safari/i.test(a); t.khtml=/konqueror|safari|khtml/i.test(a);}}  if(c('mozilla')&&!c('spoofer')&&!c('compatible')&&!c('opera')&&!c('webtv')&&!c('hotjava')){t.nav=true;t.nav2=t.major==2;t.nav3=t.major==3;t.nav4=t.major==4;t.nav4up=t.major>=4;t.navonly=c(";nav")||c("; nav");t.nav6=t.major==5;t.nav7=t.major>=5&&t.major<8;t.nav8=t.major>=8;}t.webtv=c("webtv");t.TVNavigator=c("navio")||c("navio_aoltv");t.AOLTV=t.TVNavigator;   if(c("aol")){t.aol=true;t.aol3=t.ie3;t.aol4=t.ie4;t.aol5=c("aol 5");t.aol6=c("aol 6");}if(c("hotjava")){t.hotjava=true;t.hotjava3=t.major==3;t.hotjava3up=t.major>=3;} if(t.nav2||t.ie3){t.js=1.0;}else if(t.nav3){t.js=1.1;}else if(t.opera5up){t.js=1.3;}else if(t.opera){t.js=1.1;}else if((t.nav4&&t.minor<=4.05)||t.ie4){t.js=1.2;}else if((t.nav4&&t.minor>4.05)||t.ie5){t.js=1.3;}else if(t.hotjava3up){t.js=1.4;}else if(t.nav6||t.gecko){t.js=1.5;}     else if(t.nav6up){t.js=1.5;} else if(t.ie5up){t.js=1.3;} else{t.js=0.0;} t.win=c("win")||c("16bit");  t.win95=c("win95")||c("windows 95"); t.win16=c("win16")||c("16bit")||c("windows 3.1")||c("windows 16-bit");t.win31=c("windows 3.1")||c("win16")||c("windows 16-bit");    t.win98=c("win98")||c("windows 98");t.winnt=c("winnt")||c("windows nt");t.win32=t.win95||t.winnt||t.win98||t.major>=4&&n.platform=="Win32"||c("win32")||c("32bit");t.winme=c("win 9x 4.90");t.win2k=c("windows nt 5.0");t.winXP=c("windows nt 5.1");t.os2=c("os/2")||n.appVersion.indexOf("OS/2")!=-1||c("ibm-webexplorer"); if(t.mac&&t.ie5up){t.js=1.4;}if(t.mac){t.mac68k=c("68k")||c("68000");t.macppc=c("ppc")||c("powerpc");t.macosx=c("os x");}t.sun=c("sunos");t.risc=c("risc");t.beos=c("beos");t.sun4=c("sunos 4");t.sun5=c("sunos 5");t.suni86=t.sun&&c("i86");t.irix=c("irix"); t.irix5=c("irix 5");t.irix6=c("irix 6")||c("irix6");t.hpux=c("hp-ux");t.hpux9=t.hpux&&c("09.");t.hpux10=t.hpux&&c("10.");t.aix=c("aix"); t.aix1=c("aix 1");t.aix2=c("aix 2");t.aix3=c("aix 3");t.aix4=c("aix 4");t.linux=c("inux");t.sco=c("sco")||c("unix_sv");t.unixware=c("unix_system_v");t.mpras=c("ncr");t.reliant=c("reliantunix");t.dec=c("dec")||c("osf1")||c("dec_alpha")||c("alphaserver")||c("ultrix")||c("alphastation");t.sinix=c("sinix");t.freebsd=c("freebsd");t.netbsd=c("netbsd");t.bsd=c("bsd");t.unix=c("x11")||t.sun||t.irix||t.hpux||t.sco||t.unixware||t.mpras||t.reliant||t.dec||t.sinix||t.aix||t.linux||t.bsd||t.freebsd;t.vms=c("vax")||c("openvms");t.java=n.javaEnabled();t.supported=true;} var is=new Is();window.is=is;
var ClassNameUtil={ add:function(o, c){if(!o){return;}if(!ClassNameUtil.contains(o,c)){o.className+=" "+c;}}, remove:function(o, c){if(!o||!o.className){return;}o.className=o.className.replace(new RegExp("(^|\x5Cs)"+c+"($|\x5Cs)")," ");}, toogle:function(o, c, r){if(!c){c="";}if(!r){r="";}if(c!==""&&ClassNameUtil.contains(o,c)){ClassNameUtil.remove(o,c);ClassNameUtil.add(o,r);}else if(r!==""&&ClassNameUtil.contains(o,r)){ClassNameUtil.remove(o,r);ClassNameUtil.add(o,c);}else{ClassNameUtil.add(o,c);}return o;}, contains:function( o, c){return new RegExp("(^|\x5Cs)"+c+"($|\x5Cs)").test(o.className);}};
var gFramework={};try{if(typeof(uiInit)!='undefined')gFramework=uiInit;else if(typeof(uiBuilder)!='undefined')gFramework=uiBuilder;}catch(_ex){alert('No framework initialized');}
var StylesheetPatcher={patch:function(p){if(!p){p=[];var o=document.getElementsByTagName("link");for(var j=0;j<o.length;++j){if(o[j].rel!="stylesheet"){continue;}p.push(o[j].href);}}if(!p.push){p=[p];}var s=null,t=null,R=/\.css|.aspx/i,a="";if(is.opera&&is.mac){s="_operaMac";t=s;}else if(is.opera){s="_opera";t=s;}else if(is.chrome){s="_chrome";t=s;}else if(is.safari){s="_safari";t=s;}else if(is.ie7){s="_ie7";t=s;}else if(is.ie8){s="_ie7";t=s;}else if(is.ie6){s="_ie6";t=s;}else if(is.gecko&&is.mac){s="_geckoMac";t=s;}else if(is.ff2){s="_firefox2";t=s;}for(var i=0;i<p.length;++i){var e=p[i];var reg=/script/g;if(StylesheetPatcher.patched[e]||is.ie&&StylesheetPatcher.R.exec(e)){ continue;}if(!reg.test(e)){if(this.isSupportAdvancedUi()){a+='\x3Clink href=\x22'+e.replace(R,"_script.css")+'\x22 rel=\x22stylesheet\x22 type=\x22text/css\x22 /\x3E';}  if(s&&!is.ie&&!is.chrome&&!is.ff2&&!is.opera&&!(is.opera&&is.mac)){a+='\x3Clink href=\x22'+p[i].replace(R,s+".css")+'\x22 rel=\x22stylesheet\x22 type=\x22text/css\x22 /\x3E';}if(t&&this.isSupportAdvancedUi()&&!is.chrome&&!is.ff2&&!is.opera&&!(is.opera&&is.mac)){a+='\x3Clink href=\x22'+p[i].replace(R,"_script"+t+".css")+'\x22 rel=\x22stylesheet\x22 type=\x22text/css\x22 /\x3E';}}}document.write(a); var p_styleSheetPatcher={uiDef:{"body":function(o){if(s!==null){ClassNameUtil.add(o,"vsc_"+s.substr(1));}}}};gFramework.register(p_styleSheetPatcher.uiDef);},patchAll:function(){ var l=document.getElementsByTagName("link");var p=[];for(var i=0;i<l.length;++i){p.push(l.href);}StylesheetPatcher.patch(p);},isSupportAdvancedUi:function(){return!is.ie||!is.mac;},patched:[], R:/_ie\d+\.css/};
if(typeof Event=="undefined"){ var Event={};}Event._={P:function(){this.cancelBubble=true;},D:function(){this.returnValue=false;},patch:function(o){if(!o){o=event;}if(o){if(!o.stopPropagation){o.stopPropagation=Event._.P;}if(!o.preventDefault){o.preventDefault=Event._.D;}}return o;}};
var PopupOpener=(function(){function FC(e){this._PopupOpener.open();   e=Event._.patch(e);if(e){e.preventDefault();}return false;} function _(l,p){var self=this;this.domObj=l;this.properties=p?p:{};if(typeof this.properties.resizable=="undefined"){this.properties.resizable=true;}if(typeof this.properties.scrollbars=="undefined"){this.properties.scrollbars=true;}if(!l){return;} this.domObj._PopupOpener=this; this.domObj.onclick=FC;} return _;})(); PopupOpener.prototype={ getPropertiesString:function(){var p=[],a=this.properties;for(var i in a){if(typeof(i)=="string"&&a[i]!==false){p.push(i+(a[i]===true?"":"="+a[i]));}}return p.join(",");}, open:function(){if(this.popup){this.popup.close();}this.popup=window.open(this.domObj.href,this.domObj.target,this.getPropertiesString());this.center();this.popup.focus();}, center:function(){if(this.popup){try{this.popup.moveTo(Math.round((screen.width-this.properties.width)/2),Math.round((screen.height-this.properties.height)/2));}catch(e){}}}};
function adFlash(){if($("object[height=\x2790\x27][width=\x27728\x27]")){$("object[height=\x2790\x27][width=\x27728\x27]").addClass("flashAdTop");}if($("object[height=\x27250\x27][width=\x27300\x27]")){$("object[height=\x27250\x27][width=\x27300\x27]").addClass("flashAdPosition2");}}function flashPubDetect(){if($.browser.msie){$(document).ready(function(){adFlash();});}}
var p_promo={STATIC:{validDate:function(data){if(data!==''){var TabDate=[];TabDate=data.split("/");if(TabDate[0].length==1){TabDate[0]="0"+TabDate[0];}if(TabDate[1].length==1){TabDate[1]="0"+TabDate[1];}if(TabDate[2].length==2){TabDate[2]="20"+TabDate[2];}data=TabDate[0]+"/"+TabDate[1]+"/"+TabDate[2];return(data);}else{return("");}},showPassengers:function(){ var nbPassengers=document.saisie.NB_PASSENGERS.value;var i=2; for(i=2;i<=6;i++){document.getElementById('d_passenger_'+i).className='hidden';} for(i=2;i<=nbPassengers;i++){document.getElementById('d_passenger_'+i).className='visible';}for(i=nbPassengers;i<=6;i++){document.getElementById('PASSENGER_'+i).selectedIndex=0;}},travelOD:function(){  var jsOD;jsOD="\x3Cp\x3E";jsOD+="\x3Clabel for=\x22ORIGIN_CITY\x22 class=\x22labelTop\x22\x3EVille de d\x26eacute;part \x3Cabbr title=\x22Champ Obligatoire\x22\x3E*\x3C/abbr\x3E\x3C/label\x3E";jsOD+="\x3Cselect id=\x22ORIGIN_CITY\x22 name=\x22ORIGIN_CITY\x22 size=\x221\x22\x3E\x3C/select\x3E";jsOD+="\x3C/p\x3E"; jsOD+="\x3Cp\x3E";jsOD+="\x3Clabel for=\x22DESTINATION_CITY\x22 class=\x22labelTop\x22\x3EVille d\x27arriv\x26eacute;e \x3Cabbr title=\x22Champ Obligatoire\x22\x3E*\x3C/abbr\x3E\x3C/label\x3E";jsOD+="\x3Cselect id=\x22DESTINATION_CITY\x22 name=\x22DESTINATION_CITY\x22 size=\x221\x22\x3E\x3C/select\x3E";jsOD+="\x3C/p\x3E";document.getElementById('TRAVEL_OD').innerHTML=jsOD;},loadOriginCities:function(){ i=0;j=odArray.length;while(i<j){document.saisie.ORIGIN_CITY.options[i]=new Option(odArray[i][0],odArray[i][0]);i++;}},resetDestinationCities:function(){ i=0;while(document.saisie.DESTINATION_CITY.options.length){document.saisie.DESTINATION_CITY.options[i]=null;}},changeDestinationCities:function(){ p_promo.STATIC.resetDestinationCities();var originCity=document.saisie.ORIGIN_CITY.selectedIndex;var destinationCity=0;var i=0; var j=0; var nb=odArray[originCity][1].length;if(nb>1){ document.saisie.DESTINATION_CITY.options[i]=new Option("Veuillez sélectionner une ville...","");i++;nb++;}while(i<nb){document.saisie.DESTINATION_CITY.options[i]=new Option(odArray[originCity][1][j],odArray[originCity][1][j]); if(getParam("strARR")!==''){if(getParam("strARR")===odArray[originCity][1][j]){destinationCity=(j+1);}}i++;j++;}if(destinationCity!==0){document.saisie.DESTINATION_CITY.selectedIndex=destinationCity;}},loadToday:function(day,month,year){ document.saisie.OUTWARD_DATE.value=p_promo.STATIC.validDate(day+"\x2f"+month+"\x2f"+year);},bookingInfo:function(todayStr,outwardDateStr,inwardDateStr){ document.getElementById('d_bookingInfo').innerHTML="\x3Cp\x3EAujourd\x27hui, \x3Cstrong\x3E"+todayStr+"\x3C/strong\x3E, vous pouvez acheter un billet pour un voyage \x3Cstrong\x3E entre le\x26nbsp;"+outwardDateStr+" et le "+inwardDateStr+"\x3C/strong\x3E.\x3C/p\x3E";}},uiDef:{selectors:{"body":function(o){},"#l_menucontext":function(o){ calendTrn=new CalendarPopup("calendardiv");calendTrn.setCssPrefix("CAL_STYLE");calendTrn.setYearSelectStartOffset(0);calendTrn.setWeekStartDay(1);calendTrn.setDayHeaders("D","L","M","M","J","V","S");calendTrn.setTodayText("\x26nbsp;"); calendTrn.setMonthNames("Janvier","F\x26eacute;vrier","Mars","Avril","Mai","Juin","Juillet","Ao\x26ucirc;t","Septembre","Octobre","Novembre","D\x26eacute;cembre"); var apexDate=new Date(); var calendarDate=new Date(); var endCalendarDate=new Date();  var reg=new RegExp("[-/]+","g");if(beginDate!==""){  var beginDateArr=beginDate.split(reg);beginDate=new Date();beginDate.setFullYear(beginDateArr[2]);beginDate.setMonth(beginDateArr[1]-1);beginDate.setDate(beginDateArr[0]);if(beginDate>today){apex=Math.round((beginDate-today)/(24*3600*1000));}}if(endApex===0){ var endDateArr=endDate.split(reg);endDate=new Date();endDate.setFullYear(endDateArr[2]);endDate.setMonth(endDateArr[1]-1);endDate.setDate(endDateArr[0]); var verifDate=new Date();verifDate.setTime(endDate.getTime()+60000);if(verifDate<today){document.getElementById("dv_form").innerHTML="\x3Cp class=\x22error\x22\x3ECette vente est termin\x26eacute;e, \x26agrave; bient\x26ocirc;t !\x3C/p\x3E";document.getElementById("dv_form").innerHTML+="\x3Cdiv id=\x22calendardiv\x22\x3E\x3C/div\x3E"; return false;}}else{ endDate=new Date();endDate.setTime(endDate.getTime()+(endApex*(24*3600*1000)));} apexDate.setTime(apexDate.getTime()+(apex*(24*3600*1000))); var apexDay=apexDate.getDate();var apexMonth=apexDate.getMonth()+1;var apexYear=apexDate.getFullYear(); calendarDate.setTime(apexDate.getTime()-(24*3600*1000)); endCalendarDate.setTime(endDate.getTime()+(24*3600*1000)); var calendarDay=calendarDate.getDate();var calendarMonth=calendarDate.getMonth()+1;var calendarYear=calendarDate.getFullYear(); calendTrn.addDisabledDates(null,calendarYear+"-"+calendarMonth+"-"+(calendarDay)); calendTrn.addDisabledDates(endCalendarDate.getFullYear()+"-"+(endCalendarDate.getMonth()+1)+"-"+endCalendarDate.getDate(),null);  if(getParam("strDEP")!==''){for(i=0;i<odArray.length;i++){if(getParam("strDEP")===odArray[i][0]){originCityToLoad=i;}}} p_promo.STATIC.travelOD();p_promo.STATIC.loadOriginCities();document.saisie.ORIGIN_CITY.selectedIndex=originCityToLoad;p_promo.STATIC.changeDestinationCities(originCityToLoad);p_promo.STATIC.loadToday(apexDay,apexMonth,apexYear);  var todayDay=today.getDate();if(todayDay===1){ todayDay.toString();todayDay+="er";} if(apexDay===1){ apexDay.toString();apexDay+="er";} var endDateDay=endDate.getDate();if(endDateDay===1){ endDateDay.toString();endDateDay+="er";}var todayStr=daysFr[today.getDay()]+" "+todayDay+" "+monthsFr[today.getMonth()];var outwardDateStr=apexDay+" "+monthsFr[(apexMonth-1)];var inwardDateStr=endDateDay+" "+monthsFr[endDate.getMonth()]+" "+endDate.getFullYear();p_promo.STATIC.bookingInfo(todayStr,outwardDateStr,inwardDateStr);},"#VOYAGE_AS":function(o){o.onclick=function(){ $("#INWARD").hide(300);};},"#VOYAGE_AR":function(o){o.onclick=function(){ $("#INWARD").show(300);};},"#ORIGIN_CITY":function(o){o.onchange=function(){p_promo.STATIC.changeDestinationCities();document.getElementById('DESTINATION_CITY').className='';};},"#DESTINATION_CITY":function(o){o.onchange=function(){ document.getElementById('DESTINATION_CITY').className='';};},"#OUTWARD_DATE,#OUTWARD_DATE_CALENDAR":function(o){o.onclick=function(){calendTrn.select(document.saisie.INWARD_DATE,'OUTWARD_DATE_CALENDAR','dd/MM/yyyy');calendTrn.select(document.saisie.OUTWARD_DATE,'OUTWARD_DATE_CALENDAR','dd/MM/yyyy');document.getElementById("calendardiv").className="outwardCal";return false;};},"#INWARD_DATE":function(o){o.onclick=function(){ if(o.value===""){o.value=document.getElementById('OUTWARD_DATE').value;}calendTrn.select(document.saisie.INWARD_DATE,'INWARD_DATE_CALENDAR','dd/MM/yyyy');document.getElementById("calendardiv").className="inwardCal";return false;};o.onblur=o.onchange=function(){ if(o.value){o.className='';}};},"#INWARD_DATE_CALENDAR":function(o){o.onclick=function(){ if(document.getElementById('INWARD_DATE').value===""){document.getElementById('INWARD_DATE').value=document.getElementById('OUTWARD_DATE').value;}calendTrn.select(document.saisie.INWARD_DATE,'INWARD_DATE_CALENDAR','dd/MM/yyyy');document.getElementById("calendardiv").className="inwardCal";return false;};},"#INWARD_TIME":function(o){o.onchange=function(){ o.className='';};},"#NB_PASSENGERS":function(o){o.onchange=function(){p_promo.STATIC.showPassengers();};},"#PASSENGER_1,#PASSENGER_2,#PASSENGER_3,#PASSENGER_4,#PASSENGER_5,#PASSENGER_6":function(o){o.onchange=function(){ o.className='';};},"#COMFORT_CLASS_1,#COMFORT_CLASS_2":function(o){o.onclick=o.onchange=function(){document.getElementById('COMFORT_CLASS_1_LABEL').className='';document.getElementById('COMFORT_CLASS_2_LABEL').className='';};},"#TypeForm":function(o){ o.onsubmit=function(){var errorFields='';var travelType='';var comfortClass='';var nbPassengers=document.getElementById('NB_PASSENGERS').value; if(!document.saisie.TRAVEL_TYPE.length){ travelType=document.saisie.TRAVEL_TYPE.value;}else{ for(i=0;i<2;i++){if(document.saisie.TRAVEL_TYPE[i].checked){travelType=document.saisie.TRAVEL_TYPE[i].value;}}} if(!document.saisie.COMFORT_CLASS.length){ comfortClass=document.saisie.COMFORT_CLASS.value;}else{ for(i=0;i<2;i++){if(document.saisie.COMFORT_CLASS[i].checked){comfortClass=document.saisie.COMFORT_CLASS[i].value;}}} document.getElementById('ORIGIN_CITY').className='';document.getElementById('DESTINATION_CITY').className='';document.getElementById('OUTWARD_DATE').className='';document.getElementById('INWARD_DATE').className='';document.getElementById('INWARD_TIME').className='';for(i=1;i<=nbPassengers;i++){document.getElementById('PASSENGER_'+i).className='age';}document.getElementById('COMFORT_CLASS_1_LABEL').className+='';document.getElementById('COMFORT_CLASS_2_LABEL').className+='';if(!document.getElementById('ORIGIN_CITY').value){document.getElementById('ORIGIN_CITY').className+=' needed';errorFields+='\n  - Ville de départ';}if(!document.getElementById('DESTINATION_CITY').value){document.getElementById('DESTINATION_CITY').className+=' needed';errorFields+='\n  - Ville d\x27arrivée';}if(!document.getElementById('OUTWARD_DATE').value){document.getElementById('OUTWARD_DATE').className+=' needed';errorFields+='\n  - Date de départ';} if(travelType=='AR'){if(!document.getElementById('INWARD_DATE').value){document.getElementById('INWARD_DATE').className+=' needed';errorFields+='\n  - Date d\x27arrivée';}if(!document.getElementById('INWARD_TIME').value){document.getElementById('INWARD_TIME').className+=' needed';errorFields+='\n  - Heure d\x27arrivée';}} for(i=1;i<=nbPassengers;i++){if(document.getElementById('PASSENGER_'+i).value=='-1'){document.getElementById('PASSENGER_'+i).className+=' needed';errorFields+='\n  - Age du '+i+'e passager';}} if(!comfortClass){document.getElementById('COMFORT_CLASS_1_LABEL').className+=' needed';document.getElementById('COMFORT_CLASS_2_LABEL').className+=' needed';errorFields+='\n  - Classe de confort';}if(errorFields){alert('Veuillez renseigner les informations suivantes :\n'+errorFields+' \n ');document.getElementById('DESTINATION_CITY').focus();return false;}else{return true;}};},"#email":function(o){o.value="Votre adresse électronique";o.onfocus=function(){if(o.value=='Votre adresse électronique'){o.value='';}};o.onblur=function(){if(o.value===''){o.value='Votre adresse électronique';}};},"#pub_Top":function(o){new flashPubDetect();}}}};uiBuilder.register(p_promo.uiDef);StylesheetPatcher.patch(); var today=new Date();var originCityToLoad=0;var apex=0;var endApex=0;var beginDate="";var endDate="01/01/"+(today.getFullYear()+2); var monthsFr=["janvier","f\x26eacute;vrier","mars","avril","mai","juin","juillet","ao\x26ucirc;t","septembre","octobre","novembre","d\x26eacute;cembre"];var daysFr=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"];var head=document.getElementsByTagName("head")[0];var script=document.createElement('script');script.type='text/javascript';script.src="/design/leisure/js/page/editorial/promotions/calendar.js";var calendTrn='';head.appendChild(script);list=[];list_valeur=[];pos=document.location.href.indexOf("?",0);if(pos>=0){requete=document.location.href.substring(pos+1,document.location.href.length);pos_and=requete.indexOf("\x26",0);if(pos_and>=0){list=requete.split("\x26");}else{list[0]=requete;}for(i=0;i<list.length;i++){temp=list[i].split("=");variable=temp[0];valeur=temp[1];plus_pos=valeur.indexOf("+",0);while(plus_pos>-1){temp2=valeur.substring(0,plus_pos)+' '+valeur.substring(plus_pos+1,valeur.length);valeur=temp2;plus_pos=valeur.indexOf("+",plus_pos+2);}list_valeur[variable]=valeur;}}function getParam(get){if(list_valeur[get]){return(unescape(list_valeur[get]));}else{return("");}}
