Kameleoon={loadExportedProfile:function(){this.options={disableEditor:true,noCSSLoad:true};this.setupKameleoon()},loadSiteProfile:function(a,b){this.options=b;this.setupKameleoon(a,"0")},loadMemberProfile:function(a,c,b){this.options=b;this.setupKameleoon(a,c)},shouldAbortSetup:function(){if(this.parameters.disableKameleoon){return true}if(this.unsupportedBrowser){return true}if(this.options.deprecateIE7&&this.internetExplorer7){return true}if(this.options.deprecateIE8&&this.oldInternetExplorer){return true}return false},setupKameleoon:function(a,b){this.internetExplorer=!!(window.attachEvent&&!window.opera);this.internetExplorer7=/MSIE 7/.test(navigator.userAgent);this.oldInternetExplorer=this.internetExplorer7||/MSIE 8/.test(navigator.userAgent);this.unsupportedBrowser=/MSIE 6/.test(navigator.userAgent);this.webKit=/webkit\/(\d+)/i.test(navigator.userAgent);this.level1Browser=true;this.options=this.options?this.options:{};this.parameters=this.parseParameters();if(this.shouldAbortSetup()){return}if(window.kameleoonAlreadySetup&&!this.internetExplorer){return}window.kameleoonAlreadySetup=true;this.engineVersion=1;this.QOOXDOO_ESTIMATED_LOADING_TIME=2000;this.SERVER_CALL_ESTIMATED_LOADING_TIME=500;this.GUI_ESTIMATED_LOADING_TIME=3000;this.DOMAIN="kameleoon.com";this.BASE_EDITOR_URL="http://static."+this.DOMAIN+"/js/editor/";this.JS_EDITOR_URL=this.BASE_EDITOR_URL+"script/editor.js";this.EDITOR_HOST_NAME="editor";this.ABTESTING_TRACKING_URL="http://www."+this.DOMAIN+"/ABTesting/trackVisit";this.siteCode=a;this.memberCode=b;this.editorMode=(this.parameters.kameleoon=="true");if(window.parent){this.editorMode=this.editorMode||(-1!=window.parent.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.timeOutCallback=window.setTimeout(function(){Kameleoon.setupDOMStructure.apply(Kameleoon,["TIMEOUT"])},4000)}if(document.addEventListener&&!document.readyState){document.addEventListener("DOMContentLoaded",function(){Kameleoon.readyState="complete"},false)}if(this.options.fixedDeviation){return}if(Kameleoon.allData){this.loadKameleoonAfterDataObtained(Kameleoon.allData)}else{if(!(true===this.options.noCSSLoad)){this.loadCSS(this.siteCode,this.memberCode,this.parameters.kameleoonVariationId?this.parameters.kameleoonVariationId:"production",null)}this.loadDataPoll()}},loadCSS:function(g,f,h,e){var d=null;var c=(Kameleoon.allData&&(h=="production"))?parseInt(Kameleoon.allData.productionDesignId):parseInt(h);if(Kameleoon.allData){for(var b=0;b<Kameleoon.allData.cssData.length;b++){if(c==Kameleoon.allData.cssData[b].id){d=Kameleoon.allData.cssData[b];break}}}if(d){var j=document.createElement("style");j.setAttribute("class","KameleoonStyleSheet");j.setAttribute("id","kameleoonStyleSheet"+(e?("-"+e):""));j.setAttribute("rel","stylesheet");j.setAttribute("type","text/css");j.setAttribute("media","screen");if(j.styleSheet){j.styleSheet.cssText=d.cssCode}else{j.appendChild(document.createTextNode(d.cssCode))}document.getElementsByTagName("head")[0].appendChild(j)}else{var a="http://css."+this.DOMAIN+"/customers/"+g+"/"+f+"/"+h+"/style.css";this.loadCSSUrl(a,e)}},loadCSSUrl:function(c,b){var d=document.getElementById("kameleoonStyleSheet");if(d){document.getElementsByTagName("head")[0].removeChild(d)}if(c){var a=document.createElement("link");a.setAttribute("href",c);a.setAttribute("id","kameleoonStyleSheet"+(b?("-"+b):""));a.setAttribute("class","KameleoonStyleSheet");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(a)}},loadDataPoll:function(){if(!document.getElementById("kameleoonData")){var a=document.createElement("div");a.setAttribute("id","kameleoonData");document.getElementsByTagName("head")[0].appendChild(a)}this.poller=window.setInterval(function(){Kameleoon.pollForData.apply(Kameleoon)},100);this.pollForData()},pollForData:function(){if(!this.pollerLock){this.pollerLock=true;var a=this.obtainDataFromCSS(document.getElementById("kameleoonData"));if(a){window.clearInterval(this.poller);this.loadKameleoonAfterDataObtained(a)}this.pollerLock=false}},loadCSSData:function(a){if(!window.kameleoonExperiments){window.kameleoonExperiments={}}this.domReady(function(){var e=Sizzle(".KameleoonStyleSheet");if(e.length>1){for(var d=0,c=e.length;d<c;++d){e[d].className="KameleoonStyleSheetLoaded";e[d].disabled=true}for(var d=0,c=e.length;d<c;++d){e[d].disabled=false;a=Kameleoon.obtainDataFromCSS(document.getElementById("kameleoonData"));if("kameleoonStyleSheet"!=e[d].id){a.experimentId=e[d].id.replace("kameleoonStyleSheet-","")}Kameleoon.loadKameleoonAfterDOMReady.call(Kameleoon,a);e[d].disabled=true}for(var d=0,c=e.length;d<c;++d){e[d].disabled=false}}else{if(e.length>0){e[0].className="KameleoonStyleSheetLoaded";if("kameleoonStyleSheet"!=e[0].id){a.experimentId=e[0].id.replace("kameleoonStyleSheet-","")}}Kameleoon.loadKameleoonAfterDOMReady.call(Kameleoon,a)}});if(a.redirectURL&&!this.editorMode){var b=a.redirectURL;if(a.redirectParameters){b+=(-1!=b.indexOf("?"))?window.location.search.replace("?","&"):window.location.search}this.createCookie("kameleoonRedirect",window.location.href,30);window.location.replace(b)}if(a.javaScriptCode&&!a.javaScriptCode.afterKameleoonLoad){this.callJavaScriptCode(a.javaScriptCode.code)}},loadKameleoonAfterDataObtained:function(b){if(!document.getElementById("kameleoonData")){var a=document.createElement("div");a.setAttribute("id","kameleoonData");document.getElementsByTagName("head")[0].appendChild(a)}if(!b){b=this.obtainDataFromCSS(document.getElementById("kameleoonData"))}if(b.abTestingData&&b.abTestingData.experiments&&b.abTestingData.experiments.length>0){this.performABTesting(b.abTestingData)}else{if(b.cssData){this.loadCSS(this.siteCode,this.memberCode,this.parameters.kameleoonVariationId?this.parameters.kameleoonVariationId:"production",null);this.loadCSSData(this.obtainDataFromCSS(document.getElementById("kameleoonData")))}else{if(b.selectors){this.loadCSSData(b)}}}},performABTesting:function(data){this.experiments=data.experiments;for(var i=0,l=this.experiments.length;i<l;++i){var chosenVariationId=this.readCookie("kameleoonABTestingVariation-"+this.experiments[i].id);if(!chosenVariationId||"true"==this.parameters.eraseABTestingCookie){if(Math.random()<=this.experiments[i].deviation){var variationCount=this.experiments[i].variations.length;var variationIndex=Math.floor(Math.random()*variationCount);this.experiments[i].chosenVariation=this.experiments[i].variations[variationIndex];this.createCookie("kameleoonABTestingVariation-"+this.experiments[i].id,this.experiments[i].chosenVariation.id,30)}else{this.createCookie("kameleoonABTestingVariation-"+this.experiments[i].id,"reference",30)}if(this.experiments[i].kameleoonTracking&&"true"==this.parameters.eraseABTestingCookie){this.eraseCookie("kameleoonABTestingTracking-"+this.experiments[i].id)}}else{if("reference"!=chosenVariationId){for(var j=0,m=this.experiments[i].variations.length;j<m;++j){if(this.experiments[i].variations[j].id==chosenVariationId){this.experiments[i].chosenVariation=this.experiments[i].variations[j]}}}}if(this.experiments[i].javaScriptTracking){try{eval(this.experiments[i].javaScriptTracking)}catch(exception){}}}for(var i=0,l=this.experiments.length;i<l;++i){this.experiments[i].targeting=true;if(this.experiments[i].immediateTargeting){if(this.experiments[i].immediateTargeting.urlTargeting){var regularExpression=new RegExp(this.experiments[i].immediateTargeting.urlTargeting);this.experiments[i].targeting=regularExpression.test(window.location.href)}}}for(var i=0,l=this.experiments.length;i<l;++i){var loadedVariationId;if(this.experiments[i].targeting){loadedVariationId=(this.experiments[i].chosenVariation?this.experiments[i].chosenVariation.id:this.experiments[i].referenceVariation.id);if(!this.experiments[i].domReadyTargeting){this.trackABTesting(this.experiments[i])}}else{loadedVariationId=this.experiments[i].referenceVariation.id;var trackExperiment=false;if(this.experiments[i].kameleoonTracking){trackExperiment=true}if(this.readCookie("kameleoonRedirect")&&this.experiments[i].immediateTargeting.urlTargeting){var regularExpression=new RegExp(this.experiments[i].immediateTargeting.urlTargeting);trackExperiment=regularExpression.test(this.readCookie("kameleoonRedirect"))}if(trackExperiment){this.processKameleoonTracking(this.experiments[i],null)}}if(this.readCookie("kameleoonRedirect")){this.eraseCookie("kameleoonRedirect")}this.loadCSS(this.siteCode,this.memberCode,loadedVariationId,this.experiments[i].id);this.loadDataPoll()}},loadKameleoonAfterDOMReady:function(c){if(c.experimentId){for(var b=0,a=this.experiments.length;b<a;++b){if(c.experimentId==this.experiments[b].id&&this.experiments[b].domReadyTargeting){this.checkABTestingTargetingAfterDOMReady(this.experiments[b])}}}if(!(true===this.options.noDOMUpdate)&&c.selectors){this.setupDOMStructure(c.selectors,c.selectorOptions)}if(c.javaScriptCode&&c.javaScriptCode.afterKameleoonLoad){this.callJavaScriptCode(c.javaScriptCode.code)}if(!(true===this.options.disableEditorMode)){var d=function(e){Kameleoon.listenShiftF2.call(Kameleoon,e)};if(document.addEventListener){document.addEventListener("keyup",d,false)}else{document.attachEvent("keyup",d)}}if(this.editorMode&&(!(true===this.options.disableEditorMode))){this.enableKameleoonEditor()}},checkABTestingTargetingAfterDOMReady:function(experiment){var javaScriptTargeting=experiment.domReadyTargeting.javaScriptTargeting;if(javaScriptTargeting){try{experiment.targeting=eval(javaScriptTargeting)}catch(exception){}}if(experiment.kameleoonTracking&&this.readCookie("kameleoonABTestingTracking-"+experiment.id)){experiment.targeting=true}if(experiment.targeting){this.trackABTesting(experiment)}else{var cssNode=document.getElementById("kameleoonStyleSheet-"+experiment.id);if(cssNode){document.getElementsByTagName("head")[0].removeChild(cssNode)}}},trackABTesting:function(b){if(b.trackingPerformed){return}var c=b.chosenVariation?b.chosenVariation:b.referenceVariation;var e=c.name;var d=c.id;window.kameleoonVariationName=e;window.kameleoonVariationId=d;window.kameleoonExperimentName=b.name;window.kameleoonExperimentSlot=b.slot;window.kameleoonExperimentIndex=b.slot;if(!window.kameleoonExperiments){window.kameleoonExperiments={}}window.kameleoonExperiments[b.id]={slot:b.slot,name:b.name,variationName:e,variationId:d};if(b.kameleoonTracking){this.processKameleoonTracking(b,d)}if(b.googleAnalyticsTracking&&b.slot<6){window._gaq=window._gaq||[];window._gaq.push(["_setAccount",b.googleAnalyticsTracking.account]);window._gaq.push(["_setCustomVar",b.slot,b.name,e,2]);window._gaq.push(["_trackEvent","Kameleoon","ExperimentView",undefined,undefined,true])}if(b.adobeOmnitureTracking){if(s_account&&s){s.pageURL=window.location.protocol+"//"+window.location.host+"/kameleoonTracking";var a=s.t();if(a){document.write(a)}}else{}}b.trackingPerformed=true},processKameleoonTracking:function(c,g){var b=false;var f=false;if(g){if(!this.readCookie("kameleoonABTestingTracking-"+c.id)){b=true;this.createCookie("kameleoonABTestingTracking-"+c.id,"VISIT",30)}}else{var d=c.chosenVariation?c.chosenVariation:c.referenceVariation;g=d.id}if("VISIT"==this.readCookie("kameleoonABTestingTracking-"+c.id)){if(c.kameleoonTracking.successURLRegExp){var a=new RegExp(c.kameleoonTracking.successURL);f=a.test(window.location.href)}else{f=(window.location.href==c.kameleoonTracking.successURL)}if(f){this.createCookie("kameleoonABTestingTracking-"+c.id,"SUCCESS",30)}}if(b||f){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("charset","utf-8");e.setAttribute("src",this.ABTESTING_TRACKING_URL+"?siteCode="+this.siteCode+"&memberCode="+this.memberCode+"&experimentId="+c.id+"&chosenVariationId="+g+(b?"&trackVisit=true":"")+(f?"&trackSuccess=true":""));document.getElementsByTagName("head")[0].appendChild(e)}},setupDOMStructure:function(a,c){if("TIMEOUT"!=a){if(!a){data=this.obtainDataFromCSS(document.getElementById("kameleoonData"));a=data.selectors;c=data.selectorOptions}var b=this.performHTMLReplacements(a,c);this.powerElements(b)}if(true===this.options.delayedDisplay){this.showDocument()}},performHTMLReplacements:function(e,f){var g=true;while(g){var a=this.obtainElements(e,f);elements=a[0];elementsWithOptions=a[1];if(0==elementsWithOptions.length){break}elementsWithOptions=elementsWithOptions.sort(function(i,h){var k=window.Kameleoon.obtainDepth(i[0]),j=window.Kameleoon.obtainDepth(h[0]);return k>j?-1:k<j?1:0});elementsWithOptions=this.removeDuplicates(elementsWithOptions);g=false;for(var d=0,b=elementsWithOptions.length;d<b;++d){var c=elementsWithOptions[d][1];if(c.htmlContent){g=this.replaceHTMLContent(elementsWithOptions[d][0],null,c.htmlContent,true)||g}}}return elementsWithOptions},powerElements:function(c){this.poweredNodes=[];for(var b=0,a=c.length;b<a;++b){this.powerElement(c[b][0],c[b][1])}this.fillSubdivisions();this.poweredElements=elements},obtainElements:function(r,d){var b,q,a=[],t=[];if(this.timeOutCallback){window.clearTimeout(this.timeOutCallback)}for(var n=0,g=r.length;n<g;++n){d[n].selector=r[n];if(d[n].customSelector||d[n].autoGeneratedSelector){b=Sizzle(r[n])}else{switch(r[n].charAt(0)){case"#":var c=r[n].substr(1);b=[document.getElementById(r[n].substr(1))];if(!b[0]){if(0==c.indexOf("kameleoonElement")){var k=document.createElement("div");k.id=c;document.body.appendChild(k);b=[k]}else{b=[]}}break;case".":b=this.getElementsByClassName(r[n].substr(1));break;default:var e=r[n].indexOf(".");if(-1!=e){var o=this.getElementsByClassName(r[n].substr(e+1));var p=r[n].substring(0,e);b=[];for(var h=0,f=o.length;h<f;++h){if(p==o[h].nodeName.toLowerCase()){b.push(o[h])}}}else{b=this.collectionToArray(document.getElementsByTagName(r[n]))}}}q=[];for(var h=0,f=b.length;h<f;++h){q.push([b[h],this.clone(d[n])])}a=a.concat(b);t=t.concat(q)}return[a,t]},powerElement:function(d,e){var a,c,g,p,i,k="div",u=false;if(this.options.specifyElements&&(-1==d.className.indexOf("Kameleoon"))){return}if(Sizzle(" > .KameleoonContainer",d).length>0){return}this.saveElementOriginalData(d);if(2==this.engineVersion){return}if("body"==d.nodeName.toLowerCase()){g=document.createElement(k);g.className="KameleoonContent";this.transferChildrenElementsToTargetElement(d,g);c=document.createElement(k);c.className="KameleoonContainer";c.appendChild(g);a=d;a.appendChild(c);this.poweredNodes.push({originalElement:d,baseElement:a,containerElement:c,contentElement:g,hover:e.hoverModePresent});this.setupRasterModes(a,true);return}if(e.kameleoonId){d.id="kameleoonId"+e.kameleoonId}if(e.kameleoonClass){d.className+=(d.className?" ":"")+"KameleoonClass"+e.kameleoonClass}if(e.keepSpace){this.reserveSpaceForElement(d)}if(/^(a|button|font|img|input|select|span|textarea)$/.test(d.nodeName.toLowerCase())){k="span"}if(/^(img|input|select|textarea)$/.test(d.nodeName.toLowerCase())){u=true}if(/^(img|input|p|select|table|textarea)$/.test(d.nodeName.toLowerCase())){if(document.addEventListener){d.removeEventListener("DOMAttrModified",this.changeAttributeCallback,false)}else{d.detachEvent("DOMAttrModified",this.changeAttributeCallback)}p=d.id;i=d.className;a=document.createElement(k);if(p){if(e.kameleoonId){a.id=p;d.removeAttribute("id")}else{a.id=p+"Kameleoon"}}d.removeAttribute("class");if(d.style.cssText){a.style.cssText=d.style.cssText;d.removeAttribute("style")}a.className=i?(i+(u?" KameleoonInlineBlock":"")):(u?"KameleoonInlineBlock":"");a.className=(a.className?(a.className+" "):"")+"Kameleoon"+d.nodeName.charAt(0).toUpperCase()+d.nodeName.slice(1).toLowerCase();d.parentNode.replaceChild(a,d);g=d;g.className="KameleoonContent";c=document.createElement(k);c.className="KameleoonContainer KameleoonInlineBlock";c.appendChild(g);a.appendChild(c);this.poweredNodes.push({originalElement:d,baseElement:a,containerElement:c,contentElement:g,hover:e.hoverModePresent});if(document.addEventListener){g.addEventListener("DOMAttrModified",this.changeAttributeCallback,false)}else{g.attachEvent("DOMAttrModified",this.changeAttributeCallback)}}else{if("tr"==d.nodeName.toLowerCase()){g=d;c=document.createElement("div");var t=d.parentNode;while("table"!=t.tagName.toLowerCase()&&t.parentNode){t=t.parentNode}var h=Sizzle("> thead > tr:first-child > th:first-child, > tbody > tr:first-child > td:first-child, > tbody > tr:first-child > th:first-child",t)[0];if(h.firstChild&&"KameleoonTableRowSupport"==h.firstChild.className){a=h.firstChild}else{t.style.position="relative";a=document.createElement("div");a.className="KameleoonTableRowSupport";h.insertBefore(a,h.firstChild);a.style.position="relative";a.style.display="block";a.style.height="0px";a.style.width="0px";a.style.zIndex=-1;var m,b;if(a.offsetParent==t){m=a.offsetTop;b=a.offsetLeft}else{m=a.offsetTop+a.parentNode.offsetTop;b=a.offsetLeft+a.parentNode.offsetLeft;if(!/Opera/.test(navigator.userAgent)&&(!this.oldInternetExplorer||this.internetExplorer7)){var q=Number(this.obtainComputedStyle(a.parentNode).borderTopWidth.replace("px",""));m+=q?q:0;q=Number(this.obtainComputedStyle(a.parentNode).borderLeftWidth.replace("px",""));b+=q?q:0}}this.setStyle(a,"top","-"+m+"px",false);this.setStyle(a,"left","-"+b+"px",false)}var r=e.selector;switch(r.charAt(0)){case"#":c.id=d.id+"KameleoonTableRow";break;case".":c.className=d.className.replace(r.substr(1),r.substr(1)+"KameleoonTableRow");break;default:c.className=r.substr(r.lastIndexOf(".")+1)+"KameleoonTableRow"}c.className+=" KameleoonContainer";var j=d.offsetWidth;if(/Opera/.test(navigator.userAgent)){j-=Number(this.obtainComputedStyle(t).borderLeftWidth.replace("px",""))+Number(this.obtainComputedStyle(t).borderRightWidth.replace("px",""))+Number(this.obtainComputedStyle(t).borderSpacing.replace("px",""))*2}if(this.internetExplorer7){j-=t.cellSpacing?t.cellSpacing:2}var o=d.offsetHeight;if(this.internetExplorer&&!this.oldInternetExplorer){o=d.getBoundingClientRect().height}this.setStyle(c,"width",j+"px",true);this.setStyle(c,"height",o+"px",true);this.setStyle(c,"top",d.offsetTop+"px",true);this.setStyle(c,"left",d.offsetLeft+"px",true);this.setStyle(c,"position","absolute",true);c.style.display="block";c.originalElement=d;d.kameleoonContainer=c;a.appendChild(c);this.poweredNodes.push({originalElement:d,baseElement:a,containerElement:c,contentElement:g,hover:e.hoverModePresent})}else{g=document.createElement(k);g.className="KameleoonContent";this.transferChildrenElementsToTargetElement(d,g);c=document.createElement(k);c.className="KameleoonContainer";c.appendChild(g);a=d;a.appendChild(c);this.poweredNodes.push({originalElement:d,baseElement:a,containerElement:c,contentElement:g,hover:e.hoverModePresent})}}if(e.noLinkPropagation){a.setAttribute("kData","nlp");if(this.oldInternetExplorer){var f=document.createElement("a");f.className="KameleoonLink";f.href="null";g.appendChild(f);var n="color: "+f.currentStyle.color+" !important; ";n+="text-decoration: "+f.currentStyle.textDecoration+" !important; ";n+="font-style: "+f.currentStyle.fontStyle+" !important;";g.removeChild(f);this.processLinkPropagation(g,n)}}},saveElementOriginalData:function(a){if(a.kameleoonOriginalData){return}a.kameleoonOriginalData={};if(a.style.cssText){a.kameleoonOriginalData.style=a.style.cssText}if(a.id){a.kameleoonOriginalData.id=a.id}if(a.className){a.kameleoonOriginalData.className=a.className}if(a.parentNode){a.kameleoonOriginalData.parentNode=a.parentNode}},reserveSpaceForElement:function(a){if(!a.originalNode){var g=true;for(var e=0,b=a.childNodes.length;e<b;++e){var d=a.childNodes[e];if(d.nodeType==1){g=false}}var f=a.cloneNode(g);this.setStyle(f,"width",a.offsetWidth+"px",false);if(!g){this.setStyle(f,"height",a.clientHeight+"px",false)}var c=this.obtainComputedStyle(a);this.setStyle(f,"float",c.cssFloat,false);this.setStyle(f,"margin-top",c.marginTop,false);this.setStyle(f,"margin-bottom",c.marginBottom,false);this.setStyle(f,"margin-left",c.marginLeft,false);this.setStyle(f,"margin-right",c.marginRight,false);this.setStyle(f,"overflow",c.overflow,false);this.setStyle(f,"visibility","hidden",false);f.removeAttribute("id");f.removeAttribute("class");a.parentNode.insertBefore(f,a);a.originalNode=f;this.setStyle(a,"position","absolute",false)}},removeDuplicates:function(e){var a=[];for(var d=0,b=e.length;d<b;++d){if(undefined==e[d][0].kameleoonUnique){e[d][0].kameleoonUnique=a.length;a.push(e[d])}else{if(e[d][1].noLinkPropagation||e[d][1].hoverModePresent||e[d][1].kameleoonClass){var c=e[d][0].kameleoonUnique;if(e[d][1].noLinkPropagation){a[c][1].noLinkPropagation=true}if(e[d][1].hoverModePresent){a[c][1].hoverModePresent=true}if(e[d][1].kameleoonClass){if(!e[c][1].kameleoonClass||e[d][1].selector.length>e[c][1].selector.length){a[c][1].kameleoonClass=e[d][1].kameleoonClass}}}}}for(var d=0,b=a.length;d<b;++d){if(undefined!==a[d][0].kameleoonUnique){a[d][0].kameleoonUnique=undefined;a[d][0].removeAttribute("kameleoonUnique")}}return a},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)}}},fillSubdivisions:function(){for(var a=this.poweredNodes.length,b=a-1;b>=0;--b){this.appendSubdivisions(this.poweredNodes[b].originalElement,this.poweredNodes[b].baseElement,this.poweredNodes[b].containerElement,this.poweredNodes[b].contentElement,this.poweredNodes[b].hover,true)}},appendSubdivisions:function(a,b,f,e,c){var d=document.createElement("div");d.className="KameleoonBackground";this.appendNode(d,f,e);this.processSubdivisionsOptions(a,b,f,e,d);d=document.createElement("div");d.className="KameleoonTopDecoration";this.appendNode(d,f,e);this.setupRasterModes(d,false);d=document.createElement("div");d.className="KameleoonBottomDecoration";this.appendNode(d,f,e);this.setupRasterModes(d,false);d=document.createElement("div");d.className="KameleoonLeftDecoration";this.appendNode(d,f,e);this.setupRasterModes(d,false);d=document.createElement("div");d.className="KameleoonRightDecoration";this.appendNode(d,f,e);this.setupRasterModes(d,false);d=document.createElement("div");d.className="KameleoonTopLeftDecoration";this.appendNode(d,f,e);d=document.createElement("div");d.className="KameleoonTopRightDecoration";this.appendNode(d,f,e);d=document.createElement("div");d.className="KameleoonBottomLeftDecoration";this.appendNode(d,f,e);d=document.createElement("div");d.className="KameleoonBottomRightDecoration";this.appendNode(d,f,e);if(c){this.appendHoverSubdivisions(f,e)}},appendHoverSubdivisions:function(c,b){var a=document.createElement("div");a.className="KameleoonBackgroundHover";this.appendNode(a,c,b);this.setupRasterModes(a,true);a=document.createElement("div");a.className="KameleoonTopDecorationHover";this.appendNode(a,c,b);this.setupRasterModes(a,false);a=document.createElement("div");a.className="KameleoonBottomDecorationHover";this.appendNode(a,c,b);this.setupRasterModes(a,false);a=document.createElement("div");a.className="KameleoonLeftDecorationHover";this.appendNode(a,c,b);this.setupRasterModes(a,false);a=document.createElement("div");a.className="KameleoonRightDecorationHover";this.appendNode(a,c,b);this.setupRasterModes(a,false)},appendNode:function(a,c,b){if(b&&b.parentNode==c){c.insertBefore(a,b)}else{c.appendChild(a)}},processSubdivisionsOptions:function(a,c,e,d,b){this.setupRasterModes(b,true);this.emulateCalcFunction(c,b,"padding");this.emulateCalcFunction(d,b,"contentPadding");this.processUserPosition(a,c,d,b,true);this.processSpecialCases(c,e,d);this.processLinks(c,b)},setupRasterModes:function(m,q){var t=this.obtainDataFromCSS(m);if(t&&t.rasterModes){t=t.rasterModes.split("/");var e=t[0];var r=t[1];if("STRETCH"!=e&&"STRETCH"!=r){return}var i=document.createElement("img");i.className="KameleoonImage";var k=this.obtainComputedStyle(m).backgroundImage;k=k.substring(4,k.lastIndexOf(")"));if('"'==k.charAt(0)){k=k.substring(1,k.length-1)}i.src=k;i.style.position="absolute";i.style.margin="0px";i.style.padding="0px";i.style.border="none";i.style.top="0px";i.style.left="0px";this.setStyle(m,"background-image","none",true);m.appendChild(i);if("body"==m.parentNode.parentNode.nodeName.toLowerCase()){m.style.display="block";this.setStyle(document.body,"background-image","none",true);if(document.body.getBoundingClientRect){var a=document.body.getBoundingClientRect();var b=window.pageYOffset;if(undefined==b){b=(document.body.parentElement)?document.body.parentElement.scrollTop:0}var n=a.top+b;var h=document.documentElement.scrollHeight-a.bottom-b;var o=window.pageXOffset;if(undefined==o){o=(document.body.parentElement)?document.body.parentElement.scrollLeft:0}var d=a.left+o;var p=this.obtainComputedStyle(m).top.replace("px","");var g=this.obtainComputedStyle(m).bottom.replace("px","");if(n&&p<=0){m.style.top="-"+n+"px"}if(d){m.style.left="-"+d+"px"}if(undefined!=window.innerHeight&&a.bottom-window.innerHeight<0){if(document.documentElement.scrollHeight>window.innerHeight){var j=document.documentElement.scrollHeight;j=j-p-g;if(p>0){j=j-n}if(g>0){j=j-h}m.style.height=j+"px"}else{if(g<=0){var f=Math.max(document.documentElement.clientHeight,document.documentElement.scrollHeight);m.style.bottom=(a.bottom-f)+"px"}}}if(a.right-document.documentElement.scrollWidth<0){if(undefined!=window.innerWidth&&document.documentElement.scrollWidth>window.innerWidth){m.style.width=document.documentElement.scrollWidth+"px"}else{var c=Math.max(document.documentElement.clientWidth,document.documentElement.scrollWidth);m.style.right=(a.right-c)+"px"}}}}if("STRETCH"==e){i.style.height="100%";if(!q){i.style.width="100%"}}if("STRETCH"==r){i.style.width="100%";if(!q){i.style.height="100%"}}if("TILE"==e){if(i.clientHeight>0){this.tileVertically({target:i})}else{i.addEventListener("load",this.tileVertically,this)}}if("TILE"==r){if(i.clientWidth>0){this.tileHorizontally({target:i})}else{i.addEventListener("load",this.tileHorizontally,this)}}}},tileVertically:function(c){var d=c.target;var b=d.parentNode;if(d.clientHeight>0){var e=d.clientHeight;while(b.clientHeight*2-e>0){var a=d.cloneNode(false);b.appendChild(a);a.style.top=e+"px";e+=d.clientHeight}}},tileHorizontally:function(d){var e=d.target;var c=e.parentNode;if(e.clientWidth>0){var a=e.clientWidth;while(c.clientWidth*2-a>0){var b=e.cloneNode(false);c.appendChild(b);b.style.left=a+"px";a+=e.clientWidth}}},emulateCalcFunction:function(d,a,b){var f=this.obtainDataFromCSS(a);if(f&&f[b]){f=f[b].split("/");if(f[0]||f[1]){d.style.height="";var e=("inline"==this.obtainComputedStyle(d).display)?d.offsetHeight:d.clientHeight;this.setStyle(d,"height",(e+Number(f[0])+Number(f[1]))+"px",true)}if(f[2]||f[3]){d.style.width="";var g=("inline"==this.obtainComputedStyle(d).display)?d.offsetWidth:d.clientWidth;var c=g+Number(f[2])+Number(f[3]);if("td"==d.nodeName.toLowerCase()&&d.parentNode.parentNode.parentNode.getAttribute("cellpadding")){c-=d.parentNode.parentNode.parentNode.getAttribute("cellpadding")*2}this.setStyle(d,"width",c+"px",true)}}},replaceHTMLContent:function(d,e,g,c){var a=false;if(!e){e=d}var f=("input"==e.nodeName.toLowerCase()&&("submit"==e.getAttribute("type")||"button"==e.getAttribute("type")));var b=f?e.value:e.innerHTML;if(!d.originalHTML){d.originalHTML=b;a=true}if((!c||a)&&b!=g){if(f){e.value=g}else{e.innerHTML=g}}return a},processUserPosition:function(i,h,f,c,a){var e=this.obtainDataFromCSS(c);if(e&&e.userPosition){switch(e.userPosition.positionMode){case"ABSOLUTE_KEEP_SPACE":if(a){this.setStyle(h,"width",i.originalNode.offsetWidth+"px",("th"!=h.nodeName.toLowerCase()&&"td"!=h.nodeName.toLowerCase()))}case"ABSOLUTE":var d=null;var g=false;if(e.userPosition.referenceElement){d=Sizzle(e.userPosition.referenceElement+" > .KameleoonContainer > .KameleoonContent")[0];if(!d){d=Sizzle(e.userPosition.referenceElement)[0];g=true}}if(!d){d=Sizzle("body > .KameleoonContainer > .KameleoonContent")[0];if(!d){d=document.body}}if(d&&h.parentNode!=d){h.parentNode.removeChild(h);d.appendChild(h);if(!h.kameleoonData){h.kameleoonData={}}h.kameleoonData.moved=true}this.setStyle(h,"position","absolute",false);this.setStyle(h,"top","",false);this.setStyle(h,"left","",false);var b=this.obtainComputedStyle(h).left.replace("px","")/e.userPosition.referenceWidth;this.setStyle(h,"left",Math.round(b*d.offsetWidth)+"px",true);if(g){this.addRelativePositionToReferenceElement(d)}break;case"RELATIVE":this.setStyle(h,"position","",false);this.setStyle(h,"top","",false);this.setStyle(h,"left","",false)}}},addRelativePositionToReferenceElement:function(a){if("absolute"!=this.obtainComputedStyle(a).position){this.setStyle(a,"position","relative");this.setStyle(a,"position","relative",false)}},processSpecialCases:function(a,c,b){if("td"==a.nodeName.toLowerCase()){this.setStyle(c,"position","static",true);if(this.internetExplorer7){this.setStyle(c,"height","100%",true)}this.setStyle(b,"top",c.offsetTop+"px",true);c.style.position="";this.setStyle(a,"height",a.clientHeight+"px",false)}},processLinks:function(b,a){var c=this.obtainDataFromCSS(a);if("a"==b.nodeName.toLowerCase()&&c&&c.href){b.href=c.href}},processLinkPropagation:function(e,d){var b=e.childNodes;for(var a=0;a<b.length;++a){if(b[a].getAttribute&&"nlp"!=b[a].getAttribute("kData")){if("a"==b[a].nodeName.toLowerCase()){var c=b[a].getAttribute("style");b[a].setAttribute("style",(c?(c+";"):"")+d)}this.processLinkPropagation(b[a],d)}}},refresh:function(){},refreshForScreenResize:function(){for(var a=this.poweredNodes.length,c=a-1;c>=0;--c){var b=Sizzle(" > .KameleoonBackground",this.poweredNodes[c].containerElement)[0];this.processUserPosition(this.poweredNodes[c].originalElement,this.poweredNodes[c].baseElement,this.poweredNodes[c].containerElement,b,true)}},listenShiftF2:function(a){if(113==a.keyCode&&a.shiftKey){this.editorMode=true;this.enableKameleoonEditor()}},enableKameleoonEditor:function(){if(!this.editorEnabled){if("frameset"==document.body.nodeName.toLowerCase()){alert("This page uses a frameset. Please install the Kameleoon script on the main frame of your page (and not on the page hosting the frameset).");this.editorEnabled=true;return}var b=document.createElement("div");b.id="kameleoonRegion";b.className="KameleoonProtected";b.style.display="block";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+this.GUI_ESTIMATED_LOADING_TIME)*100));this.editorEnabled=true;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)}},setupLoadingDialog:function(f){var c='<div id="kameleoonQxDialogs" style="width: 1024px; height: 768px; top: 50%; margin-top: -400px; left: 50%; margin-left: -512px; position: fixed; z-index: 20006;" ></div>';c+='<div id="kameleoonQxOverlay" style="width: 100%; height: 100%; top: 0px; left: 0px; position: fixed; z-index: 20005; background-color: #90c4f9; opacity: 0.6;" ></div>';c+='<div id="kameleoonLoadingDialog" style="background-color: #4a93de; font-family: arial, helvetica, sans-serif; border: 1px solid #2b5172; color: #000000; width: 450px;';c+='top: 50%; left: 50%; margin-top: -100px; margin-left: -250px; position: fixed; z-index: 20006; padding: 15px; font-size: 10pt;" ></div>';f.innerHTML=c;if(this.oldInternetExplorer){document.getElementById("kameleoonQxOverlay").style["ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(opacity=60)";document.getElementById("kameleoonQxOverlay").style.filter="alpha(opacity=60)"}var e=document.createElement("div");e.style.marginBottom="10px";e.style.textAlign="center";var d=document.createElement("div");d.style.width="150px";d.style.height="18px";d.style.border="2px #000000 solid";d.style.margin="auto";d.style.textAlign="center";d.style.position="relative";var b=document.createElement("div");b.id="kameleoonProgressBarBackground";b.style.position="absolute";b.style.height="18px";b.style.backgroundColor="#c0ddfb";var g=document.createElement("span");g.id="kameleoonProgressBarLabel";g.style.position="relative";g.style.zIndex="1";g.style.lineHeight="18px";d.appendChild(b);d.appendChild(g);switch(this.getLocale()){case"fr":e.innerHTML="Kameleoon est en cours de chargement, merci de patienter...";break;default:e.innerHTML="Kameleoon is loading, please wait..."}var a=document.getElementById("kameleoonLoadingDialog");a.appendChild(e);a.appendChild(d);this.loadingCounter=0;this.loadingBarStep=Math.round((this.QOOXDOO_ESTIMATED_LOADING_TIME+this.SERVER_CALL_ESTIMATED_LOADING_TIME+this.GUI_ESTIMATED_LOADING_TIME)/100)},refreshProgressBar:function(a){if(this.loadingCounter<=a){document.getElementById("kameleoonProgressBarBackground").style.width=this.loadingCounter+"%";document.getElementById("kameleoonProgressBarLabel").innerHTML=this.loadingCounter+"%";++this.loadingCounter;setTimeout("Kameleoon.refreshProgressBar("+a+")",this.loadingBarStep)}},obtainDataFromCSS:function(node){var data;if(this.webKit){data=this.obtainComputedStyle(node).fontFamily;if(0!=data.indexOf("Kameleoon")){return null}data=data.substring(23,data.length-1)}else{data=this.obtainComputedStyle(node).quotes;if(!data||0!=data.indexOf('"Kameleoon')){return null}data=data.substring(24,data.length-5)}data=data.replace(/\\"/gi,'"');data=data.replace(/\\\\n/gi,"\\n");data=data.replace(/&quot\\?;/gi,'\\"');data=data.replace(/\\'/gi,"'");data=data.replace(/\\\\t/gi,"\\t");if(data){data=(typeof JSON!="undefined")?JSON.parse(data):eval("("+data+")")}return data},obtainComputedStyle:function(a){if(window.getComputedStyle){var b=getComputedStyle(a,"");return b?b:{backgroundImage:"none"}}else{return a.currentStyle}},setStyle:function(c,f,e,b){this.saveElementOriginalData(c);var g=c.getAttribute("style");if(this.internetExplorer7){g=c.style.cssText}if(g){g=g.replace(/^\s+|\s+$/g,"");var a=new RegExp("(^|;)(\\s*"+f+"(.*?);)");g=g.replace(a,"$1");if(g){if(g.lastIndexOf(";")<(g.length-2)){g=g+";"}if(g.lastIndexOf(" ")!=(g.length-1)&&e){g=g+" "}}}else{g=""}var d=g+(e?(f+": "+e+(b?" !important;":";")):"");if(!this.internetExplorer7){c.setAttribute("style",d)}else{c.style.cssText=d}},createCookie:function(c,d,e){var a;if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"},readCookie:function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;++d){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(0==f.indexOf(e)){return f.substring(e.length,f.length)}}return null},eraseCookie:function(a){this.createCookie(a,"",-1)},parseParameters:function(){var a=window.location.search.substring(1).split("&");var d={};for(var c=0,b=a.length;c<b;++c){var e=a[c].split("=");d[unescape(e[0])]=unescape(e[1])}return d},domReady:function(a){if("complete"==document.readyState||"loaded"==document.readyState||("interactive"==document.readyState&&!this.internetExplorer)||"complete"==this.readyState){return a()}if(!this.oldInternetExplorer&&document.addEventListener){return document.addEventListener("DOMContentLoaded",a,false)}var c=[];var b=function(){for(var d=0;d<c.length;++d){c[d]()}};if(c.push(a)>1){return}(function(){try{document.documentElement.doScroll("left");b()}catch(d){setTimeout(arguments.callee,50)}})()},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(j,k){if(document.getElementsByClassName){var f=document.getElementsByClassName(j,k);var a=[];for(g=0,l=f.length;g<l;++g){a.push(f[g])}return a}if(!!document.evaluate){var b=".//*[contains(concat(' ', @class, ' '), ' "+j+" ')]";return document._getElementsByXPath(b,k)}else{var h=new RegExp("(^|\\s)"+j+"(\\s|$)");var e=(k||document).getElementsByTagName("*");var a=[],d;for(var g=0,c=e.length;g<c;++g){d=e[g];if(h.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}}}}}},callJavaScriptCode:function(a){var b=document.createElement("script");b.setAttribute("type","text/javascript");b.innerHTML=a;document.getElementsByTagName("head")[0].appendChild(b)},clone:function(b){if(Object.clone){return Object.clone(b)}var c={};for(var a in b){if(b.hasOwnProperty(a)){c[a]=b[a]}}return c}};(function(){var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,j=0,d=Object.prototype.toString,q=false,i=true;[0,0].sort(function(){i=false;return 0});var b=function(y,e,B,C){B=B||[];e=e||document;var E=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!y||typeof y!=="string"){return B}var v,G,J,u,F,I,H,A,x=true,w=b.isXML(e),z=[],D=y;do{r.exec("");v=r.exec(D);if(v){D=v[3];z.push(v[1]);if(v[2]){u=v[3];break}}}while(v);if(z.length>1&&k.exec(y)){if(z.length===2&&f.relative[z[0]]){G=h(z[0]+z[1],e)}else{G=f.relative[z[0]]?[e]:b(z.shift(),e);while(z.length){y=z.shift();if(f.relative[y]){y+=z.shift()}G=h(y,G)}}}else{if(!C&&z.length>1&&e.nodeType===9&&!w&&f.match.ID.test(z[0])&&!f.match.ID.test(z[z.length-1])){F=b.find(z.shift(),e,w);e=F.expr?b.filter(F.expr,F.set)[0]:F.set[0]}if(e){F=C?{expr:z.pop(),set:a(C)}:b.find(z.pop(),z.length===1&&(z[0]==="~"||z[0]==="+")&&e.parentNode?e.parentNode:e,w);G=F.expr?b.filter(F.expr,F.set):F.set;if(z.length>0){J=a(G)}else{x=false}while(z.length){I=z.pop();H=I;if(!f.relative[I]){I=""}else{H=z.pop()}if(H==null){H=e}f.relative[I](J,H,w)}}else{J=z=[]}}if(!J){J=G}if(!J){b.error(I||y)}if(d.call(J)==="[object Array]"){if(!x){B.push.apply(B,J)}else{if(e&&e.nodeType===1){for(A=0;J[A]!=null;A++){if(J[A]&&(J[A]===true||J[A].nodeType===1&&b.contains(e,J[A]))){B.push(G[A])}}}else{for(A=0;J[A]!=null;A++){if(J[A]&&J[A].nodeType===1){B.push(G[A])}}}}}else{a(J,B)}if(u){b(u,E,B,C);b.uniqueSort(B)}return B};b.uniqueSort=function(u){if(c){q=i;u.sort(c);if(q){for(var e=1;e<u.length;e++){if(u[e]===u[e-1]){u.splice(e--,1)}}}}return u};b.matches=function(e,u){return b(e,null,null,u)};b.matchesSelector=function(e,u){return b(u,null,null,[e]).length>0};b.find=function(A,e,B){var z;if(!A){return[]}for(var w=0,v=f.order.length;w<v;w++){var x,y=f.order[w];if((x=f.leftMatch[y].exec(A))){var u=x[1];x.splice(1,1);if(u.substr(u.length-1)!=="\\"){x[1]=(x[1]||"").replace(/\\/g,"");z=f.find[y](x,e,B);if(z!=null){A=A.replace(f.match[y],"");break}}}}if(!z){z=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:z,expr:A}};b.filter=function(E,D,H,x){var z,e,v=E,J=[],B=D,A=D&&D[0]&&b.isXML(D[0]);while(E&&D.length){for(var C in f.filter){if((z=f.leftMatch[C].exec(E))!=null&&z[2]){var I,G,u=f.filter[C],w=z[1];e=false;z.splice(1,1);if(w.substr(w.length-1)==="\\"){continue}if(B===J){J=[]}if(f.preFilter[C]){z=f.preFilter[C](z,B,H,J,x,A);if(!z){e=I=true}else{if(z===true){continue}}}if(z){for(var y=0;(G=B[y])!=null;y++){if(G){I=u(G,z,y,B);var F=x^!!I;if(H&&I!=null){if(F){e=true}else{B[y]=false}}else{if(F){J.push(G);e=true}}}}}if(I!==undefined){if(!H){B=J}E=E.replace(f.match[C],"");if(!e){return[]}break}}}if(E===v){if(e==null){b.error(E)}else{break}}v=E}return B};b.error=function(e){throw"Syntax error, unrecognized expression: "+e};var f=b.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},relative:{"+":function(z,u){var w=typeof u==="string",y=w&&!/\W/.test(u),A=w&&!y;if(y){u=u.toLowerCase()}for(var v=0,e=z.length,x;v<e;v++){if((x=z[v])){while((x=x.previousSibling)&&x.nodeType!==1){}z[v]=A||x&&x.nodeName.toLowerCase()===u?x||false:x===u}}if(A){b.filter(u,z,true)}},">":function(z,u){var y,x=typeof u==="string",v=0,e=z.length;if(x&&!/\W/.test(u)){u=u.toLowerCase();for(;v<e;v++){y=z[v];if(y){var w=y.parentNode;z[v]=w.nodeName.toLowerCase()===u?w:false}}}else{for(;v<e;v++){y=z[v];if(y){z[v]=x?y.parentNode:y.parentNode===u}}if(x){b.filter(u,z,true)}}},"":function(w,u,y){var x,v=j++,e=t;if(typeof u==="string"&&!/\W/.test(u)){u=u.toLowerCase();x=u;e=p}e("parentNode",u,v,w,x,y)},"~":function(w,u,y){var x,v=j++,e=t;if(typeof u==="string"&&!/\W/.test(u)){u=u.toLowerCase();x=u;e=p}e("previousSibling",u,v,w,x,y)}},find:{ID:function(u,v,w){if(typeof v.getElementById!=="undefined"&&!w){var e=v.getElementById(u[1]);return e&&e.parentNode?[e]:[]}},NAME:function(v,y){if(typeof y.getElementsByName!=="undefined"){var u=[],x=y.getElementsByName(v[1]);for(var w=0,e=x.length;w<e;w++){if(x[w].getAttribute("name")===v[1]){u.push(x[w])}}return u.length===0?null:u}},TAG:function(e,u){if(typeof u.getElementsByTagName!=="undefined"){return u.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(w,u,v,e,z,A){w=" "+w[1].replace(/\\/g,"")+" ";if(A){return w}for(var x=0,y;(y=u[x])!=null;x++){if(y){if(z^(y.className&&(" "+y.className+" ").replace(/[\t\n\r]/g," ").indexOf(w)>=0)){if(!v){e.push(y)}}else{if(v){u[x]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(u,e){return u[1].toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){b.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var u=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(u[1]+(u[2]||1))-0;e[3]=u[3]-0}else{if(e[2]){b.error(e[0])}}e[0]=j++;return e},ATTR:function(x,u,v,e,y,z){var w=x[1]=x[1].replace(/\\/g,"");if(!z&&f.attrMap[w]){x[1]=f.attrMap[w]}x[4]=(x[4]||x[5]||"").replace(/\\/g,"");if(x[2]==="~="){x[4]=" "+x[4]+" "}return x},PSEUDO:function(x,u,v,e,y){if(x[1]==="not"){if((r.exec(x[3])||"").length>1||/^\w/.test(x[3])){x[3]=b(x[3],null,null,u)}else{var w=b.filter(x[3],u,v,true^y);if(!v){e.push.apply(e,w)}return false}}else{if(f.match.POS.test(x[0])||f.match.CHILD.test(x[0])){return true}}return x},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(v,u,e){return !!b(e[3],v).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)}},setFilters:{first:function(u,e){return e===0},last:function(v,u,e,w){return u===w.length-1},even:function(u,e){return e%2===0},odd:function(u,e){return e%2===1},lt:function(v,u,e){return u<e[3]-0},gt:function(v,u,e){return u>e[3]-0},nth:function(v,u,e){return e[3]-0===u},eq:function(v,u,e){return e[3]-0===u}},filter:{PSEUDO:function(v,A,z,B){var e=A[1],u=f.filters[e];if(u){return u(v,z,A,B)}else{if(e==="contains"){return(v.textContent||v.innerText||b.getText([v])||"").indexOf(A[3])>=0}else{if(e==="not"){var w=A[3];for(var y=0,x=w.length;y<x;y++){if(w[y]===v){return false}}return true}else{b.error(e)}}}},CHILD:function(e,w){var z=w[1],u=e;switch(z){case"only":case"first":while((u=u.previousSibling)){if(u.nodeType===1){return false}}if(z==="first"){return true}u=e;case"last":while((u=u.nextSibling)){if(u.nodeType===1){return false}}return true;case"nth":var v=w[2],C=w[3];if(v===1&&C===0){return true}var y=w[0],B=e.parentNode;if(B&&(B.sizcache!==y||!e.nodeIndex)){var x=0;for(u=B.firstChild;u;u=u.nextSibling){if(u.nodeType===1){u.nodeIndex=++x}}B.sizcache=y}var A=e.nodeIndex-C;if(v===0){return A===0}else{return(A%v===0&&A/v>=0)}}},ID:function(u,e){return u.nodeType===1&&u.getAttribute("id")===e},TAG:function(u,e){return(e==="*"&&u.nodeType===1)||u.nodeName.toLowerCase()===e},CLASS:function(u,e){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(y,w){var v=w[1],e=f.attrHandle[v]?f.attrHandle[v](y):y[v]!=null?y[v]:y.getAttribute(v),z=e+"",x=w[2],u=w[4];return e==null?x==="!=":x==="="?z===u:x==="*="?z.indexOf(u)>=0:x==="~="?(" "+z+" ").indexOf(u)>=0:!u?z&&e!==false:x==="!="?z!==u:x==="^="?z.indexOf(u)===0:x==="$="?z.substr(z.length-u.length)===u:x==="|="?z===u||z.substr(0,u.length+1)===u+"-":false},POS:function(x,u,v,y){var e=u[2],w=f.setFilters[e];if(w){return w(x,v,u,y)}}}};var k=f.match.POS,g=function(u,e){return"\\"+(e-0+1)};for(var o in f.match){f.match[o]=new RegExp(f.match[o].source+(/(?![^\[]*\])(?![^\(]*\))/.source));f.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[o].source.replace(/\\(\d+)/g,g))}var a=function(u,e){u=Array.prototype.slice.call(u,0);if(e){e.push.apply(e,u);return e}return u};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(m){a=function(x,w){var v=0,u=w||[];if(d.call(x)==="[object Array]"){Array.prototype.push.apply(u,x)}else{if(typeof x.length==="number"){for(var e=x.length;v<e;v++){u.push(x[v])}}else{for(;x[v];v++){u.push(x[v])}}}return u}}var c,n;if(document.documentElement.compareDocumentPosition){c=function(u,e){if(u===e){q=true;return 0}if(!u.compareDocumentPosition||!e.compareDocumentPosition){return u.compareDocumentPosition?-1:1}return u.compareDocumentPosition(e)&4?-1:1}}else{c=function(B,A){var y,u,v=[],e=[],x=B.parentNode,z=A.parentNode,C=x;if(B===A){q=true;return 0}else{if(x===z){return n(B,A)}else{if(!x){return -1}else{if(!z){return 1}}}}while(C){v.unshift(C);C=C.parentNode}C=z;while(C){e.unshift(C);C=C.parentNode}y=v.length;u=e.length;for(var w=0;w<y&&w<u;w++){if(v[w]!==e[w]){return n(v[w],e[w])}}return w===y?n(B,e[w],-1):n(v[w],A,1)};n=function(u,e,v){if(u===e){return v}var w=u.nextSibling;while(w){if(w===e){return -1}w=w.nextSibling}return 1}}b.getText=function(e){var u="",w;for(var v=0;e[v];v++){w=e[v];if(w.nodeType===3||w.nodeType===4){u+=w.nodeValue}else{if(w.nodeType!==8){u+=b.getText(w.childNodes)}}}return u};(function(){var u=document.createElement("div"),v="script"+(new Date()).getTime(),e=document.documentElement;u.innerHTML="<a name='"+v+"'/>";e.insertBefore(u,e.firstChild);if(document.getElementById(v)){f.find.ID=function(x,y,z){if(typeof y.getElementById!=="undefined"&&!z){var w=y.getElementById(x[1]);return w?w.id===x[1]||typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id").nodeValue===x[1]?[w]:undefined:[]}};f.filter.ID=function(y,w){var x=typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id");return y.nodeType===1&&x&&x.nodeValue===w}}e.removeChild(u);e=u=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(u,y){var x=y.getElementsByTagName(u[1]);if(u[1]==="*"){var w=[];for(var v=0;x[v];v++){if(x[v].nodeType===1){w.push(x[v])}}x=w}return x}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(u){return u.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=b,w=document.createElement("div"),v="__sizzle__";w.innerHTML="<p class='TEST'></p>";if(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0){return}b=function(G,y,B,F){y=y||document;if(!F&&!b.isXML(y)){var E=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(G);if(E&&(y.nodeType===1||y.nodeType===9)){if(E[1]){return a(y.getElementsByTagName(G),B)}else{if(E[2]&&f.find.CLASS&&y.getElementsByClassName){return a(y.getElementsByClassName(E[2]),B)}}}if(y.nodeType===9){if(G==="body"&&y.body){return a([y.body],B)}else{if(E&&E[3]){var A=y.getElementById(E[3]);if(A&&A.parentNode){if(A.id===E[3]){return a([A],B)}}else{return a([],B)}}}try{return a(y.querySelectorAll(G),B)}catch(C){}}else{if(y.nodeType===1&&y.nodeName.toLowerCase()!=="object"){var z=y.getAttribute("id"),x=z||v,I=y.parentNode,H=/^\s*[+~]/.test(G);if(!z){y.setAttribute("id",x)}else{x=x.replace(/'/g,"\\$&")}if(H&&I){y=y.parentNode}try{if(!H||I){return a(y.querySelectorAll("[id='"+x+"'] "+G),B)}}catch(D){}finally{if(!z){y.removeAttribute("id")}}}}}return e(G,y,B,F)};for(var u in e){b[u]=e[u]}w=null})()}(function(){var e=document.documentElement,v=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector,u=false;try{v.call(document.documentElement,"[test!='']:sizzle")}catch(w){u=true}if(v){b.matchesSelector=function(x,z){z=z.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!b.isXML(x)){try{if(u||!f.match.PSEUDO.test(z)&&!/!=/.test(z)){return v.call(x,z)}}catch(y){}}return b(z,null,null,[x]).length>0}}})();(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(u,v,w){if(typeof v.getElementsByClassName!=="undefined"&&!w){return v.getElementsByClassName(u[1])}};e=null})();function p(u,z,y,C,A,B){for(var w=0,v=C.length;w<v;w++){var e=C[w];if(e){var x=false;e=e[u];while(e){if(e.sizcache===y){x=C[e.sizset];break}if(e.nodeType===1&&!B){e.sizcache=y;e.sizset=w}if(e.nodeName.toLowerCase()===z){x=e;break}e=e[u]}C[w]=x}}}function t(u,z,y,C,A,B){for(var w=0,v=C.length;w<v;w++){var e=C[w];if(e){var x=false;e=e[u];while(e){if(e.sizcache===y){x=C[e.sizset];break}if(e.nodeType===1){if(!B){e.sizcache=y;e.sizset=w}if(typeof z!=="string"){if(e===z){x=true;break}}else{if(b.filter(z,[e]).length>0){x=e;break}}}e=e[u]}C[w]=x}}}if(document.documentElement.contains){b.contains=function(u,e){return u!==e&&(u.contains?u.contains(e):true)}}else{if(document.documentElement.compareDocumentPosition){b.contains=function(u,e){return !!(u.compareDocumentPosition(e)&16)}}else{b.contains=function(){return false}}}b.isXML=function(e){var u=(e?e.ownerDocument||e:0).documentElement;return u?u.nodeName!=="HTML":false};var h=function(e,A){var y,w=[],x="",v=A.nodeType?[A]:A;while((y=f.match.PSEUDO.exec(e))){x+=y[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var z=0,u=v.length;z<u;z++){b(e,v[z],w)}return b.filter(x,w)};window.Sizzle=b})();
