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 StringUtil={R:[34,38,60,62],stripTags:function(){return this.replace(/<\/?[^>]+>/gi,'');},escapeHTML:function(v){for(var i=0;i<StringUtil.R.length;++i){var r=StringUtil.R[i];v=v.replace(String.fromCharCode(r),"\x26#"+r+";");}return vv;},trimString:function(string){if(string){return string.replace(/(^\s*)|(\s*$)/g,'');}}};
String.prototype.trim=function(){return this.replace(String._RE,"");};String.prototype.compareTo=function(v){if(this==v){return 0;}if(this>v){return 1;}return-1;};String._RE=/(^\s*)|(\s*$)/g;
var Session=(function(){ function _(d){if(!d){d=document;}this.el=d;this.el._Session=this;}return _;})();Session.prototype={ getAttribute:function(k,d){var c=this.el.cookie;if(!c){return d;}c=c.split(";");k=escape(k);for(var i=0;i<c.length;++i){var p=c[i].split("=");if(p.length>1&&k==p[0].trim()){return unescape(p[1].trim());}}return d;}, setAttribute:function(k,v,o){var a=[];if(v===null||typeof(v)=="undefined"){v="";}a.push(escape(k)+"="+escape(v+""));  var e,p,d;if(o){e=o.expires;p=o.path;d=o.domain;if(o.persist){e=Session.PERSIST;}if(o.secure){a.push("secure");}}if(e){if(typeof(e)!="Date"){e=new Date(e);}a.push("expires="+e.toGMTString());}if(p){a.push("path="+p);}else{a.push("path=/");}if(d){a.push("domain="+d);}this.el.cookie=a.join("; ");},removeAttribute:function(k,o){if(!o){o=[];}o.expires=Session.EXPIRE;this.setAttribute(k,null,o);}, getAttributeNames:function(){var t=this.el.cookie.split(";"),r=[];for(var i=0;i<t.length;++i){var v=t[i].split("=");r.push(unescape(v[0].trim()));}return r;},check:function(){this.setAttribute(Session.CHECKKEY,"test");if(this.getAttribute(Session.CHECKKEY)!="test"){return false;}this.removeAttribute(Session.CHECKKEY);return true;}};Session.CHECKKEY="__js_Session_test_cookie";Session.EXPIRE=new Date(1);Session.PERSIST=new Date(2105,1,1,1,1,1);var session=new Session(document);
function Request(o){var u='',s=this,e,p;s.values=[];if(typeof o=="string"){u=o;}else if(o.href){u=o.href;p="href";e=o;}else if(o.action){u=o.action;p="action";e=o;}else if(o.src){u=o.src;p="src";e=o;}  s.el=e; s.urlProp=p;if(u.indexOf("?")==-1){return;}var c=u.substring(u.indexOf("?")+1).split("\x26");if(u.indexOf("?")==-1){s.url=u;}else{s.url=u.substring(0,u.indexOf("?"));}for(var i=0;i<c.length;++i){var v=c[i].split("=");s.values[v[0]]=v[1];}}Request.prototype={getParameter:function(n){return this.values[n];},setParameter:function(k,v){this.values[k]=v;if(this.el){ this.el[this.urlProp]=this.toString();}},getParameterNames:function(){var n=[];for(var i in this.values){n[n.length]=i;}return n;},getParameterValues:function(n){return this.values[n].split(",");},toString:function(){var p=[];for(var i in this.values){p.push(i+"="+this.values[i]);}return this.url+"?"+p.join("\x26");}};var request=new Request(location);
document.site=uiBuilder.getSite();switch(document.site){case "leisure":document.write('\x3Cscript type=\x22text/javascript\x22 src=\x22/design/commons/js/lib/market/s_code.js\x22\x3E\x3C/script\x3E');break;case "europe":document.write('\x3Cscript type=\x22text/javascript\x22 src=\x22/design/europe/js/page/commons/s_code.js\x22\x3E\x3C/script\x3E');break;default:document.write('\x3Cscript type=\x22text/javascript\x22 src=\x22/design/commons/js/lib/market/s_code.js\x22\x3E\x3C/script\x3E');break;}function Omniture( e, o){this.el=e;if(!o||!o.taggingDef){return;}this.omnitureTag=s;this.taggingDef=o.taggingDef;this.fillTag();}Omniture.prototype={fillTag:function(){var currentPage=this.taggingDef,s=this.omnitureTag; var site=uiBuilder.getSite(); var agency="VSC";if(site=="europe"){currentPage.espace=uiBuilder.getCountry();agency="VSCE";} s.prop19=I18N.getLang();s.currencyCode="EUR";s.account=s_account;s.server=window.location.hostName;s.pageName=currentPage.pageName;s.channel=currentPage.espace;s.linkInternalFilters="javascript:,voyages-sncf.com,voyage-sncf.com,media.expedia.com,sncf.expediacustomer.com,voyages.sncf.fr,voyages-sncf.fr,tgv-europe,voyages-sncf-et-vous.com";s.prop1=currentPage.departement;s.prop2=currentPage.rubrique;s.prop3=currentPage.typePage;s.prop4=s.prop1+":"+s.prop3;if(currentPage.espace==="Pro"){s.prop5="Pro:Train";}else{s.prop5="Train";}s.prop6=s.prop5+":"+s.prop3; if(document.location.href.indexOf("promos")>0===true){s.prop7="Ope:"+s.pageName;} s.hier1=[agency,s.channel,s.prop1,s.prop2,s.pageName].join(","); if(currentPage.beforeinit){currentPage.beforeinit(this);} var refId=s.getQueryParam("rfrr");if(!refId&&session.getAttribute("rfrr",false)){refId=session.getAttribute("rfrr","");session.removeAttribute("rfrr");}if(refId!==""){s.prop8=s.eVar3=s.pageName+":"+refId;}s.prop8=s.eVar3=s.pageName+":"+s.getQueryParam("rfrr"); s.eVar1=s.getQueryParam("autp"); s.eVar2=s.getQueryParam("crse"); s.campaign=s.getQueryParam("prex"); s.eVar4=s.prop20=session.getAttribute("userProfilCampagne","");  if(currentPage.init){currentPage.init(this);} var s_code=s.t();if(s_code){ var d=document.createElement("div");d.innerHTML=s_code;document.body.appendCHild(d);}}};Omniture.getProperties=function(){ var pagePath=uiBuilder.getPagePath(),def=null;if(pagePath){pagePath=uiBuilder.getPagePath().split("/");pagePath.push(""); while(!def&&pagePath.length>0){pagePath.pop();def=document.taggingPagesProperties[pagePath.join("/")];}pagePath=pagePath.join("/");}else if(document.getElementsByTagName("body")[0].id){ def=document.taggingPagesProperties[document.getElementsByTagName("body")[0].id];}else if(typeof(OAS_sitepage)!="undefined"){ pagePath=OAS_sitepage;def=document.taggingPagesProperties[pagePath];}if(def&&def.taggingDef){return def;} return null;}; Omniture.Interface={STATIC:{getRfrr:function(o){var F=Omniture.Interface.STATIC;var rfrr=s.pageName+"_"+F.getLinkPosition(o)+"_"+F.getLinkContent(o);return encodeURIComponent(rfrr);},pageBlocks:{  defaut:"body",l_head:"header",l_foot:"footer",l_body:"body",l_menu:"ColonneA",l_menucontext:"ColonneC"},getLinkPosition:function(o){  var positions=Omniture.Interface.STATIC.pageBlocks;var position=positions.defaut;var e=o;while(e.parentNode){if(e.parentNode.id){for(var id in positions){if(e.parentNode.id==id){position=positions[id];return(position);}}}e=e.parentNode;}return(position);},getLinkContent:function(o){var content=o.innerHTML;content=StringUtil.trimString(content);if(o.childNodes[0].nodeType==1){switch(o.childNodes[0].tagName){case "IMG":content=o.childNodes[0].alt;break;default:content=o.childNodes[0].innerHTML;content=StringUtil.trimString(content);break;}}return content;},addCookieOmniture:function(){var lien=new Request(this);if(lien.getParameter("rfrr")){var expiration=new Date();var uneHeure=expiration.getTime()+(3*60*60*1000);expiration.setTime(uneHeure);session.setAttribute("rfrr",lien.getParameter("rfrr"),{expires:expiration.toGMTString()});}},addToCartOmniture:function(){AjoutPanier(this,s.prop9,s.prop9+":"+s.prop10+":"+s.prop12);}},uiDef:{selectors:{"a":function(o){if(o.href.toLowerCase().indexOf("javascript")==-1&&o.href.indexOf("rfrr")==-1&&o.href.indexOf("#")==-1&&o.className.indexOf("ToolTip")==-1){if((typeof(s.pageName)!=="undefined")&&o.innerHTML){var saveInner=o.innerHTML; o.href=o.href+((o.href.indexOf('?')>0)?"\x26":"?")+"rfrr="+Omniture.Interface.STATIC.getRfrr(o);o.innerHTML=saveInner;EventListener.patch(o);o.addEventListener("click",Omniture.Interface.STATIC.addCookieOmniture,true);}}},"#p_outwardProposals p.travelToChoose input,#p_inwardProposals p.travelToChoose input":function(o){EventListener.patch(o);o.addEventListener("click",Omniture.Interface.STATIC.addToCartOmniture,false);},"#d_crossSell a, #p_confirmation a.lktxtplus":function(o){var lien=new Request(o.href);if(lien.getParameter("_CMD")){var cmd=lien.getParameter("_CMD");var crse="";if(cmd=="cmdXSellHotelAdv"||cmd=="cmdXSellHotel"){crse="Hotel,"+s.pageName;}if(cmd=="cmdXSellCar"){crse="Car,"+s.pageName;}o.href=o.href+"\x26crse="+crse;}}}}};uiBuilder.register(Omniture.Interface.uiDef); function applyParam(obj,param1,param2){var urlLink=obj;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=new Array();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";}}}window.location.href=urlLink;}

