if(typeof JSON!="object"||window.navigator.userAgent.match("Gecko/")!==null)var JSON=function(){var i={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},g={"boolean":function(a){return String(a)},number:function(a){return isFinite(a)?String(a):"null"},string:function(a){if(/["\\\x00-\x1f]/.test(a))a=a.replace(/([\x00-\x1f\\"])/g,function(b,f){var d=i[f];if(d)return d;d=f.charCodeAt();return"\\u00"+Math.floor(d/16).toString(16)+(d%16).toString(16)});return'"'+a+
'"'},object:function(a){if(a){var b=[],f,d,e,h,c;if(a instanceof Array){b[0]="[";h=a.length;for(e=0;e<h;e+=1){c=a[e];if(d=g[typeof c]){c=d(c);if(typeof c=="string"){if(f)b[b.length]=",";b[b.length]=c;f=true}}}b[b.length]="]"}else if(typeof a.hasOwnProperty==="function"){b[0]="{";for(e in a)if(a.hasOwnProperty(e)){c=a[e];if(d=g[typeof c]){c=d(c);if(typeof c=="string"){if(f)b[b.length]=",";b.push(g.string(e),":",c);f=true}}}b[b.length]="}"}else return;return b.join("")}return"null"}};return{copyright:"(c)2005 JSON.org",
license:"http://www.JSON.org/license.html",stringify:function(a){var b=g[typeof a];if(b){a=b(a);if(typeof a=="string")return a}return null},parse:function(a){return eval("("+a+")")}}}();
if(window.ActiveXObject&&!window.XMLHttpRequest)window.XMLHttpRequest=function(){for(var b=new Array("Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"),c=0;c<b.length;c++)try{return new ActiveXObject(b[c])}catch(a){}return null};
if(window.opera&&!window.XMLHttpRequest)window.XMLHttpRequest=function(){this.status=this.readyState=0;this.statusText="";this._headers=[];this._aborted=false;this._async=true;this._defaultCharset="ISO-8859-1";this._getCharset=function(){var b=_defaultCharset,c=this.getResponseHeader("Content-type").toUpperCase();val=c.indexOf("CHARSET=");if(val!=-1)b=c.substring(val);val=b.indexOf(";");if(val!=-1)b=b.substring(0,val);val=b.indexOf(",");if(val!=-1)b=b.substring(0,val);return b};this.abort=function(){this._aborted=
true};this.getAllResponseHeaders=function(){return this.getAllResponseHeader("*")};this.getAllResponseHeader=function(b){for(var c="",a=0;a<this._headers.length;a++)if(b=="*"||this._headers[a].h==b)c+=this._headers[a].h+": "+this._headers[a].v+"\n";return c};this.getResponseHeader=function(b){b=getAllResponseHeader(b);var c=b.indexOf("\n");if(c!=-1)b=b.substring(0,c);return b};this.setRequestHeader=function(b,c){this._headers[this._headers.length]={h:b,v:c}};this.open=function(b,c,a){this.method=
b;this.url=c;this._async=true;this._aborted=false;this._headers=[];if(arguments.length>=3)this._async=a;arguments.length>3&&opera.postError("XMLHttpRequest.open() - user/password not supported");this.readyState=1;this.onreadystatechange&&this.onreadystatechange()};this.send=function(b){if(navigator.javaEnabled())this._async?setTimeout(this._sendasync,0,this,b):this._sendsync(b);else alert("XMLHttpRequest.send() - Java must be installed and enabled.")};this._sendasync=function(b,c){b._aborted||b._sendsync(c)};
this._sendsync=function(b){this.readyState=2;this.onreadystatechange&&this.onreadystatechange();for(var c=(new java.net.URL(new java.net.URL(window.location.href),this.url)).openConnection(),a=0;a<this._headers.length;a++)c.setRequestProperty(this._headers[a].h,this._headers[a].v);this._headers=[];if(this.method=="POST"){c.setDoOutput(true);a=new java.io.OutputStreamWriter(c.getOutputStream(),this._getCharset());a.write(b);a.flush();a.close()}var e=b=false,f=false,g=false,h=false,i=false;for(a=0;;a++){var d=
c.getHeaderFieldKey(a),j=c.getHeaderField(a);if(d==null&&j==null)break;if(d!=null){this._headers[this._headers.length]={h:d,v:j};switch(d.toLowerCase()){case "content-encoding":b=true;break;case "content-length":e=true;break;case "content-type":f=true;break;case "date":g=true;break;case "expires":h=true;break;case "last-modified":i=true;break}}}a=c.getContentEncoding();if(a!=null&&!b)this._headers[this._headers.length]={h:"Content-encoding",v:a};a=c.getContentLength();if(a!=-1&&!e)this._headers[this._headers.length]=
{h:"Content-length",v:a};a=c.getContentType();if(a!=null&&!f)this._headers[this._headers.length]={h:"Content-type",v:a};a=c.getDate();if(a!=0&&!g)this._headers[this._headers.length]={h:"Date",v:(new Date(a)).toUTCString()};a=c.getExpiration();if(a!=0&&!h)this._headers[this._headers.length]={h:"Expires",v:(new Date(a)).toUTCString()};a=c.getLastModified();if(a!=0&&!i)this._headers[this._headers.length]={h:"Last-modified",v:(new Date(a)).toUTCString()};a="";if(c=c.getInputStream()){for(c=new java.io.BufferedReader(new java.io.InputStreamReader(c,
this._getCharset()));(b=c.readLine())!=null;){if(this.readyState==2){this.readyState=3;this.onreadystatechange&&this.onreadystatechange()}a+=b+"\n"}c.close();this.status=200;this.statusText="OK";this.responseText=a;this.readyState=4;this.onreadystatechange&&this.onreadystatechange();this.onload&&this.onload()}else{this.status=404;this.statusText="Not Found";this.responseText="";this.readyState=4;this.onreadystatechange&&this.onreadystatechange();this.onerror&&this.onerror()}}};
if(!window.ActiveXObject&&window.XMLHttpRequest)window.ActiveXObject=function(b){switch(b.toLowerCase()){case "microsoft.xmlhttp":case "msxml2.xmlhttp":case "msxml2.xmlhttp.3.0":case "msxml2.xmlhttp.4.0":case "msxml2.xmlhttp.5.0":return new XMLHttpRequest}return null};
if(typeof Function.prototype.bind!="function")Function.prototype.bind=function(n){var p=[].slice,l=p.call(arguments,1),q=this,t=function(){},u=function(){return q.apply(this instanceof t?this:n||{},l.concat(p.call(arguments)))};t.prototype=q.prototype;u.prototype=new t;return u};var frameworkWindow=function(){for(var n=window;n!=n.parent;){if(typeof n.PxFramework=="object")return n;n=n.parent}return typeof n.PxFramework=="object"?n:null}();
if(frameworkWindow==null){PxFramework=function(){var n=function(){var m=function(d,b,c){this.target=d;this.eventtype=b;this.callback=c;this.add()};m.prototype.add=function(){if(typeof this.target.addEventListener=="function"){this.target.addEventListener(this.eventtype,this.callback,false);return true}else if(typeof this.target.attachEvent!="undefined"){if(this.eventtype=="DOMContentLoaded")return k(this);return this.target.attachEvent("on"+this.eventtype,this.callback)}};m.prototype.remove=function(){if(typeof this.target.removeEventListener==
"function"){this.target.removeEventListener(this.eventtype,this.callback,false);return true}else if(typeof this.target.detachEvent!="undefined"){if(this.eventtype=="DOMContentLoaded"){this.target.document.detachEvent("onreadystatechange",this.readyHandler);this.target.detachEvent("onload",this.readyHandler);return true}try{return this.target.detachEvent("on"+this.eventtype,this.callback)}catch(d){}}};var k=function(d){var b=d.callback;d.readyHandler=function(){if(d.target.document.readyState=="complete"){d.target.document.detachEvent("onreadystatechange",
d.readyHandler);d.target.detachEvent("onload",d.readyHandler);b()}};d.target.document.attachEvent("onreadystatechange",d.readyHandler);d.target.attachEvent("onload",d.readyHandler);return true};return m}(),p=function(){var m=function(a){var i=a+"";a=i.charCodeAt(0);if(55296<=a&&a<=56319){if(i.length===1)return a;i=i.charCodeAt(1);return(a-55296)*1024+(i-56320)+65536}if(56320<=a&&a<=57343)return a;return a},k=function(a){if(a>65535){a-=65536;return String.fromCharCode(55296+(a>>10),56320+(a&1023))}else return String.fromCharCode(a)},
d=function(a){if(a<10)return a;a-=10;if(a<26)return k(m("a")+a);a-=26;return k(m("A")+Math.min(a,25))},b=function(a){if(!isNaN(a)&&typeof a=="number"&&a>=0&&a<=10)return a;if(m(a)>=48&&m(a)<=59)return m(a)-48;if(a>="a"&&a<="z")return m(a)-m("a")+10;if(a>="A"&&a<="Z")return m(a)-m("A")+36;return 0},c=function(a,i,e){if(typeof e=="undefined")e=true;for(var h="",j="",f=a,g=[];typeof f!="undefined";){g.push(f);f=f.parent()}g=g.reverse();f=1;for(var r=false,o=0;o<g.length;o++){var s=g[o].url().parameters();
if(o<g.length-1)s.current=g[o+1].name();else if(o==g.length-1)s=i;var v=0;for(var w in s)v++;h+=""+d(f)+""+d(v);f+=v;if(g[o].standalone())r=g[o].fullname();for(w in s)j+="&"+encodeURIComponent(w)+"="+encodeURIComponent(s[w])}if(r)j+="&pxd=."+r;a=a.url();return(e?a.protocol()+"//"+a.host():"")+a.pathname()+"?pxc="+h+j};return function(a,i,e){if(typeof e=="undefined")e=false;this.parameters=function(){var h;if(e)h={};else{var j=a.depth()-1;h=[];var f=a.window().document.location.search;if(f.charAt(0)==
"?")f=f.substr(1);f=f.split(/&/);for(var g=0;g<f.length;g++){var r=f[g].split(/=/);h.push({key:r[0],value:r[1]})}a:{for(f=0;f<h.length;f++)if(h[f].key=="pxc"){f=f;break a}f=false}g=f===false?false:h[f].value;f=g.length>=j*2?b(g.charAt(j*2)):0;j=g.length>=j*2+1?b(g.charAt(j*2+1)):0;g={};for(r=0;r<j;r++){var o=h[r+f];if(o.key=="pxc"||o.key=="pxd")j++;else g[o.key]=o.value}h=g}h=h;if(typeof i!="object")return h;for(var s in i)h[s]=i[s];return h};this.parameters.count=function(){var h=this.parameters(),
j=0;for(var f in h)j++;return j}.bind(this);this.value=function(){return c(a,this.parameters(),true)}.bind(this);this.canonical=function(){return c(a,this.parameters(),true)}.bind(this);this.href=function(){return c(a,this.parameters(),false)}.bind(this);this.host=function(){return a.window().document.location.host};this.port=function(){return a.window().document.location.port};this.protocol=function(){return a.window().document.location.protocol};this.pathname=function(){return a.window().document.location.pathname}}}(),
l=function(){var m={},k=function(d){if(typeof d=="undefined")d="";if(d.charAt(0)==".")d=d.substr(1);d=d.split(".");for(var b=m,c;c=d.shift();){if(typeof b[c]=="undefined")return;b=b[c]}return b};k.register=function(d){if(d.charAt(0)==".")d=d.substr(1);d=d.split(".");for(var b=m,c=0;c<d.length;c++){var a=d[c];if(typeof b[a]!="object")b[a]={};b=b[a]}return b};k.remove=function(d){if(d.charAt(0)==".")d=d.substr(1);d=d.split(".");for(var b=m,c,a=0;a<d.length-1;a++){c=d[a];if(typeof b[c]!="object")return;
b=b[c]}delete b[c]};return k}(),q=function(){function m(b,c){var a=l(b.fullname());if(typeof a.__properties__.unloadEvent=="object"){a.__properties__.unloadEvent.remove();delete a.__properties__.unloadEvent}a.__properties__.domwindow=c;a.__properties__.unloadEvent=new n(c,"beforeunload",function(){b.destructor()})}var k=function(b,c,a){if(!(typeof b=="undefined"||b==""||b==".")){var i=l.register(b);if(typeof i.__properties__=="undefined")i.__properties__={};i.__properties__.standalone=c;this.fullname=
function(){return b}.bind(this);m(this,a)}},d=function(b,c,a){if(!(typeof b=="undefined"||b==""||b==".")){if(b.charAt(0)==".")b=b.substr(1);if(!d.exists(b))return d.register(b,c,a);var i=l(b),e=i.__component__.window();if(typeof c=="boolean")i.__properties__.standalone=c;try{if(typeof a=="object"&&(e.document.location==null||e.document.location.href=="about:blank"))return d.register(b,c,a)}catch(h){return d.register(b,c,a)}if(typeof i.__init__=="function"){e[i.__component__.fullname()]=i.__init__;
delete i.__init__;e[i.__component__.fullname()]();delete e[i.__component__.fullname()]}return i.__component__}};d.register=function(b,c,a,i){if(!(typeof b=="undefined"||b==""||b==".")){if(b.charAt(0)==".")b=b.substr(1);var e=l.register(b);if(typeof e.__component__=="undefined")e.__component__=new k(b,c,typeof a!="undefined"?a:window);else{typeof a!="undefined"&&m(e.__component__,a);if(typeof c!="undefined")e.__properties__.standalone=c}typeof i=="function"&&e.__component__.setInitializer(i);return e.__component__}};
d.exists=function(b){b=l(b);if(typeof b=="undefined")return false;return typeof b.__component__=="object"};k.prototype.setInitializer=function(b){if(typeof b=="function")l(this.fullname()).__init__=b.bind(this)};k.prototype.destructor=function(){var b=l(this.fullname());typeof b.__properties__=="object"&&typeof b.__properties__.unloadEvent=="object"&&b.__properties__.unloadEvent.remove();b=this.children();for(var c=0;c<b.length;c++)b[c].destructor();l.remove(this.fullname())};k.prototype.child=k.prototype.childbyname=
function(b){return d(this.fullname()+"."+b)};k.prototype.childExists=function(b){return d.exists(this.fullname()+"."+b)};k.prototype.parent=function(){if(this.fullname().lastIndexOf(".")!=-1){var b=this.fullname().slice(0,this.fullname().lastIndexOf("."));return d(b)}};k.prototype.sibling=function(b){return this.parent().childbyname(b)};k.prototype.children=function(){var b=l(this.fullname()),c=[];for(var a in b)if(!(a.charAt(0)=="_"&&a.charAt(1)=="_")){var i=this.childbyname(a);typeof i!="undefined"&&
c.push(i)}return c};k.prototype.component=d;k.prototype.url=function(b,c){if(typeof c=="undefined")c=false;return new p(this,b,c)};k.prototype.ldx=function(b,c,a){return t(this,b,c,a)};k.prototype.depth=function(){var b=1;if(typeof this.parent()!="undefined")b=this.parent().depth()+1;return b};k.prototype.standalone=function(b){var c=l(this.fullname());if(typeof b=="undefined")b=true;if(typeof c.__properties__.standalone=="undefined"&&b)c.__properties__.standalone=t.receive("",{standalone:this.fullname()});
return c.__properties__.standalone};k.prototype.window=function(){return l(this.fullname()).__properties__.domwindow};k.prototype.name=function(){return this.fullname().slice(this.fullname().lastIndexOf(".")+1)};k.prototype.parameter=function(b,c){var a=this.url().parameters();if(typeof a[b]=="undefined")return c;return a[b]};return d}(),t=function(){var m={},k=undefined,d=function(e,h){if(typeof h!="object")h=window;var j=h.JSON.parse(e);if(j==false&&e){alert("Unexpected output: "+e);return false}else{j.output&&
alert("Unexpected output: "+j.output);return j.data}},b=function(){var e=[],h=[];for(var j in m)for(;m[j].length>0;){var f=m[j].shift();h.push([f.callback,f.domwindow]);e.push({component:j,variable:f.variable,url:f.url})}if(e.length!=0){var g=new XMLHttpRequest;g.onreadystatechange=function(){if(!(g.readyState!=4||g.status!=200))for(var r=d(g.responseText),o=0;o<r.length;o++){var s=h[o][0];typeof s=="function"&&s(h[o][1].JSON.parse(r[o]))}};g.open("POST",document.location.pathname+"?px_ldxcluster=1",
true);g.setRequestHeader("content-type","text/plain");g.send(JSON.stringify(e));k=undefined}},c=function(e,h){if(typeof h=="undefined")h=window;var j=h.document.location.pathname,f=h.document.location.search;if(f.length==0)f="?px_ldx="+e;else f+="&px_ldx="+e;return j+f},a=function(e){var h,j=window;if(typeof e=="string"){h=e;e=PxFramework.component(e)}else{e=e;h=e.fullname()}if(typeof e=="object")j=e.window();return{fullname:h,domwindow:j}},i=function(e,h,j,f){i.send(e,h,j,f)};i.send=function(e,h,
j,f){var g=a(e);if(typeof f=="undefined")f=true;if(!f)return i.direct(e,h,j);if(typeof m[g.fullname]=="undefined")m[g.fullname]=[];m[g.fullname].push({component:g.fullname,variable:h,url:g.domwindow.document.location.pathname+g.domwindow.document.location.search,domwindow:g.domwindow,callback:j});typeof k!=="undefined"&&clearTimeout(k);k=setTimeout(b,10)};i.direct=function(e,h,j){var f=a(e),g=new XMLHttpRequest;g.onreadystatechange=function(){g.readyState!=4||g.status!=200||typeof j=="function"&&
j(d(g.responseText,f.domwindow))};g.open("POST",c(f.fullname,f.domwindow),true);g.setRequestHeader("content-type","text/plain");g.send(JSON.stringify({input:h}))};i.receive=function(e,h){var j=a(e),f=new XMLHttpRequest;f.open("POST",c(j.fullname,j.domwindow),false);f.setRequestHeader("content-type","text/plain");f.send(JSON.stringify({input:h}));return d(f.responseText)};return i}(),u=function(){var m,k,d=function(){};d.iconURL=function(b,c,a){if(typeof c=="undefined")c="16";if(typeof a=="undefined")a=
"png";return d.url("icons/"+c+"x"+c+"/"+b+"."+a,false)};d.url=function(b,c){if(typeof c=="undefined")c=false;var a=c?m:k,i=b.substring(0,1),e=a.substring(a.length-1);a+=e=="/"&&i=="/"?b.substring(1):e!="/"&&i!="/"?"/"+b:b;return a};d.initializeURL=function(b,c){m=b;k=c?c:b};return d}();return{component:q,ldx:t,components:function(){var m=[],k=l();for(var d in k)m.push(q(d));return m},event:n,url:p,resource:u}}();var PxEvent=PxFramework.event}else{PxFramework=frameworkWindow.PxFramework;PxEvent=frameworkWindow.PxEvent}
(function(){new PxEvent(window,"DOMContentLoaded",function(){var n=function(p){for(var l=0;l<p.length;l++)n(p[l].children())};n(PxFramework.components())})})();var ldxAnswer=false,ldxSend=PxFramework.ldx.send,ldxSendReceive=PxFramework.ldx.receive,ldxSendCallback=PxFramework.ldx.send;function ldxSendDirectCallback(n,p,l){PxFramework.ldx.direct(n,p,function(q){ldxAnswer=q;l(q)})}
function ldxRunScripts(n){script_div=document.createElement("div");script_div.innerHTML="<div>at least 1 element is needed</div>"+n;n=script_div.getElementsByTagName("script");for(var p=document.getElementsByTagName("head")[0],l=0;l<n.length;l++){var q=document.createElement("script");q.type=n[l].type;if(n[l].text!="")q.text=n[l].text;else if(n[l].src!="")q.src=n[l].src;p.appendChild(q)}}var PxUrl={};
PxUrl.create=function(n,p,l){if(typeof l=="string"){PxFramework.component.register(l,true);l=undefined}n=PxFramework.component(n,l,window);return n.url(p,n.window()!=window).value()};

