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);}};
String.prototype.trim=function(){return this.replace(String._RE,"");};String.prototype.compareTo=function(v){if(this==v){return 0;}if(this>v){return 1;}return-1;};String._RE=/(^\s*)|(\s*$)/g;
var Session=(function(){ function _(d){if(!d){d=document;}this.el=d;this.el._Session=this;}return _;})();Session.prototype={ getAttribute:function(k,d){var c=this.el.cookie;if(!c){return d;}c=c.split(";");k=escape(k);for(var i=0;i<c.length;++i){var p=c[i].split("=");if(p.length>1&&k==p[0].trim()){return unescape(p[1].trim());}}return d;}, setAttribute:function(k,v,o){var a=[];if(v===null||typeof(v)=="undefined"){v="";}a.push(escape(k)+"="+escape(v+""));  var e,p,d;if(o){e=o.expires;p=o.path;d=o.domain;if(o.persist){e=Session.PERSIST;}if(o.secure){a.push("secure");}}if(e){if(typeof(e)!="Date"){e=new Date(e);}a.push("expires="+e.toGMTString());}if(p){a.push("path="+p);}else{a.push("path=/");}if(d){a.push("domain="+d);}this.el.cookie=a.join("; ");},removeAttribute:function(k,o){if(!o){o=[];}o.expires=Session.EXPIRE;this.setAttribute(k,null,o);}, getAttributeNames:function(){var t=this.el.cookie.split(";"),r=[];for(var i=0;i<t.length;++i){var v=t[i].split("=");r.push(unescape(v[0].trim()));}return r;},check:function(){this.setAttribute(Session.CHECKKEY,"test");if(this.getAttribute(Session.CHECKKEY)!="test"){return false;}this.removeAttribute(Session.CHECKKEY);return true;}};Session.CHECKKEY="__js_Session_test_cookie";Session.EXPIRE=new Date(1);Session.PERSIST=new Date(2105,1,1,1,1,1);var session=new Session(document);
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);}}};
function Storage( d){this.document=d?d:document;this.changeEvt={};} Storage._={ serialize:function( o){ return o+"";}, deserialize:function( s){ return s;}};Storage.prototype={ get:function( key, defValue, scope){ scope=scope?scope:"page"; var v;if(scope=="page"){var p=this.document.pageParameters;if(p){v=p[key];}}if(scope=="page"&&!v||scope!="page"){v=Storage._.deserialize(session.getAttribute(key));}return typeof v=="undefined"?defValue:v;}, set:function( key, obj, scope){ scope=scope?scope:"page";if(scope=="page"){var p=this.document.pageParameters;if(!p){p=this.document.pageParameters={};}if(p[key]!=obj){p[key]=obj;this.dispatchChangeListeners(key);}}else{if(session.getAttribute(key)!=obj){session.setAttribute(key,Storage._.serialize(obj),{persist:(scope=="permanent")});this.dispatchChangeListeners(key);}}}, addAll:function( m, scope){for(var k in m){this.set(k,m[k],scope);}}, addChangeListener:function( key, f){var e=this.changeEvt;if(!e[key]){ e[key]=[];} e[key].push(f);}, dispatchChangeListeners:function( key){ var a=this.changeEvt[key];if(!a){ return;}for(var i=0,f;(f=a[i]);++i){f();}}}; var storage=new Storage(document);
function UserLogonZone( e, o){var s=this,D=UserLogonZone.DEFAULT; if(!o){o={};}s.el=e;s.el._UserLogonZone=s;s.opt=o;EventListener.patch(s);if(!o.sessionKey){o.sessionKey=D.sessionKey;} if(typeof o.sessionKey=="string"){o.sessionKey=new RegExp("^"+o.sessionKey+"$");}if(!o.requestTarget){o.requestTarget=D.requestTarget;}if(!o.sessionIdentificationLoginKey){o.sessionIdentificationLoginKey=D.sessionIdentificationLoginKey;}if(!o.inputLoginID){o.inputLoginID=D.inputLoginID;} I18N.setup(UserLogonZone);s.params={}; s.uiBuilder=new UiBuilder(document);s.addEventListener("load",function(){s.uiBuilder.runStarters(true);s.uiBuilder.build();},false);} UserLogonZone.DEFAULT={ sessionKey:/^.+Session$/,requestTarget:"authentification",inputLoginID:"username",sessionIdentificationLoginKey:"sessionIdentificationLogin"};UserLogonZone.prototype={ load:function( o, p){this.params=p; storage.addAll(p);this.el.innerHTML=o.innerHTML;this.el.className=o.className;this.setupForm();this.dispatchEvent("load");},init:function(){var s=this,e=this.el;if(ClassNameUtil.contains(e,"state_default")){ s.checkAuthentification();}else if(ClassNameUtil.contains(e,"state_logged")){ return;}else{ s.identificationSetup();}s.setupForm();}, checkAuthentification:function(){var o=this.opt,s=this; var u=o.statiqueLogonFormUrl;var n=session.getAttributeNames();for(var i=0;i<n.length;++i){if(o.sessionKey.exec(n[i])){ u=o.dynamicLogonFormUrl[location.protocol];break;}}u+=(u.indexOf("?")==-1?"?":"\x26")+"_xmlHttpReqTm="+new Date().getTime();this.getIframe(u); this.addEventListener("load",function(){s.identificationSetup();},false);}, getIframe:function( u){var f=this.iframe;if(!u){u="about:blank";}if(!f){  f=document.createElement("div");f.style.display="none";document.body.appendChild(f);  f._UserLogonZone=this;f.innerHTML='\x3Ciframe src=\x22'+u+'\x22 name=\x22'+this.opt.requestTarget+'\x22\x3E\x3C/iframe\x3E';this.iframe=f=f.firstChild;}else{f.src=u;} f.parentNode.parentNode._UserLogonZone=this;this.setLoadingState();return f;}, setupForm:function(){var F=this.el.getElementsByTagName("form"),s=this;for(var i=0,f;(f=F[i]);++i){ var t=f;EventListener.patch(t); t.addEventListener("submit",function(){if(t._mode!="full"){ t.target=s.opt.requestTarget;var o=document.createElement("input");o.type="hidden";o.id=o.name="innerMode";o.value="true";t.appendChild(o); s.getIframe();}return true;},false);}}, identificationSetup:function(){var o=document.getElementById(this.opt.inputLoginID),v=session.getAttribute(this.opt.sessionIdentificationLoginKey);if(o&&v){ o.value=v;}}, setLoadingState:function(){this.el.className="state_loading c_lt";var o=this.el.getElementsByTagName("strong");if(!o||o.length===0){o=this.el.getElementsByTagName("strong");}if(o){var d=document.createElement("div");d.innerHTML='\x3Cp class=\x22d_loadingMessage\x22\x3E'+UserLogonZone.i18n.get("sendAuthentification")+'\x3C/p\x3E'; NodeUtil.insertAfter(d,o[0]);}}}; UserLogonZone.i18nDef={};
UserLogonZone.i18nDef.fr={sendAuthentification:"Demande d\x27authentification"};
function labelisor(o,settings){var s=this;s.settings=settings||{};var input=s.settings.input;var label=s.settings.label;if(!document.getElementById(label)||!document.getElementById(input)){return;}var champ=document.getElementById(input);if(champ.value){label=document.getElementById(label);ClassNameUtil.add(label,"norequired");return;} var defaultValue=document.getElementById(label).innerHTML; document.getElementById(label).innerHTML="";champ.value=defaultValue;champ.onfocus=function(){if(champ.value===defaultValue){champ.value="";}};champ.onblur=function(){if(champ.value===""){champ.value=defaultValue;}};}
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){}}}};
var d_userAccount={STATIC:{userLogonLoadEvent:[], addUserLogonLoadEvent:function( f){if(d_userAccount.userLogonZone){d_userAccount.userLogonZone.addEventListener("load",f);}else{d_userAccount.STATIC.userLogonLoadEvent.push(f);}}},uiDef:{starter:"l_foot",selectors:{"#d_userInsert":function(o){var u=new UserLogonZone(o,{statiqueLogonFormUrl:"/leisure/fr/customerAccount/userAccountLogin.htm",dynamicLogonFormUrl:{"http:":"/weblogic/authentication/loginForHomePage?_CMD=cmdLogin\x26innerMode=true","https:":"/weblogic/authentication/loginForHomePage?_CMD=cmdLogin\x26innerMode=true"}});u.uiBuilder.register({selectors:{"#linkForgottenPassword":function(o){ popuplink=o.href;o.onclick=function(){o.href="#";window.open(popuplink,"forgottenPassword","width=800,height=250,resizable,top=50,left=100");return false;};o.href=popuplink;},"#username":function(o){d_userAccount.uiDef.selectors["#username"](o);},"#p_home #d_panier":function(o){var div=document.createElement("div");div.setAttribute("id","d_favoris");div.innerHTML='\x3Cp class=\x22favoris\x22\x3E\x3Ca href=\x22javascript:void(0);\x22 class=\x22action\x22\x3EFavoris\x3C/a\x3E\x3C/p\x3E';o.appendChild(div,o.firstChild);div.onclick=function(){p_home.STATIC.bookmarksite("Voyages-Sncf.com - Accueil");};},  "form#fm_userAccount":function(o){new labelisor(o,{input:"login",label:"lbl_login"});},"#d_panier #d_KisDeconnect a#pp_KisDeconnect":function(o){new PopupOpener(o,{width:500,height:300,resizable:true,scrollbars:true,top:50,left:100});}}}); u.init(); var a=d_userAccount.STATIC.userLogonLoadEvent;for(var i=0,f;(f=a[i]);++i){u.addEventListener("load",f);} d_userAccount.userLogonZone=u; d_userAccount.STATIC.userLogonLoadEvent=[];},"#username":function(o){o.onfocus=function(){if(this.defaultValue==this.value){this.value="";}};o.onblur=function(){if(this.value.length===0){this.value=this.defaultValue;}};},"form#fm_userAccount":function(o){new labelisor(o,{input:"login",label:"lbl_login"});},  "#d_panier #d_KisDeconnect a#pp_KisDeconnect":function(o){new PopupOpener(o,{width:500,height:300,resizable:true,scrollbars:true,top:50,left:100});}, "#linkForgottenPassword":function(o){  popuplink=o.href;o.onclick=function(){o.href="#";window.open(popuplink,"forgottenPassword","width=500,height=250,resizable,top=50,left=100");return false;};o.href=popuplink;},"#d_MonPanier p a.popupLink":function(o){ popuplink=o.href;o.onclick=function(){o.href="#";window.open(popuplink,"Basket","width=640,height=450,resizable,top=50,left=100");return false;};o.href=popuplink;}}}};uiBuilder.register(d_userAccount.uiDef);

