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(!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 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);}};
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 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);
var FormUtil={ getQueryData: function(f,o){if(!o){o={};}var m=FormUtil.getMap(f),e=o.excludeParam,a=o.addParams;var q=[];function add(k,v){ if(typeof v=="string"){q.push(escape(k)+"="+escape(v));}else{ for(var i=0;i<v.length;++i){q.push(escape(k)+"="+escape(v[i]));}}}if(!e){for(var k in m){add(k,m[k]);}}else{for(var n in m){if(e.exec(n)){continue;}add(n,m[n]);}}if(a){for(var p in a){add(p,a[p]);}}return q.join("\x26");}, getMap:function(f){var q=[],r=new Request(f); var p=r.getParameterNames();for(var j=0;j<p.length;++j){q[p[j]]=r.getParameter(p[j]);} for(var i=0,el;(el=f.elements[i]);++i){if(typeof el!="object"){continue;}var v=FormUtil.getValue(el);  if(v===null||v===""){continue;}q[el.name]=v;}return q;}, getAction: function( e){if(!e){return null;}var i=e.action.indexOf("?"),u=e.action;if(i!=-1){return u.substring(0,i);}return u;}, getValue: function( e){if(!e){return null;}if(e.getValue){return e.getValue();}if(e.type=="checkbox"||e.type=="radio"){e.getValue=function(){var a=this.form.elements[this.name];if(typeof(a.length)=="undefined"){a=[a];}var v=[];for(var i=0;i<a.length;++i){if(a[i].checked){v.push(a[i].value);}}return(v.length===0?"":v.length==1?v[0]:v);};}else if(e.type=="select-multiple"){e.getValue=function(){var v=[];for(var i=0,o;(o=this.options[i]);++i){if(o.selected&&o.value.length>0){v.push(o.value);}}return(v.length===0?"":v.length==1?v[0]:v);};}else if(e.type=="select-one"){e.getValue=function(){if(this.selectedIndex==-1){return "";}var o=this.options[this.selectedIndex];if(!o){ return null;}return o.value;};}else if(typeof(e.value)!="undefined"){e.getValue=function(){return this.value;};}else{return null;}return e.getValue();}, setValue: function( e, v){if(!e){return;}if(e.item&&e.item(0)&&(e.item(0).type=="checkbox"||e.item(0).type=="radio")){ e=e.item(0);}if(e.setValue){return e.setValue(v);}if(e.type=="checkbox"||e.type=="radio"){var a=e.form.elements[e.name];if(typeof(a.length)=="undefined"){a=[e];}for(var i=0;i<a.length;++i){a[i].checked=(a[i].value===v);}return;}if(e.type=="select-multiple"){for(var j=0,l=e.options.length;j<l;++j){e.options[j].selected=(e.options[j].value===v);}return;}if(e.type=="select-one"){e.selectedIndex=-1;for(var k=0,m=e.options.length;k<m;++k){if(e.options[k].value===v){e.selectedIndex=k;return;}}return;}if(typeof(e.value)!="undefined"){e.value=v;}}};
function ProductBlock(po_elem,po_options){var productBlock=this; $(document).ready(function(){if($(po_elem).length>0){ productBlock.settings=$.extend({},productBlock.defaults,po_options); productBlock.addDetailedButton();}});};$.extend(ProductBlock.prototype,{ addDetailedButton:function(){ var defaults=this.defaults; $('div.'+defaults.trainProductBlock+' div.'+defaults.trainBottom).each(function(index,domObj){ if($(domObj).parent().find('.'+defaults.detailButtonClass).length==0){ I18N.setup(ProductBlock);var detailButtonText=ProductBlock.i18n.get("detailButtonText");var detailButtonMinus=ProductBlock.i18n.get("detailButtonMinus");var detailButtonPlus=ProductBlock.i18n.get("detailButtonPlus");  var aButton=$('\x3Ca\x3E\x3C/a\x3E').attr('href','#').attr('class',''+defaults.detailButtonClass+''); var aButtonImage=null;   var aButtonMinusImage=$('\x3Cimg\x3E').attr("alt",detailButtonMinus).attr("src","/design/commons/css/blocks/productBlock/img/minus.png"); var aButtonPlusImage=$('\x3Cimg\x3E').attr("alt",detailButtonPlus).attr("src","/design/commons/css/blocks/productBlock/img/plus.png"); var aButtonContent=$('\x3Cspan\x3E\x3C/span\x3E').html(detailButtonText); var parentContener=$(domObj).parent('div.'+defaults.trainProductBlock); if(parentContener.hasClass(defaults.notDetailedClass))aButtonImage=aButtonPlusImage;else aButtonImage=aButtonMinusImage; aButton.click(function(){ var buttonContener=$(this).find('span'); if(parentContener.hasClass(defaults.notDetailedClass)){buttonContener.find('img').remove();buttonContener.prepend(aButtonMinusImage);parentContener.removeClass(defaults.notDetailedClass);}else{buttonContener.find('img').remove();buttonContener.prepend(aButtonPlusImage);parentContener.addClass(defaults.notDetailedClass);} return false;}); aButtonContent.prepend(aButtonImage); aButton.append(aButtonContent); $(domObj).before(aButton);}});}, defaults:{title:'Titre',trainBottom:'btReserveContainer',detailButtonClass:'details',detailButtonContentClass:'details_bg',minusButtonImage:'minus',plusButtonImage:'plus',notDetailedClass:'notDetailed',trainProductBlock:'trainProduct'}}); ProductBlock.i18nDef={fr:{detailButtonText:"détail",detailButtonMinus:"moins de",detailButtonPlus:"plus de"},en:{detailButtonText:"details"},it:{detailButtonText:"dettagli"},es:{detailButtonText:"detalles"},de:{detailButtonText:"einzelheiten"},nl:{detailButtonText:"bijzonderheden"}};var productBlock=new ProductBlock(".trainProduct");
var p_aftersale_searchForm={uiDef:{selectors:{"#purchasePlace_0, #purchasePlace_1":function(o){var radios=document.getElementsByName("purchasePlace");o.onclick=function(){if(o.checked){document.getElementById(o.value).className="active"; for(var i=0;i<radios.length;i++){var r=radios[i];if(r.id!=o.id){document.getElementById(r.value).className="hidden";}else{document.getElementById(r.value).className="active";}}}else{document.getElementById(o.value).className="hidden";}};o.onclick();},"#identification":function(o){o.onclick=function(){document.getElementById("f_userAccount").className="active";document.getElementById("accroche_identification").className="hidden";o.className="hidden";};}}}};uiBuilder.register(p_aftersale_searchForm.uiDef);

