Kameleoon={loadSiteProfile:function(a,b){this.options=b;this.setupKameleoon(a,"0")},loadMemberProfile:function(a,c,b){this.options=b;this.setupKameleoon(a,c)},setupKameleoon:function(a,b){if(-1!=window.location.search.indexOf("disableKameleoon")){return}this.QOOXDOO_ESTIMATED_LOADING_TIME=2000;this.SERVER_CALL_ESTIMATED_LOADING_TIME=1000;this.DOMAIN="kameleoon.com";this.EDITOR_HOST_NAME="editor";this.JS_EDITOR_URL="http://static."+this.DOMAIN+"/js/editor/script/editor.js";JS_IE_COMPATIBILITY_URL="http://static."+this.DOMAIN+"/js/ie_compatibility.js";this.siteCode=a;this.memberCode=b;this.cssUrl="http://css."+this.DOMAIN+"/customers/"+this.siteCode+"/"+this.memberCode+"/production/style.css";this.options=this.options?this.options:{};this.editorMode=(-1!=window.location.search.indexOf("kameleoon=true"));this.changeAttributeCallback=function(c){Kameleoon.changeAttribute.call(Kameleoon,c)};if(true===this.options.delayedDisplay){document.documentElement.style.display="none"}this.domReady(function(){Kameleoon.loadKameleoon.apply(Kameleoon)})},loadKameleoon:function(){if(true===this.options.delayedDisplay){document.body.style.display="none";this.timeOutCallback=window.setTimeout(function(){Kameleoon.obtainElements.apply(Kameleoon,["TIMEOUT"])},4000)}if(!(true===this.options.noCSSLoad)){if(/MSIE 6/.test(navigator.userAgent)){this.cssScriptURL="http://"+this.EDITOR_HOST_NAME+"."+this.DOMAIN+"/scriptCSS/getCSSAsScript?siteCode="+this.siteCode+"&memberCode="+this.memberCode;var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("charset","utf-8");a.setAttribute("src",this.cssScriptURL);document.getElementsByTagName("head")[0].appendChild(a)}else{this.loadCSS();this.finishKameleoonLoad()}}else{this.finishKameleoonLoad()}var b=function(c){Kameleoon.listenShiftF2.call(Kameleoon,c)};if(document.addEventListener){document.addEventListener("keyup",b,false)}else{document.attachEvent("keyup",b)}if(this.editorMode){this.enableKameleoonEditor()}},finishKameleoonLoad:function(){if(!(true===this.options.noDOMUpdate)){this.loadElements()}},loadCSS:function(){var a=document.createElement("link");a.setAttribute("href",this.cssUrl);a.setAttribute("id","kameleoonStyleSheet");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(a)},loadElements:function(){if(!document.getElementById("kameleoonElements")){var a=document.createElement("div");a.setAttribute("id","kameleoonElements");document.body.appendChild(a)}if(!/MSIE 6/.test(navigator.userAgent)){this.poller=window.setInterval(function(){Kameleoon.pollElement.apply(Kameleoon)},100)}this.pollElement()},treatIE6:function(){if(/MSIE 6/.test(navigator.userAgent)){var d=this.getElementsByClassName("KameleoonContainer");for(var b=0,a=d.length;b<a;++b){d[b].style.height="100%";d[b].style.width="100%"}var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("charset","utf-8");c.setAttribute("src",this.JS_IE_COMPATIBILITY_URL);document.getElementsByTagName("head")[0].appendChild(c)}},getCustomizedElements:function(){var a=this.obtainComputedStyle(document.getElementById("kameleoonElements")).backgroundImage;if("none"!=a){a=a.substring(a.indexOf("kameleoon/")+10,a.lastIndexOf("/"));a=decodeURIComponent(a).split("/");return a}else{return[]}},pollElement:function(){if(!this.pollerLock){this.pollerLock=true;var b,a=this.getCustomizedElements();if(a.length>0){this.obtainElements(a)}this.pollerLock=false}},obtainElements:function(p){var s,b,q,a=[],r=[];if("TIMEOUT"!=p){window.clearInterval(this.poller);if(this.timeOutCallback){window.clearTimeout(this.timeOutCallback)}for(var k=0,f=p.length;k<f;++k){if("-"==p[k].charAt(0)){p[k]=p[k].substr(2);s=["noLinkPropagation"]}else{s=[]}switch(p[k].charAt(0)){case"_":var c=p[k].substr(1);b=[document.getElementById(p[k].substr(1))];if(!b[0]){if(0==c.indexOf("kameleoonElement")){var h=document.createElement("div");h.id=c;document.body.appendChild(h);b=[h]}else{b=[]}}break;case".":var b=this.getElementsByClassName(p[k].substr(1));break;default:var d=p[k].indexOf(".");if(-1!=d){var n=this.getElementsByClassName(p[k].substr(d+1));var o=p[k].substring(0,d);b=[];for(var g=0,e=n.length;g<e;++g){if(o==n[g].nodeName.toLowerCase()){b.push(n[g])}}}else{b=this.collectionToArray(document.getElementsByTagName(p[k]))}}var q=[];for(var g=0,e=b.length;g<e;++g){q.push([b[g],s])}a=a.concat(b);r=r.concat(q)}}this.powerElements(r);this.poweredElements=a;this.kameleoonReady=true;if(this.editorMode){this.enableKameleoonEditor()}},listenShiftF2:function(a){if(113==a.keyCode&&a.shiftKey){this.editorMode=true;this.enableKameleoonEditor()}},removeDuplicates:function(d){var c,b=d.length,a=[];for(c=0;c<b;++c){if(!d[c][0].kameleoonUnique){d[c][0].kameleoonUnique=true;a.push(d[c])}}for(c=0,b=a.length;c<b;++c){if(d[c][0].kameleoonUnique){d[c][0].kameleoonUnique=undefined;d[c][0].removeAttribute("kameleoonUnique")}}return a},powerElements:function(a){if(true===this.options.delayedDisplay){this.showDocument()}if(0==a.length){return}a=a.sort(function(l,i){var l=window.Kameleoon.obtainDepth(l[0]),i=window.Kameleoon.obtainDepth(i[0]);return l>i?-1:l<i?1:0});a=this.removeDuplicates(a);for(var d=0,c=a.length;d<c;++d){var e,g,m,o,k,b,n,h="div",f=false;e=a[d][0];options=a[d][1];if(this.options.specifyElements&&(-1==e.className.indexOf("Kameleoon"))){continue}if("body"==e.nodeName.toLowerCase()){k=document.createElement(h);k.className="KameleoonContent";this.transferChildrenElementsToTargetElement(e,k);o=document.createElement(h);o.className="KameleoonContainer";o.appendChild(k);m=e;m.appendChild(o);this.appendSubdivisions(o);this.setupStretch(e,true);continue}if(/^(a|button|font|img|input|select|span|textarea)$/.test(e.nodeName.toLowerCase())){h="span"}if(/^(img|input|select)$/.test(e.nodeName.toLowerCase())){f=true}if(/^(img|input|p|select|table)$/.test(e.nodeName.toLowerCase())){if(document.addEventListener){e.removeEventListener("DOMAttrModified",this.changeAttributeCallback,false)}else{e.detachEvent("DOMAttrModified",this.changeAttributeCallback)}b=e.id;n=e.className;m=document.createElement(h);if(b){m.id=b;e.removeAttribute("id")}e.removeAttribute("class");if(e.style.cssText){m.style.cssText=e.style.cssText;e.removeAttribute("style")}m.className=n?(n+(f?" KameleoonInlineBlock":"")):(f?"KameleoonInlineBlock":"");m.className=(m.className?(m.className+" "):"")+"Kameleoon"+e.nodeName.charAt(0).toUpperCase()+e.nodeName.slice(1).toLowerCase();e.parentNode.replaceChild(m,e);k=e;k.className="KameleoonContent";o=document.createElement(h);o.className="KameleoonContainer KameleoonInlineBlock";o.appendChild(k);m.appendChild(o);this.appendSubdivisions(o);if(document.addEventListener){k.addEventListener("DOMAttrModified",this.changeAttributeCallback,false)}else{k.attachEvent("DOMAttrModified",this.changeAttributeCallback)}}else{if("tr"==e.nodeName.toLowerCase()){k=e;o=document.createElement(/MSIE/.test(navigator.userAgent)?"td":"tr");m=e.parentNode;b=e.id;n=e.className;if(b){o.id=b+"KameleoonTableRow"}o.className=(n?n:"")+"KameleoonTableRow KameleoonContainer";o.style.width=e.offsetWidth+"px";o.style.height=e.offsetHeight+"px";o.style.top=e.offsetTop+"px";o.style.left=e.offsetLeft+"px";o.style.position="absolute";o.style.display="block";o.style.zIndex=0;e.kameleoonContainer=o;m.style.position="relative";m.style.display="block";e.style.zIndex=1;e.style.position="relative";if(/MSIE/.test(navigator.userAgent)){var j=document.createElement("tr");j.style.position="absolute";m.insertBefore(j,m.firstChild);j.appendChild(o)}else{if(/Opera/.test(navigator.userAgent)){m.style.zIndex=1;m.parentNode.appendChild(o);m.parentNode.style.position="relative"}else{m.insertBefore(o,m.firstChild);e.style.opacity="0.9999"}}this.appendSubdivisions(o)}else{k=document.createElement(h);k.className="KameleoonContent";this.transferChildrenElementsToTargetElement(e,k);o=document.createElement(h);o.className="KameleoonContainer";o.appendChild(k);m=e;m.appendChild(o);this.appendSubdivisions(o)}}if(options.length>0){k.setAttribute("kData","nlp")}}this.treatIE6()},changeAttribute:function(a){if("class"==a.attrName){if(document.addEventListener){a.relatedNode.ownerElement.removeEventListener("DOMAttrModified",this.changeAttributeCallback,false)}else{a.relatedNode.ownerElement.detachEvent("DOMAttrModified",this.changeAttributeCallback)}a.relatedNode.value=a.prevValue;a.relatedNode.ownerElement.parentNode.parentNode.className=a.newValue;if(document.addEventListener){a.relatedNode.ownerElement.addEventListener("DOMAttrModified",this.changeAttributeCallback,false)}else{a.relatedNode.ownerElement.attachEvent("DOMAttrModified",this.changeAttributeCallback)}}},refreshDimensions:function(){for(var b=0,a=this.poweredElements.length;b<a;++b){if("tr"==this.poweredElements[b].nodeName.toLowerCase()){var c=this.poweredElements[b].kameleoonContainer;c.style.width=this.poweredElements[b].offsetWidth+"px";c.style.height=this.poweredElements[b].offsetHeight+"px";c.style.top=this.poweredElements[b].offsetTop+"px";c.style.left=this.poweredElements[b].offsetLeft+"px"}}},showDocument:function(){document.documentElement.style.display="";document.documentElement.removeAttribute("style");document.body.style.display=""},transferChildrenElementsToTargetElement:function(c,e){var f=this.collectionToArray(c.childNodes);for(var b=0,a=f.length;b<a;++b){var d=f[b];if(d.nodeType!=1){e.appendChild(d);continue}if("script"==d.nodeName.toLowerCase()){d.className+=(d.className?" ":"")+"KameleoonProtected"}if(!this.hasClassName(d,"KameleoonProtected")){e.appendChild(d)}}},appendSubdivisions:function(a){var b=document.createElement("div");b.className="KameleoonBackground";a.appendChild(b);this.setupStretch(b,true);b=document.createElement("div");b.className="KameleoonTopDecoration";a.appendChild(b);b=document.createElement("div");b.className="KameleoonBottomDecoration";a.appendChild(b);b=document.createElement("div");b.className="KameleoonLeftDecoration";a.appendChild(b);this.setupStretch(b,false);b=document.createElement("div");b.className="KameleoonRightDecoration";a.appendChild(b);this.setupStretch(b,false);b=document.createElement("div");b.className="KameleoonTopLeftDecoration";a.appendChild(b);b=document.createElement("div");b.className="KameleoonTopRightDecoration";a.appendChild(b);b=document.createElement("div");b.className="KameleoonBottomLeftDecoration";a.appendChild(b);b=document.createElement("div");b.className="KameleoonBottomRightDecoration";a.appendChild(b)},setupStretch:function(e,a){var h=this.obtainDataFromCSS(e);var c=a?"FULL_FLEX":"_FLEX";if(-1!=h.indexOf(c)){var d=("VERTICAL_FLEX"==h)||("FULL_FLEX"==h);var b=("HORIZONTAL_FLEX"==h)||("FULL_FLEX"==h);var g=document.createElement("img");var f=this.obtainComputedStyle(e).backgroundImage;f=f.substring(4,f.lastIndexOf(")"));if('"'==f.charAt(0)){f=f.substring(1,f.length-1)}g.src=f;if("body"==e.nodeName.toLowerCase()){g.style.position="absolute";g.style.top="0px";g.style.left="0px";g.height=window.innerHeight;g.width=window.innerWidth}else{e.style.backgroundImage="none";if(d){g.style.height="100%"}if(b){g.style.width="120%"}else{g.style.width="100%"}}g.className="KameleoonImage";g.style.margin="0px";g.style.padding="0px";g.style.border="none";e.appendChild(g)}},enableKameleoonEditor:function(){if(!this.enabled&&this.kameleoonReady){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("charset","utf-8");a.setAttribute("src",this.JS_EDITOR_URL);document.getElementsByTagName("head")[0].appendChild(a);var b=document.createElement("div");b.id="kameleoonRegion";b.className="KameleoonProtected";document.body.appendChild(b);this.setupLoadingDialog(b);this.refreshProgressBar(Math.round(this.QOOXDOO_ESTIMATED_LOADING_TIME/(this.QOOXDOO_ESTIMATED_LOADING_TIME+this.SERVER_CALL_ESTIMATED_LOADING_TIME)*100));this.enabled=true}},setupLoadingDialog:function(e){e.innerHTML='<div id="kameleoonQxDialogs" style="width: 1024px; height: 768px; top: 50%; margin-top: -400px; left: 50%; margin-left: -512px; position: fixed; z-index: 5004;" ></div><div id="kameleoonQxOverlay" style="width: 100%; height: 100%; top: 0px; left: 0px; position: fixed; z-index: 5003; background-color: #4a93de; opacity: 0.5;" ></div>';var a=document.createElement("div");a.id="kameleoonLoadingDialog";a.style.backgroundColor="#4a93de";a.style.border="1px solid #2b5172";a.style.color="#000000";a.style.margin="auto";a.style.marginTop="100px";a.style.paddingBottom="40px";a.style.fontFamily="arial, helvetica, sans-serif";a.style.fontSize="10pt";a.style.maxWidth="450px";a.style.textAlign="center";var c=document.getElementById("kameleoonQxOverlay");var f=document.createElement("div");var d=document.createElement("div");var b=document.createElement("span");b.id="kameleoonProgressionLabel";f.style.width="102px";f.style.height="15px";f.style.height="15px";f.style.marginTop="100px";f.style.border="2px black solid";f.style.textAlign="left";f.style.margin="auto";d.id="kameleoonProgressBar";d.style.position="relative";d.style.width="50px";d.style.height="13px";d.style.top="1px";d.style.left="1px";d.style.backgroundColor="#c0ddfb";f.appendChild(d);a.appendChild(b);a.appendChild(f);document.getElementById("kameleoonQxDialogs").appendChild(a);this.loadingCounter=0;this.loadingBarStep=Math.round((this.QOOXDOO_ESTIMATED_LOADING_TIME+this.SERVER_CALL_ESTIMATED_LOADING_TIME)/100)},fillProgressionTo:function(b,a){document.getElementById("kameleoonProgressionLabel").innerHTML="<p>"+a+"</p>";document.getElementById("kameleoonProgressBar").style.width=b+"px";document.getElementById("kameleoonProgressBar").innerHTML='<span style="paddingLeft: 12px">'+b+"%</span>"},refreshProgressBar:function(a){if(this.loadingCounter<=a){switch(this.getLocale()){case"fr":this.fillProgressionTo(this.loadingCounter,"Kameleoon est en cours de chargement, merci de patienter...");break;default:this.fillProgressionTo(this.loadingCounter,"Kameleoon is loading, please wait...");break}++this.loadingCounter;setTimeout("Kameleoon.refreshProgressBar("+a+")",this.loadingBarStep)}},obtainDataFromCSS:function(b){var a=this.obtainComputedStyle(b).listStyleImage;if("none"!=a){a=a.substring(a.indexOf("a/")+2,a.lastIndexOf("/"))}return a},obtainComputedStyle:function(a){if(window.getComputedStyle){return getComputedStyle(a,"")}else{return a.currentStyle}},domReady:function(c){var d=!!(window.attachEvent&&!window.opera);var a=/webkit\/(\d+)/i.test(navigator.userAgent)&&(RegExp.$1<525);var f=[];var e=function(){for(var g=0;g<f.length;++g){f[g]()}};if(!d&&!a&&document.addEventListener){return document.addEventListener("DOMContentLoaded",c,false)}if(f.push(c)>1){return}if(d){(function(){try{document.documentElement.doScroll("left");e()}catch(g){setTimeout(arguments.callee,0)}})()}else{if(a){var b=setInterval(function(){if(/^(loaded|complete)$/.test(document.readyState)){clearInterval(b),e()}},0)}}},obtainDepth:function(b){var a=0;while(!(b.parentNode===null)){++a;b=b.parentNode}return a},collectionToArray:function(d){var a=[];for(var c=0,b=d.length;c<b;++c){a.push(d[c])}return a},hasClassName:function(a,b){var c=new RegExp("(^|\\s)"+b+"(\\s|$)");return c.test(a.className)},getElementsByClassName:function(h,j){if(document.getElementsByClassName){return[].slice.call(document.getElementsByClassName(h,j),0)}if(!!document.evaluate){var b=".//*[contains(concat(' ', @class, ' '), ' "+h+" ')]";return document._getElementsByXPath(b,j)}else{var g=new RegExp("(^|\\s)"+h+"(\\s|$)");var e=(j||document).getElementsByTagName("*");var a=[],d;for(var f=0,c=e.length;f<c;++f){d=e[f];if(g.test(d.className)){a.push(d)}}return a}},getLocale:function(){if(navigator){if(navigator.language){return navigator.language}else{if(navigator.browserLanguage){return navigator.browserLanguage}else{if(navigator.systemLanguage){return navigator.systemLanguage}else{if(navigator.userLanguage){return navigator.userLanguage}}}}}}};