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);}};
function UiInit( context){this.context=context;this.uiDef={};}UiInit.prototype={ register:function( uiDef){$.extend(this.uiDef,uiDef);}, run:function( context,aUiInit){if(!context){context=this.context||document;}var s=this;if(aUiInit){s.uiDef=aUiInit;} for(var selector in s.uiDef){var _Elem=$(selector,context);if(!_Elem.get(0))continue;for(var i=0;i<_Elem.length;i++){if(!_Elem[i])continue;if(s.uiDef[selector](_Elem[i],_Elem)===false)break;}}s.uiDef=null;}, getUrl:function(){return window.location.href.split('//')[1].split('/')[0];},getPagePath:function(){ var e=document;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=document;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=document;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;}}if(typeof(e._country)=='undefined'){M=e.getElementsByTagName("html")[0];if(M.getAttribute("lang")){e._country=M.getAttribute("lang");}}}return e._country;},getAgency:function(){ var e=document;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;}, detectIE:function(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('msie')!=-1){return true;}}};var uiInit=new UiInit(document);$(document).ready(function(){uiInit.run();});
if(!window.getComputedStyle){ function ComputedStyle(obj){this.obj=obj;this.getPropertyValue=function(cssProperty){var props=cssProperty.split("-");for(var i=1;i<props.length;++i){props[i]=props[i].substring(0,1).toUpperCase()+props[i].substring(1);}var val=this.obj.currentStyle[props.join("")];return val;};}window.getComputedStyle=function(obj,imp){return new ComputedStyle(obj);};} window.stopEvent=function(e){if(typeof(e)=="undefined"){e=window.event;}if(typeof(e)=="undefined"){return;}e.cancelBubble=true;e.returnValue=false;if(e.stopPropagation){e.stopPropagation();}if(e.preventDefault){e.preventDefault();}return false;};if(typeof(window.pageYOffset)=="undefined"){window.getPageYOffset=function(){var s=parseInt(document.documentElement.scrollTop,10);if(s===0){s=parseInt(document.body.scrollTop,10);}return s;};}else{window.getPageYOffset=function(){return parseInt(window.pageYOffset,10);};}if(typeof(window.pageXOffset)=="undefined"){window.getPageXOffset=function(){var s=parseInt(document.documentElement.scrollLeft,10);if(s===0){s=parseInt(document.body.scrollLeft,10);}return s;};}else{window.getPageXOffset=function(){return parseInt(window.pageXOffset,10);};}if(typeof(window.innerHeight)=="undefined"){window.getInnerHeight=function(){var s=parseInt(document.documentElement.clientHeight,10);if(s===0){s=parseInt(document.body.clientHeight,10);}return s;};}else{window.getInnerHeight=function(){return parseInt(window.innerHeight,10);};}if(typeof(window.innerWidth)=="undefined"){window.getInnerWidth=function(){var s=parseInt(document.documentElement.clientWidth,10);if(s===0){s=parseInt(document.body.clientWidth,10);}return s;};}else{window.getInnerWidth=function(){return parseInt(window.innerWidth,10);};}
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 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);}};
function ToolTip(po_Elem){if(!po_Elem){return false;}var _ToolTip=new $.ToolTip(po_Elem);_ToolTip.window=window;_ToolTip.iframe=null;$(po_Elem).addClass("ToolTip");function _Show(){_ToolTip.show();}function _Hide(){_ToolTip.hide();}function initShow(pe_Event){clearTimeout(_ToolTip.timer);_ToolTip.timer=setTimeout(_Show,ToolTip._.TIME_OVER);pe_Event.stopPropagation();pe_Event.preventDefault();}function initHide(pe_Event){clearTimeout(_ToolTip.timer);_ToolTip.timer=setTimeout(_Hide,ToolTip._.TIME_OUT);pe_Event.stopPropagation();pe_Event.preventDefault();}$(document).click(function(){_Hide();});$(po_Elem).click(function(pe_Event){_Show();pe_Event.stopPropagation();pe_Event.preventDefault();return false;});$(po_Elem).mouseover(function(pe_Event){_Show(pe_Event);});$(po_Elem).focus(function(pe_Event){_Show(pe_Event);});$(po_Elem).mouseout(function(pe_Event){_Hide(pe_Event);});$(po_Elem).blur(function(pe_Event){_Hide(pe_Event);});$(po_Elem).attr('title','');$.data(po_Elem,'_ToolTip',this);}$.ToolTip=function(po_Elem){this.el=po_Elem;};$.extend($.ToolTip.prototype,{getIframe:function(){var url=this.getHref();if(!this.iframe){var o=document.createElement("iframe");o.setAttribute("id",this.el.id+"_ToolTip");o.setAttribute("frameborder",0);o.src=url;o.className="ToolTip_iframe";o.style.position="absolute";this.window.document.body.appendChild(o);$(o).hover(function(){ToolTip._.ONFRAMEOVER(this);},function(){ToolTip._.ONMOUSEOUT(this);});this.iframe=o;$.data(o,'_ToolTip',this);}if(this.iframe.src!=url||this.el.rel&&this.el.href==url&&ToolTip.current!=this){   this.iframe.src=url;}return this.iframe;}, getHref:function(){var url=this.el.href;if(this.el.rel){var s=document.getElementById(this.el.rel),v=null;if(s){if(s.getValue){v=s.getValue();}else if(s.options){v=s.options[s.selectedIndex].value;}}if(v&&v!="default"){url=url.replace(/(.+\/select_)(.+)(\.[\w\d]+$)/,"$1$2/$2_"+v+"$3");}}return url;}, show:function(){if(ToolTip.current!=this){if(ToolTip.current){ToolTip.current.hide();}}var i=this.getIframe();ToolTip.current=this;i.style.display="block";ToolTip.resizeContainer(i);this.move();}, hide:function(){if(this.iframe){ this.iframe.style.display="none";}ToolTip.current=null;}, move:function(){var w=this.window,t=this.iframe,o=this.el,p=HtmlUtil.getAbsolutePos(o);var s=t.style,x=p.x+o.offsetWidth,y=p.y+o.offsetHeight;var sx=x+t.offsetWidth-w.getInnerWidth()-w.getPageXOffset()+20,sy=y+t.offsetHeight-w.getInnerHeight()-w.getPageYOffset()+20;if(sx>0){s.left=(x-sx)+"px";}else{s.left=x+"px";}if(sy>0){s.top=(y-sy)+"px";}else{s.top=y+"px";}}}); ToolTip.resizeContainer=function(w){if(!w||!$.data(w,'_ToolTip')){return;}$(w).load(function(){$(w.contentWindow.document).ready(function(){var lhead=$(w.contentWindow.document).find('#l_head');var lbody=$(w.contentWindow.document).find('#l_body');if($(w.contentWindow.document).find('#l_head').height()!=0){ w.style.height=($(w.contentWindow.document).find('#l_head').height()+$(w.contentWindow.document).find('#l_body').height()+23)+"px";}else{  $(w).show();w.style.height=($(w.contentWindow.document).find('#l_head').height()+$(w.contentWindow.document).find('#l_body').height()+23)+"px";$(w).hide();}});});$.data(w,'_ToolTip').move();}; ToolTip._={ONMOUSEOUT:function(iframe){if($.data(iframe,'_ToolTip').timer){clearTimeout($.data(iframe,'_ToolTip').timer);}function F(o){return function(){o.hide();};}$.data(iframe,'_ToolTip').timer=setTimeout(F($.data(iframe,'_ToolTip')),ToolTip._.TIME_OUT);}, ONFRAMEOVER:function(iframe){if($.data(iframe,'_ToolTip').timer){clearTimeout($.data(iframe,'_ToolTip').timer);}$.data(iframe,'_ToolTip').el.onmouseout=function(){return true;};$.data(iframe,'_ToolTip').show();}, TIME_OUT:100, TIME_OVER:300};$(window).resize(function(){if(ToolTip.current){ToolTip.current.move();}});
uiInit.register({"a.ToolTip":function(o){new ToolTip(o);}});
var CUi={ _:function(ps_className,po_obj){return(function(po_htmlObject,po_jsonObject){if(!po_htmlObject||po_htmlObject["_x"+ps_className])return false;var c=window[ps_className];this.constructor=c; I18N.setup(c);this.el=po_htmlObject;$(this.el).addClass(" CUi_"+ps_className);$(this.el).data("_Data","_"+ps_className);this.opt=po_jsonObject?po_jsonObject:{};if(this._){ this._();}});},create:function(n,d){var _Object=CUi._(n);$.extend(_Object,d);window[n]=_Object;$(_Object).removeClass().addClass(n); _Object.i18nDef={}; if(_Object.init){_Object.init();}return _Object;}};
var NodeUtil={cloneAttributes:function(s,t){var a=s.attributes;for(var i=0,l=a.length;i<l;++i){ var o=a[i];if(o.nodeName.toLowerCase()=="class"){ t.className=o.nodeValue;}else{t.setAttribute(o.nodeName,o.nodeValue);}}}, clone: function( s){if(!s){return null;}var c=null;   if(s.nodeType===1){ c=document.createElement(s.nodeName);NodeUtil.cloneAttributes(s,c);NodeUtil.cloneChildNodes(s,c); if(c.nodeName=="INPUT"){if(c.type=="text"||c.type=="file"||c.type=="password"){c.defaultValue=c.value;}else if(c.type=="radio"||c.type=="checkbox"){c.defaultChecked=c.checked;}}}else if(s.nodeType==3){ c=document.createTextNode(s.data);}s=s.nextSibling;return c;},cloneChildNodes:function( s, t){var c=s.childNodes;for(var i=0,l=c.length;i<l;++i){t.appendChild(NodeUtil.clone(c.item(i)));}}, insertAfter:function( n, r){if(n&&r){var p=r.parentNode;if(r.nextSibling){r.parentNode.insertBefore(n,r.nextSibling);}else{r.parentNode.appendChild(n);}}}, insertFirst:function( p, n){if(p.firstChild){p.insertBefore(n,p.firstChild);}else{p.appendChild(n);}},replace:function( target, x, id){if(!x){return;}if(id){if(!x.getElementById){var t=x;x={getElementById:function(id){var o=t.getElementsByTagName("*");for(var i=0,l=o.length;i<l;++i){if(o[i].getAttribute("id")==id){return o[i];}}return null;}};}x=x.getElementById(id);if(!x){return;}}try{x=x.cloneNode(true);x=NodeUtil.clone(x);var p=target.parentNode;p.replaceChild(x,target);}catch(e){window.status=e.message;}return x;},remove:function( o){if(o&&o.parentNode){o.parentNode.removeChild(o);}}};
var Footnote=CUi.create("Footnote",{prototype:{_:function(){var _Elem=this.el;var _Self=this;_Self.def=Footnote.getDef(_Elem.innerHTML);if(!_Self.def)return;$(_Elem).bind("mouseover",function(){_Self.show();});$(_Elem).bind("mouseout",function(){_Self.hide();});},show:function(){this.get().style.display="";},hide:function(){this.get().style.display="none";}, get:function(){if(!this.defDiv){var d=document.createElement("span");d.className="footnote_detail";d.innerHTML=this.def;NodeUtil.insertAfter(d,this.el.parentNode);this.defDiv=d;}return this.defDiv;}}, getDef:function(n){if(!Footnote.def){var a=document.getElementById("d_footnotes");if(!a){return "";}a=a.getElementsByTagName("dt");var r={};for(var i=0;i<a.length;++i){var k=a[i];if(!k){continue;}var d=a[i].nextSibling;while(d&&d.nodeType!=1&&d.tagName!="DD"){ d=d.nextSibling;}if(!d){continue;}r[k.innerHTML]=d.innerHTML;}Footnote.def=r;}return Footnote.def[n];}});
uiInit.register({"sup.footnote a":function(o){new Footnote(o);}});
var _Navigator=navigator;var _NavName=_Navigator.userAgent.toLowerCase(); var major=parseInt(_Navigator.appVersion,10);var minor=parseFloat(_Navigator.appVersion);$.extend($,{checkBrowser:function(aPattern,aBrowser,aIsBrowser){var _Pattern=new RegExp(aPattern,'i');var _Browser=aBrowser||_NavName;switch(aIsBrowser){default:return _Pattern.test(_Browser);break;}}});var browserList={hotjava:$.checkBrowser("hotjava"),hotjava3:$.checkBrowser("hotjava")&&major==3,hotjava3up:$.checkBrowser("hotjava")&&major>=3,gecko:$.checkBrowser('gecko'),mac:$.checkBrowser('mac'),chrome:$.checkBrowser('chrome'),safari:$.checkBrowser('safari'), webtv:$.checkBrowser('webtv'),TVNavigator:$.checkBrowser('navio')||$.checkBrowser('navio_aoltv'),AOLTV:$.checkBrowser('navio')||$.checkBrowser('navio_aoltv'),ie:$.browser.msie,ie8:$.browser.msie&&$.checkBrowser("msie 8"),ie7:$.browser.msie&&$.checkBrowser("msie 7"),ie6:$.browser.msie&&$.checkBrowser("msie 6"),ie8:$.browser.msie&&$.checkBrowser("msie 8"),opera:$.browser.opera,opera2:$.checkBrowser("opera 2")||$.checkBrowser("opera/2"),opera3:$.checkBrowser("opera 3")||$.checkBrowser("opera/3"),opera4:$.checkBrowser("opera 4")||$.checkBrowser("opera/4"),opera5:$.checkBrowser("opera 5")||$.checkBrowser("opera/5"),opera5up:$.browser.version>5&&$.browser.opera,ff2:$.browser.mozilla&&$.browser.version.substr(0,3)=="1.8",ff3:$.browser.mozilla&&$.browser.version.substr(0,3)=="1.9",nav:$.browser.mozilla&&!$.browser.opera&&!$.checkBrowser("hotjava")&&!$.checkBrowser('webtv')&&!$.checkBrowser("spoofer")&&!$.checkBrowser("compatible")};for(var key in browserList){eval('$.extend($.browser, { '+key+':'+browserList[key]+' })');};var is=$.browser;
var header={STATIC:{ isWebkit:function(){var userAgent=navigator.userAgent.toLowerCase();if(/webkit/.test(userAgent)){return true;}else{return false;}},headerCurrentTimer:null,headerTabFocusAndClick:false,headerRemoveFocusListener:function(){var select=$(".tab .tab-link");var link=$(".tab .sub-menu a");select.unbind("focus",header.STATIC.headerFocusTab);select.unbind("blur",header.STATIC.headerBlurTab);link.unbind("focus",header.STATIC.headerFocusTabLink);link.unbind("blur",header.STATIC.headerBlurTabLink);},headerToggleTab:function(){window.clearTimeout(header.STATIC.headerCurrentTimer);var $currentTab=$(this).parent('li');if(header.STATIC.isWebkit){header.STATIC.headerRemoveFocusListener;$(this).focus();header.STATIC.headerAddFocusListener;}if($currentTab.hasClass("show-sub-menu")){if(header.STATIC.headerTabFocusAndClick){$currentTab.removeClass("show-sub-menu");}}else{$(".tab").removeClass("show-sub-menu");$currentTab.addClass("show-sub-menu");}header.STATIC.headerTabFocusAndClick=true;},headerFocusTab:function(){window.clearTimeout(header.STATIC.headerCurrentTimer);var $currentTab=$(this).parent('li');$(".tab").removeClass("show-sub-menu");$currentTab.addClass("show-sub-menu");header.STATIC.headerTabFocusAndClick=false;},headerBlurTab:function(){var $currentTab=$(this).parent('li');window.clearTimeout(header.STATIC.headerCurrentTimer);header.STATIC.headerCurrentTimer=window.setTimeout(function(){$currentTab.removeClass("show-sub-menu");},300);header.STATIC.headerTabFocusAndClick=false;},headerFocusTabLink:function(){window.clearTimeout(header.STATIC.headerCurrentTimer);header.STATIC.headerTabFocusAndClick=true;},headerBlurTabLink:function(){window.clearTimeout(header.STATIC.headerCurrentTimer);header.STATIC.headerCurrentTimer=window.setTimeout(function(){$(".tab").removeClass("show-sub-menu");},300);}},uiDef:{ "#header":function(o){var select=$(".tab .tab-link");var link=$(".tab .sub-menu a");select.bind("click",header.STATIC.headerToggleTab);select.bind("click",function(){var $currentTab=$(this).parent('li');if($('ul',$currentTab).length>0){return false;}});select.bind("focus",header.STATIC.headerFocusTab);select.bind("blur",header.STATIC.headerBlurTab);link.bind("focus",header.STATIC.headerFocusTabLink);link.bind("blur",header.STATIC.headerBlurTabLink);},"#menu a":function(o){if(is.ie6){$(o).hover(function(){$(this).parent("li").addClass("hover");},function(){$(this).parent("li").removeClass("hover");});}},"#nav-access a":function(o){if(is.ie6){$(o).bind("focus",function(event){$(this).addClass("show");event.stopPropagation();});$(o).bind("blur",function(event){$(this).removeClass("show");event.stopPropagation();});}},"#menu-customer #li-kis a":function(o){new PopupOpener(o,{width:500,height:300,resizable:true,scrollbars:true,top:50,left:100});}}};uiInit.register(header.uiDef);
var taggingPubProperties={"/leisure/launch/home":{sitepage:"home",univers:"HOME",OAS_listpos:"Position1"},"/leisure/indispo/indispo_train":{sitepage:"home",univers:"HOME",OAS_listpos:"Position1"},"/leisure/indispo/indispo_agence":{sitepage:"home",univers:"HOME",OAS_listpos:"Position1"},"/leisure/indispo/indispo_totale":{sitepage:"home",univers:"HOME",OAS_listpos:"Position1"},"/leisure/purchase/journeyQuotation/journeyQuotation":{sitepage:"lp_train",univers:"TRAIN",OAS_listpos:"Top,Position2"},"/leisure/purchase/comm1command/comm1command":{sitepage:"lp_train",univers:"TRAIN",OAS_listpos:"Top,Position2"},"/leisure/schedule/timeCards/personalizedCardsForm":{sitepage:"lp-horaireperso",univers:"TRAIN",OAS_listpos:"Right,Top"},"/leisure/schedule/scheduleQuotation/scheduleQuotation":{sitepage:"horaire",univers:"TRAIN",OAS_listpos:"Top,Position2"},"/leisure/schedule/scheduleProposals/inwardScheduleProposals":{sitepage:"horaire",univers:"TRAIN",OAS_listpos:"Top,Position2"},"/leisure/schedule/scheduleProposals/outwardScheduleProposals":{sitepage:"horaire",univers:"TRAIN",OAS_listpos:"Top,Position2"},  "/leisure/reservation/order":{sitepage:"commandenc",univers:"TRAIN",OAS_listpos:"Top"},"/leisure/reservation/basket":{sitepage:"basketnc",univers:"TRAIN",OAS_listpos:"Top2"},"/leisure/reservation/confirmation":{sitepage:"resa",univers:"TRAIN",OAS_listpos:"Top,Position2"},"/leisure/espacepro/proHome":{sitepage:"LP_PRO",univers:"TRAIN",OAS_listpos:"Top,Position2"},"/tgv":{sitepage:"TGVhome",univers:"TRANSPORTEUR",OAS_listpos:"Position2"},"/tgv/services_tgv":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=homeservice"},"/tgv/services_tgv/voiture_transports":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=solution"},"/tgv/services_tgv/accompagnement":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=accompagnement"},"/tgv/services_tgv/billets_combines":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=combine"},"/tgv/services_tgv/solutions_bagages":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=bagage"},"/tgv/services_tgv/en_gare_a_bord":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=services"},"/tgv/services_tgv/echange_remboursement":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=echange"},"/tgv/services_tgv/Pro_hyper_Flexibilite":{sitepage:"TGVservice",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=flexibilite"},"/tgv/services_tgv/Pro_points_de_contacts":{sitepage:"TGVservicepro",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=prems"},"/tgv/services_tgv/Pro_services_exclusifs_premiere":{sitepage:"TGVservicepro",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3"},"/tgv/services_tgv/Pro_services_sur_mesure":{sitepage:"TGVservicepro",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3"},"/tgv/choisir_le_bon_tarif_TGV":{sitepage:"TGV",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=tarif"},"/tgv/tarif_tgv_prems":{sitepage:"TGV",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=prems"},"/tgv/fidelite_tgv":{sitepage:"TGV",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=fidelite"},"/tgv/actualite_tgv":{sitepage:"TGV",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=actu"},"/tgv/dernieres_nouvelles":{sitepage:"TGV",univers:"TRANSPORTEUR",OAS_listpos:"Position2,Position3",OAS_query:"?Corner=actu"}};
try{if(typeof($)=='undefined'&&window.parent!=null&&typeof(window.parent.$)!='undefined'){$=window.parent.$;}if(typeof(gFramework)=='undefined'){var gFramework={};if(typeof(uiInit)!='undefined'){gFramework=uiInit;}else if(opener!=null&&typeof(opener)!='undefined'){$=opener.$;gFramework=opener.uiInit||opener.uiBuilder;}else if(typeof(uiBuilder)!='undefined'){gFramework=uiBuilder;}}}catch(_ex){alert('No framework initialized');}
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;};}
var StylesheetPatcher={patch:function(aPage){if(!aPage){aPage=[];$('link[rel=\x22stylesheet\x22]').each(function(aIndex,aDomObj){aPage[aIndex]=$(aDomObj).attr('href');});}if(!aPage.push){aPage=[aPage];}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($.browser.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;}var array=new Array();var ind=0;for(var i=0,len=aPage.length;i<len;++i){var e=aPage[i];if(StylesheetPatcher.patched[e]||is.ie&&StylesheetPatcher.R.exec(e)){ continue;}var reg=new RegExp("_script","g");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(t&&this.isSupportAdvancedUi()&&!is.chrome&&!is.ff2&&!is.opera&&!(is.opera&&is.mac)){a+='\x3Clink href=\x22'+e.replace(R,"_script"+t+".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'+e.replace(R,s+".css")+'\x22 rel=\x22stylesheet\x22 type=\x22text/css\x22 /\x3E';}}document.write(a); var p_styleSheetPatcher={uiDef:{"body":function(o){if(s!==null){$(o).addClass("vsc_"+s.substr(1));}}}};gFramework.register(p_styleSheetPatcher.uiDef);},patchAll:function(){ var l=document.getElementsByTagName("link");var p=[];for(var i=0,len=l.length;i<len;++i){p.push(l.href);}StylesheetPatcher.patch(p);},isSupportAdvancedUi:function(){return!is.ie||!is.mac;},patched:[], R:/_ie\d+\.css/};
function PopupOpener(po_elem,po_options){var elem=$(po_elem); var lo_PopupOpener=$.data(elem[0],'PopupOpener');if(lo_PopupOpener){return lo_PopupOpener;} lo_PopupOpener=new $.PopupOpener(po_options);$.data(elem[0],'PopupOpener',lo_PopupOpener); var lo_options=lo_PopupOpener.settings;$(po_elem).each(function(index,domElement){lo_PopupOpener.init(domElement);});}$.extend($.fn,{ removePopupOpener:function(){$.removeData(this[0],'PopupOpener');$(this).unbind("click");}}); $.PopupOpener=function(po_options){this.settings=$.extend({},$.PopupOpener.defaults,po_options);};$.extend($.PopupOpener,{prototype:{ init:function(ps_elem){var settings=this.settings;var _PopupOpener=this; $(ps_elem).bind(settings.action,function(){if(typeof(settings.resizable)=="undefined"){settings.resizable=true;}if(typeof(settings.scrollbars)=="undefined"){settings.scrollbars=true;}if(!ps_elem){return;}_PopupOpener.open(ps_elem);return false;});}, getPropertiesString:function(){var _Params=jQuery.param(this.settings);return _Params.replace(/&/g,', ').replace(/true/g,'yes').replace(/false/g,'no');}, open:function(ps_elem){if(this.popup){this.popup.close();}var _Params=this.getPropertiesString();this.popup=window.open(ps_elem.href,ps_elem.target,_Params);this.center();this.popup.focus();}, center:function(){if(this.popup){try{this.popup.moveTo(Math.round((screen.width-this.settings.width)/2),Math.round((screen.height-this.settings.height)/2));}catch(e){}}}}, defaults:{width:'670', height:'670', resizable:true,scrollbars:true,action:'click'}});
function labelisor(o,settings){var _Self=this;_Self.settings=settings||{};var input=_Self.settings.input;var label=_Self.settings.label;if(!$('#'+label).get(0)||!$('#'+input).get(0)){return;}var champ=$('#'+input); var defaultValue=$('#'+label).html();var text_field="";var field_val=champ.val();if(field_val&&(field_val!=defaultValue)){$('#'+label).addClass("norequired");text_field=field_val;}else{text_field=defaultValue;} $('#'+label).html('');champ.val(text_field);champ.focus(function(){if(champ.val()===defaultValue){champ.val("");}});champ.blur(function(){if(champ.val()===""){champ.val(defaultValue);}});}
StylesheetPatcher.patch();var leisure={uiDef:{ "a[target=pp_charte]":function(o){new PopupOpener(o,{width:780,height:613,resizable:true,scrollbars:true});},"#nli_f_cgv":function(o){new PopupOpener(o.firstChild,{width:780,height:560,resizable:true,scrollbars:true});},"#nli_f_cnil":function(o){new PopupOpener(o.firstChild,{width:780,height:600,resizable:true,scrollbars:true});},"#nli_f_infosLegales":function(o){new PopupOpener(o,{width:600,height:450,resizable:true,scrollbars:true});},".linkFare":function(o){new PopupOpener(o,{width:575,height:510,resizable:false,scrollbars:true});},"#l_foot .popupLink":function(o){new PopupOpener(o,{width:780,height:600,resizable:true,scrollbars:true});}}};uiInit.register(leisure.uiDef);
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(){};
Date.NB_DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31];  Date.SECOND=1000 ;Date.MINUTE=60*Date.SECOND;Date.HOUR=60*Date.MINUTE;Date.DAY=24*Date.HOUR;Date.WEEK=7*Date.DAY; Date.prototype.clone=function(){return new Date(this.getTime());}; Date.prototype.getNbDaysInMonth=function(m){var y=this.getFullYear();if(typeof m=="undefined"){m=this.getMonth();}if(m==1&&((0===(y%4))&&((0!==(y%100))||(0===(y%400))))){return 29;}return Date.NB_DAYS_IN_MONTH[m];}; Date.NOW=new Date(); Date.prototype.getDayOfYear=function(){var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var then=new Date(this.getFullYear(),0,0,0,0,0);var time=now-then;return Math.floor(time/Date.DAY);}; Date.prototype.getWeekNumber=function(){var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var DoW=d.getDay();d.setDate(d.getDate()-(DoW+6)%7+3); var ms=d.valueOf(); d.setMonth(0);d.setDate(4); return Math.round((ms-d.valueOf())/(7*864e5))+1;}; Date.prototype.equalsTo=function(d){return this.getFullYear()==d.getFullYear()&&this.getMonth()==d.getMonth()&&this.getDate()==d.getDate()&&this.getHours()==d.getHours()&&this.getMinutes()==d.getMinutes();};
function DateFormat( p){I18N.setup(DateFormat);if(!p){p=DateFormat.i18n.br.timeFormatShort;}this.pattern=p;}DateFormat._RE1=/\W+/;DateFormat._RE2=/%./g;DateFormat._RE3=/%./g;DateFormat.prototype={parse:function(str){var today=new Date(),y=0,m=-1,d=0,a=str.split(DateFormat._RE1),b=this.pattern.match(DateFormat._RE2),i=0,j=0,hr=0,min=0;for(i=0;i<a.length;++i){if(!a[i]){continue;}switch(b[i]){case "%d":case "%e":d=parseInt(a[i],10);break;case "%M":m=parseInt(a[i],10)-1;break;case "%Y":case "%y":y=parseInt(a[i],10);if(y<100){y+=y>29?1900:2000;}break;case "%b":case "%B":for(j=0;j<12;++j){if(DateFormat.i18n.br.MONTH[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){m=j;break;}}break;case "%H":case "%I":case "%k":case "%l":hr=parseInt(a[i],10);break;case "%P":case "%p":if(/pm/i.test(a[i])&&hr<12){hr+=12;}else if(/am/i.test(a[i])&&hr>=12){hr-=12;}break;case "%m":min=parseInt(a[i],10);break;}}if(isNaN(y)){y=today.getFullYear();}if(isNaN(m)){m=today.getMonth();}if(isNaN(d)){d=today.getDate();}if(isNaN(hr)){hr=today.getHours();}if(isNaN(min)){min=today.getMinutes();}if(y!==0&&m!=-1&&d!==0){return new Date(y,m,d,hr,min,0);}y=0;m=-1;d=0;for(i=0;i<a.length;++i){if(a[i].search(/[a-zA-Z]+/)!=-1){var t=-1;for(j=0;j<12;++j){if(DateFormat.i18n.br.MONTH[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){t=j;break;}}if(t!=-1){if(m!=-1){d=m+1;}m=t;}}else if(parseInt(a[i],10)<=12&&m==-1){m=a[i]-1;}else if(parseInt(a[i],10)>31&&y===0){y=parseInt(a[i],10);if(y<100){y+=y>29?1900:2000;}}else if(d===0){d=a[i];}}if(y===0){y=today.getFullYear();}if(m!=-1&&d!==0){return new Date(y,m,d,hr,min,0);}return today;}, format:function(d){var m=d.getMonth(),D=d.getDate(),y=d.getFullYear(),wn=d.getWeekNumber(),w=d.getDay(),hr=d.getHours(),dy=d.getDayOfYear(),min=d.getMinutes(),sec=d.getSeconds();var pm=(hr>=12);var ir=pm?(hr-12):hr;if(ir===0){ir=12;}var t=wn<10?("0"+wn):wn;var s={"%a":DateFormat.i18n.br.DAY_AB[w], "%A":DateFormat.i18n.br.DAY[w], "%b":DateFormat.i18n.br.MONTH_AB[m], "%B":DateFormat.i18n.br.MONTH[m],  "%C":1+Math.floor(y/100), "%d":D<10?("0"+D):D, "%e":D,   "%H":hr<10?("0"+hr):hr, "%I":ir<10?("0"+ir):ir, "%j":dy<100?(dy<10?("00"+dy):("0"+dy)):dy, "%k":hr, "%l":ir, "%M":m<9?("0"+(1+m)):(1+m), "%m":min<10?("0"+min):min, "%n":"\n", "%p":pm?"PM":"AM","%P":pm?"pm":"am",  "%S":Math.floor(d.getTime()/1000),"%s":sec<10?("0"+sec):sec, "%t":"\t",  "%U":t,"%W":t,"%V":t,"%u":w+1, "%w":w,   "%y":(''+y).substr(2,2), "%Y":y, "%%":"%" };return DateFormat.REPLACE(this.pattern,s);}};if(typeof(is)!="undefined"&&!is.ie5&&!(is.ie&&is.mac)&&!is.khtml){DateFormat.REPLACE=function(x,s){return x.replace(DateFormat._RE3,function(p){return s[p]||p;});};}else{DateFormat.REPLACE=function(x,s){var a=x.match(DateFormat._RE3);if(!a){return x;}for(var i=0;i<a.length;++i){var t=s[a[i]];if(typeof(t)=="undefined"){continue;}var r=new RegExp(a[i],'g');x=x.replace(r,t);}return x;};} DateFormat.i18nDef={};
DateFormat.i18nDef.fr={ DAY_AB:["dim","lun","mar","mer","jeu","ven","sam"], DAY_FL:["d","l","m","m","j","v","s"], DAY:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"], MONTH_AB:["jan","f\xE9v","mar","avr","mai","juin","juil","ao\xFBt","sep","oct","nov","d\xE9c"], MONTH:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"], firstDayWeek:1, dayFormatLong:"%A %e %B", dayFormatShort:"%d/%M/%Y", timeFormatLong:"%A %e %B %Hh %Mm %ss", timeFormatShort:"%d/%M/%Y %H:%m:%s"};
function ShortcutManager( d, o){if(!o){o={};}this.fct={N:[],CTRL_:[],ALT_:[],SHIFT_:[]};$(document).bind("keydown",this.run.bind(this));if(d){this.register(d);}var s=this;if(o.listenerOn){var l=o.listenerOn;if(o.enableOn){$(l).bind(o.enableOn,function(){s.enable();});}if(o.disableOn){$(l).bind(o.disableOn,function(){s.disable();});}}this.enabled=o.enabled?true:false;}ShortcutManager.getCode=function(e){if(e.keyCode!==0){return e.keyCode;}return e.charCode;};ShortcutManager.prototype={run:function(e){if(!this.enabled){return;}if(!e){e=event;}var c=ShortcutManager.getCode(e)+"";var f;if(e.ctrlKey){f=this.fct.CTRL_[c];}if(e.altKey){f=this.fct.ALT_[c];}if(e.shiftKey){f=this.fct.SHIFT_[c];}if(this.runFcts(f,e)===false){return false;}if(f&&f.length>0){Event._.patch(e);e.stopPropagation();return;}if(this.runFcts(this.fct.N[c],e)===false){return false;}},runFcts:function( f, e){for(var i=0;f&&i<f.length;++i){if(f[i]&&f[i](e)!==true){e.stopPropagation();e.preventDefault();return false;}}},enabled:false,disable:function(){this.enabled=false;},enable:function(){this.enabled=true;}, register:function(k,m){for(var c in k){if(ShortcutManager.CODE[c]){this.add(ShortcutManager.CODE[c],k[c],m);}else if(ShortcutManager.MODIFIER[c]){this.register(k[c],c);}}}, add:function( c, f, m){c=c+"";var a=this.fct[m];if(!a){a=this.fct.N;}if(!a[c]){a[c]=[];}a[c].push(f);},remove:function(c,f,m){var a=this.fct[m];if(!a){a=this.fct.N;}if(!a[c]){return;}for(var i=a[c].length-1;i>=0;--i){if(a[c][i]==f){a[c][i]=null;}}}};ShortcutManager.CODE={ENTER:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,STOPSCROLL:145,PAUSE:19,SWIFT:16,CRTL:17,ALT:18,WIN:91, WINRIGHT:92,CONTEXT:93,MAJ:20,TAB:9, BSPACE:8,DELETE:46,SPACE:32, LOCKN:144,ESC:27,UP:38,DOWN:40,LEFT:37,RIGHT:39,PUP:33,PDOWN:34,HOME:36,END:35};ShortcutManager.MODIFIER={ALT_:"altKey",CTRL_:"ctrlKey",SHIFT_:"shiftKey "};
var DatePicker=CUi.create("DatePicker",{prototype:{ _:function(){ var s=this,e=this.el,o=this.opt; e.setAttribute("autocomplete","off"); if(!o.format){I18N.setup(DateFormat); o.format=DateFormat.i18n.get("dayFormatShort");}s.df=new DateFormat(o.format);$(e).addClass("DatePicker_trigger");function F(aEvent){s.show();  aEvent.stopPropagation();} $(e).bind("click",function(aEvent){F(aEvent);return false;}); $(e).bind("focus",function(aEvent){F(aEvent);return false;});DatePicker.input=e;var t1=DatePicker.i18n.get('shrctTrigger'),t2=DatePicker.i18n.get('shrctTriggerFocus');e.title=t1; s.inputShortcutManager=new ShortcutManager({CTRL_:{SPACE:function(){s.show();}}},{listenerOn:e,enableOn:"focus",disableOn:"blur"}); s.shortcutManager=new ShortcutManager({UP:function(){s.goToPrevWeek();},DOWN:function(){s.goToNextWeek();},LEFT:function(){s.goToPrevDay();},RIGHT:function(){s.goToNextDay();},PUP:function(){s.goToPrevMonth();},PDOWN:function(){s.goToNextMonth();},ENTER:function(e){s.selectDate();},ESC:function(){s.hide();},HOME:function(){s.goToday();},CTRL_:{ENTER:function(e){s.goToday();s.selectDate();}}});$(e).bind("focus",function(){e.title=t2;});$(e).bind("blur",function(){e.title=t1;if(DatePicker.closeTimer){return;}DatePicker.closeTimer=setTimeout(function(){DatePicker.closeTimer=clearTimeout(DatePicker.closeTimer);  if(s.cal!=null&&s.cal.div!=null&&s.cal.div.className!=null&&e!=null&&e.id!=null){var className=s.cal.div.className;if(className.match(e.id)){s.hide();}}},50);});s.current=new Date();if(o.showDay){ s.day=document.createElement("span");s.day.className="DatePicker_day";e.parentNode.insertBefore(s.day,e);var v=e.value;if(v){ v=s.df.parse(v); if(!s.isEnable(v)){ e.value="";}else{ s.updateDay(v);}}}$.data(e,'_DatePicker',this);},goToday:function( e){this.showMonth(new Date(),e);return false;},goToNextDay:function( e){var d=this.current.clone();d.setDate(d.getDate()+1);this.showMonth(d,e);},goToPrevDay:function( e){var d=this.current.clone();d.setDate(d.getDate()-1);this.showMonth(d,e);},goToNextWeek:function( e){var d=this.current.clone();d.setDate(d.getDate()+7);this.showMonth(d,e);},goToPrevWeek:function( e){var d=this.current.clone();d.setDate(d.getDate()-7);this.showMonth(d,e);}, changeMonth:function( e, i){var d=this.current.clone();  d.setDate(1);   var wMonth=d.getMonth()+i;if(wMonth==-1){ d.setFullYear(d.getFullYear()-1);d.setMonth(11);}else{d.setMonth(wMonth);} if(this.current.getDate()>d.getNbDaysInMonth()){ d.setDate(d.getNbDaysInMonth());}else{ d.setDate(this.current.getDate());}this.showMonth(d,e);},goToNextMonth:function( e){this.changeMonth(e,1);},goToPrevMonth:function( e){this.changeMonth(e,-1);},show:function(){DatePicker.showCal(this);},hide:function(){DatePicker.hideCal(this);},isEnable:function(d){return d.getTime()>=DatePicker.NOW;},showDate:function(d){if(!d){d=new Date();}d.setHours(23);d.setMinutes(0);d.setSeconds(0);this.showMonth(d);}, showMonth:function( ref, e){window.stopEvent(e);if(!ref){ref=this.current;}var d=ref.clone();if(!this.isEnable(ref)){ for(var k=1;k<32;++k){d.setDate(k);if(this.isEnable(d)){ref=d.clone();break;}}if(!this.isEnable(d)){window.stopEvent(e);return false;}}d.setDate(1);var r=ref.clone();var caption=DateFormat.i18n.br.MONTH[ref.getMonth()]+" "+ref.getFullYear();try{this.cal.caption.innerHTML=caption;}catch(e){this.cal.month.innerHTML=""; this.cal.caption.appendChild(document.createTextNode(caption));} while(d.getDay()!=DateFormat.i18n.br.firstDayWeek){d.setDate(d.getDate()-1);}this.cal.table.style.display="none";var j=this.cal.days,i18n_dayChoice=DatePicker.i18n.br.dayChoice,fdBr=DateFormat.i18n.br;var l=j.length;for(var i=0;i<l;++i){var o=j[i],cn="";if(d.getTime()==r.getTime()){cn="current";}else{cn=(d.getMonth()<r.getMonth()?"prev":d.getMonth()>r.getMonth()?"next":"");}if(!this.isEnable(d)){cn+=" disabled";o._disabled=true;o.title=DatePicker.i18n.get('dayNotChoice');}else{o._disabled=false;o.title=i18n_dayChoice+' '+fdBr.DAY[d.getDay()]+' '+d.getDate()+' '+fdBr.MONTH[d.getMonth()]+' '+d.getFullYear();}try{o.innerHTML=d.getDate();}catch(e){o.innerHTML=""; o.appendChild(document.createTextNode(d.getDate()));}o._d=d.getTime();o.parentNode.className=cn;d.setDate(d.getDate()+1);this.current=ref;}this.cal.table.style.display="block";return false;},selectDate:function( l, e){var d;if(l&&l._d){l._d=parseInt(l._d,10); d=new Date(l._d);if(!this.isEnable(d)){window.stopEvent(e); return false;}}else{d=this.current.clone();if(!this.isEnable(d)){try{window.stopEvent(l);}catch(e){}return;}}  this.current.setDate(1);this.current.setFullYear(d.getFullYear());this.current.setMonth(d.getMonth());this.current.setDate(d.getDate());d=this.current;$.data(this.el,'current',this.current);var oldValue=this.el.value;this.el.value=this.df.format(d); this.updateDay(d);var _Elem=this.el;var _Current=this.current;$(this.el).bind('focus',function(aEvent){Function.EMPTY(aEvent);aEvent.stopPropagation();return false;});DatePicker.hideCal();function F(o,f){return(function(){$(o).bind('focus',function(aEvent){f(aEvent);aEvent.stopPropagation();return false;});});}if(this.el.value!=oldValue){$(this.el).trigger("change");}setTimeout(F(this.el,function(){$(this.el).focus();}),100);return false;}, updateDay:function( d){if(!this.day){ return;} if(this.day.firstChild){this.day.removeChild(this.day.firstChild);}this.day.appendChild(document.createTextNode(DateFormat.i18n.br.DAY[d.getDay()]));}}, CAL:null, currentPicker:null, BUTTON:document.createElement("a"), getCal:function( o){ var D=DatePicker;var br=D.i18n.br,fdBr=DateFormat.i18n.br,C=D.CAL,s=o.opt.shortcut;if(!C){var b=['\x3Cp id=\x22DatePicker_caption\x22\x3E\x3Ca href=\x22javascript:void(0)\x22 title=\x22',br.goToPrevMonthTitle,(s?br.shrctShowCalPrevMonth:''),'\x22 id=\x22DatePicker_c_mPrev\x22\x3E',br.goToPrevMonth,'\x3C/a\x3E \x3Ca href=\x22javascript:void(0)\x22 title=\x22',br.goToNextMonthTitle,(s?br.shrctShowCalNextMonth:''),'\x22 id=\x22DatePicker_c_mNext\x22\x3E',br.goToNextMonth,'\x3C/a\x3E\x3Cstrong\x3E\x3C/strong\x3E\x3C/p\x3E\x3Ctable',(s?' title=\x22'+br.shrct+'\x22':''),'\x3E\x3Cthead\x3E\x3Ctr\x3E'];var c=fdBr.firstDayWeek;for(var i=0;i<7;++i){b.push('\x3Cth id=\x22j'+i+'\x22\x3E');b.push('\x3Cabbr title=\x22'+fdBr.DAY[c]+'\x22\x3E');b.push(fdBr.DAY_FL[c]);if(++c>6){c=0;}b.push('\x3C/th\x3E');}b.push('\x3C/tr\x3E\x3C/thead\x3E\x3Ctbody\x3E');for(var w=0;w<6;++w){b.push("\x3Ctr\x3E");for(var j=0;j<7;++j){b.push('\x3Ctd headers=\x22j'+j+'\x22\x3E\x3Ca href=\x22javascript:void(0)\x22 onclick=\x22DatePicker.currentPicker.selectDate(this,event);return false;\x22\x3E\x3C/a\x3E\x3C/td\x3E');}b.push("\x3C/tr\x3E");}var N=new Date();var ajdh=new Date(N.getFullYear(),N.getMonth(),N.getDate(),23,59,59,999);b.push('\x3C/tbody\x3E\x3C/table\x3E\x3Cp\x3E\x3Ca href=\x22javascript:void(0)\x22 title=\x22',br.todayTitle,(s?br.shrctToday:''),'\x22 onclick=\x22this._d=\x27',ajdh.getTime(),'\x27;return DatePicker.currentPicker.selectDate(this,event);\x22 id=\x22DatePicker_c_today\x22\x3E',br.today,'\x3C/a\x3E\x3C/p\x3E');var t=document.createElement("div");t.id="DatePicker2";t.innerHTML=b.join(''); document.body.appendChild(t);C=D.CAL={div:t,caption:t.firstChild.lastChild,table:t.firstChild.nextSibling,days:t.firstChild.nextSibling.tBodies[0].getElementsByTagName("a")};var lf=t.firstChild.getElementsByTagName("a");lf[0].onclick=function(e){D.currentPicker.goToPrevMonth(e);return false;};lf[1].onclick=function(e){D.currentPicker.goToNextMonth(e);return false;};$(t).bind("mousedown",function(e){e.stopPropagation();DatePicker.closeTimer2=setTimeout(function(){DatePicker.closeTimer=clearTimeout(DatePicker.closeTimer);DatePicker.closeTimer2=clearTimeout(DatePicker.closeTimer2);},10);});}var _Position={};var _DatePicker=C.div;_Position.left=$(o.el).offset().left;_Position.top=($(o.el).offset().top+$(o.el).height()+5)+'px';if(is.ie6){var cssHack={position:'absolute',width:$(_DatePicker).width(),height:$(_DatePicker).height(),top:_Position.top,left:_Position.left,display:'block',margin:0,zIndex:0};$('#DatePickerIE6Hack').css(cssHack);$(_DatePicker).css(cssHack);}$(_DatePicker).css('top',_Position.top);$(_DatePicker).css('left',_Position.left); C.div.className=C.div.className.replace(/(^|\s+)targetInput_\S+/,"$1"); C.div.className+=" targetInput_"+o.el.id;D.currentPicker=o;return C;}, hideCal:function(){$(document).unbind("mousedown",DatePicker.EVT_MOUSEDOWN);var o=DatePicker.currentPicker;if(!o){return;} if($.browser.msie&&jQuery.browser.version=="6.0"){if(o.el.id=="outwardDate"&&$("#nbPassengersForTravel")){$("#nbPassengersForTravel").css({'visibility':'visible'});}if(o.el.id=="inwardDate"&&$("#nbPassenger")){$("#nbPassenger").css({'visibility':'visible'});}}if(o.cal){if(o.shortcutManager){o.shortcutManager.disable();}o.cal.div.style.display="none";o.cal=null;if(is.ie6){$('#DatePickerIE6Hack').hide();}}$(o).trigger("beforehide");}, showCal:function( o){if(DatePicker.currentPicker!=o){DatePicker.hideCal();} if($.browser.msie&&jQuery.browser.version=="6.0"){if(o.el.id=="outwardDate"&&$("#nbPassengersForTravel")){$("#nbPassengersForTravel").css({'visibility':'hidden'});}if(o.el.id=="inwardDate"&&$("#nbPassenger")){$("#nbPassenger").css({'visibility':'hidden'});}}o.cal=DatePicker.getCal(o);  var d=o.df.parse(o.el.value); if(!o.isEnable(d)){ o.el.value="";d=new Date();}o.dateToShow=d;$(o.cal.div).show();$(o).trigger("beforeshow"); o.showDate(o.dateToShow); if(o.shortcutManager){o.shortcutManager.enable();}}, init:function(){var D=DatePicker,d=new Date();d.setHours(0);d.setMinutes(0);d.setSeconds(0);d.setMilliseconds(0);D.NOW=d.getTime();D.BUTTON.href="javascript:void(0)";D.BUTTON.className="DatePicker_button";},EVT_MOUSEDOWN:function(e){if(DatePicker.closeTimer){return;}DatePicker.closeTimer=setTimeout(function(){DatePicker.closeTimer=clearTimeout(DatePicker.closeTimer);DatePicker.hideCal();},80);}});
DatePicker.i18nDef.fr={button:"Afficher le calendrier",goToPrevMonth:"mois préc.",goToPrevMonthTitle:"Voir le mois précédent",goToNextMonth:"mois suiv.",goToNextMonthTitle:"Voir le mois suivant",today:"Aujourd\x27hui",todayTitle:"Prendre la date d\x27aujourd\x27hui",shrctTrigger:"cliquez ici pour afficher le calendrier",shrctTriggerFocus:"cliquez ici (ou CTRL+espace) pour afficher le calendrier",shrctShowCalNextMonth:" (raccourcis : Page-Sup.)",shrctShowCalPrevMonth:" (raccourcis : Page-Inf.)",shrct:"Vous pouvez utiliser les flèches de votre clavier pour naviguer dans le calendrier",shrctToday:" (raccourcis : CTRL+Entrée)",dayChoice:"Choisir la date : ",dayNotChoice:"Date d\x26eacute;sactiv\x26eacute;e"};
function CityChoicePopupOpener(e,o){if(!o){o={};}this.el=e;this.opt=o;var t=o.target,s=this;if(!t){ return;} if(!o.container){o.container=e.parentNode;} if(typeof o.minlength!="number"){o.minlength=3;}$(e).bind("click",function(evt){evt.preventDefault();evt.stopPropagation();s.openPopup(e);return false;});function F(){s.update();}$(t).bind("keyup",function(){F();});$(t).bind("change",function(){F();});$.data(this.el,'_CityChoicePopupOpener',this);this.update();}CityChoicePopupOpener.prototype={openPopup:function(e){ if(!this.update()){ return;}var u=e,t=this.opt.target,x={width:1050,height:600};if(!u){return;} var url=u+"\x26NOM_VILLE="+escape(t.value)+"\x26CIBLE="+t.name+"\x26NOM_FORM="+t.form.name;var args='width='+x.width+',height='+x.height+',resizable,scrollbars';var w=window.open(url,'Choix_de_la_ville',args);try{if(w){w.moveTo(Math.round((screen.width-x.width)/2),Math.round((screen.height-x.height)/2));w.focus();}else{ this.el.focus();}}catch(e){}},update:function(){var l=this.opt.target.value.length;if(l<this.opt.minlength){$(this.el).addClass("disabled");$(this.el).removeClass("enable");this.el.disabled=true;}else{$(this.el).addClass("enable");$(this.el).removeClass("disabled");this.el.disabled=false;}if(l===0){ $(this.opt.container).addClass("empty");$(this.opt.container).removeClass("notEmpty");}else{$(this.opt.container).addClass("notEmpty");$(this.opt.container).removeClass("empty");}return!this.el.disabled;}};
function ViaCityChoicePopupOpener(e,o){if(!o){o={};}this.el=e;this.opt=o;if(!o.target){return;}var s=this;function F(){s.openPopup();}if(o.container){$(o.container).bind("click",function(evt){evt.preventDefault();evt.stopPropagation();F();});}this.opt.target.readOnly=true;$(e).bind("click",function(evt){evt.preventDefault();evt.stopPropagation();F();});$.data(this.opt.target,'_ViaCityChoicePopupOpener',this);s.update();}ViaCityChoicePopupOpener.prototype={openPopup:function(){var u=document.getElementById('CM_D_viaCityChoicePopup').href;if(!u){return;}var w=window.open(u+"\x26NOM_VILLE="+this.opt.target.value+"\x26CIBLE="+this.opt.target.name+"\x26NOM_FORM="+this.opt.target.form.name+'\x26VIA=true','Choix_via','width=500,height=470,resizable');w.focus();}, update:function(){if(!this.opt.container){return;}if(this.opt.target.value.length===0){$(this.opt.container).addClass("empty");}else{$(this.opt.container).removeClass("empty");}}};
var defaultSearchFields={uiDef:{ "#outwardDate":function(o){defaultSearchFields.outwardDate=o;defaultSearchFields.outwardDatePicker=new DatePicker(o);}, "#inwardDate":function(o){var _DatePicker=new DatePicker(o,{showDay:false});$(_DatePicker).bind("beforeshow",function(){var S=defaultSearchFields;if(!S.outwardDate||!S.outwardDatePicker){return;} var date=S.outwardDatePicker.df.parse(S.outwardDate.value);_DatePicker.dateToShow=date;});$(o).bind("change",function(){if(o.value!=''){$("input[name=\x27TRAVEL_TYPE\x27]").val('AR');}});}, "#helpOrigin, #originCity":function(o,a){new CityChoicePopupOpener(a[0],{target:a[1]});return false;},"#helpDestination, #destinationCity":function(o,a){new CityChoicePopupOpener(a[0],{target:a[1]});return false;},"#helpVia, #viaCity":function(o,a){new CityChoicePopupOpener(a[0],{target:a[1]});return false;}, "#searchFieldsTravelVia":function(o){$("#viaCityFieldText").hide();$("input[@name=DIRECT_TRAVEL]").bind("click",function(){if($("#viaTravel").is(':checked')){$("#viaCityFieldText").show();}else{$("#viaCityFieldText").hide();}});},"#travelTypeAS, #travelTypeAR":function(o){  $(o).bind("click change focus",function(){if(o.value=="AS"){$("#inwardDate").val('');}});}}};uiInit.register(defaultSearchFields.uiDef);
var p_resaQuotation={STATIC:{CAL_OPT:{shortcut:true,showOnFocus:true,showOnClick:true,format:"%d/%M/%Y"},CAL_RETOUR:function(p){return function(){if(this.el.value===""){this.dateToShow=this.df.parse(p.el.value);}};}},uiDef:{"#subscriptionForm":function(o){ new FormValidator(o);},"#pp_infosFormat":function(o){new PopupOpener(o,{width:380,height:500,resizable:true,scrollbars:true});},"#knowMore":function(o){new PopupOpener(o,{width:600,height:300,resizable:true,scrollbars:true});},"#d_formAlertResa":function(o){var emailLabel=document.getElementById("emailLabel");var mobilePhoneNumberLabel=document.getElementById("mobilePhoneNumberLabel");var email=document.getElementById("email");var mobilePhoneNumber=document.getElementById("mobilePhoneNumber");emailLabel.className="hidden";mobilePhoneNumberLabel.className="hidden";email.value=emailLabel.innerHTML;mobilePhoneNumber.value=mobilePhoneNumberLabel.innerHTML; email.onfocus=function(){if(this.value===emailLabel.innerHTML){this.value="";}};email.onkeydown=function(){this.form.emailSelected.checked=true;email.className="input required";};mobilePhoneNumber.onfocus=function(){if(this.value===mobilePhoneNumberLabel.innerHTML){this.value="";}};mobilePhoneNumber.onkeydown=function(){this.form.mobilePhoneNumberSelected.checked=true;mobilePhoneNumber.className="input required";}; var emailSelected=document.getElementById("emailSelected");var mobilePhoneNumberSelected=document.getElementById("mobilePhoneNumberSelected");emailSelected.onchange=function(){if(this.form.emailSelected.checked===true){email.className="input required";}else{email.className="input";}};mobilePhoneNumberSelected.onchange=function(){if(this.form.mobilePhoneNumberSelected.checked===true){mobilePhoneNumber.className="input required";}else{mobilePhoneNumber.className="input";}};},   ".aAide":function(o,a){new PopupOpener(o,{width:500,height:250,scrollbars:true,resizable:true});},"#l_foot":function(o){ $("#d_formAlertResa p:last").replaceWith('\x3Cinput type=\x22checkbox\x22 checked=\x22true\x22 id=\x22mailinglist_ok\x22 name=\x22emailNewsletter\x22\x3E par courrier électronique');}}};uiInit.register(p_resaQuotation.uiDef);

