var sd=sd||{},q=this,ak=function(a,b){var c=a.split("."),d=q,e;while(e=c.shift()){if(!c.length&&G(b)){d[e]=b}else if(d[e]){d=d[e]}else{d=(d[e]={})}}},Ck=function(){};var G=function(a){return typeof a!="undefined"},x=function(a){return a instanceof Array||qa(a)&&typeof a.join=="function"&&typeof a.reverse=="function"},Lb=function(a){return qa(a)&&typeof a.length=="number"},da=function(a){return typeof a=="string"},sc=function(a){return typeof a=="number"},ib=function(a){return typeof a=="function"||
!(!(a&&a.call))},qa=function(a){return a!=null&&typeof a=="object"},ga=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(Zb)){return a[Zb]}if(!a[Zb]){a[Zb]=String(++wk)}return a[Zb]},Zb="closure_hashCode_",wk=0,mj=function(a){if(qa(a)){if(a.clone){return a.clone()}var b=x(a)?[]:{};for(var c in a){b[c]=mj(a[c])}return b}return a},z=function(a,b){var c=a.Id||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(a.Qb){b=a.Qb}if(a.Pb){a=a.Pb}var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));
return a.apply(b||q,e)};d.Id=c;d.Qb=b;d.Pb=a;return d},jg=function(a,b){for(var c in b){a[c]=b[c]}},lg=function(){return(new Date).getTime()},hb=function(a,b){var c=b||{};for(var d in c){a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d])}return a},bk=function(a,b){ak(a,b)},sb=function(a,b,c){a[b]=c};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=q;if(!b)b=[];for(var f=0;f<b.length;f++){c[f]="args["+f+"]"}e="oScope.__applyTemp__.peek().("+c.join(",")+");";
if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(e);a.__applyTemp__.pop();return d}}Function.prototype.bind=function(a){return z.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.inherits=function(a){function b(){}b.prototype=a.prototype;this.N=a.prototype;this.prototype=new b;this.prototype.constructor=this};Function.prototype.mixin=function(a){jg(this.prototype,a)};if(!Array.prototype.push){Array.prototype.push=function(a){for(var b=
0;b<arguments.length;b++){this[this.length]=arguments[b]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){var a;if(this.length){a=this[this.length-1];this.length--}return a}}Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift){Array.prototype.shift=function(){var a;if(this.length){a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--}return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(a){var b=arguments.length;
for(var c=this.length-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}return this.length}};var vd=function(a,b,c){if(a.indexOf){return a.indexOf(b,c)}if(Array.indexOf){return Array.indexOf(a,b,c)}if(c==null){c=0}else if(c<0){c=Math.max(0,a.length+c)}for(var d=c;d<a.length;d++){if(a[d]===b)return d}return-1},bc=function(a,b,c){if(a.ua){a.ua(b,c)}else if(Array.ua){Array.ua(a,b,c)}else{var d=a.length,e=da(a)?a.split(""):a;for(var f=0;f<d;f++){b.call(c,e[f],f,a)}}},hj=function(a,b,c){if(a.filter){return a.filter(b,c)}if(Array.filter){return Array.filter(a,b,c)}var d=a.length,e=[],f=da(a)?a.split(""):
a;for(var h=0;h<d;h++){if(b.call(c,f[h],h,a)){e.push(f[h])}}return e},ij=function(a,b,c){if(a.map){return a.map(b,c)}if(Array.map){return Array.map(a,b,c)}var d=a.length,e=[],f=da(a)?a.split(""):a;for(var h=0;h<d;h++){e.push(b.call(c,f[h],h,a))}return e},kj=function(a,b,c){if(a.some){return a.some(b,c)}if(Array.some){return Array.some(a,b,c)}var d=a.length,e=da(a)?a.split(""):a;for(var f=0;f<d;f++){if(b.call(c,e[f],f,a)){return true}}return false},ac=function(a,b){if(a.contains){return a.contains(b)}return vd(a,
b)>-1},wd=function(a,b){var c=vd(a,b),d;if(d=c!=-1){jj(a,c)}return d},jj=function(a,b){return Array.prototype.splice.call(a,b,1).length==1},vf=function(a){if(x(a)){return a.concat()}else{var b=[];for(var c=0;c<a.length;c++){b[c]=a[c]}return b}},gj=function(a,b){if(!x(b)){a.push(b)}else{a.push.apply(a,b)}},lj=function(a,b,c,d){return Array.prototype.splice.apply(a,Jc(arguments,1))},Jc=function(a,b,c){if(arguments.length<=2){return Array.prototype.slice.call(a,b)}else{return Array.prototype.slice.call(a,
b,c)}};var Dk=function(a,b,c){for(var d in a){b.call(c,a[d],d,a)}},ng=function(a){var b=[];for(var c in a){b.push(a[c])}return b},mg=function(a){var b=[];for(var c in a){b.push(c)}return b},og=function(a,b){var c;if(c=b in a){delete a[b]}return c},Ek=function(a,b,c){if(b in a){return a[b]}return c};var ab=function(a,b){return a.indexOf(b)==0},Fa=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c},tg=function(a){return/^\s*$/.test(a)},Ik=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")},Pk=function(a){return a.replace(/\s+$/,"")},Jk=/^[a-zA-Z0-9\-_.!~*'()]*$/,je=function(a){a=String(a);if(!Jk.test(a)){return encodeURIComponent(a)}return a},ie=function(a){return decodeURIComponent(a.replace(/\+/g," "))},ge=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},
xa=function(a,b){if(b){return a.replace(pg,qg).replace(ug,vg).replace(rg,sg).replace(wg,xg)}else{if(!Gk.test(a))return a;if(a.indexOf(Hk)!=-1){a=a.replace(pg,qg)}if(a.indexOf(Lk)!=-1){a=a.replace(ug,vg)}if(a.indexOf(Kk)!=-1){a=a.replace(rg,sg)}if(a.indexOf(Mk)!=-1){a=a.replace(wg,xg)}return a}},Hk="&",Lk="<",Kk=">",Mk='"',qg="&amp;",vg="&lt;",sg="&gt;",xg="&quot;",pg=/&/g,ug=/</g,rg=/>/g,wg=/\"/g,Gk=/[&<>\"]/,Qk=function(a){if(a.indexOf("&")>=0){if("document"in q){var b=q["document"]["createElement"]("a");
b["innerHTML"]=a;if(b["normalize"]){b["normalize"]()}a=b["firstChild"]["nodeValue"];b["innerHTML"]=""}else{return a.replace(/&([^;]+);/g,function(c,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(d.charAt(0)=="#"){var e=Number("0"+d.substr(1));if(!isNaN(e)){return String.fromCharCode(e)}}return c}})}}return a},ke=function(a,b){return ge(a.replace(/  /g," &#160;"),b)},Ok=function(a){var b={};for(var c=0;c<a.length;c++){b[a.charAt(c)]=true}return b},
Fk=Ok("()[]{}+-?*.$^|,:#<!\\"),he=function(a){a=String(a);var b="",c;for(var d=0;d<a.length;d++){c=a.charAt(d);if(c=="\u0008"){c="\\x08"}else if(c in Fk){c="\\"+c}b+=c}return b},Nk=function(a,b){return(new Array(b+1)).join(a)};var Ra=function(a,b){this.width=G(a)?Number(a):undefined;this.height=G(b)?Number(b):undefined};Ra.prototype.clone=function(){return new Ra(this.width,this.height)};Ra.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};var Qa=function(a,b){this.x=G(a)?Number(a):undefined;this.y=G(b)?Number(b):undefined};Qa.prototype.clone=function(){return new Qa(this.x,this.y)};Qa.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var de=function(a,b){a=Number(a);b=Number(b);this.start=
a<b?a:b;this.end=a<b?b:a};de.prototype.clone=function(){return new de(this.start,this.end)};de.prototype.toString=function(){return"["+this.start+", "+this.end+"]"};var vb=function(a,b,c,d){this.left=G(a)?Number(a):undefined;this.top=G(b)?Number(b):undefined;this.width=G(c)?Number(c):undefined;this.height=G(d)?Number(d):undefined};vb.prototype.clone=function(){return new vb(this.left,this.top,this.width,this.height)};vb.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+
"w x "+this.height+"h)"};var uc=function(a,b,c,d){this.top=G(a)?Number(a):undefined;this.right=G(b)?Number(b):undefined;this.bottom=G(c)?Number(c):undefined;this.left=G(d)?Number(d):undefined};uc.prototype.clone=function(){return new uc(this.top,this.right,this.bottom,this.left)};uc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};uc.prototype.contains=function(a){return yk(this,a)};uc.prototype.expand=function(a,b,c,d){if(qa(a)){this.top-=
a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var yk=function(a,b){if(!a||!b){return false}return b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};var vc,H,ue,Fg,al,Pb,$k,we,cl,ve,dl,bl;(function(){var a=navigator.userAgent,b=typeof opera!="undefined",c=!b&&a.indexOf("MSIE")!=-1,d=!b&&a.indexOf("Safari")!=-1,e=!b&&navigator.product=="Gecko"&&!d,f=e&&navigator.vendor=="Camino",h=!b&&a.indexOf("Konqueror")!=-1,i=h||d,j,k;if(b){j=opera.version()}else{if(e){k=/rv\:([^\);]+)(\)|;)/}else if(c){k=/MSIE\s+([^\);]+)(\)|;)/}else if(d){k=/AppleWebKit\/(\S+)/}else if(h){k=/Konqueror\/([^\);]+)(\)|;)/}if(k){k.test(a);j=RegExp.$1}}var l=navigator.platform,
r=l.indexOf("Mac")!=-1,m=l.indexOf("Win")!=-1,D=l.indexOf("Linux")!=-1;vc=b;H=c;ue=e;Fg=f;al=h;Pb=d;$k=i;we=j;cl=navigator.platform;ve=r;dl=m;bl=D})();var Gg=function(a,b){if(!isNaN(a)&&!isNaN(b)){return a-b}var c=a.split("."),d=b.split("."),e=Math.min(c.length,d.length);for(var f=0;f<e;f++){if(typeof d[f]=="undefined"){return 1}if(typeof c[f]=="undefined"){return-1}if(!isNaN(c[f])&&isNaN(d[f])&&c[f]==parseInt(d[f],10)){return 1}if(isNaN(c[f])&&!isNaN(d[f])&&parseInt(c[f],10)==d[f]){return-1}if(d[f]>
c[f]){return-1}else if(d[f]<c[f]){return 1}}return 0},el=function(a){return Gg(we,a)>=0};var Ed,Fb=function(){if(!Ed){Ed=new Aa}return Ed},Fd=function(a){return a?new Aa(dc(a)):Fb()},If=function(){return Fb().wa()},Gb=function(a){return Fb().bc(a)},L=Gb,Cj=function(a,b,c){return Fb().rg(a,b,c)},yj=Cj,Ij=function(a,b){Dk(b,function(c,d){if(d=="style"){a.style.cssText=c}else if(d=="class"){a.className=c}else if(d=="for"){a.htmlFor=c}else if(d in Ff){a.setAttribute(Ff[d],c)}else{a[d]=c}})},Ff={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",
height:"height",width:"width",frameborder:"frameBorder"},Gd=function(a){var b=a||q||window,c=b.document,d=(Pb||c.compatMode=="CSS1Compat")&&!vc?c.documentElement:c.body;return new Ra(d.clientWidth,d.clientHeight)},Dj=function(a){var b=a||q||window,c=b.document,d,e;if(c.compatMode=="CSS1Compat"){d=c.documentElement.scrollLeft;e=c.documentElement.scrollTop}else{d=c.body.scrollLeft;e=c.body.scrollTop}return new Qa(d,e)},Hd=function(a){return a.parentWindow||a.defaultView},ob=function(a){var b=Fb();return b.m.apply(b,
arguments)},Dd=function(a){return Fb().createElement(a)},Bj=function(a,b){a.appendChild(b)},Fj=function(a){var b;while(b=a.firstChild){a.removeChild(b)}},Ej=function(a,b){if(b.parentNode){b.parentNode.insertBefore(a,b.nextSibling)}},Ma=function(a){if(a.parentNode){a.parentNode.removeChild(a)}},zj=Pb&&Gg(we,"521")<=0,Cd=function(a,b){if(typeof a.contains!="undefined"&&!zj){return a==b||a.contains(b)}if(typeof a.compareDocumentPosition!="undefined"){return a==b||Boolean(a.compareDocumentPosition(b)&
16)}while(b&&a!=b){b=b.parentNode}return b==a},dc=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},cc=function(a,b){var c=[];Hf(a,b,c,true);return c[0]},Hf=function(a,b,c,d){if(a!=null){for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);if(d){return}}Hf(f,b,c,d)}}},Aj={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Gf={IMG:" ",BR:"\n"},Jf=function(a){if(H&&"innerText"in a){return Ik(a.innerText)}var b=[];Kf(a,b,true);var c=b.join("").replace(/ +/g," ");if(c!=" "){c=c.replace(/^\s*/,
"")}return c},Kf=function(a,b,c){if(a.nodeName in Aj){}else if(a.nodeType==3){if(c){b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,""))}else{b.push(a.nodeValue)}}else if(a.nodeName in Gf){b.push(Gf[a.nodeName])}else{var d=a.firstChild;while(d){Kf(d,b,c);d=d.nextSibling}}},Aa=function(a){this.ia=a||q.document||document};Aa.prototype.wa=function(){return this.ia};Aa.prototype.bc=function(a){if(da(a)){return this.ia.getElementById(a)}else{return a}};Aa.prototype.rg=function(a,b,c){var d=a||"*",e=
c||this.ia,f=e.getElementsByTagName(d);if(b){return hj(f,function(h){return ac(h.className.split(" "),b)})}else{return f}};Aa.prototype.m=function(a,b){if(H&&b&&b.name){a="<"+a+' name="'+xa(b.name)+'">'}var c=this.createElement(a);if(b){Ij(c,b)}if(arguments.length>2){var d=Jc(arguments,2),e=function(h){if(da(h)){this.appendChild(c,this.createTextNode(h))}else if(h){this.appendChild(c,h)}};for(var f=0;f<d.length;f++){if(x(d[f])){bc(d[f],e,this)}else{e.call(this,d[f])}}}return c};Aa.prototype.createElement=
function(a){return this.ia.createElement(a)};Aa.prototype.createTextNode=function(a){return this.ia.createTextNode(a)};Aa.prototype.appendChild=Bj;Aa.prototype.Vh=Fj;Aa.prototype.removeNode=Ma;Aa.prototype.contains=Cd;var oe,re=function(a,b,c){a.style[Tk(b)]=c},Cg=function(a,b){var c=dc(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d){return d[b]}}if(a.currentStyle){return a.currentStyle[b]}else{return a.style[b]}},qe=function(a,b,c){var d,e;if(b instanceof Qa){d=b.x;e=b.y}else{d=b;e=c}a.style.left=typeof d=="number"?Math.round(d)+"px":d;a.style.top=typeof e=="number"?Math.round(e)+"px":e},Bg=function(a){var b;if(a){if(a.nodeType==9){b=a}else{b=dc(a)}}else{b=
If()}if(H&&b.compatMode!="CSS1Compat"){return b.body}return b.documentElement},Nb=function(a){var b=dc(a);if(!G(oe)){oe=Fg&&!el("1.8.0.11")}var c=new Qa(0,0),d=Bg(b);if(a==d){return c}var e=null,f;if(a.getBoundingClientRect){f=a.getBoundingClientRect();var h=d.scrollTop,i=d.scrollLeft;c.x=f.left+i;c.y=f.top+h}else if(b.getBoxObjectFor&&!oe){f=b.getBoxObjectFor(a);var j=b.getBoxObjectFor(d);c.x=f.screenX-j.screenX;c.y=f.screenY-j.screenY}else{c.x=a.offsetLeft;c.y=a.offsetTop;e=a.offsetParent;if(e!=
a){while(e){c.x+=e.offsetLeft;c.y+=e.offsetTop;e=e.offsetParent}}if(vc||Pb&&Cg(a,"position")=="absolute"){c.y-=b.body.offsetTop}e=a.parentNode;while(e&&e!=d){c.x-=e.scrollLeft;if(!vc||e.tagName!="TR"){c.y-=e.scrollTop}e=e.parentNode}}return c},$c=function(a,b,c){var d=Nb(a);if(b instanceof Qa){c=b.y;b=b.x}var e=b-d.x,f=c-d.y;qe(a,a.offsetLeft+e,a.offsetTop+f)},Ob=function(a,b,c){var d;if(b instanceof Ra){d=b.height;b=b.width}else{d=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=
typeof d=="number"?Math.round(d)+"px":d},ra=function(a){if(Cg(a,"display")!="none"){return new Ra(a.offsetWidth,a.offsetHeight)}var b=a.style,c=b.visibility,d=b.position;b.visibility="hidden";b.position="absolute";b.display="";var e=a.offsetWidth,f=a.offsetHeight;b.display="none";b.position=d;b.visibility=c;return new Ra(e,f)},Tk=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})},pe=function(a,b){var c=a.style;if("opacity"in c){c.opacity=b}else if("MozOpacity"in
c){c.MozOpacity=b}else if("KhtmlOpacity"in c){c.KhtmlOpacity=b}else if("filter"in c){c.filter="alpha(opacity="+b*100+")"}},Ga=function(a,b){a.style.display=b?"":"none"};var Bd=function(a){return a.className.split(" ")},ta=function(a,b){var c=Bd(a),d=Jc(arguments,1),e=1;for(var f=0;f<d.length;f++){if(!ac(c,d[f])){c.push(d[f]);e&=1}else{e&=0}}a.className=c.join(" ");return Boolean(e)},ua=function(a,b){var c=Bd(a),d=Jc(arguments,1),e=0;for(var f=0;f<c.length;f++){if(ac(d,c[f])){lj(c,f--,1);e++}}a.className=c.join(" ");return e==d.length},Eb=function(a,b){return ac(Bd(a),b)};var ne=function(a){if(typeof a.K=="function"){return a.K()}if(da(a)){return a.split("")}if(Lb(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(a[d])}return b}return ng(a)},Ag=function(a){if(typeof a.Na=="function"){return a.Na()}if(typeof a.K=="function"){return undefined}if(Lb(a)||da(a)){var b=[],c=a.length;for(var d=0;d<c;d++){b.push(d)}return b}return mg(a)},bb=function(a,b,c){if(typeof a.ua=="function"){a.ua(b,c)}else if(Lb(a)||da(a)){bc(a,b,c)}else{var d=Ag(a),e=ne(a),f=e.length;for(var h=
0;h<f;h++){b.call(c,e[h],d&&d[h],a)}}},Sk=function(a,b,c){if(typeof a.some=="function"){return a.some(b,c)}if(Lb(a)||da(a)){return kj(a,b,c)}var d=Ag(a),e=ne(a),f=e.length;for(var h=0;h<f;h++){if(b.call(c,e[h],d&&d[h],a)){return true}}return false};var I=function(a){this.e={};this.V=[];if(a){this.Ob(a)}},le=":",yg=le.charCodeAt(0);I.prototype.n=0;var Zc=function(a){a=String(a);if(a in Object.prototype){return le+a}else if(a.charCodeAt(0)==yg){return le+a}else{return a}},Rk=function(a){if(a.charCodeAt(0)==yg){return a.substring(1)}else{return a}};I.prototype.w=function(){return this.n};I.prototype.K=function(){var a=[];for(var b=0;b<this.V.length;b++){var c=this.V[b];if(c in this.e){a.push(this.e[c])}}return a};I.prototype.Na=function(){var a=
[];for(var b=0;b<this.V.length;b++){var c=this.V[b];if(c in this.e){a.push(Rk(c))}}return a};I.prototype.Z=function(a){return Zc(a)in this.e};I.prototype.Eb=function(){return this.n==0};I.prototype.clear=function(){this.e={};this.V.length=0;this.n=0};I.prototype.remove=function(a){var b=Zc(a);if(og(this.e,b)){this.n--;if(this.V.length>2*this.n){this.Pf()}return true}return false};var zg=[];I.prototype.Pf=function(){var a=zg;a.length=0;for(var b=0;b<this.V.length;b++){var c=this.V[b];if(c in this.e){a.push(c)}}this.V.length=
0;zg=this.V;this.V=a};I.prototype.get=function(a,b){var c=Zc(a);if(c in this.e){return this.e[c]}return b};I.prototype.set=function(a,b){var c=Zc(a);if(!(c in this.e)){this.n++;this.V.push(c)}this.e[c]=b};I.prototype.Ob=function(a){var b,c;if(a instanceof I){b=a.Na();c=a.K()}else{b=mg(a);c=ng(a)}for(var d=0;d<b.length;d++){this.set(b[d],c[d])}};I.prototype.clone=function(){return new I(this)};var Sa=function(a){this.e=new I;if(a){this.Ob(a)}},me=function(a){var b=typeof a;if(b=="object"){return"o"+ga(a)}else{return b.substr(0,1)+a}};Sa.prototype.w=function(){return this.e.w()};Sa.prototype.add=function(a){this.e.set(me(a),a)};Sa.prototype.Ob=function(a){var b=ne(a),c=b.length;for(var d=0;d<c;d++){this.add(b[d])}};Sa.prototype.remove=function(a){return this.e.remove(me(a))};Sa.prototype.clear=function(){this.e.clear()};Sa.prototype.Eb=function(){return this.e.Eb()};Sa.prototype.contains=
function(a){return this.e.Z(me(a))};Sa.prototype.K=function(){return this.e.K()};Sa.prototype.clone=function(){return new Sa(this)};var s=function(a){var b;if(a instanceof s){this.vd(a.Eg());this.wd(a.Hg());this.qd(a.pg());this.ud(a.ye());this.td(a.Bg());this.Bc(a.ed().clone());this.rd(a.ug())}else if(a&&(b=String(a).match(ej()))){this.vd(b[1],true);this.wd(b[2],true);this.qd(b[3],true);this.ud(b[4]);this.td(b[5],true);this.Bc(b[6]);this.rd(b[7],true)}else{this.ca=new Q(null,this)}};s.prototype.W="";s.prototype.Mb="";s.prototype.sa="";s.prototype.Ba=null;s.prototype.ma="";s.prototype.ca=null;s.prototype.va="";s.prototype.toString=
function(){if(this.H){return this.H}var a=[];if(this.W){a.push(td(this.W,uf),":")}if(this.sa){a.push("//");if(this.Mb){a.push(td(this.Mb,uf),"@")}a.push(tf(this.sa));if(this.Ba!=null){a.push(":",String(this.ye()))}}if(this.ma){a.push(td(this.ma,fj))}var b=String(this.ca);if(b){a.push("?",b)}if(this.va){a.push("#",tf(this.va))}return this.H=a.join("")};s.prototype.clone=function(){return new bj(this.W,this.Mb,this.sa,this.Ba,this.ma,this.ca.clone(),this.va)};s.prototype.Eg=function(){return this.W};
s.prototype.vd=function(a,b){delete this.H;this.W=b?$b(a):a;if(this.W){this.W=this.W.replace(/:$/,"")}return this};s.prototype.Hg=function(){return this.Mb};s.prototype.wd=function(a,b){delete this.H;this.Mb=b?$b(a):a;return this};s.prototype.pg=function(){return this.sa};s.prototype.qd=function(a,b){delete this.H;this.sa=b?$b(a):a;return this};s.prototype.ye=function(){return this.Ba};s.prototype.ud=function(a){delete this.H;if(a){a=Number(a);if(isNaN(a)||a<0){throw Error("Bad port number "+a);}this.Ba=
a}else{this.Ba=null}return this};s.prototype.Bg=function(){return this.ma};s.prototype.td=function(a,b){delete this.H;this.ma=b?$b(a):a;return this};s.prototype.Bc=function(a){delete this.H;if(a instanceof Q){this.ca=a;this.ca.o=this}else{this.ca=new Q(a,this)}return this};s.prototype.ed=function(){return this.ca};s.prototype.C=function(a,b){delete this.H;this.ca.set(a,b);return this};s.prototype.qi=function(a,b){delete this.H;if(!x(b)){b=[String(b)]}this.ca.xi(a,b);return this};s.prototype.yg=function(a){return this.ca.get(a)};
s.prototype.ug=function(){return this.va};s.prototype.rd=function(a,b){delete this.H;this.va=b?$b(a):a;return this};var bj=function(a,b,c,d,e,f,h){var i=new s;i.vd(a);i.wd(b);i.qd(c);i.ud(d);i.td(e);i.Bc(f);i.rd(h);return i},$b=function(a){return a?ie(a):""},tf=function(a){if(da(a)){return encodeURIComponent(a)}return null},dj=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,td=function(a,b){var c=null;if(da(a)){c=a;if(!dj.test(c)){c=encodeURI(a)}if(c.search(b)>=0){c=c.replace(b,cj)}}return c},cj=function(a){var b=
a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},ud=null,ej=function(){if(!ud){ud=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/}return ud},uf=/[#\/\?@]/g,fj=/[\#\?]/g,Q=function(a,b){this.u=new I;this.o=b;if(a){var c=a.split("&");for(var d=0;d<c.length;d++){var e=c[d].split("=");this.add(ie(e[0]),e.length>1?ie(e[1]):"")}}};Q.prototype.n=0;Q.prototype.w=function(){return this.n};Q.prototype.add=function(a,b){this.Db();
a=String(a);if(!this.Z(a)){this.u.set(a,b)}else{var c=this.u.get(a);if(x(c)){c.push(b)}else{this.u.set(a,[c,b])}}this.n++;return this};Q.prototype.remove=function(a){a=String(a);if(this.u.Z(a)){this.Db();var b=this.u.get(a);if(x(b)){this.n-=b.length}else{this.n--}return this.u.remove(a)}return false};Q.prototype.clear=function(){this.Db();this.u.clear();this.n=0};Q.prototype.Eb=function(){return this.n==0};Q.prototype.Z=function(a){a=String(a);return this.u.Z(a)};Q.prototype.Na=function(){var a=this.u.K(),
b=this.u.Na(),c=[];for(var d=0;d<b.length;d++){var e=a[d];if(x(e)){for(var f=0;f<e.length;f++){c.push(b[d])}}else{c.push(b[d])}}return c};Q.prototype.K=function(a){var b;if(a){var c=String(a);if(this.Z(c)){var d=this.u.get(c);if(x(d)){return d}else{b=[];b.push(d)}}else{b=[]}}else{var e=this.u.K();b=[];for(var f=0;f<e.length;f++){var h=e[f];if(x(h)){gj(b,h)}else{b.push(h)}}}return b};Q.prototype.set=function(a,b){this.Db();a=String(a);if(this.Z(a)){var c=this.u.get(a);if(x(c)){this.n-=c.length}else{this.n--}}this.u.set(a,
b);this.n++;return this};Q.prototype.get=function(a,b){a=String(a);if(this.Z(a)){var c=this.u.get(a);if(x(c)){return c[0]}else{return c}}else{return b}};Q.prototype.xi=function(a,b){this.Db();a=String(a);if(this.Z(a)){var c=this.u.get(a);if(x(c)){this.n-=c.length}else{this.n--}}if(b.length>0){this.u.set(a,b);this.n+=b.length}};Q.prototype.toString=function(){if(this.H){return this.H}var a=[],b=0,c=this.u.Na();for(var d=0;d<c.length;d++){var e=c[d],f=je(e),h=this.u.get(e);if(x(h)){for(var i=0;i<h.length;i++){if(b>
0){a.push("&")}a.push(f);a.push("=");a.push(je(h[i]));b++}}else{if(b>0){a.push("&")}a.push(f);a.push("=");a.push(je(h));b++}}return this.H=a.join("")};Q.prototype.Db=function(){delete this.H;if(this.o){delete this.o.H}};Q.prototype.clone=function(){var a=new Q;a.u=this.u.clone();return a};var fe=function(){this.ab=H?[]:"";for(var a=0;a<arguments.length;a++){this.append(arguments[a])}};fe.prototype.append=function(){if(H){for(var a=0;a<arguments.length;a++){this.ab.push(arguments[a])}}else{for(var a=0;a<arguments.length;a++){this.ab+=arguments[a]}}return this};fe.prototype.clear=function(){if(H){this.ab.length=0}else{this.ab=""}};fe.prototype.toString=function(){if(H){var a=this.ab.join("");this.clear();if(a){this.ab.push(a)}return a}else{return this.ab}};var sj=function(a){var b=[];for(var c=0;c<a.length;c++){if(x(a[c])){b.push(sj(a[c]))}else{b.push(a[c])}}return"[ "+b.join(", ")+" ]"},tj=function(a,b){try{var c=xj(a),d="Message: "+xa(c.message)+'\nUrl: <a href="view-source:'+c.filename+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+xa(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+xa(wj(b)+"-> ");return d}catch(e){return"Exception trying to expose exception! You win, we lose. "+e}},xj=function(a){return typeof a==
"string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:q.document.location.href,stack:"Not available"}:(!a.lineNumber||!a.fileName||!a.stack?{message:a.message,name:a.name,lineNumber:"Not available",fileName:q.document.location.href,stack:"Not available"}:a)},wj=function(a){return Ef(a||arguments.callee.caller,[])},Ef=function(a,b){var c=[];if(ac(b,a)){c.push("[...circular reference...]")}else if(a&&b.length<50){c.push(vj(a)+"(");var d=a.arguments;for(var e=0;e<d.length;e++){if(e>
0){c.push(", ")}var f=typeof d[e]=="object"&&d[e].toSource?d[e].toSource():String(d[e]);if(f.length>40){f=f.substr(0,40)+"..."}c.push(f)}b.push(a);c.push(")\n");try{c.push(Ef(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else if(a){c.push("[...long stack...]")}else{c.push("[end]")}return c.join("")},vj=function(a){if(!Lc[a]){var b=/function ([^\(]+)/.exec(String(a));if(b){var c=b[1],d=/^\$(.+)\$$/.exec(c);if(d){c=d[1].replace(/\${1,2}/g,".")}Lc[a]=c}else{Lc[a]="[Anonymous]"}}return Lc[a]},
uj=function(a,b,c,d){if(document.all){return""}var e=b||q,f=c||"",h=d||0;if(e==a){return f}for(var i in e){if(i=="Packages"||i=="sun"||i=="netscape"||i=="java"){continue}if(e[i]==a){return f+i}if((typeof e[i]=="function"||typeof e[i]=="object")&&e[i]!=q&&e[i]!=q.document&&e.hasOwnProperty(i)&&h<6){var j=uj(a,e[i],f+i+".",h+1);if(j)return j}}return""},Lc={};var za=function(a,b,c){this.Mj=qj++;this.tj=lg();this.ka=a;this.bj=b;this.Zi=c};za.prototype.ie=null;za.prototype.he=null;var qj=0;za.prototype.ue=function(){return this.Zi};za.prototype.sg=function(){return this.ie};za.prototype.mi=function(a){this.ie=a};za.prototype.tg=function(){return this.he};za.prototype.ni=function(a){this.he=a};za.prototype.zb=function(){return this.ka};za.prototype.sd=function(a){this.ka=a};za.prototype.ve=function(){return this.bj};za.prototype.we=function(){return this.tj};var X=function(a){this.Aa=a;this.i=null;this.bb={};this.Tg=[]};X.prototype.ka=null;var Ja=function(a,b){this.name=a;this.value=b};Ja.prototype.toString=function(){return this.name};var un=new Ja("OFF",Infinity),Cf=new Ja("SHOUT",1200),yd=new Ja("SEVERE",1000),zd=new Ja("WARNING",900),Bf=new Ja("INFO",800),rj=new Ja("CONFIG",700),Af=new Ja("FINE",500),sn=new Ja("FINER",400),tn=new Ja("FINEST",300),rn=new Ja("ALL",0),Df=function(a){return zf(a)};X.prototype.ad=function(){return this.Aa};X.prototype.ya=
function(){return this.i};X.prototype.sd=function(a){this.ka=a};X.prototype.zb=function(){return this.ka};X.prototype.qg=function(){if(this.ka){return this.ka}if(this.i){return this.i.qg()}return null};X.prototype.kd=function(a){if(this.ka){return a.value>=this.ka.value}if(this.i){return this.i.kd(a)}return false};X.prototype.log=function(a,b,c){if(!this.kd(a)){return}var d=new za(a,String(b),this.Aa);if(c){d.mi(c);d.ni(tj(c,arguments.callee.caller))}this.mh(d)};X.prototype.severe=function(a,b){this.log(yd,
a,b)};X.prototype.warning=function(a,b){this.log(zd,a,b)};X.prototype.info=function(a,b){this.log(Bf,a,b)};X.prototype.fine=function(a,b){this.log(Af,a,b)};X.prototype.mh=function(a){if(!this.kd(a.zb())){return}var b=this;while(b){b.Nf(a);b=b.ya()}};X.prototype.Nf=function(a){for(var b=0;b<this.Tg.length;b++){this.Tg[b](a)}};X.prototype.si=function(a){this.i=a};X.prototype.Ff=function(a,b){this.bb[a]=b};var xd={},Kc=null,pj=function(){if(!Kc){Kc=new X("");xd[""]=Kc;Kc.sd(rj)}},zf=function(a){pj();
var b=xd[a];if(b==null){b=oj(a)}return b},oj=function(a){var b=new X(a),c=a.split("."),d=c[c.length-1];c.length=c.length-1;var e=c.join("."),f=zf(e);f.Ff(d,b);b.si(f);xd[a]=b;return b};var fb=function(a){this.Oh=a||"";this.Uh=lg()};fb.prototype.xd=true;fb.prototype.uf=true;fb.prototype.tf=true;fb.prototype.gb=function(a){throw Error("Must override formatRecord");};var wf=function(a){var b=new Date(a.we());return nb(b.getFullYear()-2000)+nb(b.getMonth()+1)+nb(b.getDate())+" "+nb(b.getHours())+":"+nb(b.getMinutes())+":"+nb(b.getSeconds())+"."+nb(Math.floor(b.getMilliseconds()/10))},nb=function(a){if(a<10){return"0"+a}return String(a)},xf=function(a,b){var c=a.we()-b,d=c/1000,e=d.toFixed(3),
f=0;if(d<1){f=2}else{while(d<100){f++;d*=10}}while(f-- >0){e=" "+e}return e},yf=function(a){fb.call(this,a)};yf.inherits(fb);yf.prototype.gb=function(a){var b;switch(a.zb()){case Cf:b="dbg-sh";break;case yd:b="dbg-sev";break;case zd:b="dbg-w";break;case Bf:b="dbg-i";break;case Af:default:b="dbg-f";break}var c=[];c.push(this.Oh);c.push(" ");if(this.xd){c.push("["+wf(a)+"] ")}if(this.uf){c.push("[");c.push(ke(xf(a,this.Uh)));c.push("s] ")}if(this.tf){c.push("[");c.push(xa(a.ue()));c.push("] ")}c.push('<span class="'+
b+'">');c.push(ge(ke(xa(a.ve()))));if(a.sg()){c.push("<br>");c.push(ge(ke(a.tg())))}c.push("</span><br>");return c.join("")};var Ad=function(a){fb.call(this,a)};Ad.inherits(fb);Ad.prototype.gb=function(a){var b=[];b.push(this.Oh);b[b.length]=" ";if(this.xd){b.push("[");b.push(wf(a));b.push("] ")}if(this.uf){b.push("[");b.push(xf(a,this.Uh));b.push("s] ")}if(this.tf){b.push("["+a.ue()+"] ")}b.push(a.ve());b.push("\n");return b.join("")};var nj=function(){this.Lj=this.Eh.bind(this);this.me=new Ad;this.me.xd=false;this.Gj=false;this.Yi=""};nj.prototype.Eh=function(a){if(window.console&&window.console["firebug"]){var b=this.me.gb(a);switch(a.zb()){case Cf:window.console["info"](b);break;case yd:window.console["error"](b);break;case zd:window.console["warn"](b);break;default:window.console["debug"](b);break}}else if(window.console){window.console.log(b)}else{this.Yi+=this.me.gb(a)}};var M=function(a){if(a){this.qf(a)}};M.prototype.qf=function(a,b,c,d){this.zd=a;if(!c&&!d){if(Fa(a,"?")){this.Of=true;a=a.substring(0,a.length-1)}if(Fa(a,"()")){if(Fa(a,"name()")||Fa(a,"count()")||Fa(a,"position()")){var e=a.lastIndexOf("/");if(e!=-1){this.Xc=a.substring(e+1);a=a.substring(0,e)}else{this.Xc=a;a="."}if(this.Xc=="count()"){this.Ti=true}}}}this.Va=b||a.split("/");this.D=this.Va.length;this.Ue=this.Va[this.D-1];this.c=this.Va[0];if(this.D==1){this.kf=this;this.mc=ab(a,"$")}else{this.kf=
Kd(this.c,null,this,null);this.mc=this.kf.mc;this.c=this.kf.c}if(this.D==1&&!this.mc){this.hh=a=="."||a=="";this.ih=ab(a,"@");this.fh=a=="*|text()";this.eh=a=="@*";this.gh=a=="*"}};M.prototype.fd=function(){return this.zd};M.prototype.ya=function(){if(!this.gj){if(this.D>1){this.hj=Kd(null,this.Va.slice(0,this.Va.length-1),this,null)}this.gj=true}return this.hj};M.prototype.xe=function(){if(!this.cj){if(this.D>1){this.dj=Kd(null,this.Va.slice(1),null,this)}this.cj=true}return this.dj};M.prototype.J=
function(a){if(a==null){a=E()}else if(this.mc){a=a.getDataRoot?a.getDataRoot():E()}if(this.Ti){var b=this.xg(a);return b.w()}if(this.D==1){return a.s(this.c)}else if(this.D==0){return a.get()}var c=a.h(this.c);if(c==null){return null}else{return this.xe().J(c)}};M.prototype.xg=function(a,b){return this.cd(a,false,b)};M.prototype.bd=function(a,b){return this.cd(a,true,b)};M.prototype.cd=function(a,b,c){if(a==null){a=E()}else if(this.mc){a=a.getDataRoot?a.getDataRoot():E()}if(this.D==0&&b){return a}else if(this.D==
0&&!b){return new ea([a])}else if(this.D==1){if(b){return a.h(this.c,c)}else{var d=a.h(this.c);if(d&&d.M()){return d.r()}else{return a.r(this.c)}}}else{var e=a.h(this.c,c);if(e==null&&b){return null}else if(e==null&&!b){return new Za}return this.xe().cd(e,b,c)}};M.prototype.Of=false;M.prototype.Va=[];M.prototype.D=null;M.prototype.c=null;M.prototype.Ue=null;M.prototype.hh=false;M.prototype.ih=false;M.prototype.fh=false;M.prototype.eh=false;M.prototype.gh=false;M.prototype.Xc=null;var T=function(a){var b=
Mc[a];if(b==null){b=new M(a);Mc[a]=b}return b},Kd=function(a,b,c,d){var e=a||b.join("/"),f=Mc[e];if(f==null){f=new M;f.qf(e,b,c,d);Mc[e]=f}return f},Mc={},zn=T("."),wn=T("*|text()"),xn=T("*"),vn=T("@*"),An=T("name()"),yn=T("count()"),Bn=T("position()");var Ba=function(){};Ba.prototype.get=function(){};Ba.prototype.set=function(a){};Ba.prototype.r=function(a){};Ba.prototype.h=function(a){};Ba.prototype.s=function(a){};Ba.prototype.R=function(a,b){};Ba.prototype.g=function(){};Ba.prototype.Xa=function(a){};Ba.prototype.j=function(){};Ba.prototype.load=function(){};Ba.prototype.M=function(){};var fc="NOT_LOADED",Ya=function(){};Ya.prototype.set=function(a){};Ya.prototype.r=function(a){return new Za};Ya.prototype.h=function(a,b){return null};Ya.prototype.s=
function(a){return null};Ya.prototype.j=function(){var a="",b=this.g();if(this.Bb&&this.Bb()){a=this.Bb().j()+(b.indexOf("[")!=-1?"":"/")}return a+b};Ya.prototype.load=function(){};Ya.prototype.Bb=null;var Hb=function(){};Hb.prototype.add=function(a){};Hb.prototype.get=function(a){};Hb.prototype.U=function(a){};Hb.prototype.w=function(){};Hb.prototype.Da=function(a,b){};Hb.prototype.removeNode=function(a){};var ea=function(a){this.e={};this.Ib=[];this.Sa={};if(a){for(var b=0,c;c=a[b];b++){this.add(c)}}};
ea.prototype.add=function(a){this.Ib.push(a);var b=a.g();if(b!=null){this.e[b]=a;this.Sa[b]=this.Ib.length-1}};ea.prototype.get=function(a){return this.e[a]||null};ea.prototype.U=function(a){return this.Ib[a]||null};ea.prototype.w=function(){return this.Ib.length};ea.prototype.Da=function(a,b){if(b==null){this.removeNode(a)}else{var c=this.Sa[a];if(c!=null){this.e[a]=b;this.Ib[c]=b}else{this.add(b)}}};ea.prototype.removeNode=function(a){var b=this.Sa[a];if(b!=null){this.Ib.splice(b,1);delete this.e[a];
delete this.Sa[a];for(var c in this.Sa){if(this.Sa[c]>b){this.Sa[c]--}}}return b!=null};ea.prototype.indexOf=function(a){return this.Sa[a]};var Za=function(){ea.call(this)};Za.inherits(ea);Za.prototype.add=function(a){throw Error("Can't add to EmptyNodeList");};var va=Df("ds");var Z=function(){this.ub=new ea;this.Lf=new I;this.Xe={};this.nc={};this.Jf={};this.Oi=0;this.Fj={}},Jd=null;Z.inherits(Ba);var E=function(){if(!Jd){Jd=new Z}return Jd};Z.prototype.Gf=function(a,b,c){var d=!(!b),e=c||a.g();if(!ab(e,"$")){e="$"+e}a.Xa(e);this.ub.add(a);this.Lf.set(e,d)};Z.prototype.$b=function(a){if(this.Jf[a]){return this.Jf[a].bd()}else{return this.ub.get(a)}};Z.prototype.get=function(){return this.ub};Z.prototype.set=function(a){throw Error("Can't set on DataManager");};Z.prototype.r=
function(a){if(a){return new ea([this.h(a)])}else{return this.ub}};Z.prototype.h=function(a){return this.$b(a)};Z.prototype.s=function(a){var b=this.$b(a);return b?b.get():null};Z.prototype.g=function(){return""};Z.prototype.j=function(){return""};Z.prototype.load=function(){var a=this.ub.w();for(var b=0;b<a;b++){var c=this.ub.U(b),d=this.Lf.get(c.g());if(d){c.load()}}};Z.prototype.M=function(){return false};Z.prototype.$a=function(a,b,c){var d=0;if(Fa(b,"/...")){d=1000;b=b.substring(0,b.length-4)}else if(Fa(b,
"/*")){d=1;b=b.substring(0,b.length-2)}c=c||"";var e=b+":"+c+":"+ga(a),f={dataPath:b,id:c,fn:a},h=T(b),i=ga(a);if(!this.nc[i]){this.nc[i]={}}this.nc[i][e]={listener:f,items:[]};while(h){var j={listener:f,maxAncestors:d},k=this.Xe[h.fd()];if(k==null){k={};this.Xe[h.fd()]=k}k[e]=j;d=0;h=h.ya();this.nc[i][e].items.push({key:e,obj:k})}};Z.prototype.Xh=function(a,b,c){if(b&&Fa(b,"/...")){b=b.substring(0,b.length-4)}else if(b&&Fa(b,"/*")){b=b.substring(0,b.length-2)}this.Yh(this.nc,false,a,b,c)};Z.prototype.Yh=
function(a,b,c,d,e){var f=ga(c),h=a[f];if(h!=null){for(var i in h){var j=h[i],k=j.listener;if((!d||d==k["dataPath"])&&(!e||e==k["id"])){if(b){this.Xh(k["fn"],k["dataPath"],k["id"])}if(j.items){for(var l=0;l<j.items.length;l++){var r=j.items[l];delete r.obj[r.key]}}delete h[i]}}}};Z.prototype.v=function(a){if(this.Ej){return}var b=T(a),c=0;while(b){var d=this.Xe[b.fd()];if(d){for(var e in d){var f=d[e],h=f.listener;if(c<=f.maxAncestors){h.fn(a,h.id)}}}c++;b=b.ya()}this.Oi++};var Xa=function(a,b){if(!a){throw Error("Cannot create a fast data node without a data name");}this["__dataName"]=a;this["__parent"]=b};Xa.prototype.g=function(){return this["__dataName"]};Xa.prototype.Xa=function(a){this["__dataName"]=a};Xa.prototype.j=function(){var a;if(this["__parent"]){a=this["__parent"].j()+"/"}else{a=""}return a+this.g()};var N=function(a,b,c){Xa.call(this,b,c);this.je(a)};N.inherits(Xa);N.prototype.je=function(a){for(var b in a){this[b]=a[b]}};var ec=function(a,b,c){if(x(a)){return new U(a,
b,c)}else if(qa(a)){return new N(a,b,c)}else{return new Na(a,b,c)}},Lj=new Za;N.prototype.set=function(a){throw"Not implemented yet";};N.prototype.r=function(a){if(!a||a=="*"){return this}else if(a.indexOf("*")==-1){var b=this.h(a);return b?new U([b],null):new Za}else{throw Error("Unsupported selector: "+a);}};N.prototype.Af=function(a){var b=this[a];if(b!=null&&!b.g){this[a]=ec(this[a],a,this)}};N.prototype.h=function(a,b){this.Af(a);var c=this[a]||null;if(c==null&&b){c=new N({},a,this);this[a]=
c}return c};N.prototype.R=function(a,b){if(b!=null){this[a]=b}else{delete this[a]}E().v(this.j()+"/"+a)};N.prototype.s=function(a){var b=this[a];if(b!=null){return b.g?b.get():b}else{return null}};N.prototype.M=function(){return false};N.prototype.Ma=function(){var a={};for(var b in this){if(!ab(b,"__")&&!ib(this[b])){a[b]=this[b]["__dataName"]?this[b].Ma():this[b]}}return a};N.prototype.clone=function(){return ec(this.Ma(),this.g())};N.prototype.add=function(a){this.R(a.g(),a)};N.prototype.get=function(a){if(arguments.length==
0){return this}else{return this.h(a)}};N.prototype.U=function(a){var b=0;for(var c in this){if(!ab(c,"__")&&!ib(this[c])){if(b==a){this.Af(c);return this[c]}++b}}return null};N.prototype.w=function(){var a=0;for(var b in this){if(!ab(b,"__")&&!ib(this[b])){++a}}return a};N.prototype.Da=function(a,b){this.R(a,b)};N.prototype.removeNode=function(a){delete this[a]};var Na=function(a,b,c){this.rb=a;Xa.call(this,b,c)};Na.inherits(Xa);Na.prototype.get=function(){return this.rb};Na.prototype.set=function(a){if(x(a)||
qa(a)){throw"can only set PrimitiveFastDataNode to primitive values";}this.rb=a;E().v(this.j())};Na.prototype.r=function(){return Lj};Na.prototype.h=function(a){return null};Na.prototype.s=function(a){return null};Na.prototype.R=function(a,b){throw Error("Cannot set a child node for a PrimitiveFastDataNode");};Na.prototype.M=function(){return false};Na.prototype.Ma=function(){return this.rb};var U=function(a,b,c){this.A=[];for(var d=0;d<a.length;++d){var e=a[d].id||"["+d+"]";this.A.push(ec(a[d],e,
this));if(a[d].id){if(!this.e){this.e={}}this.e[a[d].id]=d}}Xa.call(this,b,c)};U.inherits(Xa);U.prototype.set=function(a){throw Error("Cannot set a FastListNode to a new value");};U.prototype.r=function(){return this};U.prototype.h=function(a,b){var c=this.cc(a);if(c==null&&this.e){c=this.e[a]}if(c!=null&&this.A[c]){return this.A[c]}else if(b){this.R(a,{});return this.h(a)}else{return null}};U.prototype.s=function(a){var b=this.h(a);return b?b.get():null};U.prototype.cc=function(a){if(a.charAt(0)==
"["&&a.charAt(a.length-1)=="]"){return Number(a.substring(1,a.length-1))}else{return null}};U.prototype.R=function(a,b){var c=this.A.length;if(b!=null){if(!b.g){b=ec(b,a,this)}var d=this.cc(a);if(d!=null){if(d<0||d>=this.A.length){throw Error("List index out of bounds: "+d);}this.A[a]=b}else{if(!this.e){this.e={}}this.A.push(b);this.e[a]=this.A.length-1}}else{this.removeNode(a)}var e=E();e.v(this.j()+"/"+a);if(this.A.length!=c){this.nd()}};U.prototype.nd=function(){var a=E();a.v(this.j());a.v(this.j()+
"/count()")};U.prototype.M=function(){return true};U.prototype.Ma=function(){var a=[];for(var b=0;b<this.A.length;++b){a.push(this.A[b].Ma())}return a};U.prototype.add=function(a){if(!a.g){a=ec(a,String(this.A.length),this)}this.A.push(a);var b=E();b.v(this.j()+"/["+(this.A.length-1)+"]");this.nd()};U.prototype.get=function(a){if(arguments.length==0){return this.A}else{return this.h(a)}};U.prototype.U=function(a){var b=this.A[a];return b!=null?b:null};U.prototype.w=function(){return this.A.length};
U.prototype.Da=function(a,b){throw Error("Setting child nodes of a FastListNode is not implemented, yet");};U.prototype.removeNode=function(a){var b=this.cc(a);if(b==null&&this.e){b=this.e[a]}if(b!=null){this.A.splice(b,1);if(this.e){var c=null;for(var d in this.e){if(this.e[d]==b){c=d}else if(this.e[d]>b){--this.e[d]}}if(c){delete this.e[c]}}var e=E();e.v(this.j()+"/["+b+"]");this.nd()}};U.prototype.indexOf=function(a){var b=this.cc(a);if(b==null&&this.e){b=this.e[a]}if(b==null){throw Error("Cannot determine index for: "+
a);}return b};var Jj=function(a,b){if(b&&!a){throw Error("Can't create document with namespace and no root tag");}if(document.implementation&&document.implementation.createDocument){return document.implementation.createDocument(b||"",a||"",null)}else if(typeof ActiveXObject!="undefined"){var c=new ActiveXObject("MSXML2.DOMDocument");if(c){if(a){c.appendChild(c.createNode(1,a,b||""))}return c}}throw Error("Your browser does not support creating new documents");},Kj=function(a){if(typeof DOMParser!="undefined"){return(new DOMParser).parseFromString(a,
"application/xml")}else{var b=new ActiveXObject("MSXML2.DOMDocument");b.loadXML(a);return b}};var kg=function(){var a=Bk();if(a){return new ActiveXObject(a)}else{return new XMLHttpRequest}},ee=null,Bk=function(){if(!ee&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);ee=c;return c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return ee};var $=function(a,b,c){this.i=b;this.F=c||(a?a.nodeName:null);this.pi(a)};$.prototype.pi=function(a){this.ba=a;if(a!=null){switch(a.nodeType){case 2:case 3:this.rb=a.nodeValue;break;case 1:if(a.childNodes.length==1&&a.firstChild.nodeType==3){this.rb=a.firstChild.nodeValue}}}};$.prototype.Ha=function(){if(this.B){return}var a=new ea;if(this.ba!=null){var b=this.ba.childNodes;for(var c=0,d;d=b[c];c++){if(d.nodeType!=3||!Mj(d.nodeValue)){var e=new $(d,this,d.nodeName);a.add(e)}}}this.B=a};$.prototype.Tf=
function(){if(this.Kf){return}var a=new ea;if(this.ba!=null&&this.ba.attributes!=null){var b=this.ba.attributes;for(var c=0,d;d=b[c];c++){var e=new $(d,this,d.nodeName);a.add(e)}}this.Kf=a};$.prototype.get=function(){this.Ha();return this.rb!=null?this.rb:this.B};$.prototype.set=function(a){throw Error("Can't set on XmlDataSource yet");};$.prototype.r=function(a){if(a&&a=="@*"){this.Tf();return this.Kf}else if(a==null||a=="*"){this.Ha();return this.B}else{throw new Error("Unsupported selector");}};
$.prototype.h=function(a){if(ab(a,"@")){var b=this.ba.getAttributeNode(a.substring(1));return b?new $(b,this):null}else{return this.r().get(a)}};$.prototype.s=function(a){if(ab(a,"@")){var b=this.ba.getAttributeNode(a.substring(1));return b?b.nodeValue:null}else{var b=this.h(a);return b?b.get():null}};$.prototype.g=function(){return this.F};$.prototype.Xa=function(a){this.F=a};$.prototype.j=function(){var a="";if(this.i){a=this.i.j()+(this.F.indexOf("[")!=-1?"":"/")}return a+this.F};$.prototype.load=
function(){};var Mj=function(a){return/^[\r\n\t ]*$/.test(a)},Ld=function(){return Jj("nothing")},gc=function(a,b){$.call(this,null,null,b);if(a){this.o=new s(a)}else{this.o=null}};gc.inherits($);gc.prototype.L=fc;gc.prototype.load=function(){if(this.o){va.info("Sending XML request for DataSource "+this.g()+" to "+this.o);this.L="LOADING";this.Xi=new qb(this.o,z(this.Dc,this),z(this.jg,this))}else{this.ba=Ld();this.L=fc}};gc.prototype.Dc=function(){va.info("Got data for DataSource "+this.g());var a=
this.Xi.Dg(),b=a.responseXML;if(b&&!b.hasChildNodes()&&qa(a.responseText)){b=Kj(a.responseText)}if(!b||!b.hasChildNodes()){this.L="FAILED";this.ba=Ld()}else{this.L="LOADED";this.ba=b.documentElement}if(this.g()){E().v(this.g())}};gc.prototype.jg=function(){va.info("Data retrieve failed for DataSource "+this.g());this.L="FAILED";this.ba=Ld();if(this.g()){E().v(this.g())}};var qb=function(a,b,c){this.pb=null;this.ej=b;this.zh=c||this.Og;this.o=new s(a);this.lh()};qb.prototype.lh=function(){this.pb=
new kg;if(this.pb){try{this.pb.onreadystatechange=z(this.qc,this);this.pb.open("GET",String(this.o),true);this.pb.send(null)}catch(a){this.zh.call(this)}}};qb.prototype.qc=function(){var a=this.pb,b=a.readyState;if(b==4){var c=a.status,d;if(c==200||c==0){d=z(this.pc,this)}else{d=z(this.Ah,this)}window.setTimeout(d,10)}};qb.prototype.pc=function(){this.ej(this)};qb.prototype.Ah=function(){this.zh(this)};qb.prototype.Og=function(){throw Error("Error fetching data from URL: "+this.o);};qb.prototype.Dg=
function(){return this.pb};var Mb="complete";;var Wa=function(){};Wa.prototype.Rc=false;Wa.prototype.$=function(){return this.Rc};Wa.prototype.dispose=function(){if(!this.Rc){this.Rc=true}};var kc=function(){};kc.prototype.If=function(a){throw Error("Not implemented");};kc.prototype.Wh=function(a){throw Error("Not implemented");};var aa=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};aa.inherits(Wa);aa.prototype.Wa=false;aa.prototype.vc=true;aa.prototype.stopPropagation=function(){this.Wa=true};aa.prototype.preventDefault=function(){this.vc=false};var F=function(a,b){if(a){this.init(a,b)}};F.inherits(aa);F.prototype.type=null;F.prototype.target=null;F.prototype.currentTarget=null;F.prototype.relatedTarget=null;F.prototype.offsetX=0;F.prototype.offsetY=0;F.prototype.clientX=0;F.prototype.clientY=0;F.prototype.screenX=0;F.prototype.screenY=0;F.prototype.button=0;F.prototype.keyCode=0;F.prototype.charCode=0;F.prototype.ctrlKey=false;F.prototype.altKey=false;F.prototype.shiftKey=false;F.prototype.metaKey=false;F.prototype.ta=null;F.prototype.init=
function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(G(a.relatedTarget)){this.relatedTarget=a.relatedTarget}else if(this.type==Jb){this.relatedTarget=a.fromElement}else if(this.type=="mouseout"){this.relatedTarget=a.toElement}else{this.relatedTarget=null}this.offsetX=G(a.layerX)?a.layerX:a.offsetX;this.offsetY=G(a.layerY)?a.layerY:a.offsetY;this.clientX=G(a.clientX)?a.clientX:a.pageX;this.clientY=G(a.clientY)?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=
a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type==ic?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ta=a};F.prototype.stopPropagation=function(){this.Wa=true;if(this.ta.stopPropagation){this.ta.stopPropagation()}else{this.ta.cancelBubble=true}};F.prototype.preventDefault=function(){this.vc=false;if(!this.ta.preventDefault){this.ta.returnValue=false}else{this.ta.preventDefault()}};F.prototype.dispose=
function(){if(!this.$()){aa.prototype.dispose.call(this);this.ta=null}};var Ka=function(){};Ka.prototype.jd=null;Ka.prototype.listener=null;Ka.prototype.proxy=null;Ka.prototype.src=null;Ka.prototype.type=null;Ka.prototype.capture=null;Ka.prototype.handler=null;Ka.prototype.Lc=false;Ka.prototype.init=function(a,b,c,d,e,f){if(ib(a)){this.jd=true}else if(a&&a.hb&&ib(a.hb)){this.jd=false}else{throw Error("Invalid listener argument");}this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!(!e);this.handler=f;this.Lc=false};Ka.prototype.hb=function(a){if(this.jd){return this.listener.call(this.handler||
this.src,a)}return this.listener.hb.call(this.listener,a)};var ha=function(a,b){Wa.call(this);this.$i=b;this.xb=[];for(var c=0;c<a;c++){this.ob(this.Qd())}};ha.inherits(Wa);ha.prototype.Oc=null;ha.prototype.Qc=null;ha.prototype.Ac=function(a){this.Oc=a};ha.prototype.li=function(a){this.Qc=a};ha.prototype.Ab=function(){if(this.xb.length){return this.xb.shift()}return this.Qd()};ha.prototype.ob=function(a){if(this.xb.length<this.$i){this.xb.push(a)}else{this.ae(a)}};ha.prototype.Qd=function(){if(this.Oc){return this.Oc()}else{return{}}};ha.prototype.ae=function(a){if(this.Qc){this.Qc(a)}else{if(ib(a.dispose)){a.dispose()}else{for(var b in a){delete a[b]}}}};
ha.prototype.dispose=function(){if(!this.$()){ha.N.dispose.call(this);var a=this.xb;while(a.length){this.ae(a.shift())}this.xb=null}};var Oa={},ma={},Of=new ha(0,200),Qc=new ha(0,600);Qc.Ac(function(){return[]});Qc.li(function(a){a.length=0});var Nd=new ha(0,600);Nd.Ac(function(){return function(a){var b=arguments.callee;return Uj.call(b.src,b.key,b.type,a)}});var Qj=function(){return new Ka},Od=new ha(0,600);Od.Ac(Qj);var Nj=function(){return new F},Oj=function(){var a=null;if(H){a=new ha(0,600);a.Ac(Nj)}return a},Mf=Oj(),Qf="on",Pf={},lc="_",n=function(a,b,c,d,e){if(x(b)){for(var f=0;f<b.length;f++){n(a,b[f],c,d,e)}return null}var h=
rb(b),i=Oc(a,h,c,d,e);if(i in Oa){return i}var j=ga(a);if(!(j in ma)){ma[j]=Of.Ab();ma[j].n=0}if(!(h in ma[j])){ma[j].n++;ma[j][h]=Qc.Ab()}ma[j][h].push(i);var k=Nd.Ab();k.src=a;k.key=i;k.type=b;var l=Od.Ab();l.init(c,k,a,b,d,e);Oa[i]=l;if(b instanceof kc){b.If(l)}else{if(a.addEventListener){if(a==q||!a.Ud){a.addEventListener(b,k,d)}}else{a.attachEvent(Tj(b),k)}}return i},Yj=function(a,b,c,d,e){if(x(b)){for(var f=0;f<b.length;f++){Yj(a,b[f],c,d,e)}return null}var h=n(a,b,c,d,e),i=Oa[h];i.Lc=true;
return h},Y=function(a,b,c,d,e){if(x(b)){for(var f=0;f<b.length;f++){Y(a,b[f],c,d,e)}return null}var h=Oc(a,b,c,d,e);return mc(h)},mc=function(a){if(!(a in Oa)){return false}var b=Oa[a],c=b.src,d=b.type,e=b.proxy;if(d instanceof kc){d.Wh(b)}else{if(c.removeEventListener){if(c==q||!c.Ud){c.removeEventListener(d,e,b.capture)}}else if(c.detachEvent){c.detachEvent(Qf+d,e)}}delete Oa[a];Od.ob(b);Nd.ob(e);var f=rb(d),h=ga(c),i=ma[h],j=i[f];wd(j,a);if(j.length==0){i.n--;delete i[f];Qc.ob(j)}if(i.n==0){delete ma[h];
Of.ob(i)}return true},Zj=function(a,b,c){var d=0;if(a){var e=Rj(a,b,c);for(var f=0;f<e.length;f++){var h=e[f];if(h){mc(Oc(h.src,h.type,h.listener,h.capture,h.handler));d++}}}else{for(var i in Oa){mc(i);d++}}return d},Rj=function(a,b,c){var d=ga(a),e=[];if(d in ma){var f=ma[d];if(b){var h=rb(b);if(b in f){Nf(e,f[h],c)}}else{for(var i in f){if(typeof f[i]!="number"){Nf(e,f[i],c)}}}}return e},rb=function(a){return a instanceof kc?ga(a):a},Nf=function(a,b,c){var d=!G(c);for(var e=0;e<b.length;e++){var f=
b[e],h=Oa[f];if(d||h.capture==c){a.push(h)}}},Sj=function(a,b,c){var d=ga(a);if(d in ma){var e=rb(b);if(e in ma[d]){return ma[d][e]}}return null},la="click",jc="mousedown",Jb="mouseover",Nc="mousemove",ic="keypress",hc="keydown",Uj=function(a,b,c){var d=Oa[a];if(!d){return undefined}if(!d.src.addEventListener&&!Wj(d)){return undefined}if(!c&&window.event||c&&Xj(c)){var e=Mf.Ab();e.init(c||window.event,this);try{e.stopPropagation();e.Wa=false;var f,h=false;if(Pd){f=[]}else{f=$j;f.length=0;h=true;Pd=
true}for(var i=e.currentTarget;i;i=i.parentNode){f.push(i)}var j=true;for(var k=f.length-1;!e.Wa&&k>=0;k--){e.currentTarget=f[k];j&=Pc(f[k],b,true,e)}for(var k=0;!e.Wa&&k<f.length;k++){e.currentTarget=f[k];j&=Pc(f[k],b,false,e)}if(h){Pd=false}return j}finally{e.dispose();Mf.ob(e)}}else if(c&&Vj(c)){var l=new F(c,this);try{return Md(d,l)}finally{l.dispose()}}else{return Md(d,c)}},Tj=function(a){var b=Pf[a];if(!b){b=Qf+a;Pf[a]=b}return b},$j=[],Pd=false,Wj=function(a){var b=rb(a.type),c=Oc(a.src,a.type,
a.listener,a.capture,a.handler),d=ga(a.src);return ma[d][b][0]==c},Pc=function(a,b,c,d){var e=1,f=Sj(a,b,c);if(f){f=vf(f);for(var h=0;h<f.length;h++){var i=f[h],j=Oa[i];if(j&&j.capture==c){e&=Md(j,d)!==false;if(j.Lc){mc(i)}}}}return Boolean(e)},Md=function(a,b){return a.hb.call(a,b)},Pj=[],Oc=function(a,b,c,d,e){if(H){var f=Pj;f[0]=ga(a);f[1]=rb(b);f[2]=ga(c);f[3]=d?"1":"0";f[4]=e?ga(e):"";return f.join(lc)}else{return ga(a)+lc+rb(b)+lc+ga(c)+lc+Boolean(d)+lc+(e?ga(e):"")}},Vj=function(a){return qa(a)&&
/event/i.test(a)},Xj=function(a){return H&&qa(a)&&G(a.srcElement)&&G(a.cancelBubble)&&G(a.type)};var K=function(){};K.inherits(Wa);K.prototype.dd=function(){return null};K.prototype.addEventListener=function(a,b,c,d){n(this,a,b,c,d)};K.prototype.removeEventListener=function(a,b,c,d){Y(this,a,b,c,d)};K.prototype.dispatchEvent=function(a){if(da(a)){a=new aa(a,this)}else if(!(a instanceof aa)){var b=a;a=new aa(a.type,this);jg(a,b)}else{a.target=a.target||this}var c=[];for(var d=this;d;d=d.dd()){c.push(d)}var e=1;for(var f=c.length-1;!a.Wa&&f>=0;f--){a.currentTarget=c[f];e&=Pc(c[f],a.type,true,a)&&
a.vc!=false}for(var f=0;!a.Wa&&f<c.length;f++){a.currentTarget=c[f];e&=Pc(c[f],a.type,false,a)&&a.vc!=false}return Boolean(e)};K.prototype.dispose=function(){if(!this.$()){Wa.prototype.dispose.call(this);Zj(this)}};K.prototype.Ud=true;var xk=function(a){return eval("("+a+")")},tc=function(){};tc.prototype.nf=function(a,b){switch(typeof a){case "string":this.mf(a,b);break;case "number":this.ii(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==null){b.push("null");break}if(x(a)){this.hi(a,b);break}this.ji(a,b);break;default:throw Error("Unknown type: "+typeof a);}};var ce={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"};
tc.prototype.mf=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,function(c){if(c in ce){return ce[c]}var d=c.charCodeAt(0),e="\\u";if(d<16){e+="000"}else if(d<256){e+="00"}else if(d<4096){e+="0"}return ce[c]=e+d.toString(16)}),'"')};tc.prototype.ii=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};tc.prototype.hi=function(a,b){var c=a.length;b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);this.nf(a[e],b);d=","}b.push("]")};tc.prototype.ji=function(a,b){b.push("{");var c=
"";for(var d in a){b.push(c);this.mf(d,b);b.push(":");this.nf(a[d],b);c=","}b.push("}")};var na=function(a,b,c,d){K.call(this);if(!x(a)||!x(b)){throw Error("Start and end parameters must be arrays");return}if(a.length!=b.length){throw Error("Start and end points must be the same length");return}this.Ya=a;this.de=b;this.Uc=c;this.Ef=d;this.cb=[]};na.inherits(K);var wa="begin",Pa="animate";na.prototype.na=0;na.prototype.ne=0;na.prototype.Q=0;na.prototype.qb=null;na.prototype.ee=null;na.prototype.md=null;na.prototype.Fc=null;na.prototype.play=function(a){if(a||this.na==0){this.Q=0;this.cb=
this.Ya}else if(this.na==1){return false}q.clearTimeout(this.Fc);this.qb=(new Date).valueOf();if(this.na==-1){this.qb-=this.Uc*this.Q}this.ee=this.qb+this.Uc;this.md=this.qb;if(this.Q==0){this.ra(wa)}this.ra("play");if(this.na==-1){this.ra("resume")}this.na=1;this.Vd();return true};na.prototype.stop=function(a){q.clearTimeout(this.Fc);this.na=0;if(a)this.Q=1;this.Ad(this.Q);this.ra("stop");this.ra("end")};na.prototype.Vd=function(){q.clearTimeout(this.Fc);var a=(new Date).valueOf();this.Q=(a-this.qb)/
(this.ee-this.qb);if(this.Q>=1)this.Q=1;this.ne=1000/(a-this.md);this.md=a;if(ib(this.Ef)){this.Ad(this.Ef(this.Q))}else{this.Ad(this.Q)}if(this.Q==1){this.na=0;this.ra("finish");this.ra("end")}else if(this.na==1){this.ra(Pa);var b=this.Vd.bind(this);this.Fc=q.setTimeout(b,20)}};na.prototype.Ad=function(a){this.cb=new Array(this.Ya.length);for(var b=0;b<this.Ya.length;b++){this.cb[b]=(this.de[b]-this.Ya[b])*a+this.Ya[b]}};na.prototype.ra=function(a){this.dispatchEvent(new ae(a,this))};var ae=function(a,
b){aa.call(this,a);this.coords=b.cb;this.x=b.cb[0];this.y=b.cb[1];this.z=b.cb[2];this.duration=b.Uc;this.progress=b.Q;this.fps=b.ne;this.state=b.na;this.anim=b};ae.inherits(aa);ae.prototype.Nd=function(){return ij(this.coords,Math.round)};var W=function(a,b,c,d,e){na.call(this,b,c,d,e);this.element=a};W.inherits(na);var Yc=function(a,b,c,d,e){W.apply(this,arguments);if(b.length!=2||c.length!=2){throw"Start and end points must be 2D";return}var f=[wa,Pa,"end"];n(this,f,this.wh,false,this)};Yc.inherits(W);Yc.prototype.wh=function(a){this.element.style.left=Math.round(a.x)+"px";this.element.style.top=Math.round(a.y)+"px"};var hg=function(a,b,c,d){var e=[a.offsetLeft,a.offsetTop];n(this,wa,this.ui,false,this);Yc.call(this,
a,e,b,c,d)};hg.inherits(Yc);hg.prototype.ui=function(a){this.Ya=[this.element.offsetLeft,this.element.offsetTop]};var be=function(a,b,c,d,e){W.apply(this,arguments);if(b.length!=2||c.length!=2){throw"Start and end points must be 2D";return}var f=[wa,Pa,"end"];n(this,f,this.uc,false,this);this.th=Math.max(this.de[0],this.Ya[0]);this.rh=Math.max(this.de[1],this.Ya[1])};be.inherits(W);be.prototype.uc=function(a){this.Rf(Math.round(a.x),Math.round(a.y),this.th,this.rh);this.element.style.width=
Math.round(a.x)+"px";this.element.style.marginLeft=Math.round(a.x)-this.th+"px";this.element.style.marginTop=Math.round(a.y)-this.rh+"px"};be.prototype.Rf=function(a,b,c,d){this.element.style.clip="rect("+(d-b)+"px "+c+"px "+d+"px "+(c-a)+"px)"};var gg=function(a,b,c,d,e){W.apply(this,arguments);if(b.length!=2||c.length!=2){throw"Start and end points must be 2D";return}var f=[wa,Pa,"end"];n(this,f,this.di,false,this)};gg.inherits(W);gg.prototype.di=function(a){this.element.scrollLeft=
Math.round(a.x);this.element.scrollTop=Math.round(a.y)};var eg=function(a,b,c,d,e){W.apply(this,arguments);if(b.length!=2||c.length!=2){throw"Start and end points must be 2D";return}var f=[wa,Pa,"end"];n(this,f,this.uc,false,this)};eg.inherits(W);eg.prototype.uc=function(a){this.element.style.width=Math.round(a.x)+"px";this.element.style.height=Math.round(a.y)+"px"};var fg=function(a,b,c,d,e){W.call(this,a,[b],[c],d,e);var f=[wa,Pa,"end"];n(this,f,this.ci,false,this)};fg.inherits(W);
fg.prototype.ci=function(a){this.element.style.width=Math.round(a.x)+"px"};var Xc=function(a,b,c,d,e){W.call(this,a,[b],[c],d,e);var f=[wa,Pa,"end"];n(this,f,this.bi,false,this)};Xc.inherits(W);Xc.prototype.bi=function(a){this.element.style.height=Math.round(a.x)+"px"};var Ea=function(a,b,c,d,e){if(sc(b))b=[b];if(sc(c))c=[c];W.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1){throw"Start and end points must be 1D";return}var f=[wa,Pa,"end"];n(this,f,this.ig,false,this)};Ea.inherits(W);
Ea.prototype.ig=function(a){pe(this.element,a.x)};Ea.prototype.show=function(a){this.element.style.display=""};Ea.prototype.hide=function(a){this.element.style.display="none"};var uk=function(a,b,c){Ea.call(this,a,1,0,b,c)};uk.inherits(Ea);var sk=function(a,b,c){Ea.call(this,a,0,1,b,c)};sk.inherits(Ea);var vk=function(a,b,c){Ea.call(this,a,1,0,b,c);n(this,wa,this.show,false,this);n(this,"end",this.hide,false,this)};vk.inherits(Ea);var tk=function(a,b,c){Ea.call(this,a,0,1,b,c);n(this,wa,this.show,
false,this)};tk.inherits(Ea);var cg=function(a,b,c,d,e){W.apply(this,arguments);if(b.length!=3||c.length!=3){throw"Start and end points must be 3D";return}var f=[wa,Pa,"end"];n(this,f,this.zc,false,this)};cg.inherits(W);cg.prototype.zc=function(a){var b="rgb("+a.Nd().join(",")+")";this.element.style.backgroundColor=b};var dg=function(a,b,c,d,e){W.apply(this,arguments);if(b.length!=3||c.length!=3){throw"Start and end points must be 3D";return}var f=
[wa,Pa,"end"];n(this,f,this.zc,false,this)};dg.inherits(W);dg.prototype.zc=function(a){var b="rgb("+a.Nd().join(",")+")";this.element.style.color="rgb("+b+")"};var v=function(a){K.call(this);this.d=a||Fd()};v.inherits(K);var Wk=0,te="Component already rendered",Dg="Unable to set parent component";v.prototype.ic=null;v.prototype.d=null;v.prototype.ib=false;v.prototype.a=null;v.prototype.vh=null;v.prototype.i=null;v.prototype.bb=null;v.prototype.Sb=null;v.prototype.yf=null;v.prototype.aa=function(){return this.ic||(this.ic=this.wg())};v.prototype.Zc=function(){return"ui.Component"};v.prototype.bc=function(){return this.a};v.prototype.ri=function(a){if(this==
a){throw Error(Dg);}if(a&&this.i&&this.i.oe(this.ic)){throw Error(Dg);}this.i=a};v.prototype.ya=function(){return this.i};v.prototype.dd=function(){return this.i};v.prototype.Fb=function(){return this.ib};v.prototype.m=function(){this.a=this.d.createElement("div")};v.prototype.render=function(a){this.Ca(a)};v.prototype.Ca=function(a,b){if(this.ib){throw Error(te);}if(!this.a){this.m()}if(a){a.insertBefore(this.a,b||null)}else{this.d.wa().body.appendChild(this.a)}if(!this.i||this.i.Fb()){this.eb()}};
v.prototype.decorate=function(a){if(this.ib){throw Error(te);}else if(a&&this.Rb(a)){this.yf=true;this.Pc(a);this.eb()}else{throw Error("Invalid element to decorate");}};v.prototype.Rb=function(a){return true};v.prototype.Pc=function(a){this.a=a};v.prototype.eb=function(){this.ib=true;this.Yc(function(a){if(a.bc()){a.eb()}})};v.prototype.fb=function(){this.Yc(function(a){if(a.Fb()){a.fb()}});this.ib=false};v.prototype.dispose=function(){if(!this.$()){v.N.dispose.call(this);if(this.ib){this.fb()}this.Yc(function(a){a.dispose()});
if(!this.yf&&this.a){Ma(this.a)}this.bb=null;this.Sb=null;this.a=null;this.vh=null;this.i=null}};v.prototype.wg=function(){return this.Zc()+"."+Wk++};v.prototype.oe=function(a){return this.Sb?Ek(this.Sb,a)||null:null};v.prototype.Yc=function(a,b){if(this.bb){bc(this.bb,a,b)}};v.prototype.removeChild=function(a,b){if(a){var c=da(a)?a:a.aa();a=this.oe(c);if(c&&a){og(this.Sb,c);wd(this.bb,a);if(b){a.fb();if(a.a){Ma(a.a)}}a.ri(null)}}if(!a){throw Error("Child is not in parent component");}return a};var $a=function(a,b,c){this.target=a;this.handle=b||a;this.fg=true;this.Xb=false;this.limits=c||new vb;this.ia=this.target.ownerDocument||this.target.document;this.screenX=0;this.screenY=0;this.deltaX=0;this.deltaY=0;n(this.handle,jc,this.vf,true,this);n(this.ia,Nc,this.lb,false,this);n(this.ia,"mouseup",this.ce,false,this)};$a.inherits(K);$a.prototype.dispose=function(){if(this.$())return;K.prototype.dispose.call(this);Y(this.handle,jc,this.vf,true,this);Y(this.ia,Nc,this.lb,false,this);Y(this.ia,
"mouseup",this.ce,false,this);delete this.target;delete this.handle};$a.prototype.vf=function(a){if(this.fg&&!this.Xb){var b=this.dispatchEvent(new rc("start",this,a.clientX,a.clientY));if(b!==false){this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.Xb=true;a.preventDefault()}}};$a.prototype.ce=function(a){if(this.Xb){this.Xb=false;var b=this.Ve(this.deltaX),c=this.We(this.deltaY);this.dispatchEvent(new rc("end",this,a.clientX,
a.clientY,b,c))}};$a.prototype.lb=function(a){if(this.Xb&&this.fg){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.deltaX+=b;this.deltaY+=c;var d=this.Ve(this.deltaX),e=this.We(this.deltaY);this.screenX=a.screenX;this.screenY=a.screenY;var f=this.dispatchEvent(new rc("beforedrag",this,a.clientX,a.clientY,d,e));if(f!==false){this.ag(d,e);this.dispatchEvent(new rc("drag",this,a.clientX,a.clientY,d,e));a.preventDefault()}}};$a.prototype.Ve=function(a){var b=this.limits,c=typeof b.left!="undefined"?
b.left:null,d=typeof b.width!="undefined"?b.width:0,e=c!=null?c+d:Infinity,f=c!=null?c:-Infinity;return Math.min(e,Math.max(f,a))};$a.prototype.We=function(a){var b=this.limits,c=typeof b.top!="undefined"?b.top:null,d=typeof b.height!="undefined"?b.height:0,e=c!=null?c+d:Infinity,f=c!=null?c:-Infinity;return Math.min(e,Math.max(f,a))};$a.prototype.ag=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};var rc=function(a,b,c,d,e,f){aa.call(this,a);this.type=a;this.clientX=c;this.clientY=
d;this.left=G(e)?e:b.deltaX;this.top=G(f)?f:b.deltaY;this.dragger=b};rc.inherits(aa);var t=function(a,b,c){v.call(this,c);this.I=a||"modal-dialog";this.xf=!(!b);this.Y=Eg};t.inherits(v);t.prototype.I=null;t.prototype.xf=false;t.prototype.Gh=0.3;t.prototype.Gc="";t.prototype.sb="";t.prototype.Y=null;t.prototype.qa=false;t.prototype.X=null;t.prototype.O=null;t.prototype.S=null;t.prototype.Fa=null;t.prototype.oa=null;t.prototype.P=null;t.prototype.G=null;t.prototype.Zc=function(){return"ui.Dialog"};t.prototype.mg=function(){if(!this.Fb()){this.render()}return this.P};t.prototype.m=
function(){if(this.xf){this.O=this.d.m("iframe",{frameborder:0,style:"border: 0",className:this.I+"-bg"});Ga(this.O,false);pe(this.O,0)}this.X=this.d.m("div",{className:this.I+"-bg"});pe(this.X,this.Gh);Ga(this.X,false);this.a=this.d.m("div",{className:this.I},this.S=this.d.m("div",{className:this.I+"-title"},this.Fa=this.d.m("span",{className:this.I+"-title-text"},this.Gc),this.oa=this.d.m("span",{className:this.I+"-title-close"})),this.P=this.d.m("div",{className:this.I+"-content"}),this.G=this.d.m("div",
{className:this.I+"-buttons"}));if(this.sb){this.P.innerHTML=this.sb}Ga(this.a,false);if(this.Y){this.Y.Jc(this.G)}};t.prototype.render=function(a){if(this.Fb()){throw Error(te);}if(!this.a){this.m()}var b=a||this.d.wa().body;if(this.O){b.appendChild(this.O)}b.appendChild(this.X);t.N.render.call(this,b)};t.prototype.Rb=function(a){return a&&a.tagName&&a.tagName=="DIV"&&t.N.Rb.call(this,a)};t.prototype.Pc=function(a){this.a=a;ta(this.a,this.I);var b=this.I+"-content";this.P=cc(this.a,function(h){return h.nodeType==
1&&Eb(h,b)});if(this.P){this.sb=this.P.innerHTML}else{this.P=this.d.m("div",{className:b});if(this.sb){this.P.innerHTML=this.sb}this.a.appendChild(this.P)}var c=this.I+"-title",d=this.I+"-title-text",e=this.I+"-title-close";this.S=cc(this.a,function(h){return h.nodeType==1&&Eb(h,c)});if(this.S){this.Fa=cc(this.S,function(h){return h.nodeType==1&&Eb(h,d)});this.oa=cc(this.S,function(h){return h.nodeType==1&&Eb(h,e)})}else{this.S=this.d.m("div",{className:c});this.a.insertBefore(this.S,this.P)}if(this.Fa){this.Gc=
Jf(this.Fa)}else{this.Fa=this.d.m("span",{className:d},this.Gc);this.S.appendChild(this.Fa)}if(!this.oa){this.oa=this.d.m("span",{className:e},this.Gc);this.S.appendChild(this.oa)}var f=this.I+"-buttons";this.G=cc(this.a,function(h){return h.nodeType==1&&Eb(h,f)});if(this.G){this.Y=new ia(this.d);this.Y.decorate(this.G)}else{this.G=this.d.m("div",{className:f});this.a.appendChild(this.G);if(this.Y){this.Y.Jc(this.G)}}};t.prototype.eb=function(){t.N.eb.call(this);this.Tc=new $a(this.a,this.S);n(this.oa,
la,this.cf,false,this);n(this.G,la,this.$e,false,this)};t.prototype.fb=function(){Y(this.oa,la,this.cf,this);Y(this.G,la,this.$e,this);if(this.kb()){this.da(false)}if(this.Tc){this.Tc.dispose();this.Tc=null}t.N.fb.call(this)};t.prototype.da=function(a){if(a==this.qa){return}var b=this.d.wa(),c=Pb?window:Hd(b)||window;if(!this.Fb()){this.render(b.body)}if(a){this.hf();this.reposition();n(b,hc,this.af,true,this);n(c,"resize",this.bf,true,this)}else{Y(b,hc,this.af,true,this);Y(c,"resize",this.bf,true,
this)}if(this.O){Ga(this.O,a)}Ga(this.X,a);Ga(this.a,a);if(a&&this.yb().se()){var d=this.G.getElementsByTagName("button");for(var e=0,f;f=d[e];e++){if(f.name==this.yb().se()){f.focus();break}}}this.qa=a};t.prototype.kb=function(){return this.qa};t.prototype.hf=function(){if(this.O){Ga(this.O,false)}Ga(this.X,false);var a=this.d.wa(),b=Hd(a)||window,c=Gd(b),d=a.body.scrollWidth,e=Math.max(a.body.scrollHeight,c.height);if(this.O){Ga(this.O,true);Ob(this.O,d,e)}Ga(this.X,true);Ob(this.X,d,e);var f=ra(this.a);
this.Tc.limits=new vb(0,0,d-f.width,e-f.height)};t.prototype.reposition=function(){var a=this.d.wa(),b=Hd(a)||window,c=Dj(b),d=c.x,e=c.y,f=ra(this.a),h=Gd(b),i=Math.max(d+h.width/2-f.width/2,0),j=Math.max(e+h.height/2-f.height/2,0);qe(this.a,i,j)};t.prototype.cf=function(a){var b=this.yb(),c=b.Zb();if(c){var d=b.get(c);if(this.dispatchEvent(new bd(c,d))){this.da(false)}}else{this.da(false)}};t.prototype.dispose=function(){if(!this.$()){t.N.dispose.call(this);Ma(this.G);Ma(this.P);Ma(this.oa);Ma(this.Fa);
Ma(this.S);Ma(this.X);this.X=null;this.a=null;this.S=null;this.Fa=null;this.oa=null;this.P=null;this.G=null}};t.prototype.ki=function(a){this.Y=a;if(this.G){this.Y.Jc(this.G)}};t.prototype.yb=function(){return this.Y};t.prototype.$e=function(a){if(a.target.tagName=="BUTTON"){var b=a.target.name,c=this.yb().get(b);if(this.dispatchEvent(new bd(b,c))){this.da(false)}}};t.prototype.af=function(a){if(a.keyCode==27){var b=this.yb();if(b.Zb()){var c=b.get(b.Zb());if(this.dispatchEvent(new bd(b.Zb(),c))){this.da(false)}}else{this.da(false)}}};
t.prototype.bf=function(a){this.hf()};var ub=function(a,b){if(a instanceof ub){this.fa=a.Di()}else if(Lb(a)&&Ak(a)){this.fa=vf(a)}else if(a instanceof Ra){this.fa=ig(a.width,a.height)}else if(sc(a)&&sc(b)&&a>0&&b>0){this.fa=ig(a,b)}else{throw Error("Invalid argument(s) for Matrix contructor");}this.D=new Ra(this.fa.length,this.fa[0].length)},ig=function(a,b){var c=[];for(var d=0;d<a;d++){c[d]=[];for(var e=0;e<b;e++){c[d][e]=0}}return c},Ak=function(a){var b=0;for(var c=0;c<a.length;c++){if(!Lb(a[c])||b>0&&a[c].length!=b){return false}for(var d=
0;d<a[c].length;d++){if(!sc(a[c][d])){return false}}if(b==0){b=a[c].length}}return b!=0},zk=function(a,b,c){for(var d=0;d<a.Be().width;d++){for(var e=0;e<a.Be().height;e++){b.call(c,a.Ig(d,e),d,e,a)}}};ub.prototype.fa=null;ub.prototype.D=null;ub.prototype.Be=function(){return this.D};ub.prototype.Ig=function(a,b){if(a<0||a>=this.D.width||b<0||b>this.D.height){return null}return this.fa[a][b]};ub.prototype.Di=function(){return this.fa};ub.prototype.toString=function(){var a=0;zk(this,function(c){var d=
String(c).length;if(d>a){a=d}});var b=[];bc(this.fa,function(c,d){b.push("[ ");bc(c,function(e,f){e=String(e);b.push(Nk(" ",a-e.length)+e+" ")});b.push("]\n")});return b.join("")};var cb=function(a,b){var c=b||window;if(a==dh){this.Ai="ParentStub"+Number(new Date);this.nb="ChildStub"}else{this.Ai="ChildStub";this.nb=this.Ag();this.mb=c.opener||c.parent;if(this.nb&&!this.mb[this.nb]){var d=0;while(this.mb&&!this.mb[this.nb]&&d<10){this.mb=this.mb.parent;d++}}c[ch]=this}c[this.Ai]=this.Bi.bind(this);this.Gi=a};cb.inherits(K);var wm=function(a){var b=a||window;return b[ch]};var dh="Parent",vm="Child",ch="__topLevelProxy__";cb.prototype.type=null;cb.prototype.Ag=function(){var a=
new s(document.location.href);return a.yg("eventCallback")};cb.prototype.Wb=function(a){return this.Rh(a)};cb.prototype.Rh=function(a){if(this.nb&&this.mb[this.nb]){return this.mb[this.nb](a)}else{return true}};cb.prototype.Bi=function(a){var b=K.prototype.dispatchEvent.call(this,a);return b};var Ie=function(){};Ie.inherits(K);Ie.prototype.of=function(a){this.kj=a};Ie.prototype.dispatchEvent=function(a){if(this.kj.Wb(a)){K.prototype.dispatchEvent.call(this,a)}};var ya=function(a){cb.call(this,dh,a||window)};ya.inherits(cb);ya.prototype.show=function(){};ya.prototype.hide=function(){};ya.prototype.dispose=function(){};var xb=function(a){ya.call(this,a)};xb.inherits(ya);xb.prototype.show=function(){this.Wb("PRESHOW");var a=this;q.setTimeout(function(){a.Cb.style.display="block";a.Wb("SHOW")},5)};xb.prototype.hide=function(){this.Cb.style.display="none"};xb.prototype.dispose=function(){if(this.Cb!=null){this.Cb.parentNode.removeChild(this.Cb);this.Cb=null}ya.prototype.dispose.call(this)};var dd=function(a){xb.call(this,a)};dd.inherits(xb);dd.prototype.show=function(){this.Yd.da(true)};dd.prototype.hide=function(){this.Yd.da(false)};dd.prototype.dispose=function(){this.Yd.dispose();ua(document.body,"background");this.Yd=null;this.Cb=null;xb.prototype.dispose.call(this)};var oa=function(){this.Sd={}};oa.prototype.Sd=null;var He=null,um=function(){if(!He){He=new oa}return He};oa.prototype.re=function(a){return this.Sd[a]};oa.prototype.create=function(a,b,c){var d=this.re(a);if(d){if(b){b=Gb(b)}return d(b,c,a)}};oa.prototype.Od=function(a){var b=this.re(a);if(b){var c={},d=(new s(document.location.href)).ed();bb(d,function(h,i){c[i]=h});var e=new cb(vm),f=b(document.body,c,a);if(f.of){f.of(e)}}};oa.prototype.Kc=function(a){var b=a||document.body,c=b.getAttribute("g:type");
if(c){var d={},e=b.attributes;for(var f=0;f<e.length;f++){var h=e[f].name;if(ab(h,"g:")){d[h.substring(2)]=e[f].value}}this.create(c,b,d)}var i=b.childNodes.length;for(var f=0;f<i;f++){var j=b.childNodes[f];if(j.nodeType==1){this.Kc(j)}}};oa.prototype.ke=function(a){var b=wm();if(b){if(da(a)){a=new aa(a)}return b.Wb(a)}else{return true}};var xm=function(){bk("Xuit",um());sb(oa.prototype,"buildUi",oa.prototype.Kc);sb(oa.prototype,"create",oa.prototype.create);sb(oa.prototype,"createAsFullPage",oa.prototype.Od);sb(oa.prototype,"fireHostedEvent",oa.prototype.ke);sb(ya.prototype,"hide",ya.prototype.hide);sb(ya.prototype,"show",ya.prototype.show);sb(ya.prototype,"dispose",ya.prototype.dispose)};xm();var ba={},tb=function(a){this.b=a;this.qj=100;this.ij=1000;n(a,["input","propertychange"],this.Ie,false,this);n(a,ic,this.Qg,false,this);n(a,hc,this.Pg,false,this);var b=["focus",la,"blur"];n(a,b,this.Rg,false,this)};tb.mixin(K.prototype);tb.prototype.Qg=function(a){q.setTimeout(this.Ie.bind(this),0);if(!this.dispatchEvent(a)){a.preventDefault()}};tb.prototype.Pg=function(a){var b=a.keyCode,c=null;if(b==40){c="DOWN_ARROW"}else if(b==38){c="UP_ARROW"}else if(b==13){c="ENTER"}else if(b==27){c="ESCAPE"}else if(b==
9){c="TAB"}if(c){var d=this.dispatchEvent(c);if(!d){a.preventDefault()}}};tb.prototype.Rg=function(a){this.dispatchEvent(a)};tb.prototype.Ie=function(a){var b=this.b.defaulted?"":this.b.value;if(b!=this.Wi){this.$d("VALUE",b);if(this.yi){q.clearTimeout(this.yi)}this.yi=q.setTimeout(this.Md.bind(this,"STABLE_VALUE",b),this.qj);if(this.Kh){q.clearTimeout(this.Kh)}this.Kh=q.setTimeout(this.Md.bind(this,"PAUSED_VALUE",b),this.ij);this.Wi=b}};tb.prototype.Md=function(a,b){var c=this.b.defaulted?"":this.b.value;
if(c==b){this.$d(a,b)}};tb.prototype.$d=function(a,b){var c=new aa(a);c.value=b;this.dispatchEvent(c)};var Wd=function(a,b,c,d){var e=a.split("."),f=d||q,h=f,i=e.length;for(var j=0;j<i-1;j++){if(!h[e[j]]){h[e[j]]={}}h=h[e[j]]}h[e[i-1]]=b;if(c){f[c]=b}},Sd=function(a){this.$g=a;this.xh=-1};Sd.prototype.show=function(a,b){this.xh=a;this.lc();if(!b){this.Ca()}};Sd.prototype.lc=function(){if(!this.Ua){q.setTimeout(z(this.Ca,this),0)}this.Ua=true};Sd.prototype.Ca=function(a){if(this.Ua){for(var b=0;b<
this.$g.length;b++){var c=this.$g[b],d=L(c);if(this.xh==c){this.Nj=c;d.style.display="block"}else{d.style.display="none"}}this.Ua=false}};var qk=function(a,b){if(a.value==""||a.value==b||a.value==a.defaultText){a.defaulted=true;a.value=b;ta(a,"input-default")}a.defaultText=b;n(a,"focus",function(){if(a.defaulted){a.value="";ua(a,"input-default");a.defaulted=false}});n(a,"blur",pk.bind(null,a));n(a,ic,function(c){if(c.keyCode==27){a.value=""}})},pk=function(a){if(a.value==""&&!a.defaulted){a.defaulted=
true;a.value=a.defaultText;ta(a,"input-default")}},hk=function(a,b,c){if(a){this.Ta=a;this.bh=b||a.getAttribute("icon");if(this.bh){this.ha=ob("div",{className:this.Ta.className});this.Ta.className="inner";this.Pa=Dd("img");this.Pa.src=this.bh;this.Pa.style.verticalAlign="bottom";this.ha.appendChild(this.Pa);if(this.Pa.readyState!="complete"){this.Pa.style.display="none";n(this.Pa,"load",this.ah,false,this)}if(H){this.Pa.style.verticalAlign="top"}a.parentNode.replaceChild(this.ha,a);this.ha.appendChild(a);
this.Ta.style.border="0px";this.Ta.style.padding="0px";this.Ta.style.paddingLeft="4px";this.ha.style.verticalAlign="top";this.Ta.style.whiteSpace="nowrap";this.Ta.style.width="80%";var d=ra(this.ha).height;if(d>5){var e=H?0:Yd(this.ha)-2;this.ha.style.height=d-e+"px"}this.ha.style.overflow="hidden"}this.vb=c||a.getAttribute("defaultText");if(this.vb){qk(this.Ta,this.vb)}}};hk.prototype.ah=function(){this.Pa.style.display="inline"};var nc=function(a,b){this.b=a;if(a==null){return}this.Vc=b?ba.BooleanExpr.create(b):
null;if(this.Vc){var c=z(this.wf,this);bb(this.Vc.getDataDeps(),function(i){E().$a(c,i.zd)});this.wf()}if(H){var d=ra(a);a.style.width=String(d.width*0.77)+"px";var e=Number(a.currentStyle.paddingTop.split("px")[0]),f=Number(a.currentStyle.paddingBottom.split("px")[0]);a.style.paddingTop=String(e+2)+"px";var h=f>=2?f-2:0;a.style.paddingBottom=String(h)+"px"}n(a,jc,z(this.Mh,this));n(a,"mouseup",z(this.ef,this));n(a,"mouseout",z(this.nh,this));n(a,Jb,z(this.Hi,this));n(a,la,z(this.ef,this))};nc.prototype.Mh=
function(a){ta(a.target,"presubmit");a.target.Nh=true};nc.prototype.ef=function(a){ua(a.target,"presubmit");a.target.Nh=false};nc.prototype.nh=function(a){ua(a.target,"presubmit")};nc.prototype.Hi=function(a){if(a.target.Nh){ta(a.target,"presubmit")}};nc.prototype.wf=function(){if(this.Vc){this.b.disabled=!this.Vc.J()}};var $d=function(a,b){this.uh=a;this.Wd=b||"$LastMessage";this.aj=T(this.Wd+"/Message");this.wj=T(this.Wd+"/Level");E().$a(z(this.lc,this),this.Wd+"/...");this.Ua=false};$d.prototype.lc=
function(){if(!this.Ua){q.setTimeout(z(this.Ca,this),0)}this.Ua=true};$d.prototype.Ca=function(){if(this.Ua){var a=L(this.uh);if(a){var b=this.aj.J();if(b==null){ua(a,"error");ua(a,"info");a.innerHTML=""}else{var c=this.wj.J();if(c==ba.UserMessages.Level.INFO){ta(a,"info");ua(a,"error")}else{ta(a,"error");ua(a,"info")}ta(a,"hilite");if(b.length<150){a.innerHTML=xa(b)}else{var d=ob("div",{style:"display:none; position:absolute; background-color:white;padding:8px; border:1px dashed #AAA;text-decoration: none"});
d.innerHTML=xa(b).replace(/\n/g,"<br/>");var e=ob("a",{href:"#"});n(e,la,function(){if(d.style.display=="block"){d.style.display="none"}else{d.style.display="block"}});e.innerHTML="Details";a.innerHTML="";a.appendChild(document.createTextNode("Operation failed. Please try again in a moment. "));a.appendChild(e);a.appendChild(d);var f=Nb(a),h=ra(a),i=ra(d);qe(d,f.x+h.width-i.width,f.y+h.height)}q.setTimeout(z(this.Lh,this),1000)}}this.Ua=false}};$d.prototype.Lh=function(){var a=L(this.uh);if(a){ua(a,
"hilite")}};var Vc=function(a,b,c,d,e){this.b=Gb(a);this.T=T(b);this.Ki=c;this.vb=d||this.b.getAttribute("defaultText");this.qh=e;if(this.qh){this.b["maxLength"]=this.qh}E().$a(z(this.Ia,this),b);n(this.b,"change",this.wb,false,this);if(this.Ki){n(this.b,"keyup",this.wb,false,this)}var f=this.T.J();if(f){this.b.value=f}if(this.vb){n(this.b,"blur",this.Nc,false,this);n(this.b,"focus",this.Bh,false,this);this.Nc()}};Vc.prototype.Ia=function(){if(!this.Ra){var a=this.T.J();this.Qa=true;this.b.value=
a?a:"";this.Qa=false;this.Vb=false;if(this.vb){this.Nc()}}};Vc.prototype.wb=function(){if(!this.Qa){var a=this.b.value||null;this.Ra=true;var b=this.T.ya().bd(null,true);b.R(this.T.Ue,a);this.Ra=false}};Vc.prototype.Nc=function(){if(this.b.value==""&&!this.Vb){this.Vb=true;ta(this.b,"input-default");this.b.value=this.vb}else{ua(this.b,"input-default");this.Vb=false}};Vc.prototype.Bh=function(){if(this.Vb){this.b.value="";ua(this.b,"input-default");this.Vb=false}};var ag=function(a,b,c){this.b=Gb(a);
this.T=T(b);var d=this.T.J();if(c){this.Dj=c;bb(c.K(),function(h,i){var j=Dd("option");j.value=i;j.text=h;this.b.options[this.b.options.length++]=j})}for(var e=0;e<this.b.options.length;e++){var f=this.b.options[e];if(d==f.value){f.selected=true}}E().$a(z(this.Ia,this),b);n(this.b,"change",this.wb,false,this)};ag.prototype.Ia=function(){if(!this.Ra){var a=this.T.J();this.Qa=true;this.b.value=a?a:"";this.Qa=false}};ag.prototype.wb=function(){if(!this.Qa){var a=this.b.value||null;this.Ra=true;ba.ContactUtil.setData(this.T.zd,
a);this.Ra=false}};var Rf=function(a,b){this.b=Gb(a);this.T=T(b);E().$a(z(this.Ia,this),b);n(this.b,la,z(this.eg,this),false,this);var c=this.T.J();if(c){this.b.checked=c}};Rf.prototype.Ia=function(){if(!this.Ra){var a=this.T.J();this.Qa=true;this.b.checked=a!=0;this.Qa=false}};Rf.prototype.eg=function(){if(!this.Qa){var a=this.b.checked;this.Ra=true;ba.ContactUtil.setData(this.T.zd,a);this.Ra=false}};var fk=function(a,b){this.ic=a;this.Hj=b};fk.prototype.aa=function(){return this.id};var ek=function(a){this.A=
a||{};this.Aj=new I(this.A)};ek.prototype.K=function(){return this.Aj};var lk=function(a){for(var b=a.firstChild;b;b=b.nextSibling){lk(b)}if(a.nodeType==1&&a.getAttribute("maximize")=="true"){a.style.width="1px";a.style.height="1px"}},mk=function(a){var b;if(a.nodeType==1&&a.getAttribute("maximize")=="true"&&a.nodeName!="TR"){var c,d;if(a.parentNode.nodeName=="BODY"){var e=Gd();c=e.width;d=e.height}else{var f=a.parentNode;c=a.parentNode.offsetWidth-Xd(f);if(!H){c-=Xd(a)}d=a.parentNode.offsetHeight-
Yd(f)}rk(a,c);Zd(a,d);if(a.offsetHeight>d){Zd(a,2*d-a.offsetHeight)}if(a.nodeName=="TABLE"){var h=null,i=0,j;for(var j=0;j<a.rows.length;j++){var k=a.rows[j];if(k.getAttribute("maximize")=="true"){h=k;h.style.height="100%"}}if(h){for(var j=0;j<a.rows.length;j++){var k=a.rows[j];if(k!=h){i+=k.offsetHeight}}Zd(h,d-i-2);h.style.width=""}}}for(b=a.firstChild;b;b=b.nextSibling){mk(b)}},Zd=function(a,b){b=b<0?0:b;a.style.height=b+"px"},rk=function(a,b){b=b<0?0:b;a.style.width=b+"px"},Xd=function(a){return Da(a,
"paddingLeft")+Da(a,"paddingRight")+Da(a,"marginLeft")+Da(a,"marginRight")+Da(a,"borderLeftWidth")+Da(a,"borderRightWidth")},Yd=function(a){return Da(a,"paddingTop")+Da(a,"paddingBottom")+Da(a,"marginTop")+Da(a,"marginBottom")+Da(a,"borderTopWidth")+Da(a,"borderBottomWidth")},Da=function(a,b){var c=dc(a),d;if(c.defaultView&&c.defaultView.getComputedStyle){var e=c.defaultView.getComputedStyle(a,"");if(e){d=e[b]}}if(!d){d=a.currentStyle?a.currentStyle[b]:a.style[b]}if(Fa(d,"px")){return Number(d.substring(0,
d.length-2))}else{return 0}};var fa=function(){this.Mf="..";this.jf={};this.zf={};this.Nb={};this.jc={};this.Qi={};this.Cd={}},ca=function(){if(!Vd){Vd=new fa}return Vd},Vd=null;fa.prototype.ti=function(a,b,c){a=new s(a);if(b&&c){if(!this.Nb[b]){this.Nb[b]={}}this.Nb[b][c]=a}else if(b){this.zf[b]=a}else if(c){this.jf[c]=a}else{this.Mf=a}};fa.prototype.ec=function(a,b){if(this.Nb[a]&&this.Nb[a][b]){return this.Nb[a][b]}else if(this.zf[a]){return this.zf[a]}else if(this.jf[b]){return this.jf[b]}else{return this.Mf}};fa.prototype.Th=
function(a){this.jc[a.aa()]=a};fa.prototype.Gd=function(a,b,c){var d=this.jc[a];if(d&&d.attach){d.attach(b,c);return true}var e=this.Qi[a];if(e&&e.attach){e.attach(b,c);return true}return false};fa.prototype.Ka=function(a,b,c){var d=this.jc[a];if(d&&d.Ka){d.Ka(b,c);return true}return false};fa.prototype.Ja=function(a,b,c){var d=this.jc[a];if(d&&d.Ja){d.Ja(b,c);return true}return false};var ok=0;fa.prototype.Vf=function(a,b,c,d){if(ve&&ue){ta(document.body,"background")}var e=this.Wf(a,b),f=new t;
f.mg().appendChild(e);f.ki(new ia);f.da(true);e.src=this.Xf(a,c,d);this.Cd[a]=f;return e.contentWindow};fa.prototype.Wf=function(a,b){var c=a+"-iframe",d=L(c);if(!d){d=ob("iframe",{id:c});re(d,"display","block");re(d,"backgroundColor","#FFF");re(d,"border","1px solid #555");Ob(d,b.width,b.height)}return d};fa.prototype.Xf=function(a,b,c){var d=new s(this.ec()+"/ui/"+a);if(c){var e="UiWidgetCallback"+ok++;q[e]=c;d.C("done",e)}d.C("js","RAW");d.C("pop","TRUE");if(b){bb(b,function(f,h){if(f!=null){d.C(h,
f)}})}return d};fa.prototype.gg=function(a){var b=this.Cd[a];if(b){b.dispose();ua(document.body,"background")}delete this.Cd[a]};fa.prototype.Ug=function(a){var b=this.Cd[a];if(b){b.da(false)}};fa.prototype.fi=function(a,b){var c=this.jc[a],d=L(c.aa()+"-iframe");if(d&&d.contentWindow["UI_receive"]){d.contentWindow["UI_receive"](b)}};fa.prototype.Ed=function(a){var b=a||document;for(var c=b.firstChild;c;c=c.nextSibling){this.Ed(c)}if(b.getAttribute){var d=b.getAttribute("gtype");if(d){var e={};for(var f=
0;f<b.attributes.length;f++){var h=b.attributes[f];e[h.name]=h.value}var i=this.Gd(d,b,e);if(!i){this.Ka(d,b,e)}}}};var nk=0;fa.prototype.cg=function(a,b,c,d,e){var f=e||document,h=f.createElement("div");h.style.position="absolute";h.style.zIndex=40;h.id="UiWidget"+nk++;f.body.appendChild(h);$c(h,b.x,b.y);if(c){Ob(h,c.width,c.height)}this.Ka(a,h,d);return h.id};fa.prototype.erase=function(a,b){var c=b||document,d=c.getElementById(a);if(d){d.parentNode.removeChild(d)}};window["UI_setServerBase"]=function(a,
b,c){ca().ti(a,b,c)};window["UI_getServerBase"]=function(a,b){ca().ec(a,b)};window["UI_attachAndDisplayAllWidgets"]=function(a){ca().Ed(a)};window["UI_attachWidget"]=function(a,b,c){ca().Gd(a,b,c)};window["UI_displayInline"]=function(a,b,c){ca().Ka(a,b,c)};window["UI_displayIframe"]=function(a,b){ca().Ja(a,b)};var Hj=function(a,b){if(typeof a.selectionStart=="number"){a.selectionStart=b}else if(H){var c=Id(a),d=c[0],e=c[1];if(!d.inRange(e)){return}var f=a.value,h=0,i=b;while(h!=-1&&h<i){h=f.indexOf("\r\n",h);if(h!=-1&&h<i){b--;h++}}d.collapse(true);d.move("character",b);d.select()}else{throw Error("Cannot set the selection start");}},Lf=function(a){if(typeof a.selectionStart=="number"){return a.selectionStart}if(H){var b=Id(a),c=b[0],d=b[1];if(!c.inRange(d)){return-1}c.setEndPoint("EndToStart",d);return c.text.length}return-1},
Gj=function(a,b){if(typeof a.selectionEnd=="number"){a.selectionEnd=b}else if(H){var c=Id(a),d=c[0],e=c[1];if(!d.inRange(e)){return}e.collapse();e.moveEnd("character",b-Lf(a));e.select()}else{throw Error("Cannot set the selection end");}},Id=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange(),d;if(a.type=="textarea"){d=c.duplicate();d.moveToElementText(a)}else{d=a.createTextRange()}return[d,c]};var O=function(a,b,c){K.call(this);this.ph=a;this.ei=c;this.Jb=b;n(b,["hilite","select",se,"dismiss"],this);this.pa=null;this.t=[];this.za=-1;this.La=0;this.Lb=null;this.db=null};O.inherits(K);O.prototype.sh=10;var se="canceldismiss";O.prototype.hb=function(a){if(a.target==this.Jb){switch(a.type){case "hilite":this.Oa(a.row);break;case "select":this.xc();break;case se:this.Mc();break;case "dismiss":this.Zd();break}}};O.prototype.wi=function(a){if(this.pa==a){return}this.pa=a;this.ph.pd(this.pa,this.sh,
this.oh.bind(this));this.Mc()};O.prototype.vi=function(a){this.Lb=a};O.prototype.isOpen=function(){return this.Jb.kb()};O.prototype.Vg=function(){if(this.za>=this.La&&this.za<this.La+this.t.length-1){this.Oa(this.za+1);return true}return false};O.prototype.Wg=function(){if(this.za>this.La){this.Oa(this.za-1);return true}return false};O.prototype.Oa=function(a){if(this.$c(a)!=-1){this.za=a;this.Jb.Oa(a);return true}return false};O.prototype.xc=function(){var a=this.$c(this.za);if(a!=-1){this.ei.yc(this.t[a]);
this.dismiss();this.dispatchEvent("update");return true}return false};O.prototype.dismiss=function(){this.za=-1;this.pa=null;this.La+=this.t.length;this.t.length=0;window.clearTimeout(this.db);this.db=null;this.Jb.dismiss()};O.prototype.Zd=function(){if(!this.db){this.db=window.setTimeout(this.dismiss.bind(this),50)}};O.prototype.Mc=function(){window.setTimeout((function(){if(this.db){window.clearTimeout(this.db);this.db=null}}).bind(this),10)};O.prototype.dispose=function(){if(!this.$()){O.N.dispose.call(this);
this.Jb.dispose();this.ei.dispose();this.ph=null}};O.prototype.oh=function(a,b,c){if(this.pa!=a){return}var d=c?this.$c(this.za):null;this.La+=this.t.length;this.t=b;var e=[];for(var f=0;f<b.length;++f){e.push({id:this.te(f),data:b[f]})}this.Jb.ai(e,this.pa,this.Lb);if(e.length!=0){var h=d!=null?this.te(d):this.La;this.Oa(h)}};O.prototype.$c=function(a){var b=a-this.La;if(b<0||b>=this.t.length){return-1}return b};O.prototype.te=function(a){return this.La+a};var ad=function(a,b){this.t=a;this.yj=!b};ad.prototype.pd=function(a,b,c){var d=this.Cg(a,b);if(d.length==0&&this.yj){d=this.Fg(a,b)}c(a,d)};ad.prototype.Cg=function(a,b){var c=[];if(a!=""){var d=he(a),e=new RegExp("(^|\\W+)"+d,"i");Sk(this.t,function(f){if(String(f).match(e)){c.push(f)}return c.length>=b})}return c};ad.prototype.Fg=function(a,b){var c=[];bb(this.t,function(f){var h=a.toLowerCase(),i=String(f).toLowerCase(),j=0;if(i.indexOf(h)!=-1){j=parseInt(i.indexOf(h)/4,10)}else{var k=h.split(""),
l=-1,j=0,r=10;for(var m=0,D;D=k[m];m++){var y=i.indexOf(D);if(y>l){var u=y-l-1;if(u>r-5){u=r-5}j+=u;l=y}else{j+=r;r+=5}}}if(j<h.length*6){c.push({str:f,score:j})}});c.sort(function(f,h){return f.score-h.score});var d=[];for(var e=0;e<b&&e<c.length;e++){d.push(c[e].str)}return d};var R=function(a,b,c){this.p=null;this.be=[];this.Kb=a||",;";this.Li=this.Kb.substring(0,1);this.vj=new RegExp("^[\\s"+this.Kb+"]+|[\\s"+this.Kb+"]+$","g");this.nj=new RegExp("s*["+this.Kb+"]$");this.kh=b||"";this.rj=50;this.Re=null;this.Td=null;this.$f=0;this.oc=c!=null?c:true};R.inherits(Wa);R.prototype.dispose=function(){if(!this.$()){R.N.dispose.call(this);this.bg.apply(this,this.be)}};R.prototype.Hc=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];this.be.push(b);n(b,ic,this.Qe,
false,this);n(b,hc,this.Pe,false,this);var c=["focus",la];n(b,c,this.le,false,this);n(b,"blur",this.Hd,false,this)}};R.prototype.bg=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];Y(b,ic,this.Qe,false,this);Y(b,hc,this.Pe,false,this);var c=["focus",la];Y(b,c,this.le,false,this);Y(b,"blur",this.Hd,false,this);wd(this.be,b)}};R.prototype.Fd=function(a){this.p=a};R.prototype.yc=function(a){if(this.oc){var b=this.Td,c=this.$f,d=this.yd(b.value),e=a.toString();if(!this.nj.test(e)){e=
Pk(e)+this.Li}if(c!=0&&!tg(d[c-1])){e=" "+e}if(c<d.length&&!tg(d[c+1])){e=e+" "}if(e!=d[c]){d[c]=e;b.value=d.join("");var f=0;for(var h=0;h<=c;h++){f+=d[h].length}b.focus();Hj(b,f);Gj(b,f)}}else{this.Td.value=a.toString()}};R.prototype.Qe=function(a){var b=a.keyCode;if(this.Kb.indexOf(String.fromCharCode(a.charCode))!=-1){if(this.p&&this.p.xc()&&this.oc){a.preventDefault()}}else if(b==13){if(this.p&&this.p.xc()&&this.oc){a.preventDefault()}}else if(b!=40&&b!=39&&b!=38&&b!=37&&b!=27&&b!=9){this.rc(a)}};
R.prototype.Pe=function(a){var b=a.keyCode;if(b==40){if(this.p&&!this.p.isOpen()){this.rc(a);a.preventDefault()}else if(this.p&&this.p.Vg()){a.preventDefault()}}else if(b==39||b==37){this.rc(a)}else if(b==38){if(this.p&&(this.p.Wg()||this.p.isOpen())){a.preventDefault()}}else if(b==9){q.clearTimeout(this.Re);if(this.p&&this.p.xc()&&this.oc){a.preventDefault()}}else if(b==27){if(this.p&&this.p.isOpen()){this.p.dismiss()}}else if(H&&(b==8||b==46)){this.rc(a)}};R.prototype.rc=function(a){q.clearTimeout(this.Re);
this.Re=q.setTimeout(this.Jd.bind(this,a.currentTarget),this.rj)};R.prototype.le=function(a){if(this.p){this.p.Mc()}this.Jd(a.currentTarget)};R.prototype.Hd=function(a){if(this.p){this.p.Zd()}};R.prototype.Jd=function(a){var b=Lf(a),c=this.Jh(a.value,b);this.Td=a;this.$f=this.Ce(a.value,b);if(this.p){this.p.vi(a);this.p.wi(c)}};R.prototype.Jh=function(a,b){return this.Fi(this.yd(a)[this.Ce(a,b)])};R.prototype.Fi=function(a){return String(a).replace(this.vj,"")};R.prototype.Ce=function(a,b){var c=
this.yd(a),d=0;for(var e=0,f=0;e<c.length&&f<b;e++){f+=c[e].length;d=e}return d};R.prototype.yd=function(a){if(!this.oc){return[a]}var b=String(a).split(""),c=[],d=[];for(var e=0,f=false;e<b.length;e++){if(this.kh&&this.kh.indexOf(b[e])!=-1){if(!f){c.push(d.join(""));d.length=0}d.push(b[e]);f=!f}else if(!f&&this.Kb.indexOf(b[e])!=-1){d.push(b[e]);c.push(d.join(""));d.length=0}else{d.push(b[e])}}c.push(d.join(""));return c};var J=function(a,b,c,d){this.i=a||If().body;this.d=Fd(this.i);this.lj=!a;this.a=null;this.pa="";this.t=[];this.hd=-1;this.qa=false;this.className="ac-renderer";this.rowClassName="ac-row";this.activeClassName="active";this.tb=b;this.zj=d!=null?d:true;this.mj=c!=null?c:false;this.Oe=null;this.uj=false};J.inherits(K);J.prototype.ai=function(a,b,c){this.pa=b;this.t=a;this.hd=0;this.Lb=c;this.wc=[];this.redraw()};J.prototype.dismiss=function(){if(this.qa){this.qa=false;Ga(this.a,false)}};J.prototype.show=
function(){if(!this.qa){this.qa=true;Ga(this.a,true)}};J.prototype.kb=function(){return this.qa};J.prototype.Xg=function(a){if(a>=0&&a<this.a.childNodes.length){if(this.hd>=0){ua(this.wc[this.hd],this.activeClassName)}ta(this.wc[a],this.activeClassName);this.hd=a}};J.prototype.Oa=function(a){for(var b=0;b<this.t.length;b++){if(this.t[b].id==a){this.Xg(b);return}}};J.prototype.oi=function(a){ta(a,this.className)};J.prototype.redraw=function(){if(!this.a){this.a=this.d.m("div",{style:"display: none"});
this.oi(this.a);this.d.appendChild(this.i,this.a);n(this.a,la,this.Ee,false,this);n(this.a,jc,this.Ge,false,this);n(this.d.wa(),la,this.Fe,false,this);n(this.a,Jb,this.He,false,this)}this.wc.length=0;this.d.Vh(this.a);if(this.tb&&this.tb.render){this.tb.render(this,this.a,this.t,this.pa)}else{bb(this.t,function(e){this.d.appendChild(this.a,this.$h(e,this.pa))},this)}if(this.t.length==0){this.dismiss();return}else{this.show()}this.Ph(this.a);if(this.Lb&&this.lj){var a=Nb(this.Lb),b=ra(this.Lb),c=ra(Bg()),
d=ra(this.a);a.y=this.uj?a.y-d.height:a.y+b.height;if((this.mj||a.x+d.width>c.width)&&this.Oe!="LEFT"){a.x=a.x+b.width-d.width;this.Oe="RIGHT"}else{this.Oe="LEFT"}$c(this.a,a)}};J.prototype.dispose=function(){if(!this.$()){J.N.dispose.call(this);if(this.a){Y(this.a,la,this.Ee,false,this);Y(this.a,jc,this.Ge,false,this);Y(this.d.wa(),la,this.Fe,false,this);Y(this.a,Jb,this.He,false,this);this.d.removeNode(this.a);this.a=null}this.i=null}};J.prototype.Ph=function(a){if(ue&&ve){a.style.width="";a.style.overflow=
"visible";a.style.width=a.offsetWidth;a.style.overflow="auto"}};J.prototype.Zh=function(a,b,c){c.innerHTML=xa(a.data.toString())};J.prototype.Le=function(a,b){if(a.nodeType==3){var c=a.nodeValue;b=he(b);var d=new RegExp("(.*?)(^|\\W+)("+b+")","gi"),e=[],f=0,h=d.exec(c);while(h){e.push(h[1]);e.push(h[2]);e.push(h[3]);f=d.lastIndex;h=d.exec(c)}e.push(c.substring(f));if(e.length>1){a.nodeValue=e[0]+e[1];var i=this.d.createElement("b");this.d.appendChild(i,this.d.createTextNode(e[2]));i=a.parentNode.insertBefore(i,
a.nextSibling);for(var j=e.length-1;j>=3;j--){a.parentNode.insertBefore(this.d.createTextNode(e[j]),i.nextSibling)}}}else{var k=a.firstChild;while(k){var l=k.nextSibling;this.Le(k,b);k=l}}};J.prototype.$h=function(a,b){var c=this.d.m("div",{className:this.rowClassName});if(this.tb&&this.tb.gf){this.tb.gf(a,b,c)}else{this.Zh(a,b,c)}if(b&&this.zj){this.Le(c,b)}ta(c,this.rowClassName);this.wc.push(c);return c};J.prototype.Ae=function(a){while(a&&a!=this.a&&!Eb(a,this.rowClassName)){a=a.parentNode}return a?
vd(this.wc,a):-1};Function.prototype.inherits=function(a){var b=
function(){};b.prototype=a.prototype;this.N=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a){this.prototype[b]=a[b]}if(typeof a["toString"]=="function"&&a["toString"]!=this.prototype["toString"]){this.prototype.toString=a.toString}};var Hc;function Th(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);Hc=c;break}catch(d){}}if(!Hc){throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");}}}Th();function Jh(){var a;if(self.innerWidth){a=self.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth}else if(document.body){a=document.body.clientWidth}return a}function Ih(a,b){var c=b.id;if(!c){c=a.currentTarget.id}var d=window.setTimeout(Qe(c),Wb.HIDE_TIMEOUT),e=document.getElementById(c);e.VideoTabHideTimer=d}function Re(a){var b=document.getElementById(a);
if(b===null){return}if(b.bt!==null){b.bt.className=kd}if(b.style===null){return}b.style.display="none";var k="animate('"+a+"',"+j+","+c+","+(d-1)+","+e+","+f+")";setTimeout(k,e)}function Yh(a,b){var c=resultBoxes[a];
c.visibleIndex=c.targetVisibleIndex;qh(resultBoxes[a]);ph(resultBoxes[a]);c.animating=false};var yc={},rm=function(a,b,c){yc[a]=new kb(a,b,c)},sm=function(a,b){for(var c in yc){yc[c].hide()}yc[a].show(b)},qm=function(a,b){yc[a].hide(b)},kb=function(a,b,c){this.resultNum=a;this.previewContents=b;this.nonAnimateableElements=c?c:[];this.visible=false;this.animating=false};kb.prototype.kb=function(){return this.visible};kb.prototype.show=function(a){if(this.visible||this.animating){return}this.visible=true;var b=L("p-zp-"+this.resultNum),c=L("s-p-t-"+this.resultNum),d=L("h-p-t-"+
this.resultNum);b.setAttribute("src","http://www.drumsoloartist.com/js/stop.gif");c.style.display="none";d.style.display="";if(a){A(a,null)}var e=L("p-bd-"+this.resultNum);e.innerHTML=this.previewContents;e.style.display="";var f=ra(e).height,h=L("p-cr-"+this.resultNum);this.animation=new Xc(h,0,f,250);n(this.animation,"end",kb.prototype.sf.bind(this));this.animating=true;this.animation.play()};kb.prototype.sf=function(){for(var a=0;a<this.nonAnimateableElements.length;++a){var b=L(this.nonAnimateableElements[a]);
if(b){b.style.display=""}}this.animating=false};kb.prototype.hide=function(a){if(!this.visible||this.animating){return}this.visible=false;var b=L("p-zp-"+this.resultNum),c=L("s-p-t-"+this.resultNum),d=L("h-p-t-"+this.resultNum);b.setAttribute("src","http://www.drumsoloartist.com/js/spacer.gif");c.style.display="";d.style.display="none";if(a){A(a,null)}for(var e=0;e<this.nonAnimateableElements.length;++e){var f=L(this.nonAnimateableElements[e]);if(f){f.innerHTML=""}}var h=L("p-bd-"+
this.resultNum),i=ra(h).height,j=L("p-cr-"+this.resultNum);this.animation=new Xc(j,i,0,250);n(this.animation,"end",kb.prototype.Ke.bind(this));this.animating=true;this.animation.play()};kb.prototype.Ke=function(){var a=L("p-bd-"+this.resultNum);a.innerHTML="";a.style.display="none";this.animating=false};var _rl_registerPreview=rm,_rl_showPreview=sm,_rl_hidePreview=qm;
function InsertSampleMovie(){document.write('<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" width="10" height="20" codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n');
document.write('<param name="src" value="http://www.drumsoloartist.com/js/qt.mov">\n');
document.write('<param name="autoplay" value="true">\n');
document.write('<param name="controller" value="false">\n');
document.write('<embed src="http://www.drumsoloartist.com/js/qt.mov" width="10" height="20" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/" hidden />\n');
document.write('</object>\n');}