if(!window.Meeko){window.Meeko={};}if(!Meeko.XPL){Meeko.XPL=(function(){var c=function(){};c.enhance=function(e,j){for(var f in j){var i=j[f];var h=e[f];if(h){for(var g in i){if("prototype"==g){continue;}if(h[g]){continue;}else{h[g]=i[g];}}if(i.prototype&&null==h.prototype){h.prototype={};}for(var g in i.prototype){if(h.prototype[g]){continue;}else{h.prototype[g]=i.prototype[g];}}}else{e[f]=i;}}};var b=function(e){this.ref=e;};b.DEBUG=0;b.INFO=1;b.WARN=2;b.ERROR=3;b.prototype.log=function(){this._log({message:arguments});};b.prototype.debug=function(){this._log({level:b.DEBUG,message:arguments});};b.prototype.info=function(){this._log({level:b.INFO,message:arguments});};b.prototype.warn=function(){this._log({level:b.WARN,message:arguments});};b.prototype.error=function(){this._log({level:b.ERROR,message:arguments});};b.prototype._log=function(e){e.date=new Date;e.ref=this.ref;e.message=Array.prototype.join.call(e.message," ");if(this._trace){this._trace.log(e);}};var a=function(e){this.params={};this.requiredContexts=[];this.installed=false;this.logger=new b(e);};var d=function(){this.prefetch={};this.contexts={};this.documentURI=document.documentURI||document.baseURI||document.URL;};d.prototype.createContext=function(f){if(null==f){f=0;for(var g in this.contexts){f++;}}var e=new a(f);this.contexts[f]=e;e.logger._trace=this.trace;return e;};d.prototype.createNamespace=function(f){var e=f.split(".");var h=window;for(var k=e.length,g=0;g<k;g++){var j=e[g];if(!h[j]){h[j]={};}h=h[j];}return h;};d.prototype.init=function(){var g=this;function f(h){var k=g.contexts[h];if(k.installed){return true;}for(var m=k.requiredContexts.length,j=0;j<m;j++){f(k.requiredContexts[j]);}var l=k.wrappedScript.call(window);k.installed=true;return l;}for(var e in g.contexts){f(e);}};return{Namespace:c,XPLContext:a,XPLSystem:d};})();}if(!Meeko.stuff){Meeko.stuff={};}if(!Meeko.stuff.xplSystem){Meeko.stuff.xplSystem=(function(){var b=new Meeko.XPL.XPLSystem();var a=window;do{if(a&&a.Meeko&&a.Meeko.stuff&&a.Meeko.stuff.trace){b.trace={_log:a.Meeko.stuff.trace.log,log:function(c){c.url=b.documentURI;this._log(c);}};break;}if(a==top){break;}}while(a=a.parent);if(!b.trace){b.trace={log:function(c){}};}return b;})();}if(XMLHttpRequest&&!XMLHttpRequest.wrapped){var XMLHttpRequest=(function(){var b=window.XMLHttpRequest;var a=function(){return new b;};a.wrapped=b;return a;})();}Meeko.stuff.xplSystem.createContext("lib/Meeko/ECMAScript5.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/ECMAScript5.xhtml"].requiredContexts=[];Meeko.stuff.xplSystem.contexts["lib/Meeko/ECMAScript5.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/ECMAScript5.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/ECMAScript5.xhtml"];var a=b.logger;if(!this.Meeko){this.Meeko={};}Meeko.ECMAScript5=(function(){var j=this;var g=function(){};g.prototype={};var d=function(l,m,n){if((n.get||n.set)&&n.value!=null){throw"value is incompatible with get, set";}if(n.value!=null){if(delete l[m]&&l[m]==null){l[m]=n.value;}else{l.__defineGetter__(m,function(){return n.value;});}}if(n.get){l.__defineGetter__(m,n.get);}if(n.set){l.__defineSetter__(m,n.set);}return l;};var f=function(n,p,q){if((q.get||q.set)&&undefined!=q.value){throw"value is incompatible with get, set";}if(q.set){throw"setters not implemented";}var o=(q.get)?{valueOf:q.get.bind(n),toString:q.get.bind(n)}:q.value;try{n[p]=o;}catch(m){if(n.nodeType!=1){throw"Object.defineProperty not valid for non-Element nodes";}var l=document.createAttribute(p);l.nodeValue=o;n.setAttributeNode(l);}return n;};var k=function(n,p,q){try{if(q.value!=null&&n[p]!=null){var l=function(){return arguments.callee.__value__;};l.__value__=q.value;j.Object._defineProperty(n,p,{get:l});}else{j.Object._defineProperty(n,p,q);}}catch(m){if((q.get||q.set)&&undefined!=q.value){throw"value is incompatible with get, set";}if(q.set){throw"setters not implemented";}var o=(q.get)?{valueOf:q.get.bind(n),toString:q.get.bind(n)}:q.value;n[p]=o;}return n;};if(j.Object.defineProperty){try{j.Object.defineProperty({},"_x",{get:function(){}});}catch(h){j.Object._defineProperty=j.Object.defineProperty;j.Object.defineProperty=null;g.defineProperty=k;}}else{g.defineProperty=(j.Object.prototype.__defineGetter__)?d:f;}g.copy=function(o,r,l,q){function s(w,v,n,u){if(!u&&(w.hasOwnProperty&&w.hasOwnProperty(n)||w[n]!=null)){return;}w[n]=v[n];}if(l&&l.length){for(var t=l.length,p=0;p<t;p++){var m=l[p];s(o,r,m,q);}}else{for(var m in r){s(o,r,m,q);}}return o;};g.toLoggerString=function(n){var m="";for(var q in n){var r=n[q];var o=typeof r;var p;try{if(o=="object"&&r.length){o="array";}}catch(l){}try{var p=""+r;}catch(l){o="null";}if(o=="function"){m+=q+": function() {}\n";}else{if(o=="array"){m+=q+": [ "+r+" ]\n";}else{if(o=="null"){m+=q+": null\n";}else{m+=q+": "+r+"\n";}}}}return m;};g.forEach=function(l,p,n){for(var m in l){var o=l[m];if(typeof o!="function"){p.call(n,o,m,l);}}};var i=function(){return j.Array.apply(this,arguments);};i.prototype=[];i.prototype.indexOf=function(m,r){var q=this;var p=q.length;if(r==null){r=0;}for(var l=r;l<p;l++){var o=q[l];if(o===m){return l;}}return -1;};i.prototype.lastIndexOf=function(m,r){var q=this;var p=q.length;if(r==null){r=p-1;}for(var l=r;l>=0;l--){var o=q[l];if(o===m){return l;}}return -1;};i.prototype.every=function(r,m){var q=this;var p=q.length;for(var l=0;l<p;l++){var o=q[l];if(o==null){continue;}if(!r.call(m,o,l,q)){return false;}}return true;};i.prototype.some=function(r,m){var q=this;var p=q.length;for(var l=0;l<p;l++){var o=q[l];if(o==null){continue;}if(r.call(m,o,l,q)){return true;}}return false;};i.prototype.forEach=function(r,m){var q=this;var p=q.length;for(var l=0;l<p;l++){var o=q[l];if(o==null){continue;}r.call(m,o,l,q);}};i.prototype.filter=function(s,o){var r=this;var l=[];var q=r.length;for(var m=0;m<q;m++){var p=r[m];if(p==null){continue;}s.call(o,p,m,r)&&l.push(p);}return l;};i.prototype.map=function(s,o){var r=this;var l=[];var q=r.length;for(var m=0;m<q;m++){var p=r[m];if(p==null){continue;}l[m]=s.call(o,r[m],m,r);}return l;};i.prototype.compare=function(q,p){var s=this;if(!p){p=function(u,n){return(u<n)?-1:(u>n)?1:0;};}var r=0;var o=s.length,m=q.length,t=(o<=m)?o:m;for(var l=0;l<t;l++){if(r=p(s[l],q[l])){return r;}}return r;};i.slice=function(o,n,l){var m=this.prototype.slice;return(l===undefined)?m.call(o,n):m.call(o,n,l);};i.indexOf=function(n,l,m){return this.prototype.indexOf.call(n,l,m);};i.lastIndexOf=function(n,l,m){return this.prototype.lastIndexOf.call(n,l,m);};i.every=function(n,m,l){return this.prototype.every.call(n,m,l);};i.filter=function(n,m,l){return this.prototype.filter.call(n,m,l);};i.forEach=function(n,m,l){return this.prototype.forEach.call(n,m,l);};i.map=function(n,m,l){return this.prototype.map.call(n,m,l);};i.some=function(n,m,l){return this.prototype.some.call(n,m,l);};i.compare=function(n,m,l){return this.prototype.compare.call(n,m,l);};var e=function(){return j.Function.apply(this,arguments);};e.prototype=function(){};e.prototype.bind=function(l){var m=this;var n=[].slice.call(arguments,1);return(n.length)?function(){return m.apply(l,arguments);}:function(){return m.apply(l,n.concat([].slice.call(arguments,0)));};};return{Object:g,Array:i,Function:e};})();Meeko.XPL.Namespace.enhance(window,Meeko.ECMAScript5);};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM/System.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/System.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/System.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/System.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/DOM/System.xhtml"];var a=b.logger;(function(){if(!document.parentWindow){document.parentWindow=window;}var e=document.documentURI||document.baseURI||document.URL||document.url||document.location;if(!document.documentURI){document.documentURI=e;}document.createElement("select").options;document.createTextNode("text");document.createAttribute("attribute");var g={Node:"[[DOMNode.prototype]]",Text:"[[DOMText.prototype]]",Document:"[[DOMDocument.prototype]]",Element:"[[DOMElement.prototype]]",Event:"[[DOMEvent.prototype]]"};for(var d in g){var f=g[d];if(!window[f]){continue;}if(!window[d]){window[d]=function(){};}window[d].prototype=window[f];}})();Meeko.stuff.domSystem=(function(){var P={};var y=[{name:"Window",nodeType:0},{name:"Text",base:"Node",nodeType:3},{name:"Document",base:"Node",nodeType:9},{name:"HTMLDocument",base:"Document",nodeType:9},{name:"Element",base:"Node",nodeType:1},{name:"HTMLElement",base:"Element",nodeType:1},{name:"HTMLLinkElement",element:"link",base:"HTMLElement",nodeType:1},{name:"HTMLStyleElement",element:"style",base:"HTMLElement",nodeType:1},{name:"HTMLFormElement",element:"form",base:"HTMLElement",nodeType:1},{name:"HTMLSelectElement",element:"select",base:"HTMLElement",nodeType:1},{name:"HTMLInputElement",element:"input",base:"HTMLElement",nodeType:1},{name:"HTMLTableElement",element:"table",base:"HTMLElement",nodeType:1},{name:"HTMLTableSectionElement",element:"thead, tfoot, tbody",base:"HTMLElement",nodeType:1},{name:"HTMLTableRowElement",element:"tr",base:"HTMLElement",nodeType:1}];var j={};Object.forEach(y,function(i){j[i.name]=i;});var A={};for(var o in j){A[o]=[];var O=A[o];do{O.unshift(o);var r=j[o];o=(r)?r.base:null;}while(o);}function B(i){return(i.localName)?i.localName:i.tagName.replace(i.prefix+":","");}var w={_test:function(i){return B(i).toLowerCase();},link:"HTMLLinkElement",style:"HTMLStyleElement",form:"HTMLFormElement",select:"HTMLSelectElement",input:"HTMLInputElement",table:"HTMLTableElement",thead:"HTMLTableSectionElement",tfoot:"HTMLTableSectionElement",tbody:"HTMLTableSectionElement",tr:"HTMLTableRowElement",_default:"HTMLElement"};var p={_test:function(i){return(i!=window)?i.nodeType:0;},0:"Window",1:{_test:function(i){return i.namespaceURI;},"http://www.w3.org/1999/xhtml":w,_null:w,_default:"Element"},9:{_test:function(i){return i.namespaceURI;},"http://www.w3.org/1999/xhtml":"HTMLDocument",_null:"HTMLDocument",_default:"Document"}};var g=new Array(13);for(var M=0;M<13;M++){g[M]=[];}var l={};var u={};u.getStorage=function(i){return l[i.slabID];};u.addNode=function(W,X,U){if(this.getStorage(W)){return false;}var i=(W!=window)?W.nodeType:0;var T=g[i];var S=T.length;T.push(W);var V="slab_"+i+"_"+S;W.slabID=V;l[V]={};if(X){X.call(U,W);}return true;};u.releaseNodesByType=function(V,X,U){var S=g[V];for(var T=S.length-1;T>=0;T--){var W=S[T];delete S[T];if(X){X.call(U,W);}delete l[W.slabID];W.slabID=null;}g[V]=[];};var m=Math.random();function h(U,X,S,W){function Y(ac,ab,i,aa){if(ab[i]==null){return;}if(!aa&&(ac.hasOwnProperty&&ac.hasOwnProperty(i)||ac[i]!=null)){return;}if("function"==typeof ab[i]){ac[i]=function(){return ab[i].apply(ab,arguments);};}else{if(ac.__defineGetter__){ac.__defineGetter__(i,function(){return ab[i];});}else{ac[i]=ab[i];}}}if(S&&S.length){for(var Z=S.length,V=0;V<Z;V++){var T=S[V];Y(U,X,T,W);}}else{for(var T in X){Y(U,X,T,W);}}return U;}function v(U,W,S){function X(aa,Z,i){if(aa[i]==null){return;}aa[i]=null;}if(S&&S.length){for(var Y=S.length,V=0;V<Y;V++){var T=S[V];X(U,W,T);}}else{for(var T in W){X(U,W,T);}}return U;}function J(W,S){for(var X=S.length,V=0;V<X;V++){var U=S[V];var T="_"+U;if(W[U]){W[T]=W[U];W[U]=null;}}}function t(W,S){for(var X=S.length,V=0;V<X;V++){var U=S[V];var T="_"+U;if(W[T]){W[U]=W[T];W[T]=null;}}}var Q=function(i){this.name=i;this.prototype={};this.interfaces=[];this.implementation=function(S){};};Q.prototype.attach=function(W){if(this.baseBinding){this.baseBinding.attach(W);}Object.copy(W,this.prototype);var T=new this.implementation(W);for(var Y=this.interfaces.length,V=0;V<Y;V++){var S=this.interfaces[V];var X=new S(W);T[V]=X;}var U="_"+this.name;u.getStorage(W)[U]=T;};Q.prototype.detach=function(W){var U="_"+this.name;var T=u.getStorage(W);var S=T[U];T[U]=null;if(!S){a.warn("Failure removing non-existant "+this.name+" interface from "+W.tagName);return;}for(var Z=this.interfaces.length,V=Z-1;V>=0;V--){var Y=S[V];if(Y&&Y.xblDestroy){Y.xblDestroy(W);}S[V]=null;}for(var X in this.prototype){if(W[X]===this.prototype[X]){W[X]=null;}}if(this.baseBinding){this.baseBinding.detach(W);}};Q.prototype.addImplementation=function(i){this.interfaces.push(i);var T="_"+this.name;var S=this.interfaces.length-1;return function(W){var U=u.getStorage(W);if(!U){return;}var V=U[T];if(!V){return;}return V[S];};};for(var o in j){var r=j[o];var D=new Q(o);P[o]=D;if(!window[o]){window[o]=D;}if(!window[o].prototype){window[o].prototype=D.prototype;}var G=r.base;if(G){D.baseBinding=P[G];}}function x(i){var T=p;while("string"!=typeof T){var S=T._test(i);if(S!=null){T=T[S]||T._default||"";}else{T=T._null||"";}}return P[T];}function q(S){var i=x(S);if(!i){a.error("attachDOMBindings: Could not find DOMBinding for nodeType: "+S.nodeType);throw"Error attaching DOMBindings";}if(u.addNode(S)){i.attach(S);}return S;}function n(S){var i=x(S);if(!i){a.error("detachDOMBindings: Could not find DOMBinding for nodeType: "+S.nodeType);throw"Error detaching DOMBindings";}i.detach(S);}function k(i){u.releaseNodesByType(i,n);}var d=null,E="uninitialized",C=null,z="head";var R={uninitialized:false,loading:false,interactive:false,loaded:true,complete:true};function F(){if(z=="head"){return(document.body)?true:false;}else{return R[document.readyState]||false;}}function L(){if(null==document.readyState){document.readyState="loading";window.addEventListener("DOMContentLoaded",function(i){document.readyState="loaded";},true);window.addEventListener("load",function(i){if(i.target==document||i.target==window){document.readyState="complete";}},true);}if(window.addEventListener){window.addEventListener("unload",e,false);}if(window.attachEvent){window.attachEvent("onunload",e);}if(z=="head"&&F()){z=="body";}d=window.setTimeout(s,0);}function e(){a.debug("Beginning exit process");k(Node.ELEMENT_NODE);k(Node.DOCUMENT_NODE);k(0);a.debug("DOMBindings detached");if(window.removeEventListener){window.removeEventListener("unload",e,false);}if(window.detachEvent){window.detachEvent("onunload",e);}a.debug("Finished exit process");}function s(){if(E=="uninitialized"&&F()||E!="uninitialized"){K();}if(E!="complete"){d=window.setTimeout(s,50);}}var I=false;function K(){if(I){a.warn("Reentrancy in domSystem initialization.");return;}if(E=="complete"){a.warn("domSystem initialization requested after complete");return;}I=true;try{N();}catch(i){a.error(i.message);}I=false;}function f(){if(E!="uninitialized"){a.warn("Manual domSystem initialization requested after automatic start");return;}K();}function N(){MAIN:switch(E){case"uninitialized":a.debug("initializing");q(window);q(document);E="loading";case"loading":a.debug("loading");switch(document.readyState){case"loaded":case"complete":a.debug("Dispatching compat DOMContentLoaded event");var i=document.createEvent("Event");i.initEvent("DOMContentLoaded",true,true);document.dispatchEvent(i);E="loaded";break;default:break MAIN;}case"loaded":if(document.readyState!="complete"){break MAIN;}E="complete";}a.debug("Dispatching compat progress event");var i=document.createEvent("Event");i.initEvent("progress",true,true);document.dispatchEvent(i);if(E=="complete"){a.debug("Dispatching compat load event");var i=document.createEvent("Event");i.initEvent("load",true,true);document.dispatchEvent(i);}}function H(V,S){for(var X=S.length,W=0;W<X;W++){var U=S[W];var T="_"+U;V[T]=V[U];V[U]=function(){var i=this[T]();P.attach(i);return i;};}}L();Object.copy(P,{addImplementation:function(S,i){return P[S].addImplementation(i);},bindInterface:h,releaseInterface:v,hideInterface:J,restoreInterface:t,wrapInterface:H,attach:q,initialize:f,document:{}});return P;})();};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM/Core.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Core.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml","lib/Meeko/DOM/System.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Core.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Core.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/DOM/Core.xhtml"];var a=b.logger;Meeko.stuff.xplSystem.createNamespace("Meeko.DOM.Core");Meeko.DOM.Core=(function(){var f=function(){};f.ELEMENT_NODE=1;f.ATTRIBUTE_NODE=2;f.TEXT_NODE=3;f.CDATA_SECTION_NODE=4;f.ENTITY_REFERENCE_NODE=5;f.ENTITY_NODE=6;f.PROCESSING_INSTRUCTION_NODE=7;f.COMMENT_NODE=8;f.DOCUMENT_NODE=9;f.DOCUMENT_TYPE_NODE=10;f.DOCUMENT_FRAGMENT_NODE=11;f.NOTATION_NODE=12;f.DOCUMENT_POSITION_DISCONNECTED=1;f.DOCUMENT_POSITION_PRECEDING=2;f.DOCUMENT_POSITION_FOLLOWING=4;f.DOCUMENT_POSITION_CONTAINS=8;f.DOCUMENT_POSITION_CONTAINED_BY=16;f.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var i=function(){};var d=function(){};d.prototype.importNode=function(m,p){var q=this;var s;switch(m.nodeType){case f.ELEMENT_NODE:s=q.createElement(m.nodeName);var r=m.attributes;for(var n=0;n<r.length;n++){var o=r[n];s.setAttribute(o.nodeName,o.nodeValue);}var l=m.childNodes;if(p){for(var n=0;n<l.length;n++){var k=l[n];s.appendChild(q.importNode(k,true));}}break;case f.CDATA_SECTION_NODE:case f.TEXT_NODE:s=q.createTextNode(m.nodeValue);break;}return s;};if(!document.compareDocumentPosition&&document.documentElement.contains){d.prototype.compareDocumentPosition=function(k){if(k==undefined){return 1;}if(this===k){return 0;}if(k.sourceIndex<=0){return 1;}if(k.ownerDocument===this){return 20;}return 1;};}var e=function(){};if(!document.documentElement.compareDocumentPosition&&document.documentElement.contains){e.prototype.compareDocumentPosition=function(k){if(k==undefined){return 1;}if(this===k){return 0;}if(k.sourceIndex<=0||this.sourceIndex<=0){return 1;}if(k===this.ownerDocument||k.contains(this)){return 10;}if(this.contains(k)){return 20;}if(k.sourceIndex<this.sourceIndex){return 2;}if(k.sourceIndex>this.sourceIndex){return 4;}return 1;};}var h=function(){};h.INDEX_SIZE_ERR=1;h.DOMSTRING_SIZE_ERR=2;h.HIERARCHY_REQUEST_ERR=3;h.WRONG_DOCUMENT_ERR=4;h.INVALID_CHARACTER_ERR=5;h.NO_DATA_ALLOWED_ERR=6;h.NO_MODIFICATION_ALLOWED_ERR=7;h.NOT_FOUND_ERR=8;h.NOT_SUPPORTED_ERR=9;h.INUSE_ATTRIBUTE_ERR=10;h.INVALID_STATE_ERR=11;h.SYNTAX_ERR=12;h.INVALID_MODIFICATION_ERR=13;h.NAMESPACE_ERR=14;h.INVALID_ACCESS_ERR=15;h.VALIDATION_ERR=16;h.TYPE_MISMATCH_ERR=17;var j=function(k,l){this._getText=k;this._setText=l;this.valueOf=k;this.toString=k;Object.defineProperty(this,"length",{get:function(){return this._getTokens().length;}});};j.prototype.xblDestroy=function(){this.valueOf=null;this.toString=null;this._getText=null;this._setText=null;this.length=null;};j.prototype.item=function(k){return this._getTokens()[k];};j.prototype.contains=function(k){var l=this._getTokens();return(l.indexOf(k)>=0);};j.prototype.add=function(k){if(this.contains(k)){return;}var m=this._getText();var o=m.length,l=(o&&m.charAt(o-1)!=" ")?" ":"";m+=l+k;this._setText(m);};j.prototype.remove=function(k){var n=this._getText();var m=n.split(/\s+/);var l=m.filter(function(o){return o!=k;});if(m.length==l.length){return;}this._setText(l.join(" "));};j.prototype.toggle=function(k){if(this.contains(k)){this.remove(k);}else{this.add(k);}};j.prototype._getTokens=function(){var k=this._getText();if(!k){return[];}return k.split(/\s+/);};var g=function(){};return{Node:f,Text:i,Document:d,Element:e,DOMException:h,DOMTokenList:j,NodeList:g};})();Meeko.XPL.Namespace.enhance(window,Meeko.DOM.Core);};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM/Events.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Events.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml","lib/Meeko/DOM/System.xhtml","lib/Meeko/DOM/Core.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Events.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Events.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/DOM/Events.xhtml"];var a=b.logger;Meeko.stuff.xplSystem.createNamespace("Meeko.DOM.Events");Meeko.DOM.Events=(function(){var B=Math.random();var z=["Event","CustomEvent","UIEvent","TextEvent","KeyboardEvent","MouseEvent","MouseWheelEvent","MouseMultiWheelEvent","MutationEvent","MutationNameEvent"];var q={"U+007F":46,"U+0008":8,"U+001B":27,Down:40,End:35,Enter:13,Home:36,Insert:45,Left:37,PageUp:33,PageDown:34,Right:39,Up:38,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};var H={};for(var C in q){var e=q[C];H[e]=C;}var u="0123456789ABCDEF".split(/\s*/);for(var F=0;F<=15;F++){for(var E=0;E<=15;E++){var r=""+u[F]+u[E];var e=Number("0x"+r);var C="U+00"+r;if(!H[e]){H[e]=C;}}}var D=(/AppleWebKit/.test(navigator.userAgent))?Number(navigator.userAgent.match(/AppleWebKit\/([0-9]+\.[0-9]+)/)[1]):null;var w=function(){};w.DEFAULT_PREVENTED=1;w.PROPAGATION_STOPPED=2;w.FAKE_EVENT=4;w.COMPATIBILITY_EVENT=8;w.FIXED_WINDOW_CAPTURING=16;w.FIXED_WINDOW_BUBBLING=32;var v=function(){var M=this;this.registeredEvents={};this.keyEventHistory=[];if(window.addEventListener){for(var L in v.handlers){(function(P,O,N){window.addEventListener(O,function(Q){N[O].call(P,Q);},true);})(this,L,v.handlers);}}else{if(window.attachEvent){var j=this.eventDelegate=document.createElement("meta");j.attachEvent("onpropertychange",function(S){var O=S.srcElement.__event__;var R=o(O.currentTarget);var N=R.getListeners(O);var Q=N[O.listenerIndex].listener;var P=(Q.handleEvent)?Q.handleEvent(O):Q.call(null,O);S.returnValue=O.returnValue||P;});var i=document.getElementsByTagName("head")[0];i.insertBefore(j,i.firstChild);}}};v.prototype.handleEvent=function(i,N){var M=N||i.currentTarget;var L=o(M);var j;a.debug((i.eventStatus&w.FAKE_EVENT?"Compatibility":"Browser")+" "+i.type+" event received"+(M==window?" on window":"")+" during "+(i.eventPhase==1?"capture":"bubbling")+" phase"+(L?" and forwarded":""));return j;};var J=["type","keyCode","charCode","keyIdentifier"];v.handlers={load:function(i){if(i.eventStatus&w.FAKE_EVENT){if(i.eventPhase==1){if(!(i.eventStatus&w.FIXED_WINDOW_CAPTURING)){this.handleEvent(i,window);i.eventStatus|=w.FIXED_WINDOW_CAPTURING;}var j=i.currentTarget||window;if(j!=window){this.handleEvent(i,j);}}else{var j=i.currentTarget||window;if(j!=window){this.handleEvent(i,j);}if(!(i.eventStatus&w.FIXED_WINDOW_BUBBING)){this.handleEvent(i,window);i.eventStatus|=w.FIXED_WINDOW_BUBBLING;}}}else{a.debug("Browser load event received and blocked.");i.stopPropagation();}return false;},DOMContentLoaded:function(i){if(i.eventStatus&w.FAKE_EVENT){var j=i.currentTarget||window;this.handleEvent(i,j);}else{a.debug("Browser DOMContentLoaded event received and blocked.");i.stopPropagation();}return false;},keydown:function(j){var N=j.currentTarget||window;var Q;if(j.keyIdentifier){Q=j.keyIdentifier;}else{Q=H[j.keyCode||j.charCode];j.keyIdentifier=Q;}var M=this.keyEventHistory;var P=M.length;var i=(P)?M[P-1]:null;var L=0;var O=1;L=i?i.repeat:0;L+=O;j.repeat=L;M.push(Object.copy({type:"keydown",repeat:L},j,J));this.handleEvent(j,N);},keypress:function(j){var Q;if(j.keyIdentifier){Q=j.keyIdentifier;}else{Q=H[j.keyCode||j.charCode];j.keyIdentifier=Q;}var N=this.keyEventHistory;var P=N.length;var i=(P)?N[P-1]:null;var M=0;var O=1;if(i&&i.type=="keydown"){M=i.repeat;}else{if(i&&i.type=="keypress"){M=i.repeat+O;}}if(!(i&&i.type=="keydown")){var L=document.createEvent("KeyboardEvent");L.initKeyboardEvent("keydown",true,true,window,Q,0,"");L.eventStatus=1|4|8;j.target.dispatchEvent(L);}N.push(Object.copy({type:"keypress",repeat:M},j,J));if(j.charCode&&!(j.metaKey||j.altKey||j.ctrlKey)){if(!D||D<500){var L=document.createEvent("TextEvent");L.initTextEvent("textInput",true,true,window,String.fromCharCode(j.charCode));j.target.dispatchEvent(L);if(L.eventStatus&w.DEFAULT_PREVENTED){j.preventDefault();}}}},textInput:function(j){var M=j.currentTarget||window;var L=this.keyEventHistory;var N=L.length;var i=(N)?L[N-1]:null;if(i&&i.type=="keydown"){this.handleEvent(j,M);L.push(Object.copy({type:"textInput"},j,J));}},keyup:function(j){var M=j.currentTarget||window;var O;if(j.keyIdentifier){O=j.keyIdentifier;}else{O=H[j.keyCode];j.keyIdentifier=O;}var L=this.keyEventHistory;var N=L.length;var i=L[N-1];if(i&&(i.type!="keyup"||i.keyIdentifier!=O)){L.push(Object.copy({type:"keyup"},j,J));this.handleEvent(j,M);}},DOMMouseScroll:function(O){O.stopPropagation();var P=document.createEvent("MouseWheelEvent");var j=["type","bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","wheelDelta"];var Q=j.length;var L=[];L[0]="mousewheel";for(var N=1;N<Q-1;N++){var M=j[N];L[N]=O[M];}L[Q-1]=-40*O.detail;P.initMouseWheelEvent.apply(P,L);return O.target.dispatchEvent(P);}};var n=new v;v.prototype.registerEvent=function(j){if(this.registeredEvents[j]){return;}var L=function(O){var N=document.createEvent("Event");N.initEvent(O.type,O.bubbles,O.cancelable);Object.copy(N,O);n.dispatchEvent(O.srcElement,N);return N.returnValue;};var i={DOMAttrModified:function(){},DOMActivate:{type:"activate",bubbles:true,cancelable:true},DOMFocusIn:{type:"focusin",bubbles:true,cancelable:false},DOMFocusOut:{type:"focusout",bubbles:true,cancelable:false},keydown:function(){document.attachEvent("onkeydown",function(O){var N=document.createEvent("UIEvent");N.initEvent("keydown",true,true);N.keyCode=O.keyCode;N.keyIdentifier=H[O.keyCode];N.returnValue=n.dispatchEvent(O.srcElement,N);return N.returnValue;});},keyup:function(){document.attachEvent("onkeyup",function(O){var N=document.createEvent("UIEvent");N.initEvent("keyup",true,true);N.keyCode=O.keyCode;N.keyIdentifier=H[O.keyCode];N.returnValue=n.dispatchEvent(O.srcElement,N);return N.returnValue;});},textInput:function(){document.attachEvent("onkeypress",function(O){var N=document.createEvent("UIEvent");N.initEvent("textInput",true,true);N.data=String.fromCharCode(O.keyCode);O.returnValue=n.dispatchEvent(O.srcElement,N);});},focus:function(){document.attachEvent("onfocusin",function(O){var N=document.createEvent("UIEvent");N.initEvent("focus",false,false);O.returnValue=n.dispatchEvent(O.srcElement,N);});},blur:function(){document.attachEvent("onfocusout",function(O){var N=document.createEvent("UIEvent");N.initEvent("blur",false,false);O.returnValue=n.dispatchEvent(O.srcElement,N);});},mouseover:function(){document.attachEvent("onmouseover",function(O){var N=document.createEvent("MouseEvent");k.copyMouseEvent(N,O);N.relatedTarget=O.fromElement;O.returnValue=n.dispatchEvent(O.srcElement,N);N.relatedTarget=null;});},mouseout:function(){document.attachEvent("onmouseout",function(O){var N=document.createEvent("MouseEvent");k.copyMouseEvent(N,O);N.relatedTarget=O.toElement;O.returnValue=n.dispatchEvent(O.srcElement,N);N.relatedTarget=null;});},click:function(){document.attachEvent("onclick",function(O){var N=document.createEvent("MouseEvent");k.copyMouseEvent(N,O);N.button=([null,0,2,null,1])[O.button];N.detail=1;O.returnValue=n.dispatchEvent(O.srcElement,N);});},dblclick:function(){document.attachEvent("ondblclick",function(O){var N=document.createEvent("MouseEvent");k.copyMouseEvent(N,O);N.button=([null,0,2,null,1])[O.button];N.detail=2;O.returnValue=n.dispatchEvent(O.srcElement,N);});},mousewheel:function(){document.attachEvent("onmousewheel",function(O){var N=document.createEvent("MouseWheelEvent");t.copyMouseWheelEvent(N,O);O.returnValue=n.dispatchEvent(O.srcElement,N);});}};var M=i[j]||{type:j,bubbles:true,cancelable:true};if(typeof M=="function"){M();}else{document.attachEvent("on"+M.type,L);}this.registeredEvents[j]=true;};v.prototype.dispatchEvent=function(j,i){this._dispatchEvent(j,i);i.currentTarget=null;i.target=null;return i.returnValue;};v.prototype._dispatchEvent=function(Q,N){var M=this;N.target=Q;var P=[];var O=Q;if(Q!=window){for(O=Q;O!=document;O=O.parentNode){P.push(O);}P.push(document);}P.push(window);function j(V,T){var U=o(V);if(!U){return;}T.currentTarget=V;var W=U.getListeners(T).length;for(var S=0;S<W;S++){T.listenerIndex=S;M.eventDelegate.__event__=T;}}N.eventPhase=K.CAPTURING_PHASE;for(var R=P.length,L=R-1;L>0;L--){j(P[L],N);if(N.cancelBubble){return N.returnValue;}}N.eventPhase=K.AT_TARGET;j(P[0],N);if(N.cancelBubble){return N.returnValue;}if(!N.bubbles){return N.returnValue;}N.eventPhase=K.BUBBLING_PHASE;for(var R=P.length,L=1;L<R;L++){j(P[L],N);if(N.cancelBubble){return N.returnValue;}}return N.returnValue;};var K=function(i){if(i!=B){throw"Event is not a constructor";}};K.CAPTURING_PHASE=1;K.AT_TARGET=2;K.BUBBLING_PHASE=3;K.prototype.initEvent=function(L,j,i){this.eventStatus=0;this.timeStamp=+(new Date);this.type=L;this.bubbles=!!j;this.cancelable=!!i;};K.prototype.preventDefault=function(){this.eventStatus|=w.DEFAULT_PREVENTED;};K.prototype.stopPropagation=function(){this.eventStatus|=w.PROPAGATION_STOPPED;};var y=function(i){if(i!=B){throw"CustomEvent is not a constructor";}};y.prototype=new K(B);y.prototype.initCustomEvent=function(M,j,i,L){this.initEvent(M,j,i);this.detail=L;};var G=function(i){if(i!=B){throw"UIEvent is not a constructor";}};G.prototype=new K(B);G.prototype.initUIEvent=function(N,L,j,i,M){this.initEvent(N,L,j);this.view=i;this.detail=M;};var p=function(i){if(i!=B){throw"TextEvent is not a constructor";}};p.prototype=new G(B);p.DOM_KEY_LOCATION_STANDARD=0;p.DOM_KEY_LOCATION_LEFT=1;p.DOM_KEY_LOCATION_RIGHT=2;p.DOM_KEY_LOCATION_NUMPAD=3;p.prototype.initTextEvent=function(M,L,j,i,N){this.initUIEvent(M,L,j,i,0);this.data=N;};var x=function(i){if(i!=B){throw"KeyboardEvent is not a constructor";}};x.prototype=new G(B);x.DOM_KEY_LOCATION_STANDARD=0;x.DOM_KEY_LOCATION_LEFT=1;x.DOM_KEY_LOCATION_RIGHT=2;x.DOM_KEY_LOCATION_NUMPAD=3;x.prototype.initKeyboardEvent=function(R,N,j,S,O,P,Q){this.initUIEvent(R,N,j,S,0);this.keyIdentifier=O;this.keyLocation=P;this._modifiers=Q.split(" ");for(var L=this._modifiers.length,M=0;M<L;M++){switch(this._modifiers[M]){case"Alt":this.altKey=true;break;case"Control":this.ctrlKey=true;break;case"Meta":this.metaKey=true;break;case"Shift":this.shiftKey=true;break;}}};x.prototype.getModifierState=function(L){for(var M=this._modifiers.length,j=0;j<M;j++){if(L==this._modifiers[j]){return true;}}return false;};var k=function(i){if(i!=B){throw"MouseEvent is not a constructor";}};k.prototype=new G(B);k.initArgs=["type","bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget"];k.copyMouseEvent=function(Q,j){var S=k.initArgs;var N=S.length;var P=(null!=j.bubbles)?j.bubbles:"true";var M=(null!=j.cancelable)?j.cancelable:"true";var R=(null!=j.view)?j.view:window;Q.initUIEvent(j.type,P,M,R,j.detail);for(var O=5;O<N;O++){var L=S[O];Q[L]=j[L];}};k.prototype.initMouseEvent=function(P,R,aa,T,Z,j,ac,W,V,N,M,U,O,L,Q){var S=k.initArgs;var X=S.length;if(arguments.length<X){throw"Improper argument list in call to initMouseEvent";}this.initUIEvent(P,R,aa,T,Z);for(var Y=5;Y<X;Y++){var ab=S[Y];this[ab]=arguments[Y];}};var t=function(i){if(i!=B){throw"MouseWheelEvent is not a constructor";}};t.initArgs=["type","bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","wheelDelta"];t.copyMouseWheelEvent=function(Q,j){var S=t.initArgs;var N=S.length;var P=(null!=j.bubbles)?j.bubbles:"true";var M=(null!=j.cancelable)?j.cancelable:"true";var R=(null!=j.view)?j.view:window;Q.initUIEvent(j.type,P,M,R,j.detail);for(var O=5;O<N;O++){var L=S[O];Q[L]=j[L];}};t.prototype=new k(B);t.prototype.initMouseWheelEvent=function(Q,S,ab,U,aa,j,ad,X,W,O,N,V,P,L,R,M){var T=t.initArgs;var Y=T.length;if(arguments.length<Y){throw"Improper argument list in call to initMouseWheelEvent";}this.initUIEvent(Q,S,ab,U,aa);for(var Z=5;Z<Y;Z++){var ac=T[Z];this[ac]=arguments[Z];}};var h=function(i){if(i!=B){throw"MutationEvent is not a constructor";}};h.MODIFICATION=1;h.ADDITION=2;h.REMOVAL=3;h.prototype=new K(B);h.prototype.initMutationEvent=function(P,M,L){var j=["type","bubbles","cancelable","relatedNode","prevValue","newValue","attrName","attrChange"];var Q=j.length;this.initEvent(P,M,L);for(var O=3;O<Q;O++){var N=j[O];this[N]=arguments[O];}};var m={Event:new K(B),CustomEvent:new y(B),UIEvent:new G(B),TextEvent:new p(B),KeyboardEvent:new x(B),MouseEvent:new k(B),MouseWheelEvent:new t(B),MutationEvent:new h(B)};var s={Events:"Event",HTMLEvents:"Event",UIEvents:"UIEvent",MouseEvents:"MouseEvent",MutationEvents:"MutationEvent"};var f=function(){};if(document.createEvent){f.prototype.createEvent=function(P){var j=s[P]||P;var O=m[j];if(!O){throw"Invalid event module: "+P;}var Q;var M=[j,P,"Event","HTMLEvents"];for(var R=M.length,N=0;N<R;N++){try{Q=document._createEvent(M[N]);}catch(L){}if(Q){break;}}if(!Q){throw"Could not create event in "+P;}Object.copy(Q,O);Q.eventStatus|=w.FAKE_EVENT;Q._preventDefault=Q.preventDefault;Q._stopPropagation=Q.stopPropagation;Q.preventDefault=function(){K.prototype.preventDefault.call(this);this._preventDefault();};Q.stopPropagation=function(){K.prototype.stopPropagation.call(this);this._stopPropagation();};return Q;};var l=false;Array.forEach(z,function(j){try{var L=document.createEvent(j);if(!L["init"+j]){l=true;}}catch(i){l=true;}});if(l){document._createEvent=document.createEvent;document.createEvent=f.prototype.createEvent;}}else{if(document.createEventObject){f.prototype.createEvent=function(L){var i=s[L]||L;var j=m[i];if(!j){throw"Invalid event module: "+L;}var M={};Object.copy(M,j);M.eventStatus|=w.FAKE_EVENT;M.preventDefault=function(){K.prototype.preventDefault.call(this);this.returnValue=false;};M.stopPropagation=function(){K.prototype.stopPropagation.call(this);this.cancelBubble=true;};return M;};document.createEvent=f.prototype.createEvent;}}var o=function(i){if(null==i){return null;}if(this==window){return arguments.callee.getInterface(i);}else{arguments.callee.prototype.xblCreate.call(this,i);}};o.interfaceLookup=new Array(13);o.getInterface=function(L){var i=(L==window)?0:L.nodeType;var j=this.interfaceLookup[i];return(j)?j(L):null;};o.methods=["addEventListener","removeEventListener","dispatchEvent"];o.prototype.xblCreate=function(j){this.target=j;var i=o.methods;Meeko.stuff.domSystem.hideInterface(j,i);Meeko.stuff.domSystem.bindInterface(j,this,i,true);this.listenerTable={};};o.prototype.xblDestroy=function(j){this.target=null;this.listenerTable={};var i=o.methods;Meeko.stuff.domSystem.releaseInterface(j,this,i,true);Meeko.stuff.domSystem.restoreInterface(j,i);};o.prototype.addEventListener=function(O,P,i){var L=(i)?1:0;if(!this.listenerTable[O]){this.listenerTable[O]=[[],[]];}var j=this.listenerTable[O][L];var N=function(Q){return(P.handleEvent)?P.handleEvent(Q):P.call(null,Q);};var M={fn:N,listener:P};j.push(M);return M.fn;};o.prototype.removeEventListener=function(P,Q,j){var M=(j)?1:0;if(!this.listenerTable[P]){return;}var L=this.listenerTable[P][M];for(var N=L.length-1;N>=0;N--){var O=L[N];if(O.listener!==Q){continue;}L.splice(N,1);return O.fn;}};o.prototype.dispatchEvent=function(i){};o.prototype.getListeners=function(M){var L=M.type,i=(M.eventPhase===1)?1:0;var j=this.listenerTable[L];return(j)?j[i]:[];};if(window.addEventListener){o.interfaceLookup[0]=Meeko.stuff.domSystem.addImplementation("Window",o);o.interfaceLookup[Node.DOCUMENT_NODE]=Meeko.stuff.domSystem.addImplementation("Document",o);o.prototype._addEventListener=o.prototype.addEventListener;o.prototype._removeEventListener=o.prototype.removeEventListener;o.prototype._dispatchEvent=o.prototype.dispatchEvent;o.prototype.addEventListener=function(L,M,i){var j=this._addEventListener(L,M,i);this.target._addEventListener(L,j,i);};o.prototype._removeEventListener=function(L,M,i){var j=this._removeEventListener(L,M,i);this.target._removeEventListener(L,j,i);};o.prototype.dispatchEvent=function(i){this.target._dispatchEvent(i);};}else{if(window.attachEvent){o.interfaceLookup[0]=Meeko.stuff.domSystem.addImplementation("Window",o);o.interfaceLookup[Node.DOCUMENT_NODE]=Meeko.stuff.domSystem.addImplementation("Document",o);o.interfaceLookup[Node.ELEMENT_NODE]=Meeko.stuff.domSystem.addImplementation("Element",o);o.prototype._xblCreate=o.prototype.xblCreate;o.prototype._addEventListener=o.prototype.addEventListener;o.prototype._removeEventListener=o.prototype.removeEventListener;o.prototype._dispatchEvent=o.prototype.dispatchEvent;o.prototype.xblCreate=function(N){this._xblCreate(N);if(N.nodeType!=Node.ELEMENT_NODE){return;}var M=this;this.onattrmodified=function(S){var V=M.target;var Q=S.propertyName;var U=V[Q];switch(typeof U){case"string":case"number":case"boolean":case"undefined":break;case"object":if(null===U){break;}default:return;}var T=this.prevValues[Q];this.prevValues[Q]=U;var i=(U!=null)?((T!=null)?1:2):3;var R=document.createEvent("MutationEvent");R.initMutationEvent("DOMAttrModified",true,false,null,T,U,Q,i);V.dispatchEvent(R);};this.prevValues={};var P=this.target.attributes;for(var O=P.length,L=0;L<O;L++){var j=P[L];if(j.specified){this.prevValues[j.nodeName]=j.nodeValue;}}};o.prototype.addEventListener=function(L,M,j){var i={type:L,eventPhase:(j)?1:3};if(this.getListeners(i).length<=0){n.registerEvent(L);if(L=="DOMAttrModified"){this.target.attachEvent("onpropertychange",this.onattrmodified);}}this._addEventListener(L,M,j);};o.prototype.removeEventListener=function(L,M,j){this._removeEventListener(L,M,j);var i={type:L,eventPhase:(j)?1:3};if(L=="DOMAttrModified"&&this.getListeners(i).length<=0){this.target.detachEvent("onpropertychange",this.onattrmodified);}};o.prototype.dispatchEvent=function(i){n.dispatchEvent(this.target,i);};}else{throw"EventTarget only implemented with addEventListener of attachEvent";}}if(!document.addEventListener&&document.attachEvent){var A=function(i){if(null==i){return null;}if(this==window){return arguments.callee.getInterface(i);}else{arguments.callee.prototype.xblCreate.call(this,i);}};A.interfaceLookup=new Array(13);A.interfaceLookup[Node.DOCUMENT_NODE]=Meeko.stuff.domSystem.addImplementation("Document",A);A.interfaceLookup[Node.ELEMENT_NODE]=Meeko.stuff.domSystem.addImplementation("Element",A);A.getInterface=function(L){var i=(L==window)?0:L.nodeType;var j=this.interfaceLookup[i];return(j)?j(L):null;};A.methods=["insertBefore","replaceChild","removeChild","appendChild","cloneNode"];A.prototype.xblCreate=function(i){var j=this;this.boundElement=i;Meeko.stuff.domSystem.hideInterface(i,A.methods);Meeko.stuff.domSystem.bindInterface(i,this,A.methods,true);this.domMutation_listener=function(L){j.onpropertychange(L);};i.attachEvent("onpropertychange",this.domMutation_listener);};A.prototype.xblDestroy=function(){var i=this.boundElement;i.detachEvent("onpropertychange",this.domMutation_listener);Meeko.stuff.domSystem.releaseInterface(i,this,A.methods,true);Meeko.stuff.domSystem.restoreInterface(i,A.methods);};A.prototype.cloneNode=function(R){var P=this.boundElement;var L={thead:["table"],tbody:["table"],tfoot:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table"],td:["table","tr"],option:["select"],li:["ul"]};var T=L[P.tagName.toLowerCase()];var S=document.createElement("div");var M="",N="";for(var j=T.length,O=0;O<j;O++){M+="<"+T[O]+">";}for(var O=T.length-1;O>=0;O--){N+="</"+T[O]+">";}S.innerHTML=M+(R?P.outerHTML:P.cloneNode(false).outerHTML)+N;var Q=S.firstChild;for(var O=0;O<T.length;O++){Q=Q.firstChild;}Q.parentNode.removeChild(Q);S=null;return Q;};A.prototype.onpropertychange=function(L){if(L.propertyName=="innerHTML"){var i=this.boundElement;for(var j=i.firstChild;j;j=j.nextSibling){if(Node.ELEMENT_NODE!=j.nodeType){continue;}if(j._Element){continue;}this.notify("DOMNodeInserted",j,i);}}};A.prototype.insertBefore=function(L,j){var i=this.boundElement._insertBefore(L,j);this.notify("DOMNodeInserted",L,this.boundElement);return i;};A.prototype.replaceChild=function(L,j){this.notify("DOMNodeRemoved",j,this.boundElement);var i=this.boundElement._replaceChild(L,j);this.notify("DOMNodeInserted",L,this.boundElement);return i;};A.prototype.removeChild=function(j){var L=this.boundElement;this.notify("DOMNodeRemoved",j,this.boundElement);var i=L._removeChild(j);return i;};A.prototype.appendChild=function(j){var i=this.boundElement._appendChild(j);this.notify("DOMNodeInserted",j,this.boundElement);return i;};A.prototype.notify=function(i,L){if(!L.contains){return;}if(!document.documentElement.contains(L)){return;}var j=document.createEvent("MutationEvent");j.initMutationEvent(i,true,false,this.boundElement);n.dispatchEvent(L,j);};}if(!document.addEventListener&&document.attachEvent){document.attachEvent("onfocusin",function(i){Meeko.stuff.domSystem.attach(i.srcElement);});var d=function(i){if(null==i){return null;}if(this==window){return arguments.callee.getInterface(i);}else{arguments.callee.prototype.xblCreate.call(this,i);}};d.getInterface=Meeko.stuff.domSystem.addImplementation("HTMLElement",d);d.prototype.xblCreate=function(j){this.target=j;var i=this;this.focusBubbler_listener=function(M){var L=document.createEvent("Event");L.initEvent(M.type,false,true);return n.dispatchEvent(M.srcElement,L);};j.attachEvent("onfocus",this.focusBubbler_listener);};d.prototype.xblDestroy=function(i){i.detachEvent("onfocus",this.focusBubbler_listener);this.focusBubbler_listener=null;this.target=null;};var I=function(i){if(null==i){return null;}if(this==window){return arguments.callee.getInterface(i);}else{arguments.callee.prototype.xblCreate.call(this,i);}};I.interfaceLookup={};I.interfaceLookup.input=Meeko.stuff.domSystem.addImplementation("HTMLInputElement",I);I.interfaceLookup.select=Meeko.stuff.domSystem.addImplementation("HTMLSelectElement",I);I.getInterface=function(L){var i=L.tagName.toLowerCase();var j=this.interfaceLookup[i];return(j)?j(L):null;};I.prototype.xblCreate=function(j){this.target=j;var i=this;this.changeBubbler_listener=function(M){var L=document.createEvent("Event");L.initEvent(M.type,true,true);return n.dispatchEvent(M.srcElement,L);};j.attachEvent("onchange",this.changeBubbler_listener);};I.prototype.xblDestroy=function(i){i.detachEvent("onchange",this.changeBubbler_listener);this.changeBubbler_listener=null;this.target=null;};var g=function(i){if(null==i){return null;}if(this==window){return arguments.callee.getInterface(i);}else{arguments.callee.prototype.xblCreate.call(this,i);}};g.getInterface=Meeko.stuff.domSystem.addImplementation("HTMLFormElement",g);g.prototype.xblCreate=function(j){this.target=j;var i=this;this.submitBubbler_listener=function(M){var L=document.createEvent("Event");L.initEvent(M.type,true,true);return n.dispatchEvent(M.srcElement,L);};j.attachEvent("onsubmit",this.submitBubbler_listener);j.attachEvent("onreset",this.submitBubbler_listener);};g.prototype.xblDestroy=function(i){i.detachEvent("onsubmit",this.submitBubbler_listener);i.detachEvent("onreset",this.submitBubbler_listener);this.submitBubbler_listener=null;this.target=null;};}Meeko.stuff.eventSystem=n;return{Event:K,CustomEvent:y,UIEvent:G,TextEvent:p,KeyboardEvent:x,MouseEvent:k,MutationEvent:h};})();Meeko.XPL.Namespace.enhance(window,Meeko.DOM.Events);};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM/Traversal.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Traversal.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml","lib/Meeko/DOM/System.xhtml","lib/Meeko/DOM/Core.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Traversal.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Traversal.xhtml"].wrappedScript=function(){var e=Meeko.stuff.xplSystem;var d=e.contexts["lib/Meeko/DOM/Traversal.xhtml"];var c=d.logger;Meeko.stuff.xplSystem.createNamespace("Meeko.DOM.Traversal");Meeko.DOM.Traversal=(function(){var f=Math.random();var j=function(){};j.FILTER_ACCEPT=1;j.FILTER_REJECT=2;j.FILTER_SKIP=3;j.SHOW_ALL=4294967295;j.SHOW_ELEMENT=1;j.SHOW_ATTRIBUTE=2;j.SHOW_TEXT=4;j.SHOW_CDATA_SECTION=8;j.SHOW_ENTITY_REFERENCE=16;j.SHOW_ENTITY=32;j.SHOW_PROCESSING_INSTRUCTION=64;j.SHOW_COMMENT=128;j.SHOW_DOCUMENT=256;j.SHOW_DOCUMENT_TYPE=512;j.SHOW_DOCUMENT_FRAGMENT=1024;j.SHOW_NOTATION=2048;var g=function(k){if(k!=f){throw"TreeWalker is not a constructor";}};g.prototype._init=function(){var k=["root","whatToShow","filter","expandEntityReferences"];var o=k.length;for(var m=0;m<o;m++){var l=k[m];this[l]=arguments[m];}if(Node.ATTRIBUTE_NODE==this.root.nodeType){this.root=null;throw"TreeWalker does not handle attributes";}if(this.filter&&"function"!=typeof this.filter.acceptNode){c.warn("filter parameter does not have valid acceptNode() for TreeWalker");this.filter=null;}this.currentNode=this.root;};g.prototype._acceptNode=function(k){if(1<<(k.nodeType-1)&this.whatToShow){return(this.filter)?this.filter.acceptNode(k):j.FILTER_ACCEPT;}else{return j.FILTER_SKIP;}};g.prototype.firstChild=function(){for(var k=this.currentNode.firstChild;k;k=k.nextSibling){var l=this._acceptNode(k);if(l==j.FILTER_ACCEPT){break;}}if(k){this.currentNode=k;}return k;};g.prototype.lastChild=function(){for(var k=this.currentNode.lastChild;k;k=k.previousSibling){var l=this._acceptNode(k);if(l==j.FILTER_ACCEPT){break;}}if(k){this.currentNode=k;}return k;};g.prototype.nextSibling=function(){for(var k=this.currentNode.nextSibling;k;k=k.nextSibling){var l=this._acceptNode(k);if(l==j.FILTER_ACCEPT){break;}}if(k){this.currentNode=k;}return k;};g.prototype.previousSibling=function(){for(var k=this.currentNode.previousSibling;k;k=k.previousSibling){var l=this._acceptNode(k);if(l==j.FILTER_ACCEPT){break;}}if(k){this.currentNode=k;}return k;};g.prototype.parentNode=function(){for(var k=this.currentNode.parentNode;k;k=k.parentNode){var l=this._acceptNode(k);if(l==j.FILTER_ACCEPT){break;}if(k==this.root){return null;}}if(k){this.currentNode=k;}return k;};g.prototype.nextNode=function(){var k=this.currentNode;var m=false;for(;;){if(!m&&k.firstChild){k=k.firstChild;}else{for(;k;k=k.parentNode){if(k==this.root){return null;}if(!k.nextSibling){continue;}k=k.nextSibling;break;}}m=false;var l=this._acceptNode(k);if(l==j.FILTER_ACCEPT){break;}if(l==j.FILTER_SKIP){continue;}if(l==j.FILTER_REJECT){m=true;}}if(k){this.currentNode=k;}return k;};g.prototype.previousNode=function(){if(!this.root){throw"TreeWalker is not attached to DOM";}if(!this.currentNode){return null;}var l=this.currentNode;for(;;){var m;if(k.previousSibling){var k=k.previousSibling;m=this._acceptNode(k);if(m==j.FILTER_REJECT){continue;}if(k.lastChild){while(k.lastChild){k=k.lastChild;}}}else{k=k.parentNode;}m=this._acceptNode(k);if(m==j.FILTER_ACCEPT){break;}if(k==this.root){return null;}}if(k){this.currentNode=k;}return k;};g.forEach=function(k,m,l){if(!k.nextNode){throw"Object doesn't have TreeWalker interface";}var n;while(n=k.nextNode()){m.call(l,n);}};g.prototype.forEach=function(l,k){return g.forEach(this,l,k);};var i=function(k){if(k!=f){throw"NodeIterator is not a constructor";}};i.prototype._init=function(){var k=["root","whatToShow","filter","expandEntityReferences"];var o=k.length;for(var m=0;m<o;m++){var l=k[m];this[l]=arguments[m];}if(Node.ATTRIBUTE_NODE==this.root.nodeType){this.root=null;throw"NodeIterator does not handle attributes";}if(this.filter&&"function"!=typeof this.filter.acceptNode){c.warn("filter parameter does not have valid acceptNode() for NodeIterator");this.filter=null;}this.currentNode=null;};i.prototype.nextNode=function(){if(!this.root){throw"NodeIterator is not attached to DOM";}var l=(this.currentNode)?this.currentNode:this.root;function k(n){if(n.firstChild){return n.firstChild;}for(;n!=this.root;n=n.parentNode){if(n.nextSibling){return n.nextSibling;}}return null;}do{if(!(1<<(l.nodeType-1)&this.whatToShow)){continue;}if(this.filter){var m=this.filter.acceptNode(l);if(m==j.FILTER_ACCEPT){break;}else{continue;}}break;}while(l=k.call(this,l));if(l){this.currentNode=l;}return l;};i.prototype.previousNode=function(){if(!this.root){throw"NodeIterator is not attached to DOM";}if(!this.currentNode){return null;}var l=this.currentNode;function k(n){if(n==this.root){return null;}if(n.previousSibling){n=n.previousSibling;while(n.lastChild){n=n.lastChild;}return n;}return(n.parentNode);}while(l=k.call(this,l)){if(!(1<<(next.nodeType-1)&this.whatToShow)){continue;}if(this.filter){var m=this.filter.acceptNode(next);if(m==j.FILTER_ACCEPT){break;}else{continue;}}break;}if(l){this.currentNode=l;}return l;};i.prototype.detach=function(){this.root=null;};i.forEach=function(k,m,l){if(!k.nextNode){throw"Object doesn't have NodeIterator interface";}var n;while(n=k.nextNode()){m.call(l,n);}};i.prototype.forEach=function(l,k){return i.forEach(this,l,k);};var h={};h.createTreeWalker=function(){var k=new g(f);k._init.apply(k,arguments);return k;};h.createNodeIterator=function(){var k=new i(f);k._init.apply(k,arguments);return k;};return{NodeFilter:j,TreeWalker:g,NodeIterator:i,document:h};})();Meeko.XPL.Namespace.enhance(window,Meeko.DOM.Traversal);try{var a=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,false);if(!a.forEach){document.__createTreeWalker=document.createTreeWalker;document.createTreeWalker=function(g,j,h,i){var k=h;if(h&&h.acceptNode){k=(function(l){return this.acceptNode(l);}).bind(h);}var f=this.__createTreeWalker(g,j,k,i);f.forEach=TreeWalker.prototype.forEach;return f;};}}catch(b){document.createTreeWalker=Meeko.DOM.Traversal.document.createTreeWalker;}try{var a=document.createNodeIterator(document,NodeFilter.SHOW_ALL,null,false);if(!a.forEach){document.__createNodeIterator=document.createNodeIterator;document.createNodeIterator=function(g,j,h,i){var k=h;if(h&&h.acceptNode){k=(function(l){return this.acceptNode(l);}).bind(h);}var f=this.__createNodeIterator(g,j,k,i);f.forEach=NodeIterator.prototype.forEach;return f;};}}catch(b){document.createNodeIterator=Meeko.DOM.Traversal.document.createNodeIterator;}};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM/HTML.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/HTML.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml","lib/Meeko/DOM/System.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/HTML.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/HTML.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/DOM/HTML.xhtml"];var a=b.logger;Meeko.stuff.xplSystem.createNamespace("Meeko.DOM.HTML");Meeko.DOM.HTML=(function(){document.createElement("abbr");document.createElement("output");var h=function(){};var g=function(){};var e=function(){};var j=function(){};var f=function(){};var i=function(){};var d=function(){};var l=function(){};var o=function(){};var n=function(){};var k=function(){};if(document.documentElement.classList==null){var m=function(p){if(null==p){return null;}if(this==window){return null;}else{arguments.callee.prototype.xblCreate.call(this,p);}};m.prototype.xblCreate=function(r){var p=function(){return this.className;};var q=function(s){this.className=s;};this.classList=new DOMTokenList(p.bind(r),q.bind(r));Meeko.stuff.domSystem.bindInterface(r,this,["classList"]);};m.prototype.xblDestroy=function(p){Meeko.stuff.domSystem.releaseInterface(p,this,["classList"]);this.classList.xblDestroy();this.classList=null;};Meeko.stuff.domSystem.addImplementation("HTMLElement",m);}return{HTMLCollection:h,HTMLOptionsCollection:g,HTMLFormControlsCollection:e,HTMLDocument:j,HTMLElement:f,HTMLFormElement:i,HTMLSelectElement:d,HTMLInputElement:l,HTMLTableElement:o,HTMLTableSectionElement:n,HTMLTableRowElement:k};})();Meeko.XPL.Namespace.enhance(window,Meeko.DOM.HTML);};Meeko.stuff.xplSystem.createContext("lib/Meeko/CSS.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/CSS.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/CSS.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/CSS.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/CSS.xhtml"];var a=b.logger;if(!this.Meeko){this.Meeko={};}Meeko.CSS=(function(){var i=function(){this.conditionFactory=e;};i.prototype.parseSelectors=function(l){var k=this._parseSelectors(l);Array.forEach(k,function(m){m.__refresh();});return k;};i.prototype._parseSelectors=function(k){var z=k;var p=this.conditionFactory;var w=[];var s=new d();var t=new f();t.relationType=f.DESCENDANT_RELATIVE;var A=null;function q(m){t.addCondition(m);}var v=null;var n=null;var o=0;var l=0;do{var r=null;switch(l){case 0:r=/^\s*/.exec(z);if(r){l=1;z=z.substr(r[0].length);break;}break;case 1:r=/^(\*|[a-zA-Z0-9_]+)(\|(\*|[a-zA-Z0-9_-]+))?/.exec(z);if(r){if(r[3]){v=r[1];n=r[3];}else{v=null;n=r[1];}A=p.createNodeTestCondition(n,v);q(A);l=2;z=z.substr(r[0].length);break;}case 2:r=/^#([a-zA-Z0-9_-]+)/.exec(z);if(r){A=p.createIdCondition(r[1]);q(A);l=2;z=z.substr(r[0].length);break;}r=/^\.([a-zA-Z0-9_-]*)/.exec(z);if(r){A=p.createClassCondition(null,r[1]);q(A);l=2;z=z.substr(r[0].length);break;}r=/^\[\s*([a-z0-9_-]+)(\|([a-z0-9_-]+))?\s*(([~|^$*]?=)\s*("([^"]*)"|'([^']*)'|([^\]\s]+))\s*)?\]/.exec(z);if(r){if(r[3]){v=r[1];n=r[3];}else{v=null;n=r[1];}if(r[4]){value=r[7]||r[8]||r[9];switch(r[5]){case"~=":A=p.createOneOfAttributeCondition(n,v,true,value);break;case"|=":A=p.createBeginHyphenAttributeCondition(n,v,true,value);break;case"^=":A=p.createStartsWithAttributeCondition(n,v,true,value);break;case"$=":A=p.createEndsWithAttributeCondition(n,v,true,value);break;case"*=":A=p.createContainsAttributeCondition(n,v,true,value);break;case"=":A=p.createAttributeCondition(n,v,true,value);break;}}else{A=p.createAttributeCondition(n,v,false,null);}q(A);l=2;z=z.substr(r[0].length);break;}r=/^::([a-zA-Z_-]+)/.exec(z)||/^:(first-line)/.exec(z)||/^:(first-letter)/.exec(z)||/^:(before)/.exec(z)||/^:(after)/.exec(z);if(r){A=p.createPseudoElementCondition(r[1]);q(A);l=3;z=z.substr(r[0].length);break;}r=/^:only-(child|of-type)/.exec(z);if(r){var y=("of-type"===r[1]);A=(y)?p.createOnlyTypeCondition():p.createOnlyChildCondition();q(A);l=2;z=z.substr(r[0].length);break;}r=/^:first-(child|of-type)/.exec(z);if(r){var y=("of-type"===r[1]);var x=0,u=0;A=p.createPositionalCondition([x,u],y,true);q(A);l=2;z=z.substr(r[0].length);break;}r=/^:nth-(child|of-type)\(/.exec(z);if(r){var y=("of-type"===r[1]);z=z.substr(r[0].length);r=/^\s*(odd|even)\s*\)/.exec(z);var x=0,u=0;switch(r[1]){case"even":x=2;u=2;break;case"odd":x=2;u=1;break;}A=p.createPositionalCondition([x,u],y,true);q(A);l=2;z=z.substr(r[0].length);break;}r=/^:not\(\s*/.exec(z);if(r){l=1;o=2;z=z.substr(r[0].length);break;}r=/^:([a-zA-Z_-]+)/.exec(z);if(r){A=p.createPseudoClassCondition(null,r[1]);q(A);l=2;z=z.substr(r[0].length);break;}case 3:r=/^\s*,/.exec(z);if(r){s.addStep(t);w.push(s);t=new f();t.relationType=f.DESCENDANT_RELATIVE;s=new d();l=0;z=z.substr(r[0].length);break;}case 4:r=/^\s*([\s>~+])/.exec(z);if(r){s.addStep(t);t=new f();switch(r[1]){case">":t.relationType=f.CHILD_RELATIVE;break;case"~":t.relationType=f.INDIRECT_ADJACENT_RELATIVE;break;case"+":t.relationType=f.DIRECT_ADJACENT_RELATIVE;break;default:t.relationType=f.DESCENDANT_RELATIVE;break;}l=0;z=z.substr(r[0].length);break;}break;}if(o>0&&o--===1){r=/^\s*\)/.exec(z);if(r){A.negativeCondition=true;l=2;z=z.substr(r[0].length);}else{throw":not() failed";}}}while(z.length&&r);s.addStep(t);w.push(s);return w;};var g=function(){};g.prototype.addSelector=function(k){this.push(k);};g.prototype.test=function(m){var p=this.length;for(var l=0;l<p;l++){var k=this[l];var o=k.test(m);if(o){return true;}}return false;};var d=function(){this.steps=[];this.specificity=new h();};d.prototype.__refresh=function(){this.specificity=d.__get_specificity(this);};d.__get_specificity=function(k){var n=0,m=0,l=0;Array.forEach(k.steps,function(o){Array.forEach(o.conditions,function(p){switch(p.conditionType){case j.NODE_TEST_CONDITION:if(1==p.nodeType&&p.localName&&"*"!=p.localName){l++;}break;case j.ID_CONDITION:n++;break;case j.PSEUDO_ELEMENT_CONDITION:break;default:m++;break;}});});return new h(n,m,l);};d.prototype.addStep=function(k){if(k instanceof f){this.steps.push(k);}else{throw"Error in Selector.addStep";}};d.prototype.test=function(m){var o=m;var k=0;var l=this.steps.length-1;do{var n=this.steps[l];switch(k){case 0:if(!n.test(o)){return false;}break;case 1:do{o=o.parentNode;if(!o||o.nodeType==9){return false;}}while(!n.test(o));break;case 2:o=o.parentNode;if(!o||o.nodeType==9){return false;}if(!n.test(o)){return false;}break;case 3:do{o=o.previousSibling;if(!o){return false;}}while(o.nodeType!=1);if(!n.test(o)){return false;}break;case 4:do{o=o.previousSibling;if(!o){return false;}}while(o.nodeType!=1||!n.test(o));break;}k=n.relationType;}while(l--);return true;};var h=function(l,k,m){this.aCount=l||0;this.bCount=k||0;this.cCount=m||0;};h.cmp=function(l,k){if(l.aCount>k.aCount){return 1;}if(l.aCount<k.aCount){return -1;}if(l.bCount>k.bCount){return 1;}if(l.bCount<k.bCount){return -1;}if(l.cCount>k.cCount){return 1;}if(l.cCount<k.cCount){return -1;}return 0;};var f=function(){this.relationType=0;this.conditions=[];};f.NO_RELATIVE=0;f.DESCENDANT_RELATIVE=1;f.CHILD_RELATIVE=2;f.DIRECT_ADJACENT_RELATIVE=3;f.INDIRECT_ADJACENT_RELATIVE=4;f.prototype.addCondition=function(k){if(k instanceof j){this.conditions.push(k);}else{throw"Error in RelativeSelector.addCondition";}};f.prototype.test=function(l){var o=this.conditions.length;var k=o;do{var m=this.conditions[o-k].test(l);if(!m){return false;}}while(--k);return true;};var j=function(){};j.NODE_TEST_CONDITION=1;j.ID_CONDITION=2;j.CLASS_CONDITION=3;j.PSEUDO_ELEMENT_CONDITION=4;j.ATTRIBUTE_CONDITION=5;j.ONE_OF_ATTRIBUTE_CONDITION=6;j.BEGIN_HYPHEN_ATTRIBUTE_CONDITION=7;j.STARTS_WITH_ATTRIBUTE_CONDITION=8;j.ENDS_WITH_ATTRIBUTE_CONDITION=9;j.CONTAINS_ATTRIBUTE_CONDITION=10;j.LANG_CONDITION=11;j.ONLY_CHILD_CONDITION=12;j.ONLY_TYPE_CONDITION=13;j.POSITIONAL_CONDITION=14;j.PSEUDO_CLASS_CONDITION=15;j.IS_ROOT_CONDITION=16;j.IS_EMPTY_CONDITION=17;j.prototype.test=function(n){var o;var t=!this.negativeCondition;var k=!t;switch(this.conditionType){case j.NODE_TEST_CONDITION:if(1!=this.nodeType){return false;}if(!this.localName||"*"==this.localName){return t;}if(n.tagName==this.localName.toUpperCase()){return t;}return k;break;case j.ID_CONDITION:o=n.id;if(o==this.value){return t;}return k;break;case j.CLASS_CONDITION:var s=this.regex;if(!s){s=new RegExp(" "+this.value+" ");this.regex=s;}var o=n.className;if(s.test(" "+o+" ")){return t;}return k;break;case j.PSEUDO_CLASS_CONDITION:break;case j.PSEUDO_ELEMENT_CONDITION:break;case j.LANG_CONDITION:break;case j.ONLY_CHILD_CONDITION:break;case j.ONLY_TYPE_CONDITION:break;case j.POSITIONAL_CONDITION:var l=n.tagName.toLowerCase();var q=this.sameType;var p=1;for(var m=n.previousSibling;m;m=m.previousSibling){if(m.nodeType!=1||q&&l!==m.tagName.toLowerCase()){continue;}p++;}return((p-this.position[1])%this.position[0]===0);break;case j.IS_ROOT_CONDITION:if(n.parentNode.nodeType==9){return t;}return k;break;case j.IS_EMPTY_CONDITION:if(0==n.childNodes.length){return t;}return k;break;case j.ATTRIBUTE_CONDITION:var r=this.localName;o=(r!="class")?n.getAttribute(r):n.className;if(o==null){return k;}if(o==""){return k;}if(!this.specified){return t;}if(o==this.value){return t;}return k;break;case j.ONE_OF_ATTRIBUTE_CONDITION:var r=this.localName;o=(r!="class")?n.getAttribute(r):n.className;var s=this.regex;if(!s){s=new RegExp(" "+this.value+" ");this.regex=s;}if(s.test(" "+o+" ")){return t;}return k;break;case j.BEGIN_HYPHEN_ATTRIBUTE_CONDITION:var r=this.localName;o=(r!="class")?n.getAttribute(r):n.className;if(o==this.value){return t;}var s=this.regex;if(!s){s=new RegExp("^"+this.value+"-");this.regex=s;}if(s.test(" "+o+" ")){return t;}return k;break;case j.STARTS_WITH_ATTRIBUTE_CONDITION:var r=this.localName;o=(r!="class")?n.getAttribute(r):n.className;var s=this.regex;if(!s){s=new RegExp("^"+this.value);this.regex=s;}if(s.test(o)){return t;}return k;break;case j.ENDS_WITH_ATTRIBUTE_CONDITION:var r=this.localName;o=(r!="class")?n.getAttribute(r):n.className;var s=this.regex;if(!s){s=new RegExp(this.value+"$");this.regex=s;}if(s.test(o)){return t;}return k;break;case j.CONTAINS_ATTRIBUTE_CONDITION:var r=this.localName;o=(r!="class")?n.getAttribute(r):n.className;var s=this.regex;if(!s){s=new RegExp(this.value);this.regex=s;}if(s.test(o)){return t;}return k;break;}throw"Error in Condition.test()";};var e={createNodeTestCondition:function(k,l){var m=new j();m.conditionType=j.NODE_TEST_CONDITION;m.nodeType=1;m.localName=k;m.namespaceURI=l;return m;},createIdCondition:function(k){var l=new j();l.conditionType=j.ID_CONDITION;l.value=k;return l;},createClassCondition:function(k,l){var m=new j();m.conditionType=j.CLASS_CONDITION;m.namespaceURI=k;m.value=l;return m;},createAttributeCondition:function(k,l,o,n,m){var p=new j();p.conditionType=m||j.ATTRIBUTE_CONDITION;p.localName=k;p.namespaceURI=l;p.specified=o;p.value=n;return p;},createBeginHyphenAttributeCondition:function(k,l,n,m){return this.createAttributeCondition(k,l,n,m,j.BEGIN_HYPHEN_ATTRIBUTE_CONDITION);},createOneOfAttributeCondition:function(k,l,n,m){return this.createAttributeCondition(k,l,n,m,j.ONE_OF_ATTRIBUTE_CONDITION);},createStartsWithAttributeCondition:function(k,l,n,m){return this.createAttributeCondition(k,l,n,m,j.STARTS_WITH_ATTRIBUTE_CONDITION);},createEndsWithAttributeCondition:function(k,l,n,m){return this.createAttributeCondition(k,l,n,m,j.ENDS_WITH_ATTRIBUTE_CONDITION);},createContainsAttributeCondition:function(k,l,n,m){return this.createAttributeCondition(k,l,n,m,j.CONTAINS_ATTRIBUTE_CONDITION);},createOnlyChildCondition:function(){},createPositionalCondition:function(k,l){var m=new j();m.conditionType=j.POSITIONAL_CONDITION;m.position=k.slice(0);m.sameType=l;return m;},createPseudoClassCondition:function(k,l){}};return{Parser:i,SelectorList:g,Selector:d,Specificity:h,RelativeSelector:f,Condition:j};})();};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM/Selectors.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Selectors.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml","lib/Meeko/CSS.xhtml","lib/Meeko/DOM/System.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Selectors.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM/Selectors.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/DOM/Selectors.xhtml"];var a=b.logger;Meeko.stuff.xplSystem.createNamespace("Meeko.DOM.Selectors");Meeko.DOM.Selectors=(function(){var m=function(v){if(!(this instanceof arguments.callee)){return new arguments.callee(v);}if(v){if(v.nodeType){this._target=v;}else{throw"Target does not have NodeSelector interface";}}};m.querySelector=function(w,v){return m(w).querySelector(v);};m.querySelectorAll=function(w,v){return m(w).querySelectorAll(v);};m.prototype.querySelector=function(v){var w=this._target||this;if(null==v){return false;}return u(w,v,true);};m.prototype.querySelectorAll=function(v){var w=this._target||this;if(null==v){return false;}return u(w,v,false);};var i=function(v){if(!(this instanceof arguments.callee)){return new arguments.callee(v);}if(v){if(v.nodeType==1){this._target=v;}else{throw"Target does not have ElementSelector interface";}}};i.prototype=new m();i.matchesSelector=function(w,v){return i(w).matchesSelector(v);};i.prototype.matchesSelector=function(y){var z=this._target||this;if(null==y){return false;}var x=o(y);if(!x){return false;}for(var w=0,v;v=x[w];w++){if(v.test(z)){return true;}}return false;};var n=Meeko.CSS;var t=n.RelativeSelector;var s=n.Condition;var d=new n.Parser();var e={};var f={};function o(w){var v=e[w];if(!v){v=d.parseSelectors(w);e[w]=v;}return v;}function u(J,v,I){if(null==v){return false;}var G=o(v);var B=[];B.item=function(K){return this[K];};if(!G){return(I)?null:B;}var w=G.id;if(w==null){w=k(G);}if(w){var x=document.getElementById(w);if(J.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_CONTAINED_BY){if(G[0].test(x)){return(I)?x:[x];}else{return(I)?null:B;}}else{return(I)?null:B;}}var H=G.ancestorId;if(H==null){H=q(G);}if(H){var x=document.getElementById(H);if(!x){return(I)?null:B;}if(J.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_CONTAINED_BY){J=x;}}var F=G.className;if(F==null){F=g(G);}var y=G.tagName;if(y==null){y=h(G);}var A=("*"==y&&""!=F&&J.getElementsByClassName)?J.getElementsByClassName(F):J.getElementsByTagName(y);for(var D=0,E;E=A[D];D++){for(var C=0,z;z=G[C];C++){if(z.test(E)){if(I){return E;}B.push(E);break;}}}return(I)?null:B;}function k(w){var x=w.id;if(x==null){if(w.length==1){var v=w[0];x=r(v);w.id=(x)?x:false;}else{w.id=false;}}return w.id;}function r(v){var w=v.steps;var z=w[w.length-1];for(var x=0,y;y=z.conditions[x];x++){if(y.conditionType==s.ID_CONDITION){return y.value;}}return null;}function q(y){var x=y.ancestorId;if(x==null){for(var w=0,v;v=y[w];w++){var z=l(v);if(!z){x=false;break;}if(!x){x=z;continue;}if(x==z){continue;}x=false;break;}y.ancestorId=x;}return y.ancestorId;}function l(v){var w=v.steps;for(var z=w.length-2,B;B=w[z];z--){var C=B.conditions;var y=w[z+1].relationType;for(var x=0,A;A=C[x];x++){if(A.conditionType==s.ID_CONDITION&&(y==t.CHILD_RELATIVE||y==t.DESCENDANT_RELATIVE)){return A.value;}}}}function g(z){var B=z.className;if(B==null){var A=p(z[0]);for(var x=1,v;v=z[x];x++){var w=p(v);for(var y in A){if(!w[y]){delete A[y];}}}var B="";for(var y in A){if(B!=""){B+=" ";}B+=y;}z.className=B;}return z.className;}function p(v){var w=v.steps;var B=w[w.length-1].conditions;var A={};for(var x=0,z;z=B[x];x++){if(z.conditionType==s.CLASS_CONDITION){var y=z.value;if(!A[y]){A[y]=true;}}}return A;}function h(y){var x=y.tagName;if(x==null){for(var w=0,v;v=y[w];w++){var z=j(v);if(!z||z=="*"){x="*";break;}if(w==0){x=z;continue;}if(w>0&&z==x){continue;}x="*";break;}y.tagName=x;}return y.tagName;}function j(v){var w=v.steps;var x=w[w.length-1].conditions[0];if(x.conditionType==s.NODE_TEST_CONDITION&&x.nodeType==1){return x.localName;}else{return"*";}}return{NodeSelector:m,ElementSelector:i,Document:m,Element:i};})();Meeko.XPL.Namespace.enhance(window,Meeko.DOM.Selectors);};Meeko.stuff.xplSystem.createContext("lib/Meeko/DOM.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM.xhtml"].requiredContexts=["lib/Meeko/ECMAScript5.xhtml","lib/Meeko/DOM/System.xhtml","lib/Meeko/DOM/Core.xhtml","lib/Meeko/DOM/Events.xhtml","lib/Meeko/DOM/Traversal.xhtml","lib/Meeko/DOM/HTML.xhtml","lib/Meeko/DOM/Selectors.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/DOM.xhtml"].wrappedScript=function(){var xplSystem=Meeko.stuff.xplSystem;var xplContext=xplSystem.contexts["lib/Meeko/DOM.xhtml"];var logger=xplContext.logger;NodeList.filter=function(array,callback,context){var out=[];out.item=function(index){return this[index];};var n=array.length;for(var i=0;i<n;i++){var node=array.item(i);callback.call(context,node,i,array)&&out.push(node);}return out;};NodeList.forEach=function(array,callback,context){var n=array.length;for(var i=0;i<n;i++){var node=array.item(i);callback.call(context,node,i,array);}};NodeList.every=function(array,callback,context){var n=array.length;for(var i=0;i<n;i++){var node=array.item(i);if(!callback.call(context,node,i,array)){return false;}}return true;};NodeList.some=function(array,callback,context){var n=array.length;for(var i=0;i<n;i++){var node=array.item(i);if(callback.call(context,node,i,array)){return true;}}return false;};Array.forEach(["every","filter","forEach","some"],function(name){Array["_"+name]=Array[name];Array[name]=function(array){var delegate=(array.item)?NodeList[name]:Array["_"+name];return delegate.apply(this,arguments);};});var domSystem=Meeko.stuff.domSystem;var Traversal=function(target){if(null==target){return null;}if(this==window){return arguments.callee.getInterface(target);}else{arguments.callee.prototype.xblCreate.call(this,target);}};Traversal.getInterface=domSystem.addImplementation("Document",Traversal);Traversal.methods=["createTreeWalker","createNodeIterator"];Traversal.prototype.xblCreate=function(target){this.target=target;var xblPublic=Traversal.methods;domSystem.hideInterface(target,xblPublic);domSystem.bindInterface(target,this,xblPublic,true);};Traversal.prototype.xblDestroy=function(target){this.target=null;var xblPublic=Traversal.methods;domSystem.releaseInterface(target,this,xblPublic,true);domSystem.restoreInterface(target,xblPublic);};Traversal._createInterface=function(fields){var iface=function(){};for(var n=fields.length,i=0;i<n;i++){var name=fields[i];iface.prototype[name]=new Function('var node = this.baseBinding["'+name+'"](); if (node) { this.currentNode = node; Meeko.stuff.domSystem.attach(node); } return node;');}return iface;};Traversal.TreeWalker=Traversal._createInterface(["firstChild","lastChild","parentNode","nextSibling","previousSibling","nextNode","previousNode"]);Traversal.TreeWalker.prototype.forEach=function(callback,context){return this.baseBinding.forEach.call(this,callback,context);};Traversal.NodeIterator=Traversal._createInterface(["nextNode","previousNode"]);Traversal.NodeIterator.prototype.forEach=function(callback,context){return this.baseBinding.forEach.call(this,callback,context);};Traversal.prototype.createTreeWalker=function(root,whatToShow,filter,entityReferenceExpansion){var _filter={};_filter.baseBinding=filter;_filter.acceptNode=function(node){var lastDocumentNode=domWalker.currentNode;if(lastDocumentNode===node||lastDocumentNode.compareDocumentPosition(node)&Node.DOCUMENT_POSITION_PRECEDING){if(this.baseBinding){return this.baseBinding.acceptNode(node);}else{return NodeFilter.FILTER_ACCEPT;}}else{return NodeFilter.FILTER_REJECT;}};var iter=new Traversal.TreeWalker();iter.baseBinding=document._createTreeWalker(root,whatToShow,_filter,entityReferenceExpansion);return iter;};Traversal.prototype.createNodeIterator=function(root,whatToShow,filter,entityReferenceExpansion){var _filter={};_filter.baseBinding=filter;_filter.acceptNode=function(node){var lastDocumentNode=domWalker.currentNode;var cmp=(lastDocumentNode.compareDocumentPosition)?lastDocumentNode.compareDocumentPosition(node):Element.prototype.compareDocumentPosition.call(lastDocumentNode,node);if(lastDocumentNode===node||cmp&Node.DOCUMENT_POSITION_PRECEDING){if(this.baseBinding){return this.baseBinding.acceptNode(node);}else{return NodeFilter.FILTER_ACCEPT;}}else{return NodeFilter.FILTER_REJECT;}};var iter=new Traversal.NodeIterator();iter.baseBinding=document._createNodeIterator(root,whatToShow,_filter,entityReferenceExpansion);return iter;};if(window.NodeList){NodeList.prototype._item=NodeList.prototype.item;NodeList.prototype.item=function(index){return domSystem.attach(this[index]);};}if(window.HTMLCollection){HTMLCollection.prototype._item=HTMLCollection.prototype.item;HTMLCollection.prototype.item=function(index){return domSystem.attach(this[index]);};HTMLCollection.prototype._namedItem=HTMLCollection.prototype.namedItem;HTMLCollection.prototype.namedItem=function(name){return domSystem.attach(this[name]);};}domSystem.NodeList={};domSystem.HTMLCollection={};with(domSystem){NodeList.fix=function(base){var coll={};coll._base=base;coll.item=function(index){var item=this._base[index];if(item){domSystem.attach(item);}return item;};Object.defineProperty(coll,"length",{get:function(){return this._base.length;}});return coll;};NodeList.fixInterface=function(target,field){var base=target[field];target["_"+field]=base;var coll=this.fix(base);Object.defineProperty(target,field,{value:coll});};HTMLCollection.fix=function(base){var coll={};coll._base=base;coll.item=function(index){var item=this._base[index];if(item){domSystem.attach(item);}return item;};coll.namedItem=function(name){var item=this._base[name];if(item){domSystem.attach(item);}return item;};Object.defineProperty(coll,"length",{get:function(){return this._base.length;}});return coll;};HTMLCollection.fixInterface=function(target,field){var base=target[field];target["_"+field]=base;var coll=this.fix(base);Object.defineProperty(target,field,{value:coll});};HTMLCollection.addInterface=function(target,field,filter){var coll={};coll._target=target,coll.item=function(index){var i=-1,node=this._target.firstChild;while(node){if(node.nodeType==1){if(!filter||filter(node)==1){i++;}if(index==i){return domSystem.attach(node);}}node=node.nextSibling;}return null;};Object.defineProperty(coll,"length",{get:function(){var i=0,node=this._target.firstChild;while(node){if(node.nodeType==1){if(!filter||filter(node)==1){i++;}}node=node.nextSibling;}return i;}});Object.defineProperty(target,field,{value:coll});};document.__getElementById=document.getElementById;document.getElementById=function(id){var elt=this.__getElementById(id);if(!elt){return null;}if(elt.attributes.id.nodeValue==id){return elt;}var list=this.__getElementsByName(id);for(var n=list.length,i=0;i<n;i++){elt=list.item(i);if(elt.attributes.id.nodeValue==id){return elt;}}return null;};document.__getElementsByName=document.getElementsByName;document.getElementsByName=function(name){var coll=Array.filter(this.__getElementsByName(name),function(elt){return(elt.attributes.name.nodeValue==name);});coll.item=function(index){return this[index];};return coll;};Document._attach=Document.attach;Document._detach=Document.detach;Document.attach=function(target){this._attach(target);target._getElementById=target.getElementById;target.getElementById=function(id){var elt=this._getElementById(id);if(elt){domSystem.attach(elt);}return elt;};};Document.detach=function(target){target.getElementById=target.__getElementById;target._getElementById=null;target.__getElementById=null;this._detach(target);};HTMLDocument._attach=HTMLDocument.attach;HTMLDocument._detach=HTMLDocument.detach;HTMLDocument.attach=function(target){this._attach(target);target._getElementsByName=target.getElementsByName;target.getElementsByName=function(name){var coll=this._getElementsByName(name);return NodeList.fix(coll);};target._querySelector=target.querySelector;target.querySelector=function(name){var elt=this._querySelector(name);if(elt){domSystem.attach(elt);}return elt;};target._querySelectorAll=target.querySelectorAll;target.querySelectorAll=function(name){var coll=this._querySelectorAll(name);return NodeList.fix(coll);};};HTMLDocument.detach=function(target){target.getElementsByName=target.__getElementsByName;target._getElementsByName=null;target.__getElementsByName=null;target.querySelector=target._querySelector;target._querySelector=null;target.querySelectorAll=target._querySelectorAll;target._querySelectorAll=null;this._detach(target);};HTMLElement._attach=HTMLElement.attach;HTMLElement._detach=HTMLElement.detach;HTMLElement.attach=function(target){this._attach(target);if(target.children){HTMLCollection.fixInterface(target,"children");}else{HTMLCollection.addInterface(target,"children");}target._querySelector=target.querySelector;target.querySelector=function(name){var elt=this._querySelector(name);if(elt){domSystem.attach(elt);}return elt;};target._querySelectorAll=target.querySelectorAll;target.querySelectorAll=function(name){var coll=this._querySelectorAll(name);return NodeList.fix(coll);};};HTMLElement.detach=function(target){target.children=target._children;target._children=null;target.querySelector=target._querySelector;target._querySelector=null;target.querySelectorAll=target._querySelectorAll;target._querySelectorAll=null;this._detach(target);};HTMLFormElement._attach=HTMLFormElement.attach;HTMLFormElement._detach=HTMLFormElement.detach;HTMLFormElement.attach=function(target){this._attach(target);HTMLCollection.fixInterface(target,"elements");};HTMLFormElement._detach=function(target){target.elements=target._elements;target._elements=null;this._detach(target);};HTMLSelectElement._attach=HTMLSelectElement.attach;HTMLSelectElement._detach=HTMLSelectElement.detach;HTMLSelectElement.attach=function(target){this._attach(target);HTMLCollection.fixInterface(target,"options");if(target.form){domSystem.attach(target.form);}};HTMLSelectElement._detach=function(target){target.options=target._options;target._options=null;this._detach(target);};HTMLInputElement._attach=HTMLInputElement.attach;HTMLInputElement._detach=HTMLInputElement.detach;HTMLInputElement.attach=function(target){this._attach(target);if(target.form){domSystem.attach(target.form);}};HTMLInputElement._detach=function(target){this._detach(target);};HTMLTableElement._attach=HTMLTableElement.attach;HTMLTableElement._detach=HTMLTableElement.detach;HTMLTableElement.attach=function(target){this._attach(target);if(target.tHead){domSystem.attach(target.tHead);}if(target.tFoot){domSystem.attach(target.tFoot);}HTMLCollection.fixInterface(target,"tBodies");HTMLCollection.fixInterface(target,"rows");};HTMLTableElement._detach=function(target){target.tBodies=target._tBodies;target._tBodies=null;target.rows=target._rows;target._rows=null;this._detach(target);};HTMLTableSectionElement._attach=HTMLTableSectionElement.attach;HTMLTableSectionElement._detach=HTMLTableSectionElement.detach;HTMLTableSectionElement.attach=function(target){this._attach(target);HTMLCollection.fixInterface(target,"rows");};HTMLTableSectionElement._detach=function(target){target.rows=target._rows;target._rows=null;this._detach(target);};HTMLTableRowElement._attach=HTMLTableRowElement.attach;HTMLTableRowElement._detach=HTMLTableRowElement.detach;HTMLTableRowElement.attach=function(target){this._attach(target);HTMLCollection.fixInterface(target,"cells");};HTMLTableRowElement._detach=function(target){target.cells=target._cells;target._cells=null;this._detach(target);};}if(!window.getComputedStyle&&document.documentElement.currentStyle){function toCamelCase(name){var tokens=name.split("-");for(var i=tokens.length-1;i>=1;i--){var token=tokens[i];tokens[i]=token.charAt(0).toUpperCase()+token.substring(1);}return tokens.join("");}var CSSStyleDeclaration=function(config){for(var slot in config){this[slot]=config[slot];}};CSSStyleDeclaration.getPropertyValue=function(prop){return this[toCamelCase(prop)];};Window.prototype.getComputedStyle=function(elt,pseudo){return new CSSStyleDeclaration(elt.currentStyle);};}};Meeko.stuff.xplSystem.createContext("lib/Meeko/Net.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/Net.xhtml"].requiredContexts=[];Meeko.stuff.xplSystem.contexts["lib/Meeko/Net.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/Net.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/Net.xhtml"];var a=b.logger;Meeko.stuff.xplSystem.createNamespace("Meeko.Net");Meeko.Net.URIParser=(function(){var d=function(j){var k=d.options,h=k.parser[k.strictMode?"strict":"loose"].exec(j);for(var f=0,g={};f<14;f++){g[k.key[f]]=h[f]||"";}g[k.q.name]={};g[k.key[12]].replace(k.q.parser,function(l,i,m){if(i){g[k.q.name][i]=m;}});return g;};d.options={strictMode:true,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?=.)&?([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var e=function(f){this.base=f;};e.parseUri=function(f,g){if(null!=f&&"string"!=typeof f){f=f.toString();}if(null!=g&&"string"!=typeof g){g=g.toString();}var l=f.match(/^([^:\/?#]+):/);var h=(l&&l.length>1)?l[1]:"";switch(h){case"http":case"https":case"ftp":case"file":case"":var i=d(f);var j=d(g);if(!i.protocol){i.protocol=j.protocol;i.authority=j.authority;i.userInfo=j.userInfo;i.user=j.user;i.password=j.password;i.host=j.host;i.port=j.port;var o=(i.path.match(/^\//))?i.directory:j.directory+i.directory;var k=(i.file)?i.file:(i.anchor||i.query)?j.file:"";i.directory=o;i.file=k;i.path=o+k;var p=(i.query)?"?"+i.query:"";var n=(i.anchor)?"#"+i.anchor:"";i.relative=o+k+p+n;i.source=f;}i.href=i.protocol+"://"+i.authority+i.path;if(i.query){i.href+="?"+i.query;}i.toString=function(){return this.protocol+"://"+this.authority+this.relative;};return i;break;default:return{protocol:h,source:f,href:f,toString:function(){return this.source;}};break;}};e.prototype.parseUri=function(f){return e.parseURI(f,this.base);};return e;})();};Meeko.stuff.xplSystem.createContext("lib/Meeko/XML.xhtml");Meeko.stuff.xplSystem.contexts["lib/Meeko/XML.xhtml"].requiredContexts=["lib/Meeko/Net.xhtml"];Meeko.stuff.xplSystem.contexts["lib/Meeko/XML.xhtml"].params={};Meeko.stuff.xplSystem.contexts["lib/Meeko/XML.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["lib/Meeko/XML.xhtml"];var a=b.logger;if(!this.Meeko){this.Meeko={};}Meeko.XML=(function(){var e=function(m){var j=["Msxml2.%name%","Microsoft.%name%"];var l;for(var q=j.length,o=0;o<q;o++){var p=j[o].replace("%name%",m);try{l=new ActiveXObject(p);}catch(k){continue;}break;}if(!l){throw""+m+" not supported on this platform";}return l;};var f=Meeko.Net.URIParser;var h=this.DOMParser||(function(){var j=function(){};j.prototype.parseFromString=function(m,l){var k;if(!ActiveXObject){throw"DOMParser.parseFromString not supported";}k=e("XMLDOM");k.async="false";k.loadXML(m);return k;};return j;})();var i=function(){};i.hosts={};i.prototype.open=function(p,l,n){var o=i.getLocation(l,location.href);var k=i.hosts[o.host];if(!k){throw"HttpRequest not valid for that host";}var m=new k(o.host);this._httpRequest=m;var j=this;m.onreadystatechange=function(q){j.handler(q);};m.open(p,o.relative,n);};i.prototype.send=function(k){var j=this._httpRequest;j.send(k);};i.prototype.handler=function(l){var k=this._httpRequest;if(4==k.readyState){var j=k;this._request=j._request;this._response=j._response;this.status=j.status;this.statusText=j.statusText;this.responseText=j.responseText;this.readyState=4;if(this.onreadystatechange){this.onreadystatechange({type:"readystatechange"});}}};i.getLocation=function(j,l){var k=f.parseUri(j,l);return k;};var d=this.XMLHttpRequest||function(){return e("XMLHTTP");};var g=function(){var j=this;this.readyState=0;this._async=false;this._useXHR=true;this._xhrHandler=function(k){j._xhrReadyStateChange(k);};this._xhr=new d();this._xhr.onreadystatechange=this._xhrHandler;this._hrHandler=function(k){j._hrReadyStateChange(k);};this._hr=new i();this._hr.onreadystatechange=this._hrHandler;};g.UNSENT=0;g.OPENED=1;g.HEADERS_RECEIVED=2;g.LOADING=3;g.DONE=4;if(d.wrapped){g.wrapped=d.wrapped;}else{g.wrapped=d;}g.prototype._xhrReadyStateChange=function(k){if(this.readyState==this._xhr.readyState){return;}this.readyState=this._xhr.readyState;if(4==this.readyState){var j=this._xhr;this._request=j._request;this._response=j._response;this.status=j.status;this.statusText=j.statusText;this.responseText=j.responseText;this.responseXML=j.responseXML;}if(this.onreadystatechange){this.onreadystatechange({type:"readystatechange"});}};g.prototype._hrReadyStateChange=function(k){if(this.readyState==this._hr.readyState){return;}this.readyState=this._hr.readyState;if(4==this.readyState){var j=this._hr;this._request=j._request;this._response=j._response;this.status=j.status;this.statusText=j.statusText;this.responseText=j.responseText;this.responseXML=(new h()).parseFromString(j.responseText.toString(),"text/xml");}if(this.onreadystatechange){this.onreadystatechange({type:"readystatechange"});}};g.prototype.open=function(m,j,k){this._method=m.toUpperCase();this._url=j;this._async=k;try{this._xhr.open(m,j,k);this._xhr.onreadystatechange=this._xhrHandler;this._useXHR=true;if(0==this._xhr.readyState){this._useXHR=false;}}catch(l){this._useXHR=false;}try{this._hr.open(m,j,k);}catch(l){}};g.prototype.send=function(l){var j=c.prefetch[this._url];if("GET"==this._method&&j){this.readyState=4;this.status="200";this.statusText="OK";this.responseText=j;try{this.responseXML=(new h()).parseFromString(j,"text/xml");}catch(k){}if(this.onreadystatechange){this.onreadystatechange({type:"readystatechange"});}return;}if(this._useXHR){try{this._xhr.send(l);}catch(k){this._useXHR=false;}}if(!this._useXHR){this._hr.send(l);}if(!this._async){if(this._useXHR){this._xhrReadyStateChange();}else{this._hrReadyStateChange();}}};g.prototype.abort=function(){if(this._useXHR){this._xhr.abort();}else{this._hr.abort();}};return{DOMParser:h,HttpRequest:i,XMLHttpRequest:g};})();window.XMLHttpRequest=Meeko.XML.XMLHttpRequest;Meeko.XPL.Namespace.enhance(window,Meeko.XML);};Meeko.stuff.xplSystem.createContext("SLAB.xhtml");Meeko.stuff.xplSystem.contexts["SLAB.xhtml"].requiredContexts=["lib/Meeko/DOM.xhtml","lib/Meeko/Net.xhtml","lib/Meeko/XML.xhtml"];Meeko.stuff.xplSystem.contexts["SLAB.xhtml"].params={};Meeko.stuff.xplSystem.contexts["SLAB.xhtml"].wrappedScript=function(){var c=Meeko.stuff.xplSystem;var b=c.contexts["SLAB.xhtml"];var a=b.logger;};Meeko.stuff.xplSystem.init();