eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c)}k=[function(e){return r[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}('(G(){I w=19.4G,3k$=19.$;I D=19.4G=19.$=G(a,b){H 2t D.16.5r(a,b)};I u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,61=/^.[^:#\\[\\.]*$/,11;D.16=D.4d={5r:G(d,b){d=d||R;7(d.12){6[0]=d;6.J=1;H 6}7(1i d=="21"){I c=u.2K(d);7(c&&(c[1]||!b)){7(c[1])d=D.4g([c[1]],b);N{I a=R.5X(c[3]);7(a){7(a.2w!=c[3])H D().2x(d);H D(a)}d=[]}}N H D(b).2x(d)}N 7(D.1E(d))H D(R)[D.16.28?"28":"40"](d);H 6.6W(D.2d(d))},5u:"1.2.5",8F:G(){H 6.J},J:0,3o:G(a){H a==11?D.2d(6):6[a]},2C:G(b){I a=D(b);a.5j=6;H a},6W:G(a){6.J=0;2p.4d.1o.1y(6,a);H 6},O:G(a,b){H D.O(6,a,b)},5f:G(b){I a=-1;H D.2E(b&&b.5u?b[0]:b,6)},1J:G(c,a,b){I d=c;7(c.1u==54)7(a===11)H 6[0]&&D[b||"1J"](6[0],c);N{d={};d[c]=a}H 6.O(G(i){Q(c 1m d)D.1J(b?6.T:6,c,D.1h(6,d[c],b,i,c))})},1f:G(b,a){7((b==\'2g\'||b==\'1S\')&&2Y(a)<0)a=11;H 6.1J(b,a,"2a")},1q:G(b){7(1i b!="3V"&&b!=U)H 6.4E().3v((6[0]&&6[0].2y||R).5F(b));I a="";D.O(b||6,G(){D.O(6.3t,G(){7(6.12!=8)a+=6.12!=1?6.74:D.16.1q([6])})});H a},5y:G(b){7(6[0])D(b,6[0].2y).5S().38(6[0]).2j(G(){I a=6;1H(a.1z)a=a.1z;H a}).3v(6);H 6},8X:G(a){H 6.O(G(){D(6).6Q().5y(a)})},8Q:G(a){H 6.O(G(){D(6).5y(a)})},3v:G(){H 6.3S(17,L,P,G(a){7(6.12==1)6.3R(a)})},6F:G(){H 6.3S(17,L,L,G(a){7(6.12==1)6.38(a,6.1z)})},6E:G(){H 6.3S(17,P,P,G(a){6.1b.38(a,6)})},5k:G(){H 6.3S(17,P,L,G(a){6.1b.38(a,6.2F)})},3m:G(){H 6.5j||D([])},2x:G(b){I c=D.2j(6,G(a){H D.2x(b,a)});H 6.2C(/[^+>] [^+>]/.Y(b)||b.1g("..")>-1?D.4q(c):c)},5S:G(e){I f=6.2j(G(){7(D.15.1e&&!D.4m(6)){I a=6.6m(L),5e=R.3h("1t");5e.3R(a);H D.4g([5e.4I])[0]}N H 6.6m(L)});I d=f.2x("*").5H().O(G(){7(6[E]!=11)6[E]=U});7(e===L)6.2x("*").5H().O(G(i){7(6.12==3)H;I c=D.K(6,"3w");Q(I a 1m c)Q(I b 1m c[a])D.V.1d(d[i],a,c[a][b],c[a][b].K)});H f},1C:G(b){H 6.2C(D.1E(b)&&D.3C(6,G(a,i){H b.1j(a,i)})||D.3f(b,6))},4V:G(b){7(b.1u==54)7(61.Y(b))H 6.2C(D.3f(b,6,L));N b=D.3f(b,6);I a=b.J&&b[b.J-1]!==11&&!b.12;H 6.1C(G(){H a?D.2E(6,b)<0:6!=b})},1d:G(a){H 6.2C(D.4q(D.2O(6.3o(),1i a==\'21\'?D(a):D.2d(a))))},3A:G(a){H!!a&&D.3f(a,6).J>0},7S:G(a){H 6.3A("."+a)},6e:G(b){7(b==11){7(6.J){I c=6[0];7(D.W(c,"2A")){I e=c.63,60=[],14=c.14,2W=c.M=="2A-2W";7(e<0)H U;Q(I i=2W?e:0,2c=2W?e+1:14.J;i<2c;i++){I d=14[i];7(d.3a){b=D.15.1e&&!d.ap.2u.al?d.1q:d.2u;7(2W)H b;60.1o(b)}}H 60}N H(6[0].2u||"").1n(/\\r/g,"")}H 11}H 6.O(G(){7(6.12!=1)H;7(b.1u==2p&&/5O|5L/.Y(6.M))6.4D=(D.2E(6.2u,b)>=0||D.2E(6.37,b)>=0);N 7(D.W(6,"2A")){I a=D.2d(b);D("9S",6).O(G(){6.3a=(D.2E(6.2u,a)>=0||D.2E(6.1q,a)>=0)});7(!a.J)6.63=-1}N 6.2u=b})},2I:G(a){H a==11?(6.J?6[0].4I:U):6.4E().3v(a)},7c:G(a){H 6.5k(a).1Y()},77:G(i){H 6.3s(i,i+1)},3s:G(){H 6.2C(2p.4d.3s.1y(6,17))},2j:G(b){H 6.2C(D.2j(6,G(a,i){H b.1j(a,i,a)}))},5H:G(){H 6.1d(6.5j)},K:G(d,b){I a=d.1P(".");a[1]=a[1]?"."+a[1]:"";7(b===11){I c=6.5C("9z"+a[1]+"!",[a[0]]);7(c===11&&6.J)c=D.K(6[0],d);H c===11&&a[1]?6.K(a[0]):c}N H 6.1R("9u"+a[1]+"!",[a[0],b]).O(G(){D.K(6,d,b)})},2V:G(a){H 6.O(G(){D.2V(6,a)})},3S:G(g,f,h,d){I e=6.J>1,3p;H 6.O(G(){7(!3p){3p=D.4g(g,6.2y);7(h)3p.9n()}I b=6;7(f&&D.W(6,"1U")&&D.W(3p[0],"4N"))b=6.3F("1W")[0]||6.3R(6.2y.3h("1W"));I c=D([]);D.O(3p,G(){I a=e?D(6).5S(L)[0]:6;7(D.W(a,"1k")){c=c.1d(a)}N{7(a.12==1)c=c.1d(D("1k",a).1Y());d.1j(b,a)}});c.O(6S)})}};D.16.5r.4d=D.16;G 6S(i,a){7(a.3X)D.3T({1a:a.3X,3c:P,1K:"1k"});N D.5s(a.1q||a.6O||a.4I||"");7(a.1b)a.1b.2Z(a)}G 1x(){H+2t 8J}D.1l=D.16.1l=G(){I b=17[0]||{},i=1,J=17.J,4z=P,14;7(b.1u==8H){4z=b;b=17[1]||{};i=2}7(1i b!="3V"&&1i b!="G")b={};7(J==i){b=6;--i}Q(;i<J;i++)7((14=17[i])!=U)Q(I c 1m 14){I a=b[c],2B=14[c];7(b===2B)6M;7(4z&&2B&&1i 2B=="3V"&&!2B.12)b[c]=D.1l(4z,a||(2B.J!=U?[]:{}),2B);N 7(2B!==11)b[c]=2B}H b};I E="4G"+1x(),6L=0,5o={},6H=/z-?5f|8A-?8z|1r|6B|8v-?1S/i,3N=R.3N||{};D.1l({8t:G(a){19.$=3k$;7(a)19.4G=w;H D},1E:G(a){H!!a&&1i a!="21"&&!a.W&&a.1u!=2p&&/^[\\s[]?G/.Y(a+"")},4m:G(a){H a.1F&&!a.1c||a.2e&&a.2y&&!a.2y.1c},5s:G(a){a=D.3l(a);7(a){I b=R.3F("6v")[0]||R.1F,1k=R.3h("1k");1k.M="1q/4s";7(D.15.1e)1k.1q=a;N 1k.3R(R.5F(a));b.38(1k,b.1z);b.2Z(1k)}},W:G(b,a){H b.W&&b.W.2o()==a.2o()},1V:{},K:G(c,d,b){c=c==19?5o:c;I a=c[E];7(!a)a=c[E]=++6L;7(d&&!D.1V[a])D.1V[a]={};7(b!==11)D.1V[a][d]=b;H d?D.1V[a][d]:a},2V:G(c,b){c=c==19?5o:c;I a=c[E];7(b){7(D.1V[a]){2X D.1V[a][b];b="";Q(b 1m D.1V[a])1T;7(!b)D.2V(c)}}N{1Z{2X c[E]}1X(e){7(c.5h)c.5h(E)}2X D.1V[a]}},O:G(d,a,c){I e,i=0,J=d.J;7(c){7(J==11){Q(e 1m d)7(a.1y(d[e],c)===P)1T}N Q(;i<J;)7(a.1y(d[i++],c)===P)1T}N{7(J==11){Q(e 1m d)7(a.1j(d[e],e,d[e])===P)1T}N Q(I b=d[0];i<J&&a.1j(b,i,b)!==P;b=d[++i]){}}H d},1h:G(b,a,c,i,d){7(D.1E(a))a=a.1j(b,i);H a&&a.1u==5g&&c=="2a"&&!6H.Y(d)?a+"2U":a},1G:{1d:G(c,b){D.O((b||"").1P(/\\s+/),G(i,a){7(c.12==1&&!D.1G.3J(c.1G,a))c.1G+=(c.1G?" ":"")+a})},1Y:G(c,b){7(c.12==1)c.1G=b!=11?D.3C(c.1G.1P(/\\s+/),G(a){H!D.1G.3J(b,a)}).6r(" "):""},3J:G(b,a){H D.2E(a,(b.1G||b).6q().1P(/\\s+/))>-1}},6p:G(b,c,a){I e={};Q(I d 1m c){e[d]=b.T[d];b.T[d]=c[d]}a.1j(b);Q(I d 1m c)b.T[d]=e[d]},1f:G(d,e,c){7(e=="2g"||e=="1S"){I b,3I={30:"64",5d:"1B",18:"3G"},2Q=e=="2g"?["5c","6j"]:["5a","6h"];G 59(){b=e=="2g"?d.8e:d.8b;I a=0,2m=0;D.O(2Q,G(){a+=2Y(D.2a(d,"55"+6,L))||0;2m+=2Y(D.2a(d,"2m"+6+"49",L))||0});b-=26.83(a+2m)}7(D(d).3A(":4i"))59();N D.6p(d,3I,59);H 26.2c(0,b)}H D.2a(d,e,c)},2a:G(f,l,k){I e,T=f.T;G 3D(b){7(!D.15.2k)H P;I a=3N.51(b,U);H!a||a.50("3D")==""}7(l=="1r"&&D.15.1e){e=D.1J(T,"1r");H e==""?"1":e}7(D.15.2J&&l=="18"){I d=T.4W;T.4W="0 7X 7W";T.4W=d}7(l.1A(/4h/i))l=y;7(!k&&T&&T[l])e=T[l];N 7(3N.51){7(l.1A(/4h/i))l="4h";l=l.1n(/([A-Z])/g,"-$1").3g();I c=3N.51(f,U);7(c&&!3D(f))e=c.50(l);N{I g=[],2D=[],a=f,i=0;Q(;a&&3D(a);a=a.1b)2D.6g(a);Q(;i<2D.J;i++)7(3D(2D[i])){g[i]=2D[i].T.18;2D[i].T.18="3G"}e=l=="18"&&g[2D.J-1]!=U?"2L":(c&&c.50(l))||"";Q(i=0;i<g.J;i++)7(g[i]!=U)2D[i].T.18=g[i]}7(l=="1r"&&e=="")e="1"}N 7(f.4f){I h=l.1n(/\\-(\\w)/g,G(a,b){H b.2o()});e=f.4f[l]||f.4f[h];7(!/^\\d+(2U)?$/i.Y(e)&&/^\\d/.Y(e)){I j=T.1w,65=f.62.1w;f.62.1w=f.4f.1w;T.1w=e||0;e=T.aK+"2U";T.1w=j;f.62.1w=65}}H e},4g:G(l,h){I k=[];h=h||R;7(1i h.3h==\'11\')h=h.2y||h[0]&&h[0].2y||R;D.O(l,G(i,d){7(!d)H;7(d.1u==5g)d+=\'\';7(1i d=="21"){d=d.1n(/(<(\\w+)[^>]*?)\\/>/g,G(b,a,c){H c.1A(/^(aG|3H|7C|aD|4S|7z|ay|3y|ax|av|as)$/i)?b:a+"></"+c+">"});I f=D.3l(d).3g(),1t=h.3h("1t");I e=!f.1g("<ar")&&[1,"<2A 7v=\'7v\'>","</2A>"]||!f.1g("<ao")&&[1,"<7u>","</7u>"]||f.1A(/^<(an|1W|ak|ai|af)/)&&[1,"<1U>","</1U>"]||!f.1g("<4N")&&[2,"<1U><1W>","</1W></1U>"]||(!f.1g("<ad")||!f.1g("<aa"))&&[3,"<1U><1W><4N>","</4N></1W></1U>"]||!f.1g("<7C")&&[2,"<1U><1W></1W><7n>","</7n></1U>"]||D.15.1e&&[1,"1t<1t>","</1t>"]||[0,"",""];1t.4I=e[1]+d+e[2];1H(e[0]--)1t=1t.5R;7(D.15.1e){I g=!f.1g("<1U")&&f.1g("<1W")<0?1t.1z&&1t.1z.3t:e[1]=="<1U>"&&f.1g("<1W")<0?1t.3t:[];Q(I j=g.J-1;j>=0;--j)7(D.W(g[j],"1W")&&!g[j].3t.J)g[j].1b.2Z(g[j]);7(/^\\s/.Y(d))1t.38(h.5F(d.1A(/^\\s*/)[0]),1t.1z)}d=D.2d(1t.3t)}7(d.J===0&&(!D.W(d,"3W")&&!D.W(d,"2A")))H;7(d[0]==11||D.W(d,"3W")||d.14)k.1o(d);N k=D.2O(k,d)});H k},1J:G(d,f,c){7(!d||d.12==3||d.12==8)H 11;I e=!D.4m(d),41=c!==11,1e=D.15.1e;f=e&&D.3I[f]||f;7(d.2e){I g=/5N|3X|T/.Y(f);7(f=="3a"&&D.15.2k)d.1b.63;7(e&&!g&&f 1m d){7(41){7(f=="M"&&D.W(d,"4S")&&d.1b)7l"M a1 9Y\'t 9U 9T";d[f]=c}7(D.W(d,"3W")&&d.7e(f))H d.7e(f).74;H d[f]}7(1e&&e&&f=="T")H D.1J(d.T,"9Q",c);7(41)d.9P(f,""+c);7(1e&&g&&e)H d.4J(f,2);H d.4J(f)}7(1e&&f=="1r"){7(41){d.6B=1;d.1C=(d.1C||"").1n(/7b\\([^)]*\\)/,"")+(3r(c)+\'\'=="9K"?"":"7b(1r="+c*79+")")}H d.1C&&d.1C.1g("1r=")>=0?(2Y(d.1C.1A(/1r=([^)]*)/)[1])/79)+\'\':""}f=f.1n(/-([a-z])/9G,G(a,b){H b.2o()});7(41)d[f]=c;H d[f]},3l:G(a){H(a||"").1n(/^\\s+|\\s+$/g,"")},2d:G(b){I a=[];7(b!=U){I i=b.J;7(i==U||b.1P||b.4H||b.1j)a[0]=b;N 1H(i)a[--i]=b[i]}H a},2E:G(b,a){Q(I i=0,J=a.J;i<J;i++)7(a[i]===b)H i;H-1},2O:G(a,b){I i=0,S,2R=a.J;7(D.15.1e){1H(S=b[i++])7(S.12!=8)a[2R++]=S}N 1H(S=b[i++])a[2R++]=S;H a},4q:G(a){I c=[],2z={};1Z{Q(I i=0,J=a.J;i<J;i++){I b=D.K(a[i]);7(!2z[b]){2z[b]=L;c.1o(a[i])}}}1X(e){c=a}H c},3C:G(c,a,d){I b=[];Q(I i=0,J=c.J;i<J;i++)7(!d!=!a(c[i],i))b.1o(c[i]);H b},2j:G(d,a){I c=[];Q(I i=0,J=d.J;i<J;i++){I b=a(d[i],i);7(b!=U)c[c.J]=b}H c.78.1y([],c)}});I v=9A.9y.3g();D.15={5B:(v.1A(/.+(?:9x|9v|9t|9s)[\\/: ]([\\d.]+)/)||[])[1],2k:/73/.Y(v),2J:/2J/.Y(v),1e:/1e/.Y(v)&&!/2J/.Y(v),42:/42/.Y(v)&&!/(9q|73)/.Y(v)};I y=D.15.1e?"7m":"6Z";D.1l({6Y:!D.15.1e||R.6X=="7r",3I:{"Q":"9k","9h":"1G","4h":y,6Z:y,7m:y,9e:"9c",9b:"9a",98:"97"}});D.O({6U:G(a){H a.1b},94:G(a){H D.4T(a,"1b")},92:G(a){H D.34(a,2,"2F")},8Z:G(a){H D.34(a,2,"4R")},8Y:G(a){H D.4T(a,"2F")},8W:G(a){H D.4T(a,"4R")},8V:G(a){H D.5t(a.1b.1z,a)},8U:G(a){H D.5t(a.1z)},6Q:G(a){H D.W(a,"8T")?a.8S||a.8R.R:D.2d(a.3t)}},G(c,d){D.16[c]=G(b){I a=D.2j(6,d);7(b&&1i b=="21")a=D.3f(b,a);H 6.2C(D.4q(a))}});D.O({6P:"3v",8P:"6F",38:"6E",8O:"5k",8N:"7c"},G(c,b){D.16[c]=G(){I a=17;H 6.O(G(){Q(I i=0,J=a.J;i<J;i++)D(a[i])[b](6)})}});D.O({8M:G(a){D.1J(6,a,"");7(6.12==1)6.5h(a)},8L:G(a){D.1G.1d(6,a)},8K:G(a){D.1G.1Y(6,a)},8I:G(a){D.1G[D.1G.3J(6,a)?"1Y":"1d"](6,a)},1Y:G(a){7(!a||D.1C(a,[6]).r.J){D("*",6).1d(6).O(G(){D.V.1Y(6);D.2V(6)});7(6.1b)6.1b.2Z(6)}},4E:G(){D(">*",6).1Y();1H(6.1z)6.2Z(6.1z)}},G(a,b){D.16[a]=G(){H 6.O(b,17)}});D.O(["6N","49"],G(i,c){I b=c.3g();D.16[b]=G(a){H 6[0]==19?D.15.2J&&R.1c["5q"+c]||D.15.2k&&19["5p"+c]||R.6X=="7r"&&R.1F["5q"+c]||R.1c["5q"+c]:6[0]==R?26.2c(26.2c(R.1c["4y"+c],R.1F["4y"+c]),26.2c(R.1c["2i"+c],R.1F["2i"+c])):a==11?(6.J?D.1f(6[0],b):U):6.1f(b,a.1u==54?a:a+"2U")}});G 25(a,b){H a[0]&&3r(D.2a(a[0],b,L),10)||0}I C=D.15.2k&&3r(D.15.5B)<8G?"(?:[\\\\w*3k-]|\\\\\\\\.)":"(?:[\\\\w\\8E-\\8D*3k-]|\\\\\\\\.)",6K=2t 4w("^>\\\\s*("+C+"+)"),6J=2t 4w("^("+C+"+)(#)("+C+"+)"),6I=2t 4w("^([#.]?)("+C+"*)");D.1l({6G:{"":G(a,i,m){H m[2]=="*"||D.W(a,m[2])},"#":G(a,i,m){H a.4J("2w")==m[2]},":":{8C:G(a,i,m){H i<m[3]-0},8B:G(a,i,m){H i>m[3]-0},34:G(a,i,m){H m[3]-0==i},77:G(a,i,m){H m[3]-0==i},3n:G(a,i){H i==0},3Q:G(a,i,m,r){H i==r.J-1},6D:G(a,i){H i%2==0},6C:G(a,i){H i%2},"3n-4u":G(a){H a.1b.3F("*")[0]==a},"3Q-4u":G(a){H D.34(a.1b.5R,1,"4R")==a},"8y-4u":G(a){H!D.34(a.1b.5R,2,"4R")},6U:G(a){H a.1z},4E:G(a){H!a.1z},8x:G(a,i,m){H(a.6O||a.8w||D(a).1q()||"").1g(m[3])>=0},4i:G(a){H"1B"!=a.M&&D.1f(a,"18")!="2L"&&D.1f(a,"5d")!="1B"},1B:G(a){H"1B"==a.M||D.1f(a,"18")=="2L"||D.1f(a,"5d")=="1B"},8u:G(a){H!a.3O},3O:G(a){H a.3O},4D:G(a){H a.4D},3a:G(a){H a.3a||D.1J(a,"3a")},1q:G(a){H"1q"==a.M},5O:G(a){H"5O"==a.M},5L:G(a){H"5L"==a.M},5m:G(a){H"5m"==a.M},3E:G(a){H"3E"==a.M},5l:G(a){H"5l"==a.M},6A:G(a){H"6A"==a.M},6y:G(a){H"6y"==a.M},2q:G(a){H"2q"==a.M||D.W(a,"2q")},4S:G(a){H/4S|2A|6x|2q/i.Y(a.W)},3J:G(a,i,m){H D.2x(m[3],a).J},8s:G(a){H/h\\d/i.Y(a.W)},8r:G(a){H D.3C(D.3M,G(b){H a==b.S}).J}}},6w:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2t 4w("^([:.#]*)("+C+"+)")],3f:G(a,c,b){I d,1s=[];1H(a&&a!=d){d=a;I f=D.1C(a,c,b);a=f.t.1n(/^\\s*,\\s*/,"");1s=b?c=f.r:D.2O(1s,f.r)}H 1s},2x:G(t,o){7(1i t!="21")H[t];7(o&&o.12!=1&&o.12!=9)H[];o=o||R;I d=[o],2z=[],3Q,W;1H(t&&3Q!=t){I r=[];3Q=t;t=D.3l(t);I l=P,3j=6K,m=3j.2K(t);7(m){W=m[1].2o();Q(I i=0;d[i];i++)Q(I c=d[i].1z;c;c=c.2F)7(c.12==1&&(W=="*"||c.W.2o()==W))r.1o(c);d=r;t=t.1n(3j,"");7(t.1g(" ")==0)6M;l=L}N{3j=/^([>+~])\\s*(\\w*)/i;7((m=3j.2K(t))!=U){r=[];I k={};W=m[2].2o();m=m[1];Q(I j=0,3i=d.J;j<3i;j++){I n=m=="~"||m=="+"?d[j].2F:d[j].1z;Q(;n;n=n.2F)7(n.12==1){I g=D.K(n);7(m=="~"&&k[g])1T;7(!W||n.W.2o()==W){7(m=="~")k[g]=L;r.1o(n)}7(m=="+")1T}}d=r;t=D.3l(t.1n(3j,""));l=L}}7(t&&!l){7(!t.1g(",")){7(o==d[0])d.4r();2z=D.2O(2z,d);r=d=[o];t=" "+t.6u(1,t.J)}N{I h=6J;I m=h.2K(t);7(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2K(t)}m[2]=m[2].1n(/\\\\/g,"");I f=d[d.J-1];7(m[1]=="#"&&f&&f.5X&&!D.4m(f)){I p=f.5X(m[2]);7((D.15.1e||D.15.2J)&&p&&1i p.2w=="21"&&p.2w!=m[2])p=D(\'[@2w="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.W(p,m[3]))?[p]:[]}N{Q(I i=0;d[i];i++){I a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].W.3g()=="3V")a="3y";r=D.2O(r,d[i].3F(a))}7(m[1]==".")r=D.5i(r,m[2]);7(m[1]=="#"){I e=[];Q(I i=0;r[i];i++)7(r[i].4J("2w")==m[2]){e=[r[i]];1T}r=e}d=r}t=t.1n(h,"")}}7(t){I b=D.1C(t,r);d=r=b.r;t=D.3l(b.t)}}7(t)d=[];7(d&&o==d[0])d.4r();2z=D.2O(2z,d);H 2z},5i:G(r,m,a){m=" "+m+" ";I c=[];Q(I i=0;r[i];i++){I b=(" "+r[i].1G+" ").1g(m)>=0;7(!a&&b||a&&!b)c.1o(r[i])}H c},1C:G(t,r,h){I d;1H(t&&t!=d){d=t;I p=D.6w,m;Q(I i=0;p[i];i++){m=p[i].2K(t);7(m){t=t.8q(m[0].J);m[2]=m[2].1n(/\\\\/g,"");1T}}7(!m)1T;7(m[1]==":"&&m[2]=="4V")r=61.Y(m[3])?D.1C(m[3],r,L).r:D(r).4V(m[3]);N 7(m[1]==".")r=D.5i(r,m[2],h);N 7(m[1]=="["){I g=[],M=m[3];Q(I i=0,3i=r.J;i<3i;i++){I a=r[i],z=a[D.3I[m[2]]||m[2]];7(z==U||/5N|3X|3a/.Y(m[2]))z=D.1J(a,m[2])||\'\';7((M==""&&!!z||M=="="&&z==m[5]||M=="!="&&z!=m[5]||M=="^="&&z&&!z.1g(m[5])||M=="$="&&z.6u(z.J-m[5].J)==m[5]||(M=="*="||M=="~=")&&z.1g(m[5])>=0)^h)g.1o(a)}r=g}N 7(m[1]==":"&&m[2]=="34-4u"){I e={},g=[],Y=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2K(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.Y(m[3])&&"8p+"+m[3]||m[3]),3n=(Y[1]+(Y[2]||1))-0,d=Y[3]-0;Q(I i=0,3i=r.J;i<3i;i++){I j=r[i],1b=j.1b,2w=D.K(1b);7(!e[2w]){I c=1;Q(I n=1b.1z;n;n=n.2F)7(n.12==1)n.4p=c++;e[2w]=L}I b=P;7(3n==0){7(j.4p==d)b=L}N 7((j.4p-d)%3n==0&&(j.4p-d)/3n>=0)b=L;7(b^h)g.1o(j)}r=g}N{I f=D.6G[m[1]];7(1i f=="3V")f=f[m[2]];7(1i f=="21")f=6t("P||G(a,i){H "+f+";}");r=D.3C(r,G(a,i){H f(a,i,m,r)},h)}}H{r:r,t:t}},4T:G(b,c){I a=[],1s=b[c];1H(1s&&1s!=R){7(1s.12==1)a.1o(1s);1s=1s[c]}H a},34:G(a,e,c,b){e=e||1;I d=0;Q(;a;a=a[c])7(a.12==1&&++d==e)1T;H a},5t:G(n,a){I r=[];Q(;n;n=n.2F){7(n.12==1&&n!=a)r.1o(n)}H r}});D.V={1d:G(f,i,g,e){7(f.12==3||f.12==8)H;7(D.15.1e&&f.4H)f=19;7(!g.23)g.23=6.23++;7(e!=11){I h=g;g=6.3L(h,G(){H h.1y(6,17)});g.K=e}I j=D.K(f,"3w")||D.K(f,"3w",{}),1D=D.K(f,"1D")||D.K(f,"1D",G(){7(1i D!="11"&&!D.V.5n)H D.V.1D.1y(17.3P.S,17)});1D.S=f;D.O(i.1P(/\\s+/),G(c,b){I a=b.1P(".");b=a[0];g.M=a[1];I d=j[b];7(!d){d=j[b]={};7(!D.V.2s[b]||D.V.2s[b].4o.1j(f)===P){7(f.3K)f.3K(b,1D,P);N 7(f.6s)f.6s("4n"+b,1D)}}d[g.23]=g;D.V.24[b]=L});f=U},23:1,24:{},1Y:G(e,h,f){7(e.12==3||e.12==8)H;I i=D.K(e,"3w"),1I,5f;7(i){7(h==11||(1i h=="21"&&h.8o(0)=="."))Q(I g 1m i)6.1Y(e,g+(h||""));N{7(h.M){f=h.2v;h=h.M}D.O(h.1P(/\\s+/),G(b,a){I c=a.1P(".");a=c[0];7(i[a]){7(f)2X i[a][f.23];N Q(f 1m i[a])7(!c[1]||i[a][f].M==c[1])2X i[a][f];Q(1I 1m i[a])1T;7(!1I){7(!D.V.2s[a]||D.V.2s[a].4A.1j(e)===P){7(e.6o)e.6o(a,D.K(e,"1D"),P);N 7(e.6n)e.6n("4n"+a,D.K(e,"1D"))}1I=U;2X i[a]}}})}Q(1I 1m i)1T;7(!1I){I d=D.K(e,"1D");7(d)d.S=U;D.2V(e,"3w");D.2V(e,"1D")}}},1R:G(h,c,f,g,i){c=D.2d(c);7(h.1g("!")>=0){h=h.3s(0,-1);I a=L}7(!f){7(6.24[h])D("*").1d([19,R]).1R(h,c)}N{7(f.12==3||f.12==8)H 11;I b,1I,16=D.1E(f[h]||U),V=!c[0]||!c[0].31;7(V){c.6g({M:h,2G:f,31:G(){},3Y:G(){},4l:1x()});c[0][E]=L}c[0].M=h;7(a)c[0].6l=L;I d=D.K(f,"1D");7(d)b=d.1y(f,c);7((!16||(D.W(f,\'a\')&&h=="4K"))&&f["4n"+h]&&f["4n"+h].1y(f,c)===P)b=P;7(V)c.4r();7(i&&D.1E(i)){1I=i.1y(f,b==U?c:c.78(b));7(1I!==11)b=1I}7(16&&g!==P&&b!==P&&!(D.W(f,\'a\')&&h=="4K")){6.5n=L;1Z{f[h]()}1X(e){}}6.5n=P}H b},1D:G(b){I a,1I,36,5A,4k;b=17[0]=D.V.6k(b||19.V);36=b.M.1P(".");b.M=36[0];36=36[1];5A=!36&&!b.6l;4k=(D.K(6,"3w")||{})[b.M];Q(I j 1m 4k){I c=4k[j];7(5A||c.M==36){b.2v=c;b.K=c.K;1I=c.1y(6,17);7(a!==P)a=1I;7(1I===P){b.31();b.3Y()}}}H a},6k:G(b){7(b[E]==L)H b;I d=b;b={8n:d};I c="8m 8l 8k 8j 2q 8i 45 5D 6i 5b 8h K 8g 8f 4j 2v 58 57 8d 8c 56 6f 8a 89 4L 87 86 85 6c 2G 4l 6b M 82 81 2Q".1P(" ");Q(I i=c.J;i;i--)b[c[i]]=d[c[i]];b[E]=L;b.31=G(){7(d.31)d.31();d.80=P};b.3Y=G(){7(d.3Y)d.3Y();d.7Z=L};b.4l=b.4l||1x();7(!b.2G)b.2G=b.6c||R;7(b.2G.12==3)b.2G=b.2G.1b;7(!b.4L&&b.4j)b.4L=b.4j==b.2G?b.6b:b.4j;7(b.56==U&&b.5D!=U){I a=R.1F,1c=R.1c;b.56=b.5D+(a&&a.2h||1c&&1c.2h||0)-(a.6a||0);b.6f=b.6i+(a&&a.2b||1c&&1c.2b||0)-(a.69||0)}7(!b.2Q&&((b.45||b.45===0)?b.45:b.58))b.2Q=b.45||b.58;7(!b.57&&b.5b)b.57=b.5b;7(!b.2Q&&b.2q)b.2Q=(b.2q&1?1:(b.2q&2?3:(b.2q&4?2:0)));H b},3L:G(a,b){b.23=a.23=a.23||b.23||6.23++;H b},2s:{28:{4o:G(){53();H},4A:G(){H}},4b:{4o:G(){7(D.15.1e)H P;D(6).2N("52",D.V.2s.4b.2v);H L},4A:G(){7(D.15.1e)H P;D(6).4c("52",D.V.2s.4b.2v);H L},2v:G(a){7(F(a,6))H L;a.M="4b";H D.V.1D.1y(6,17)}},4e:{4o:G(){7(D.15.1e)H P;D(6).2N("4Z",D.V.2s.4e.2v);H L},4A:G(){7(D.15.1e)H P;D(6).4c("4Z",D.V.2s.4e.2v);H L},2v:G(a){7(F(a,6))H L;a.M="4e";H D.V.1D.1y(6,17)}}}};D.16.1l({2N:G(c,a,b){H c=="4Y"?6.2W(c,a,b):6.O(G(){D.V.1d(6,c,b||a,b&&a)})},2W:G(d,b,c){I e=D.V.3L(c||b,G(a){D(6).4c(a,e);H(c||b).1y(6,17)});H 6.O(G(){D.V.1d(6,d,e,c&&b)})},4c:G(a,b){H 6.O(G(){D.V.1Y(6,a,b)})},1R:G(c,a,b){H 6.O(G(){D.V.1R(c,a,6,L,b)})},5C:G(c,a,b){H 6[0]&&D.V.1R(c,a,6[0],P,b)},2l:G(b){I c=17,i=1;1H(i<c.J)D.V.3L(b,c[i++]);H 6.4K(D.V.3L(b,G(a){6.4X=(6.4X||0)%i;a.31();H c[6.4X++].1y(6,17)||P}))},7Y:G(a,b){H 6.2N(\'4b\',a).2N(\'4e\',b)},28:G(a){53();7(D.2P)a.1j(R,D);N D.3B.1o(G(){H a.1j(6,D)});H 6}});D.1l({2P:P,3B:[],28:G(){7(!D.2P){D.2P=L;7(D.3B){D.O(D.3B,G(){6.1j(R)});D.3B=U}D(R).5C("28")}}});I x=P;G 53(){7(x)H;x=L;7(R.3K&&!D.15.2J)R.3K("68",D.28,P);7(D.15.1e&&19==1O)(G(){7(D.2P)H;1Z{R.1F.7V("1w")}1X(3d){3z(17.3P,0);H}D.28()})();7(D.15.2J)R.3K("68",G(){7(D.2P)H;Q(I i=0;i<R.4U.J;i++)7(R.4U[i].3O){3z(17.3P,0);H}D.28()},P);7(D.15.2k){I a;(G(){7(D.2P)H;7(R.3e!="67"&&R.3e!="1N"){3z(17.3P,0);H}7(a===11)a=D("T, 7z[7U=7T]").J;7(R.4U.J!=a){3z(17.3P,0);H}D.28()})()}D.V.1d(19,"40",D.28)}D.O(("7R,7Q,40,7P,4y,4Y,4K,84,"+"7O,7N,7M,52,4Z,88,2A,"+"5l,7L,7K,7J,3d").1P(","),G(i,b){D.16[b]=G(a){H a?6.2N(b,a):6.1R(b)}});I F=G(a,c){I b=a.4L;1H(b&&b!=c)1Z{b=b.1b}1X(3d){b=c}H b==c};D(19).2N("4Y",G(){D("*").1d(R).4c()});D.16.1l({6d:D.16.40,40:G(g,d,c){7(1i g!=\'21\')H 6.6d(g);I e=g.1g(" ");7(e>=0){I i=g.3s(e,g.J);g=g.3s(0,e)}c=c||G(){};I f="2S";7(d)7(D.1E(d)){c=d;d=U}N{d=D.3y(d);f="66"}I h=6;D.3T({1a:g,M:f,1K:"2I",K:d,1N:G(a,b){7(b=="22"||b=="6z")h.2I(i?D("<1t/>").3v(a.4C.1n(/<1k(.|\\s)*?\\/1k>/g,"")).2x(i):a.4C);h.O(c,[a.4C,b,a])}});H 6},aL:G(){H D.3y(6.7H())},7H:G(){H 6.2j(G(){H D.W(6,"3W")?D.2d(6.aH):6}).1C(G(){H 6.37&&!6.3O&&(6.4D||/2A|6x/i.Y(6.W)||/1q|1B|3E/i.Y(6.M))}).2j(G(i,c){I b=D(6).6e();H b==U?U:b.1u==2p?D.2j(b,G(a,i){H{37:c.37,2u:a}}):{37:c.37,2u:b}}).3o()}});D.O("7G,7F,7E,7D,7B,7A".1P(","),G(i,o){D.16[o]=G(f){H 6.2N(o,f)}});I B=1x();D.1l({3o:G(d,b,a,c){7(D.1E(b)){a=b;b=U}H D.3T({M:"2S",1a:d,K:b,22:a,1K:c})},aC:G(b,a){H D.3o(b,U,a,"1k")},aB:G(c,b,a){H D.3o(c,b,a,"3u")},aA:G(d,b,a,c){7(D.1E(b)){a=b;b={}}H D.3T({M:"66",1a:d,K:b,22:a,1K:c})},az:G(a){D.1l(D.5Z,a)},5Z:{1a:5Y.5N,24:L,M:"2S",2T:0,7y:"4t/x-aw-3W-au",7w:L,3c:L,K:U,5V:U,3E:U,4v:{2M:"4t/2M, 1q/2M",2I:"1q/2I",1k:"1q/4s, 4t/4s",3u:"4t/3u, 1q/4s",1q:"1q/aq",4Q:"*/*"}},4x:{},3T:G(s){s=D.1l(L,s,D.1l(L,{},D.5Z,s));I g,33=/=\\?(&|$)/g,1v,K,M=s.M.2o();7(s.K&&s.7w&&1i s.K!="21")s.K=D.3y(s.K);7(s.1K=="4P"){7(M=="2S"){7(!s.1a.1A(33))s.1a+=(s.1a.1A(/\\?/)?"&":"?")+(s.4P||"7t")+"=?"}N 7(!s.K||!s.K.1A(33))s.K=(s.K?s.K+"&":"")+(s.4P||"7t")+"=?";s.1K="3u"}7(s.1K=="3u"&&(s.K&&s.K.1A(33)||s.1a.1A(33))){g="4P"+B++;7(s.K)s.K=(s.K+"").1n(33,"="+g+"$1");s.1a=s.1a.1n(33,"="+g+"$1");s.1K="1k";19[g]=G(a){K=a;22();1N();19[g]=11;1Z{2X 19[g]}1X(e){}7(i)i.2Z(h)}}7(s.1K=="1k"&&s.1V==U)s.1V=P;7(s.1V===P&&M=="2S"){I j=1x();I k=s.1a.1n(/(\\?|&)3k=.*?(&|$)/,"$am="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1A(/\\?/)?"&":"?")+"3k="+j:"")}7(s.K&&M=="2S"){s.1a+=(s.1a.1A(/\\?/)?"&":"?")+s.K;s.K=U}7(s.24&&!D.4O++)D.V.1R("7G");I n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;7(s.1K=="1k"&&M=="2S"&&n.Y(s.1a)&&n.2K(s.1a)[1]!=5Y.aj){I i=R.3F("6v")[0];I h=R.3h("1k");h.3X=s.1a;7(s.7s)h.ah=s.7s;7(!g){I l=P;h.ag=h.ae=G(){7(!l&&(!6.3e||6.3e=="67"||6.3e=="1N")){l=L;22();1N();i.2Z(h)}}}i.3R(h);H 11}I m=P;I c=19.7q?2t 7q("ac.ab"):2t 7p();7(s.5V)c.7o(M,s.1a,s.3c,s.5V,s.3E);N c.7o(M,s.1a,s.3c);1Z{7(s.K)c.4B("a9-a8",s.7y);7(s.5Q)c.4B("a7-5P-a6",D.4x[s.1a]||"a5, a4 a3 a2 5x:5x:5x a0");c.4B("X-9X-9W","7p");c.4B("9V",s.1K&&s.4v[s.1K]?s.4v[s.1K]+", */*":s.4v.4Q)}1X(e){}7(s.7k&&s.7k(c,s)===P){s.24&&D.4O--;c.7j();H P}7(s.24)D.V.1R("7A",[c,s]);I d=G(a){7(!m&&c&&(c.3e==4||a=="2T")){m=L;7(f){7i(f);f=U}1v=a=="2T"&&"2T"||!D.7h(c)&&"3d"||s.5Q&&D.7g(c,s.1a)&&"6z"||"22";7(1v=="22"){1Z{K=D.7f(c,s.1K,s.9R)}1X(e){1v="5I"}}7(1v=="22"){I b;1Z{b=c.5z("7d-5P")}1X(e){}7(s.5Q&&b)D.4x[s.1a]=b;7(!g)22()}N D.5G(s,c,1v);1N();7(s.3c)c=U}};7(s.3c){I f=4H(d,13);7(s.2T>0)3z(G(){7(c){c.7j();7(!m)d("2T")}},s.2T)}1Z{c.9O(s.K)}1X(e){D.5G(s,c,U,e)}7(!s.3c)d();G 22(){7(s.22)s.22(K,1v);7(s.24)D.V.1R("7B",[c,s])}G 1N(){7(s.1N)s.1N(c,1v);7(s.24)D.V.1R("7E",[c,s]);7(s.24&&!--D.4O)D.V.1R("7F")}H c},5G:G(s,a,b,e){7(s.3d)s.3d(a,b,e);7(s.24)D.V.1R("7D",[a,s,e])},4O:0,7h:G(a){1Z{H!a.1v&&5Y.9N=="5m:"||(a.1v>=70&&a.1v<9L)||a.1v==7a||a.1v==9J||D.15.2k&&a.1v==11}1X(e){}H P},7g:G(a,c){1Z{I b=a.5z("7d-5P");H a.1v==7a||b==D.4x[c]||D.15.2k&&a.1v==11}1X(e){}H P},7f:G(a,c,b){I d=a.5z("9I-M"),2M=c=="2M"||!c&&d&&d.1g("2M")>=0,K=2M?a.9H:a.4C;7(2M&&K.1F.2e=="5I")7l"5I";7(b)K=b(K,c);7(c=="1k")D.5s(K);7(c=="3u")K=6t("("+K+")");H K},3y:G(a){I s=[];7(a.1u==2p||a.5u)D.O(a,G(){s.1o(3q(6.37)+"="+3q(6.2u))});N Q(I j 1m a)7(a[j]&&a[j].1u==2p)D.O(a[j],G(){s.1o(3q(j)+"="+3q(6))});N s.1o(3q(j)+"="+3q(D.1E(a[j])?a[j]():a[j]));H s.6r("&").1n(/%20/g,"+")}});D.16.1l({1M:G(c,b){H c?6.2f({1S:"1M",2g:"1M",1r:"1M"},c,b):6.1C(":1B").O(G(){6.T.18=6.5E||"";7(D.1f(6,"18")=="2L"){I a=D("<"+6.2e+" />").6P("1c");6.T.18=a.1f("18");7(6.T.18=="2L")6.T.18="3G";a.1Y()}}).3m()},1L:G(b,a){H b?6.2f({1S:"1L",2g:"1L",1r:"1L"},b,a):6.1C(":4i").O(G(){6.5E=6.5E||D.1f(6,"18");6.T.18="2L"}).3m()},76:D.16.2l,2l:G(a,b){H D.1E(a)&&D.1E(b)?6.76.1y(6,17):a?6.2f({1S:"2l",2g:"2l",1r:"2l"},a,b):6.O(G(){D(6)[D(6).3A(":1B")?"1M":"1L"]()})},9F:G(b,a){H 6.2f({1S:"1M"},b,a)},9E:G(b,a){H 6.2f({1S:"1L"},b,a)},9D:G(b,a){H 6.2f({1S:"2l"},b,a)},9C:G(b,a){H 6.2f({1r:"1M"},b,a)},9B:G(b,a){H 6.2f({1r:"1L"},b,a)},9M:G(c,a,b){H 6.2f({1r:a},c,b)},2f:G(k,j,i,g){I h=D.75(j,i,g);H 6[h.35===P?"O":"35"](G(){7(6.12!=1)H P;I f=D.1l({},h),p,1B=D(6).3A(":1B"),46=6;Q(p 1m k){7(k[p]=="1L"&&1B||k[p]=="1M"&&!1B)H f.1N.1j(6);7(p=="1S"||p=="2g"){f.18=D.1f(6,"18");f.32=6.T.32}}7(f.32!=U)6.T.32="1B";f.44=D.1l({},k);D.O(k,G(c,a){I e=2t D.29(46,f,c);7(/2l|1M|1L/.Y(a))e[a=="2l"?1B?"1M":"1L":a](k);N{I b=a.6q().1A(/^([+-]=)?([\\d+-.]+)(.*)$/),27=e.1s(L)||0;7(b){I d=2Y(b[2]),2H=b[3]||"2U";7(2H!="2U"){46.T[c]=(d||1)+2H;27=((d||1)/e.1s(L))*27;46.T[c]=27+2H}7(b[1])d=((b[1]=="-="?-1:1)*d)+27;e.47(27,d,2H)}N e.47(27,a,"")}});H L})},35:G(a,b){7(D.1E(a)||(a&&a.1u==2p)){b=a;a="29"}7(!a||(1i a=="21"&&!b))H A(6[0],a);H 6.O(G(){7(b.1u==2p)A(6,a,b);N{A(6,a).1o(b);7(A(6,a).J==1)b.1j(6)}})},9w:G(b,c){I a=D.3M;7(b)6.35([]);6.O(G(){Q(I i=a.J-1;i>=0;i--)7(a[i].S==6){7(c)a[i](L);a.7I(i,1)}});7(!c)6.5T();H 6}});I A=G(b,c,a){7(b){c=c||"29";I q=D.K(b,c+"35");7(!q||a)q=D.K(b,c+"35",D.2d(a))}H q};D.16.5T=G(a){a=a||"29";H 6.O(G(){I q=A(6,a);q.4r();7(q.J)q[0].1j(6)})};D.1l({75:G(b,a,c){I d=b&&b.1u==9Z?b:{1N:c||!c&&a||D.1E(b)&&b,2r:b,48:c&&a||a&&a.1u!=9r&&a};d.2r=(d.2r&&d.2r.1u==5g?d.2r:D.29.5J[d.2r])||D.29.5J.72;d.5M=d.1N;d.1N=G(){7(d.35!==P)D(6).5T();7(D.1E(d.5M))d.5M.1j(6)};H d},48:{71:G(p,n,b,a){H b+a*p},5K:G(p,n,b,a){H((-26.9p(p*26.9o)/2)+0.5)*a+b}},3M:[],43:U,29:G(b,c,a){6.14=c;6.S=b;6.1h=a;7(!c.3Z)c.3Z={}}});D.29.4d={4M:G(){7(6.14.39)6.14.39.1j(6.S,6.1x,6);(D.29.39[6.1h]||D.29.39.4Q)(6);7(6.1h=="1S"||6.1h=="2g")6.S.T.18="3G"},1s:G(a){7(6.S[6.1h]!=U&&6.S.T[6.1h]==U)H 6.S[6.1h];I r=2Y(D.1f(6.S,6.1h,a));H r&&r>-9m?r:2Y(D.2a(6.S,6.1h))||0},47:G(c,b,d){6.5v=1x();6.27=c;6.3m=b;6.2H=d||6.2H||"2U";6.1x=6.27;6.2R=6.4F=0;6.4M();I e=6;G t(a){H e.39(a)}t.S=6.S;D.3M.1o(t);7(D.43==U){D.43=4H(G(){I a=D.3M;Q(I i=0;i<a.J;i++)7(!a[i]())a.7I(i--,1);7(!a.J){7i(D.43);D.43=U}},13)}},1M:G(){6.14.3Z[6.1h]=D.1J(6.S.T,6.1h);6.14.1M=L;6.47(0,6.1s());7(6.1h=="2g"||6.1h=="1S")6.S.T[6.1h]="9l";D(6.S).1M()},1L:G(){6.14.3Z[6.1h]=D.1J(6.S.T,6.1h);6.14.1L=L;6.47(6.1s(),0)},39:G(a){I t=1x();7(a||t>6.14.2r+6.5v){6.1x=6.3m;6.2R=6.4F=1;6.4M();6.14.44[6.1h]=L;I b=L;Q(I i 1m 6.14.44)7(6.14.44[i]!==L)b=P;7(b){7(6.14.18!=U){6.S.T.32=6.14.32;6.S.T.18=6.14.18;7(D.1f(6.S,"18")=="2L")6.S.T.18="3G"}7(6.14.1L)6.S.T.18="2L";7(6.14.1L||6.14.1M)Q(I p 1m 6.14.44)D.1J(6.S.T,p,6.14.3Z[p])}7(b)6.14.1N.1j(6.S);H P}N{I n=t-6.5v;6.4F=n/6.14.2r;6.2R=D.48[6.14.48||(D.48.5K?"5K":"71")](6.4F,n,0,1,6.14.2r);6.1x=6.27+((6.3m-6.27)*6.2R);6.4M()}H L}};D.1l(D.29,{5J:{9j:9i,9g:70,72:9f},39:{2h:G(a){a.S.2h=a.1x},2b:G(a){a.S.2b=a.1x},1r:G(a){D.1J(a.S.T,"1r",a.1x)},4Q:G(a){a.S.T[a.1h]=a.1x+a.2H}}});D.16.2i=G(){I b=0,1O=0,S=6[0],3x;7(S)9d(D.15){I d=S.1b,3U=S,1p=S.1p,1Q=S.2y,5w=2k&&3r(5B)<99&&!/at/i.Y(v),1f=D.2a,3b=1f(S,"30")=="3b";7(S.6V){I c=S.6V();1d(c.1w+26.2c(1Q.1F.2h,1Q.1c.2h),c.1O+26.2c(1Q.1F.2b,1Q.1c.2b));1d(-1Q.1F.6a,-1Q.1F.69)}N{1d(S.5U,S.5W);1H(1p){1d(1p.5U,1p.5W);7(42&&!/^t(96|d|h)$/i.Y(1p.2e)||2k&&!5w)2m(1p);7(!3b&&1f(1p,"30")=="3b")3b=L;3U=/^1c$/i.Y(1p.2e)?3U:1p;1p=1p.1p}1H(d&&d.2e&&!/^1c|2I$/i.Y(d.2e)){7(!/^95|1U.*$/i.Y(1f(d,"18")))1d(-d.2h,-d.2b);7(42&&1f(d,"32")!="4i")2m(d);d=d.1b}7((5w&&(3b||1f(3U,"30")=="64"))||(42&&1f(3U,"30")!="64"))1d(-1Q.1c.5U,-1Q.1c.5W);7(3b)1d(26.2c(1Q.1F.2h,1Q.1c.2h),26.2c(1Q.1F.2b,1Q.1c.2b))}3x={1O:1O,1w:b}}G 2m(a){1d(D.2a(a,"6T",L),D.2a(a,"7x",L))}G 1d(l,t){b+=3r(l,10)||0;1O+=3r(t,10)||0}H 3x};D.16.1l({30:G(){I a=0,1O=0,3x;7(6[0]){I b=6.1p(),2i=6.2i(),4a=/^1c|2I$/i.Y(b[0].2e)?{1O:0,1w:0}:b.2i();2i.1O-=25(6,\'93\');2i.1w-=25(6,\'aE\');4a.1O+=25(b,\'7x\');4a.1w+=25(b,\'6T\');3x={1O:2i.1O-4a.1O,1w:2i.1w-4a.1w}}H 3x},1p:G(){I a=6[0].1p;1H(a&&(!/^1c|2I$/i.Y(a.2e)&&D.1f(a,\'30\')==\'aF\'))a=a.1p;H D(a)}});D.O([\'5c\',\'5a\'],G(i,b){I c=\'4y\'+b;D.16[c]=G(a){7(!6[0])H;H a!=11?6.O(G(){6==19||6==R?19.91(!i?a:D(19).2h(),i?a:D(19).2b()):6[c]=a}):6[0]==19||6[0]==R?46[i?\'90\':\'aI\']||D.6Y&&R.1F[c]||R.1c[c]:6[0][c]}});D.O(["6N","49"],G(i,b){I c=i?"5c":"5a",3H=i?"6j":"6h";D.16["5p"+b]=G(){H 6[b.3g()]()+25(6,"55"+c)+25(6,"55"+3H)};D.16["aJ"+b]=G(a){H 6["5p"+b]()+25(6,"2m"+c+"49")+25(6,"2m"+3H+"49")+(a?25(6,"6R"+c)+25(6,"6R"+3H):0)}})})();',62,668,"||||||this|if|||||||||||||||||||||||||||||||||||function|return|var|length|data|true|type|else|each|false|for|document|elem|style|null|event|nodeName||test|||undefined|nodeType||options|browser|fn|arguments|display|window|url|parentNode|body|add|msie|css|indexOf|prop|typeof|call|script|extend|in|replace|push|offsetParent|text|opacity|cur|div|constructor|status|left|now|apply|firstChild|match|hidden|filter|handle|isFunction|documentElement|className|while|ret|attr|dataType|hide|show|complete|top|split|doc|trigger|height|break|table|cache|tbody|catch|remove|try||string|success|guid|global|num|Math|start|ready|fx|curCSS|scrollTop|max|makeArray|tagName|animate|width|scrollLeft|offset|map|safari|toggle|border||toUpperCase|Array|button|duration|special|new|value|handler|id|find|ownerDocument|done|select|copy|pushStack|stack|inArray|nextSibling|target|unit|html|opera|exec|none|xml|bind|merge|isReady|which|pos|GET|timeout|px|removeData|one|delete|parseFloat|removeChild|position|preventDefault|overflow|jsre|nth|queue|namespace|name|insertBefore|step|selected|fixed|async|error|readyState|multiFilter|toLowerCase|createElement|rl|re|_|trim|end|first|get|elems|encodeURIComponent|parseInt|slice|childNodes|json|append|events|results|param|setTimeout|is|readyList|grep|color|password|getElementsByTagName|block|br|props|has|addEventListener|proxy|timers|defaultView|disabled|callee|last|appendChild|domManip|ajax|offsetChild|object|form|src|stopPropagation|orig|load|set|mozilla|timerId|curAnim|charCode|self|custom|easing|Width|parentOffset|mouseenter|unbind|prototype|mouseleave|currentStyle|clean|float|visible|fromElement|handlers|timeStamp|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|application|child|accepts|RegExp|lastModified|scroll|deep|teardown|setRequestHeader|responseText|checked|empty|state|jQuery|setInterval|innerHTML|getAttribute|click|relatedTarget|update|tr|active|jsonp|_default|previousSibling|input|dir|styleSheets|not|outline|lastToggle|unload|mouseout|getPropertyValue|getComputedStyle|mouseover|bindReady|String|padding|pageX|metaKey|keyCode|getWH|Top|ctrlKey|Left|visibility|container|index|Number|removeAttribute|classFilter|prevObject|after|submit|file|triggered|windowData|inner|client|init|globalEval|sibling|jquery|startTime|safari2|00|wrapAll|getResponseHeader|all|version|triggerHandler|clientX|oldblock|createTextNode|handleError|andSelf|parsererror|speeds|swing|checkbox|old|href|radio|Modified|ifModified|lastChild|clone|dequeue|offsetLeft|username|offsetTop|getElementById|location|ajaxSettings|values|isSimple|runtimeStyle|selectedIndex|absolute|rsLeft|POST|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|_load|val|pageY|unshift|Bottom|clientY|Right|fix|exclusive|cloneNode|detachEvent|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|notmodified|image|zoom|odd|even|before|prepend|expr|exclude|quickClass|quickID|quickChild|uuid|continue|Height|textContent|appendTo|contents|margin|evalScript|borderLeftWidth|parent|getBoundingClientRect|setArray|compatMode|boxModel|cssFloat|200|linear|def|webkit|nodeValue|speed|_toggle|eq|concat|100|304|alpha|replaceWith|Last|getAttributeNode|httpData|httpNotModified|httpSuccess|clearInterval|abort|beforeSend|throw|styleFloat|colgroup|open|XMLHttpRequest|ActiveXObject|CSS1Compat|scriptCharset|callback|fieldset|multiple|processData|borderTopWidth|contentType|link|ajaxSend|ajaxSuccess|col|ajaxError|ajaxComplete|ajaxStop|ajaxStart|serializeArray|splice|keyup|keypress|keydown|mousemove|mouseup|mousedown|resize|focus|blur|hasClass|stylesheet|rel|doScroll|black|solid|hover|cancelBubble|returnValue|wheelDelta|view|round|dblclick|shiftKey|screenY|screenX|change|relatedNode|prevValue|offsetHeight|originalTarget|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|enabled|line|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|toggleClass|Date|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|prev|pageYOffset|scrollTo|next|marginTop|parents|inline|able|cellSpacing|cellspacing|522|maxLength|maxlength|readOnly|with|readonly|400|fast|class|600|slow|htmlFor|1px|10000|reverse|PI|cos|compatible|Function|ie|ra|setData|it|stop|rv|userAgent|getData|navigator|fadeOut|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|300|fadeTo|protocol|send|setAttribute|cssText|dataFilter|option|changed|be|Accept|With|Requested|can|Object|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|th|XMLHTTP|Microsoft|td|onreadystatechange|cap|onload|charset|colg|host|tfoot|specified|1_|thead|leg|attributes|plain|opt|embed|adobeair|urlencoded|area|www|hr|meta|ajaxSetup|post|getJSON|getScript|img|marginLeft|static|abbr|elements|pageXOffset|outer|pixelLeft|serialize".split("|"),0,{}));jQuery.extend(jQuery.easing,{easein:function(x,t,b,c,d){return c*(t/=d)*t+b},easeinout:function(x,t,b,c,d){if(t<d/2){return 2*c*t*t/(d*d)+b}var ts=t-d/2;return -2*c*ts*ts/(d*d)+2*c*ts/d+c/2+b},easeout:function(x,t,b,c,d){return -c*t*t/(d*d)+2*c*t/d+b},expoin:function(x,t,b,c,d){var flip=1;if(c<0){flip*=-1;c*=-1}return flip*(Math.exp(Math.log(c)/d*t))+b},expoout:function(x,t,b,c,d){var flip=1;if(c<0){flip*=-1;c*=-1}return flip*(-Math.exp(-Math.log(c)/d*(t-d))+c+1)+b},expoinout:function(x,t,b,c,d){var flip=1;if(c<0){flip*=-1;c*=-1}if(t<d/2){return flip*(Math.exp(Math.log(c/2)/(d/2)*t))+b}return flip*(-Math.exp(-2*Math.log(c/2)/d*(t-d))+c+1)+b},bouncein:function(x,t,b,c,d){return c-jQuery.easing.bounceout(x,d-t,0,c,d)+b},bounceout:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b}}}},bounceinout:function(x,t,b,c,d){if(t<d/2){return jQuery.easing.bouncein(x,t*2,0,c,d)*0.5+b}return jQuery.easing.bounceout(x,t*2-d,0,c,d)*0.5+c*0.5+b},elasin:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},elasout:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},elasinout:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b}if((t/=d/2)==2){return b+c}if(!p){p=d*(0.3*1.5)}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b},backin:function(x,t,b,c,d){var s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},backout:function(x,t,b,c,d){var s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},backinout:function(x,t,b,c,d){var s=1.70158;if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b}return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b}});if(jQuery){(function($){$.extend($.fn,{fileTree:function(o,h){if(!o){var o={}}if(o.root==undefined){o.root="/"}if(o.script==undefined){o.script="jqueryFileTree.php"}if(o.folderEvent==undefined){o.folderEvent="click"}if(o.expandSpeed==undefined){o.expandSpeed=500}if(o.collapseSpeed==undefined){o.collapseSpeed=500}if(o.expandEasing==undefined){o.expandEasing=null}if(o.collapseEasing==undefined){o.collapseEasing=null}if(o.multiFolder==undefined){o.multiFolder=true}if(o.loadMessage==undefined){o.loadMessage="Loading..."}$(this).each(function(){function showTree(c,t){$(c).addClass("wait");$(".jqueryFileTree.start").remove();$.post(o.script,{dir:t},function(data){$(c).find(".start").html("");$(c).removeClass("wait").append(data);if(o.root==t){$(c).find("UL:hidden").show()}else{$(c).find("UL:hidden").slideDown({duration:o.expandSpeed,easing:o.expandEasing})}bindTree(c)})}function bindTree(t){$(t).find("LI A").bind(o.folderEvent,function(){if($(this).parent().hasClass("directory")){if($(this).parent().hasClass("collapsed")){if(!o.multiFolder){$(this).parent().parent().find("UL").slideUp({duration:o.collapseSpeed,easing:o.collapseEasing});$(this).parent().parent().find("LI.directory").removeClass("expanded").addClass("collapsed")}$(this).parent().find("UL").remove();showTree($(this).parent(),escape($(this).attr("rel").match(/.*\//)));$(this).parent().removeClass("collapsed").addClass("expanded")}else{$(this).parent().find("UL").slideUp({duration:o.collapseSpeed,easing:o.collapseEasing});$(this).parent().removeClass("expanded").addClass("collapsed")}}else{}return false});if(o.folderEvent.toLowerCase!="click"){$(t).find("LI A").bind("click",function(){return false})}}$(this).html('<ul class="jqueryFileTree start"><li class="wait">'+o.loadMessage+"<li></ul>");showTree($(this),escape(o.root))})}})})(jQuery)}(function($){$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return }for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args)}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name]}var tmp=$('<div class="ui-resizable-gen">').addClass(name).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css("cursor"))||(/^[1-9]/).test(tmp.css("height"))||(/^[1-9]/).test(tmp.css("width"))||!(/none/).test(tmp.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css("backgroundColor"))));try{$("body").get(0).removeChild(tmp.get(0))}catch(e){}return $.ui.cssCache[name]},disableSelection:function(e){e.unselectable="on";e.onselectstart=function(){return false};if(e.style){e.style.MozUserSelect="none"}},enableSelection:function(e){e.unselectable="off";e.onselectstart=function(){return true};if(e.style){e.style.MozUserSelect=""}},hasScroll:function(e,a){var scroll=/top/.test(a||"top")?"scrollTop":"scrollLeft",has=false;if(e[scroll]>0){return true}e[scroll]=1;has=e[scroll]>0?true:false;e[scroll]=0;return has}};var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).trigger("remove");return _remove.apply(this,arguments)};function getter(namespace,plugin,method){var methods=$[namespace][plugin].getter||[];methods=(typeof methods=="string"?methods.split(/,?\s+/):methods);return($.inArray(method,methods)!=-1)}$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=="string"),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&getter(namespace,name,options)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined)}return this.each(function(){var instance=$.data(this,name);if(isMethodCall&&instance&&$.isFunction(instance[options])){instance[options].apply(instance,args)}else{if(!isMethodCall){$.data(this,name,new $[namespace][name](this,options))}}})};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetBaseClass=namespace+"-"+name;this.options=$.extend({disabled:false},$[namespace][name].defaults,options);this.element=$(element).bind("setData."+name,function(e,key,value){return self.setData(key,value)}).bind("getData."+name,function(e,key){return self.getData(key)}).bind("remove",function(){return self.destroy()});this.init()};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype)};$.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(key){return this.options[key]},setData:function(key,value){this.options[key]=value;if(key=="disabled"){this.element[value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};$.ui.mouse={mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(e){return self.mouseDown(e)});if($.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);($.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(e){(this._mouseStarted&&this.mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).is(this.options.cancel):false);if(!btnIsLeft||elIsCancel||!this.mouseCapture(e)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true}}this._mouseMoveDelegate=function(e){return self.mouseMove(e)};this._mouseUpDelegate=function(e){return self.mouseUp(e)};$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(e){if($.browser.msie&&!e.button){return this.mouseUp(e)}if(this._mouseStarted){this.mouseDrag(e);return false}if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this.mouseDrag(e):this.mouseUp(e))}return !this._mouseStarted},mouseUp:function(e){$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(e)}return false},mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance)},mouseDelayMet:function(e){return this._mouseDelayMet},mouseStart:function(e){},mouseDrag:function(e){},mouseStop:function(e){},mouseCapture:function(e){return true}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function($){$.widget("ui.tabs",{init:function(){this.options.event+=".tabs";this.tabify(true)},setData:function(key,value){if((/^selected/).test(key)){this.select(value)}else{this.options[key]=value;this.tabify()}},length:function(){return this.$tabs.length},tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+$.data(a)},ui:function(tab,panel){return{options:this.options,tab:tab,panel:panel}},tabify:function(init){this.$lis=$("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return $("a",this)[0]});this.$panels=$([]);var self=this,o=this.options;this.$tabs.each(function(i,a){if(a.hash&&a.hash.replace("#","")){self.$panels=self.$panels.add(a.hash)}else{if($(a).attr("href")!="#"){$.data(a,"href.tabs",a.href);$.data(a,"load.tabs",a.href);var id=self.tabId(a);a.href="#"+id;var $panel=$("#"+id);if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).addClass(o.panelClass).insertAfter(self.$panels[i-1]||self.element);$panel.data("destroy.tabs",true)}self.$panels=self.$panels.add($panel)}else{o.disabled.push(i+1)}}});if(init){this.element.addClass(o.navClass);this.$panels.each(function(){var $this=$(this);$this.addClass(o.panelClass)});if(o.selected===undefined){if(location.hash){this.$tabs.each(function(i,a){if(a.hash==location.hash){o.selected=i;if($.browser.msie||$.browser.opera){var $toShow=$(location.hash),toShowId=$toShow.attr("id");$toShow.attr("id","");setTimeout(function(){$toShow.attr("id",toShowId)},500)}scrollTo(0,0);return false}})}else{if(o.cookie){var index=parseInt($.cookie("ui-tabs"+$.data(self.element)),10);if(index&&self.$tabs[index]){o.selected=index}}else{if(self.$lis.filter("."+o.selectedClass).length){o.selected=self.$lis.index(self.$lis.filter("."+o.selectedClass)[0])}}}}o.selected=o.selected===null||o.selected!==undefined?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.$lis.filter("."+o.disabledClass),function(n,i){return self.$lis.index(n)}))).sort();if($.inArray(o.selected,o.disabled)!=-1){o.disabled.splice($.inArray(o.selected,o.disabled),1)}this.$panels.addClass(o.hideClass);this.$lis.removeClass(o.selectedClass);if(o.selected!==null){this.$panels.eq(o.selected).show().removeClass(o.hideClass);this.$lis.eq(o.selected).addClass(o.selectedClass);var onShow=function(){$(self.element).triggerHandler("tabsshow",[self.ui(self.$tabs[o.selected],self.$panels[o.selected])],o.show)};if($.data(this.$tabs[o.selected],"load.tabs")){this.load(o.selected,onShow)}else{onShow()}}$(window).bind("unload",function(){self.$tabs.unbind(".tabs");self.$lis=self.$tabs=self.$panels=null})}for(var i=0,li;li=this.$lis[i];i++){$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass(o.selectedClass)?"addClass":"removeClass"](o.disabledClass)}if(o.cache===false){this.$tabs.removeData("cache.tabs")}var hideFx,showFx,baseFx={"min-width":0,duration:1},baseDuration="normal";if(o.fx&&o.fx.constructor==Array){hideFx=o.fx[0]||baseFx,showFx=o.fx[1]||baseFx}else{hideFx=showFx=o.fx||baseFx}var resetCSS={display:"",overflow:"",height:""};if(!$.browser.msie){resetCSS.opacity=""}function hideTab(clicked,$hide,$show){$hide.animate(hideFx,hideFx.duration||baseDuration,function(){$hide.addClass(o.hideClass).css(resetCSS);if($.browser.msie&&hideFx.opacity){$hide[0].style.filter=""}if($show){showTab(clicked,$show,$hide)}})}function showTab(clicked,$show,$hide){if(showFx===baseFx){$show.css("display","block")}$show.animate(showFx,showFx.duration||baseDuration,function(){$show.removeClass(o.hideClass).css(resetCSS);if($.browser.msie&&showFx.opacity){$show[0].style.filter=""}$(self.element).triggerHandler("tabsshow",[self.ui(clicked,$show[0])],o.show)})}function switchTab(clicked,$li,$hide,$show){$li.addClass(o.selectedClass).siblings().removeClass(o.selectedClass);hideTab(clicked,$hide,$show)}this.$tabs.unbind(".tabs").bind(o.event,function(){var $li=$(this).parents("li:eq(0)"),$hide=self.$panels.filter(":visible"),$show=$(this.hash);if(($li.hasClass(o.selectedClass)&&!o.unselect)||$li.hasClass(o.disabledClass)||$(this).hasClass(o.loadingClass)||$(self.element).triggerHandler("tabsselect",[self.ui(this,$show[0])],o.select)===false){this.blur();return false}self.options.selected=self.$tabs.index(this);if(o.unselect){if($li.hasClass(o.selectedClass)){self.options.selected=null;$li.removeClass(o.selectedClass);self.$panels.stop();hideTab(this,$hide);this.blur();return false}else{if(!$hide.length){self.$panels.stop();var a=this;self.load(self.$tabs.index(this),function(){$li.addClass(o.selectedClass).addClass(o.unselectClass);showTab(a,$show)});this.blur();return false}}}if(o.cookie){$.cookie("ui-tabs"+$.data(self.element),self.options.selected,o.cookie)}self.$panels.stop();if($show.length){var a=this;self.load(self.$tabs.index(this),$hide.length?function(){switchTab(a,$li,$hide,$show)}:function(){$li.addClass(o.selectedClass);showTab(a,$show)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if($.browser.msie){this.blur()}return false});if(!(/^click/).test(o.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(url,label,index){if(index==undefined){index=this.$tabs.length}var o=this.options;var $li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label));$li.data("destroy.tabs",true);var id=url.indexOf("#")==0?url.replace("#",""):this.tabId($("a:first-child",$li)[0]);var $panel=$("#"+id);if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).addClass(o.hideClass).data("destroy.tabs",true)}$panel.addClass(o.panelClass);if(index>=this.$lis.length){$li.appendTo(this.element);$panel.appendTo(this.element[0].parentNode)}else{$li.insertBefore(this.$lis[index]);$panel.insertBefore(this.$panels[index])}o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n});this.tabify();if(this.$tabs.length==1){$li.addClass(o.selectedClass);$panel.removeClass(o.hideClass);var href=$.data(this.$tabs[0],"load.tabs");if(href){this.load(index,href)}}this.element.triggerHandler("tabsadd",[this.ui(this.$tabs[index],this.$panels[index])],o.add)},remove:function(index){var o=this.options,$li=this.$lis.eq(index).remove(),$panel=this.$panels.eq(index).remove();if($li.hasClass(o.selectedClass)&&this.$tabs.length>1){this.select(index+(index+1<this.$tabs.length?1:-1))}o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index}),function(n,i){return n>=index?--n:n});this.tabify();this.element.triggerHandler("tabsremove",[this.ui($li.find("a")[0],$panel[0])],o.remove)},enable:function(index){var o=this.options;if($.inArray(index,o.disabled)==-1){return }var $li=this.$lis.eq(index).removeClass(o.disabledClass);if($.browser.safari){$li.css("display","inline-block");setTimeout(function(){$li.css("display","block")},0)}o.disabled=$.grep(o.disabled,function(n,i){return n!=index});this.element.triggerHandler("tabsenable",[this.ui(this.$tabs[index],this.$panels[index])],o.enable)},disable:function(index){var self=this,o=this.options;if(index!=o.selected){this.$lis.eq(index).addClass(o.disabledClass);o.disabled.push(index);o.disabled.sort();this.element.triggerHandler("tabsdisable",[this.ui(this.$tabs[index],this.$panels[index])],o.disable)}},select:function(index){if(typeof index=="string"){index=this.$tabs.index(this.$tabs.filter("[href$="+index+"]")[0])}this.$tabs.eq(index).trigger(this.options.event)},load:function(index,callback){var self=this,o=this.options,$a=this.$tabs.eq(index),a=$a[0],bypassCache=callback==undefined||callback===false,url=$a.data("load.tabs");callback=callback||function(){};if(!url||!bypassCache&&$.data(a,"cache.tabs")){callback();return }var inner=function(parent){var $parent=$(parent),$inner=$parent.find("*:last");return $inner.length&&$inner||$parent};var cleanup=function(){self.$tabs.filter("."+o.loadingClass).removeClass(o.loadingClass).each(function(){if(o.spinner){inner(this).parent().html(inner(this).data("label.tabs"))}});self.xhr=null};if(o.spinner){var label=inner(a).html();inner(a).wrapInner("<em></em>").find("em").data("label.tabs",label).html(o.spinner)}var ajaxOptions=$.extend({},o.ajaxOptions,{url:url,success:function(r,s){$(a.hash).html(r);cleanup();if(o.cache){$.data(a,"cache.tabs",true)}$(self.element).triggerHandler("tabsload",[self.ui(self.$tabs[index],self.$panels[index])],o.load);o.ajaxOptions.success&&o.ajaxOptions.success(r,s);callback()}});if(this.xhr){this.xhr.abort();cleanup()}$a.addClass(o.loadingClass);setTimeout(function(){self.xhr=$.ajax(ajaxOptions)},0)},url:function(index,url){this.$tabs.eq(index).removeData("cache.tabs").data("load.tabs",url)},destroy:function(){var o=this.options;this.element.unbind(".tabs").removeClass(o.navClass).removeData("tabs");this.$tabs.each(function(){var href=$.data(this,"href.tabs");if(href){this.href=href}var $this=$(this).unbind(".tabs");$.each(["href","load","cache"],function(i,prefix){$this.removeData(prefix+".tabs")})});this.$lis.add(this.$panels).each(function(){if($.data(this,"destroy.tabs")){$(this).remove()}else{$(this).removeClass([o.selectedClass,o.unselectClass,o.disabledClass,o.panelClass,o.hideClass].join(" "))}})}});$.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};$.ui.tabs.getter="length";$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){continuing=continuing||false;var self=this,t=this.options.selected;function start(){self.rotation=setInterval(function(){t=++t<self.$tabs.length?t:0;self.select(t)},ms)}function stop(e){if(!e||e.clientX){clearInterval(self.rotation)}}if(ms){start();if(!continuing){this.$tabs.bind(this.options.event,stop)}else{this.$tabs.bind(this.options.event,function(){stop();t=self.options.selected;start()})}}else{stop();this.$tabs.unbind(this.options.event,stop)}}})})(jQuery);(function($){$.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options}}options=$.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},options||{});var veto={};$.event.trigger("form.pre.serialize",[this,options,veto]);if(veto.veto){return this}var a=this.formToArray(options.semantic);if(options.data){for(var n in options.data){a.push({name:n,value:options.data[n]})}}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this}$.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null}else{options.data=q}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm()})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){if(this.evalScripts){$(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,arguments)}else{$(options.target).html(data).each(oldSuccess,arguments)}})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i](data,status,$form)}};var files=$("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true}}if(options.iframe||found){if($.browser.safari&&options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload)}else{fileUpload()}}else{$.ajax(options)}$.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];var opts=$.extend({},$.ajaxSettings,options);var id="jqFormIO"+$.fn.ajaxSubmit.counter++;var $io=$('<iframe id="'+id+'" name="'+id+'" />');var io=$io[0];var op8=$.browser.opera&&window.opera.version()<9;if($.browser.msie||op8){io.src='javascript:false;document.write("");'}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var g=opts.global;if(g&&!$.active++){$.event.trigger("ajaxStart")}if(g){$.event.trigger("ajaxSend",[xhr,opts])}var cbInvoked=0;var timedOut=0;setTimeout(function(){$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);var encAttr=form.encoding?"encoding":"enctype";var t=$form.attr("target");$form.attr({target:id,method:"POST",action:opts.url});form[encAttr]="multipart/form-data";if(opts.timeout){setTimeout(function(){timedOut=true;cb()},opts.timeout)}form.submit();$form.attr("target",t)},10);function cb(){if(cbInvoked++){return }io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout"}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data)}else{$.globalEval(data)}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText)}}else{data=xhr.responseText}}}catch(e){ok=false;$.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g){$.event.trigger("ajaxSuccess",[xhr,opts])}}if(g){$.event.trigger("ajaxComplete",[xhr,opts])}if(g&&!--$.active){$.event.trigger("ajaxStop")}if(opts.complete){opts.complete(xhr,ok?"success":"error")}setTimeout(function(){$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null}}};$.fn.ajaxSubmit.counter=0;$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().submit(submitHandler).each(function(){this.formPluginId=$.fn.ajaxForm.counter++;$.fn.ajaxForm.optionHash[this.formPluginId]=options;$(":submit,input:image",this).click(clickHandler)})};$.fn.ajaxForm.counter=1;$.fn.ajaxForm.optionHash={};function clickHandler(e){var $form=this.form;$form.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){$form.clk_x=e.offsetX;$form.clk_y=e.offsetY}else{if(typeof $.fn.offset=="function"){var offset=$(this).offset();$form.clk_x=e.pageX-offset.left;$form.clk_y=e.pageY-offset.top}else{$form.clk_x=e.pageX-this.offsetLeft;$form.clk_y=e.pageY-this.offsetTop}}}setTimeout(function(){$form.clk=$form.clk_x=$form.clk_y=null},10)}function submitHandler(){var id=this.formPluginId;var options=$.fn.ajaxForm.optionHash[id];$(this).ajaxSubmit(options);return false}$.fn.ajaxFormUnbind=function(){this.unbind("submit",submitHandler);return this.each(function(){$(":submit,input:image",this).unbind("click",clickHandler)})};$.fn.formToArray=function(semantic){var a=[];if(this.length==0){return a}var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a}for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n){continue}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}continue}var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v})}}}if(!semantic&&form.clk){var inputs=form.getElementsByTagName("input");for(var i=0,max=inputs.length;i<max;i++){var input=inputs[i];var n=input.name;if(n&&!input.disabled&&input.type=="image"&&form.clk==input){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}}}return a};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic))};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return }var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v})}}});return $.param(a)};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue}v.constructor==Array?$.merge(val,v):val.push(v)}return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=="undefined"){successful=true}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null}var a=[],ops=el.options;var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=$.browser.msie&&!(op.attributes.value.specified)?op.text:op.value;if(one){return v}a.push(v)}}return a}return el.value};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields()})};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=="text"||t=="password"||tag=="textarea"){this.value=""}else{if(t=="checkbox"||t=="radio"){this.checked=false}else{if(tag=="select"){this.selectedIndex=-1}}}})};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(b){if(b==undefined){b=true}return this.each(function(){this.disabled=!b})};$.fn.select=function(select){if(select==undefined){select=true}return this.each(function(){var t=this.type;if(t=="checkbox"||t=="radio"){this.checked=select}else{if(this.tagName.toLowerCase()=="option"){var $sel=$(this).parent("select");if(select&&$sel[0]&&$sel[0].type=="select-one"){$sel.find("option").select(false)}this.selected=select}}})}})(jQuery);(function($){$.Accordion={};$.extend($.Accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click"},Animations:{slide:function(settings,additions){settings=$.extend({easing:"swing",duration:300},settings,additions);if(!settings.toHide.size()){settings.toShow.animate({height:"show"},{duration:settings.duration,easing:settings.easing,complete:settings.finished});return }var height=settings.toHide.height();settings.toShow.css({height:0,overflow:"hidden"}).show();settings.toHide.filter(":hidden").each(settings.finished).end().filter(":visible").animate({height:"hide"},{step:function(n){settings.toShow.height(Math.ceil(height-($.fn.stop?n*height:n)))},duration:settings.duration,easing:settings.easing,complete:settings.finished})},bounceslide:function(settings){this.slide(settings,{easing:settings.down?"bounceout":"swing",duration:settings.down?1000:200})},easeslide:function(settings){this.slide(settings,{easing:"easeinout",duration:700})}}});$.fn.extend({nextUntil:function(expr){var match=[];this.each(function(){for(var i=this.nextSibling;i;i=i.nextSibling){if(i.nodeType!=1){continue}if($.filter(expr,[i]).r.length){break}match.push(i)}});return this.pushStack(match)},Accordion:function(settings){if(!this.length){return this}settings=$.extend({},$.Accordion.defaults,{header:$(":first-child",this)[0].tagName},settings);if(settings.navigation){var current=this.find("a").filter(function(){return this.href==location.href});if(current.length){if(current.filter(settings.header).length){settings.active=current}else{settings.active=current.parent().parent().prev();current.addClass("current")}}}var container=this,headers=container.find(settings.header),active=findActive(settings.active),running=0;if(settings.autoheight){var maxHeight=0;headers.nextUntil(settings.header).each(function(){maxHeight=Math.max(maxHeight,$(this).height())}).height(maxHeight)}headers.not(active||"").nextUntil(settings.header).hide();active.addClass(settings.selectedClass);function findActive(selector){return selector!=undefined?typeof selector=="number"?headers.eq(selector):headers.not(headers.not(selector)):selector===false?$("<div>"):headers.eq(0)}function toggle(toShow,toHide,data,clickedActive,down){var finished=function(cancel){running=cancel?0:--running;if(running){return }container.trigger("change",data)};running=toHide.size()==0?toShow.size():toHide.size();if(settings.animated){if(!settings.alwaysOpen&&clickedActive){toShow.slideToggle(settings.animated);finished(true)}else{$.Accordion.Animations[settings.animated]({toShow:toShow,toHide:toHide,finished:finished,down:down})}}else{if(!settings.alwaysOpen&&clickedActive){toShow.toggle()}else{toHide.hide();toShow.show()}finished(true)}}function clickHandler(event){if(!event.target&&!settings.alwaysOpen){active.toggleClass(settings.selectedClass);var toHide=active.nextUntil(settings.header);var toShow=active=$([]);toggle(toShow,toHide);return }var clicked=$(event.target);if(clicked.parents(settings.header).length){while(!clicked.is(settings.header)){clicked=clicked.parent()}}var clickedActive=clicked[0]==active[0];if(running||(settings.alwaysOpen&&clickedActive)||!clicked.is(settings.header)){return }active.toggleClass(settings.selectedClass);if(!clickedActive){clicked.addClass(settings.selectedClass)}var toShow=clicked.nextUntil(settings.header),toHide=active.nextUntil(settings.header),data=[clicked,active,toShow,toHide],down=headers.index(active[0])>headers.index(clicked[0]);active=clickedActive?$([]):clicked;toggle(toShow,toHide,data,clickedActive,down);return !toShow.length}function activateHandler(event,index){if(arguments.length==1){return }clickHandler({target:findActive(index)[0]})}return container.bind(settings.event,clickHandler).bind("activate",activateHandler)},activate:function(index){return this.trigger("activate",[index])}})})(jQuery);jQuery.extend({ImpromptuDefaults:{prefix:"jqi",buttons:{Ok:true},loaded:function(){},submit:function(){return true},callback:function(){},container:"body",opacity:0.6,overlayspeed:"slow",promptspeed:"fast",show:"show"},SetImpromptuDefaults:function(o){jQuery.ImpromptuDefaults=jQuery.extend({},jQuery.ImpromptuDefaults,o)},prompt:function(m,o){o=jQuery.extend({},jQuery.ImpromptuDefaults,o);var ie6=(jQuery.browser.msie&&jQuery.browser.version<7);var b=(ie6)?jQuery(document.body):jQuery(o.container);var fade='<div class="'+o.prefix+'fade" id="'+o.prefix+'fade"></div>';if((jQuery.browser.msie&&jQuery("object, applet").length>0)||ie6){fade='<iframe src="" class="'+o.prefix+'fade" id="'+o.prefix+'fade"></iframe>'}var msgbox='<div class="'+o.prefix+'" id="'+o.prefix+'"><div class="'+o.prefix+'container"><div class="'+o.prefix+'message">'+m+'</div><div class="'+o.prefix+'buttons" id="'+o.prefix+'buttons">';jQuery.each(o.buttons,function(k,v){msgbox+='<button name="'+o.prefix+"button"+k+'" id="'+o.prefix+"button"+k+'" value="'+v+'">'+k+"</button>"});msgbox+="</div></div></div>";var jqi=b.prepend(msgbox).children("#"+o.prefix);var jqif=b.prepend(fade).children("#"+o.prefix+"fade");var getfoffset=function(){return(document.documentElement.scrollTop||document.body.scrollTop)+"px"};var getjoffset=function(){return(document.documentElement.scrollTop||document.body.scrollTop)+Math.round(15*(document.documentElement.offsetHeight||document.body.clientHeight)/100)+"px"};var ie6scroll=function(){jqif.css({top:getfoffset()});jqi.css({top:getjoffset()})};jqif.css({position:"absolute",height:(ie6)?"100%":b.height(),width:"100%",top:(ie6)?getfoffset():0,left:0,right:0,bottom:0,zIndex:998,display:"none",opacity:o.opacity});jqi.css({position:(ie6)?"absolute":"fixed",top:(ie6)?getjoffset():"30%",left:"50%",display:"none",zIndex:999,marginLeft:((((jqi.css("paddingLeft").split("px")[0]*1)+jqi.width())/2)*-1)});jQuery("#"+o.prefix+"buttons").children("button").click(function(){var msg=jqi.children("."+o.prefix+"container").children("."+o.prefix+"message");var clicked=o.buttons[jQuery(this).text()];if(o.submit(clicked,msg)){jqi.remove();if(ie6){jQuery(window).unbind("scroll",ie6scroll)}jqif.fadeOut(o.overlayspeed,function(){jqif.remove();o.callback(clicked,msg)})}});if(ie6){jQuery(window).scroll(ie6scroll)}jqif.fadeIn(o.overlayspeed);jqi[o.show](o.promptspeed,o.loaded);return jqi}});(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},s||{});var prop=function(n){return n&&n.constructor==Number?n+"px":n},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(s.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":prop(s.top))+";left:"+(s.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":prop(s.left))+";width:"+(s.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":prop(s.width))+";height:"+(s.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":prop(s.height))+';"/>';return this.each(function(){if($("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(html),this.firstChild)}})}return this}})(jQuery);(function($){var height=$.fn.height,width=$.fn.width;$.fn.extend({height:function(){if(this[0]==window){return self.innerHeight||$.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}if(this[0]==document){return Math.max(document.body.scrollHeight,document.body.offsetHeight)}return height.apply(this,arguments)},width:function(){if(this[0]==window){return self.innerWidth||$.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}if(this[0]==document){return Math.max(document.body.scrollWidth,document.body.offsetWidth)}return width.apply(this,arguments)},innerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-num(this,"borderTopWidth")-num(this,"borderBottomWidth"):this.height()+num(this,"paddingTop")+num(this,"paddingBottom")},innerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-num(this,"borderLeftWidth")-num(this,"borderRightWidth"):this.width()+num(this,"paddingLeft")+num(this,"paddingRight")},outerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight:this.height()+num(this,"borderTopWidth")+num(this,"borderBottomWidth")+num(this,"paddingTop")+num(this,"paddingBottom")},outerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth:this.width()+num(this,"borderLeftWidth")+num(this,"borderRightWidth")+num(this,"paddingLeft")+num(this,"paddingRight")},scrollLeft:function(val){if(val!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(val,$(window).scrollTop())}else{this.scrollLeft=val}})}if(this[0]==window||this[0]==document){return self.pageXOffset||$.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(val){if(val!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo($(window).scrollLeft(),val)}else{this.scrollTop=val}})}if(this[0]==window||this[0]==document){return self.pageYOffset||$.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(options,returnObject){var elem=this[0],parent=elem.parentNode,op=elem.offsetParent,options=$.extend({margin:false,border:false,padding:false,scroll:false},options||{}),x=elem.offsetLeft,y=elem.offsetTop,sl=elem.scrollLeft,st=elem.scrollTop;if($.browser.mozilla||$.browser.msie){x+=num(elem,"borderLeftWidth");y+=num(elem,"borderTopWidth")}if($.browser.mozilla){do{if($.browser.mozilla&&parent!=elem&&$.css(parent,"overflow")!="visible"){x+=num(parent,"borderLeftWidth");y+=num(parent,"borderTopWidth")}if(parent==op){break}}while((parent=parent.parentNode)&&(parent.tagName.toLowerCase()!="body"||parent.tagName.toLowerCase()!="html"))}var returnValue=handleOffsetReturn(elem,options,x,y,sl,st);if(returnObject){$.extend(returnObject,returnValue);return this}else{return returnValue}},offset:function(options,returnObject){var x=0,y=0,sl=0,st=0,elem=this[0],parent=this[0],op,parPos,elemPos=$.css(elem,"position"),mo=$.browser.mozilla,ie=$.browser.msie,sf=$.browser.safari,oa=$.browser.opera,absparent=false,relparent=false,options=$.extend({margin:true,border:false,padding:false,scroll:true,lite:false},options||{});if(options.lite){return this.offsetLite(options,returnObject)}if(elem.tagName.toLowerCase()=="body"){x=elem.offsetLeft;y=elem.offsetTop;if(mo){x+=num(elem,"marginLeft")+(num(elem,"borderLeftWidth")*2);y+=num(elem,"marginTop")+(num(elem,"borderTopWidth")*2)}else{if(oa){x+=num(elem,"marginLeft");y+=num(elem,"marginTop")}else{if(ie&&jQuery.boxModel){x+=num(elem,"borderLeftWidth");y+=num(elem,"borderTopWidth")}}}}else{do{parPos=$.css(parent,"position");x+=parent.offsetLeft;y+=parent.offsetTop;if(mo||ie){x+=num(parent,"borderLeftWidth");y+=num(parent,"borderTopWidth");if(mo&&parPos=="absolute"){absparent=true}if(ie&&parPos=="relative"){relparent=true}}op=parent.offsetParent;if(options.scroll||mo){do{if(options.scroll){sl+=parent.scrollLeft;st+=parent.scrollTop}if(mo&&parent!=elem&&$.css(parent,"overflow")!="visible"){x+=num(parent,"borderLeftWidth");y+=num(parent,"borderTopWidth")}parent=parent.parentNode}while(parent!=op)}parent=op;if(parent.tagName.toLowerCase()=="body"||parent.tagName.toLowerCase()=="html"){if((sf||(ie&&$.boxModel))&&elemPos!="absolute"&&elemPos!="fixed"){x+=num(parent,"marginLeft");y+=num(parent,"marginTop")}if((mo&&!absparent&&elemPos!="fixed")||(ie&&elemPos=="static"&&!relparent)){x+=num(parent,"borderLeftWidth");y+=num(parent,"borderTopWidth")}break}}while(parent)}var returnValue=handleOffsetReturn(elem,options,x,y,sl,st);if(returnObject){$.extend(returnObject,returnValue);return this}else{return returnValue}},offsetLite:function(options,returnObject){var x=0,y=0,sl=0,st=0,parent=this[0],op,options=$.extend({margin:true,border:false,padding:false,scroll:true},options||{});do{x+=parent.offsetLeft;y+=parent.offsetTop;op=parent.offsetParent;if(options.scroll){do{sl+=parent.scrollLeft;st+=parent.scrollTop;parent=parent.parentNode}while(parent!=op)}parent=op}while(parent&&parent.tagName.toLowerCase()!="body"&&parent.tagName.toLowerCase()!="html");var returnValue=handleOffsetReturn(this[0],options,x,y,sl,st);if(returnObject){$.extend(returnObject,returnValue);return this}else{return returnValue}}});var num=function(el,prop){return parseInt($.css(el.jquery?el[0]:el,prop))||0};var handleOffsetReturn=function(elem,options,x,y,sl,st){if(!options.margin){x-=num(elem,"marginLeft");y-=num(elem,"marginTop")}if(options.border&&($.browser.safari||$.browser.opera)){x+=num(elem,"borderLeftWidth");y+=num(elem,"borderTopWidth")}else{if(!options.border&&!($.browser.safari||$.browser.opera)){x-=num(elem,"borderLeftWidth");y-=num(elem,"borderTopWidth")}}if(options.padding){x+=num(elem,"paddingLeft");y+=num(elem,"paddingTop")}if(options.scroll){sl-=elem.scrollLeft;st-=elem.scrollTop}return options.scroll?{top:y-st,left:x-sl,scrollTop:st,scrollLeft:sl}:{top:y,left:x}}})(jQuery);jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires="; expires="+date.toUTCString()}var path=options.path?"; path="+(options.path):"";var domain=options.domain?"; domain="+(options.domain):"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("")}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+"=")){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}};(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip-settings",settings);this.tooltipText=this.title;$(this).removeAttr("title");this.alt=""}).hover(save,hide).click(hide)},fixPNG:IE?function(){return this.each(function(){var image=$(this).css("backgroundImage");if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css("position");if(position!="absolute"&&position!="relative"){$(this).css("position","relative")}})}})}:function(){return this},unfixPNG:IE?function(){return this.each(function(){$(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function createHelper(settings){if(helper.parent){return }helper.parent=$('<div id="'+settings.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if($.fn.bgiframe){helper.parent.bgiframe()}helper.title=$("h3",helper.parent);helper.body=$("div.body",helper.parent);helper.url=$("div.url",helper.parent)}function settings(element){return $.data(element,"tooltip-settings")}function handle(event){if(settings(this).delay){tID=setTimeout(show,settings(this).delay)}else{show()}track=!!settings(this).track;$(document.body).bind("mousemove",update);update(event)}function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler)){return }current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent)}helper.body.show()}else{if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;part=parts[i];i++){if(i>0){helper.body.append("<br/>")}helper.body.append(part)}helper.body.hideWhenEmpty()}else{helper.title.html(title).show();helper.body.hide()}}if(settings(this).showURL&&$(this).url()){helper.url.html($(this).url().replace("http://","")).show()}else{helper.url.hide()}helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG){helper.parent.fixPNG()}handle.apply(this,arguments)}function show(){tID=null;helper.parent.show();update()}function update(event){if($.tooltip.blocked){return }if(!track&&helper.parent.is(":visible")){$(document.body).unbind("mousemove",update)}if(current==null){$(document.body).unbind("mousemove",update);return }helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;helper.parent.css({left:left+"px",top:top+"px"})}var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+"px"}).addClass("viewport-right")}if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+"px"}).addClass("viewport-bottom")}}function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()}}function hide(event){if($.tooltip.blocked){return }if(tID){clearTimeout(tID)}current=null;helper.parent.hide().removeClass(settings(this).extraClass);if(settings(this).fixPNG){helper.parent.unfixPNG()}}$.fn.Tooltip=$.fn.tooltip})(jQuery);(function($){function contains(a,b){var safari2=$.browser.safari&&$.browser.version<522;if(a.contains&&!safari2){return a.contains(b)}if(a.compareDocumentPosition){return !!(a.compareDocumentPosition(b)&16)}while(b=b.parentNode){if(b==a){return true}}return false}$.widget("ui.sortable",$.extend($.ui.mouse,{init:function(){var o=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;if(!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.offset=this.element.offset();this.mouseInit()},plugins:{},ui:function(inst){return{helper:(inst||this)["helper"],placeholder:(inst||this)["placeholder"]||$([]),position:(inst||this)["position"],absolutePosition:(inst||this)["positionAbs"],options:this.options,element:this.element,item:(inst||this)["currentItem"],sender:inst?inst.element:null}},propagate:function(n,e,inst,noPropagation){$.ui.plugin.call(this,n,[e,this.ui(inst)]);if(!noPropagation){this.element.triggerHandler(n=="sort"?n:"sort"+n,[e,this.ui(inst)],this.options[n])}},serialize:function(o){var items=($.isFunction(this.options.items)?this.options.items.call(this.element):$(this.options.items,this.element)).not(".ui-sortable-helper");var str=[];o=o||{};items.each(function(){var res=($(this).attr(o.attribute||"id")||"").match(o.expression||(/(.+)[-=_](.+)/));if(res){str.push((o.key||res[1])+"[]="+(o.key?res[1]:res[2]))}});return str.join("&")},toArray:function(attr){var items=($.isFunction(this.options.items)?this.options.items.call(this.element):$(this.options.items,this.element)).not(".ui-sortable-helper");var ret=[];items.each(function(){ret.push($(this).attr(attr||"id"))});return ret},intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height;var l=item.left,r=l+item.width,t=item.top,b=t+item.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>item[this.floating?"width":"height"])){return(y1+this.offset.click.top>t&&y1+this.offset.click.top<b&&x1+this.offset.click.left>l&&x1+this.offset.click.left<r)}else{return(l<x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)<r&&t<y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)<b)}},intersectsWithEdge:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height;var l=item.left,r=l+item.width,t=item.top,b=t+item.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>item[this.floating?"width":"height"])){if(!(y1+this.offset.click.top>t&&y1+this.offset.click.top<b&&x1+this.offset.click.left>l&&x1+this.offset.click.left<r)){return false}if(this.floating){if(x1+this.offset.click.left>l&&x1+this.offset.click.left<l+item.width/2){return 2}if(x1+this.offset.click.left>l+item.width/2&&x1+this.offset.click.left<r){return 1}}else{if(y1+this.offset.click.top>t&&y1+this.offset.click.top<t+item.height/2){return 2}if(y1+this.offset.click.top>t+item.height/2&&y1+this.offset.click.top<b){return 1}}}else{if(!(l<x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)<r&&t<y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)<b)){return false}if(this.floating){if(x2>l&&x1<l){return 2}if(x1<r&&x2>r){return 1}}else{if(y2>t&&y1<t){return 1}if(y1<b&&y2>b){return 2}}}return false},refresh:function(){this.refreshItems();this.refreshPositions()},refreshItems:function(){this.items=[];this.containers=[this];var items=this.items;var queries=[$.isFunction(this.options.items)?this.options.items.call(this.element):$(this.options.items,this.element)];if(this.options.connectWith){for(var i=this.options.connectWith.length-1;i>=0;i--){var cur=$(this.options.connectWith[i]);for(var j=cur.length-1;j>=0;j--){var inst=$.data(cur[j],"sortable");if(inst&&!inst.options.disabled){queries.push($.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items,inst.element));this.containers.push(inst)}}}}for(var i=queries.length-1;i>=0;i--){queries[i].each(function(){$.data(this,"sortable-item",true);items.push({item:$(this),width:0,height:0,left:0,top:0})})}},refreshPositions:function(fast){for(var i=this.items.length-1;i>=0;i--){var t=this.items[i].item;if(!fast){this.items[i].width=(this.options.toleranceElement?$(this.options.toleranceElement,t):t).outerWidth()}if(!fast){this.items[i].height=(this.options.toleranceElement?$(this.options.toleranceElement,t):t).outerHeight()}var p=(this.options.toleranceElement?$(this.options.toleranceElement,t):t).offset();this.items[i].left=p.left;this.items[i].top=p.top}for(var i=this.containers.length-1;i>=0;i--){var p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this.mouseDestroy();for(var i=this.items.length-1;i>=0;i--){this.items[i].item.removeData("sortable-item")}},createPlaceholder:function(that){var self=that||this,o=self.options;if(o.placeholder.constructor==String){var className=o.placeholder;o.placeholder={element:function(){return $("<div></div>").addClass(className)[0]},update:function(i,p){p.css(i.offset()).css({width:i.outerWidth(),height:i.outerHeight()})}}}self.placeholder=$(o.placeholder.element.call(self.element,self.currentItem)).appendTo("body").css({position:"absolute"});o.placeholder.update.call(self.element,self.currentItem,self.placeholder)},contactContainers:function(e){for(var i=this.containers.length-1;i>=0;i--){if(this.intersectsWith(this.containers[i].containerCache)){if(!this.containers[i].containerCache.over){if(this.currentContainer!=this.containers[i]){var dist=10000;var itemWithLeastDistance=null;var base=this.positionAbs[this.containers[i].floating?"left":"top"];for(var j=this.items.length-1;j>=0;j--){if(!contains(this.containers[i].element[0],this.items[j].item[0])){continue}var cur=this.items[j][this.containers[i].floating?"left":"top"];if(Math.abs(cur-base)<dist){dist=Math.abs(cur-base);itemWithLeastDistance=this.items[j]}}if(!itemWithLeastDistance&&!this.options.dropOnEmpty){continue}if(this.placeholder){this.placeholder.remove()}if(this.containers[i].options.placeholder){this.containers[i].createPlaceholder(this)}else{this.placeholder=null}itemWithLeastDistance?this.rearrange(e,itemWithLeastDistance):this.rearrange(e,null,this.containers[i].element);this.propagate("change",e);this.containers[i].propagate("change",e,this);this.currentContainer=this.containers[i]}this.containers[i].propagate("over",e,this);this.containers[i].containerCache.over=1}}else{if(this.containers[i].containerCache.over){this.containers[i].propagate("out",e,this);this.containers[i].containerCache.over=0}}}},mouseCapture:function(e,overrideHandle){if(this.options.disabled||this.options.type=="static"){return false}var currentItem=null,nodes=$(e.target).parents().each(function(){if($.data(this,"sortable-item")){currentItem=$(this);return false}});if($.data(e.target,"sortable-item")){currentItem=$(e.target)}if(!currentItem){return false}if(this.options.handle&&!overrideHandle){var validHandle=false;$(this.options.handle,currentItem).find("*").andSelf().each(function(){if(this==e.target){validHandle=true}});if(!validHandle){return false}}this.currentItem=currentItem;return true},mouseStart:function(e,overrideHandle,noActivation){var o=this.options;this.currentContainer=this;this.refresh();this.helper=typeof o.helper=="function"?$(o.helper.apply(this.element[0],[e,this.currentItem])):this.currentItem.clone();if(!this.helper.parents("body").length){this.helper.appendTo((o.appendTo!="parent"?o.appendTo:this.currentItem[0].parentNode))}this.helper.css({position:"absolute",clear:"both"}).addClass("ui-sortable-helper");this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();this.offset.parent={top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};this.originalPosition=this.generatePosition(e);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(o.cursorAt){if(o.cursorAt.left!=undefined){this.offset.click.left=o.cursorAt.left}if(o.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-o.cursorAt.right}if(o.cursorAt.top!=undefined){this.offset.click.top=o.cursorAt.top}if(o.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-o.cursorAt.bottom}}this.domPosition=this.currentItem.prev()[0];if(o.containment){if(o.containment=="parent"){o.containment=this.helper[0].parentNode}if(o.containment=="document"||o.containment=="window"){this.containment=[0-this.offset.parent.left,0-this.offset.parent.top,$(o.containment=="document"?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),($(o.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(o.containment)){var ce=$(o.containment)[0];var co=$(o.containment).offset();this.containment=[co.left+(parseInt($(ce).css("borderLeftWidth"),10)||0)-this.offset.parent.left,co.top+(parseInt($(ce).css("borderTopWidth"),10)||0)-this.offset.parent.top,co.left+Math.max(ce.scrollWidth,ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),co.top+Math.max(ce.scrollHeight,ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"),10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}if(o.placeholder){this.createPlaceholder()}this.propagate("start",e);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(this.options.placeholder!="clone"){this.currentItem.css("visibility","hidden")}if(!noActivation){for(var i=this.containers.length-1;i>=0;i--){this.containers[i].propagate("activate",e,this)}}if($.ui.ddmanager){$.ui.ddmanager.current=this}if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.mouseDrag(e);return true},convertPositionTo:function(d,pos){if(!pos){pos=this.position}var mod=d=="absolute"?1:-1;return{top:(pos.top+this.offset.parent.top*mod-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*mod+this.margins.top*mod),left:(pos.left+this.offset.parent.left*mod-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*mod+this.margins.left*mod)}},generatePosition:function(e){var o=this.options;var position={top:(e.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)),left:(e.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition){return position}if(this.containment){if(position.left<this.containment[0]){position.left=this.containment[0]}if(position.top<this.containment[1]){position.top=this.containment[1]}if(position.left>this.containment[2]){position.left=this.containment[2]}if(position.top>this.containment[3]){position.top=this.containment[3]}}if(o.grid){var top=this.originalPosition.top+Math.round((position.top-this.originalPosition.top)/o.grid[1])*o.grid[1];position.top=this.containment?(!(top<this.containment[1]||top>this.containment[3])?top:(!(top<this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;var left=this.originalPosition.left+Math.round((position.left-this.originalPosition.left)/o.grid[0])*o.grid[0];position.left=this.containment?(!(left<this.containment[0]||left>this.containment[2])?left:(!(left<this.containment[0])?left-o.grid[0]:left+o.grid[0])):left}return position},mouseDrag:function(e){this.position=this.generatePosition(e);this.positionAbs=this.convertPositionTo("absolute");for(var i=this.items.length-1;i>=0;i--){var intersection=this.intersectsWithEdge(this.items[i]);if(!intersection){continue}if(this.items[i].item[0]!=this.currentItem[0]&&this.currentItem[intersection==1?"next":"prev"]()[0]!=this.items[i].item[0]&&!contains(this.currentItem[0],this.items[i].item[0])&&(this.options.type=="semi-dynamic"?!contains(this.element[0],this.items[i].item[0]):true)){this.direction=intersection==1?"down":"up";this.rearrange(e,this.items[i]);this.propagate("change",e);break}}this.contactContainers(e);this.propagate("sort",e);if(!this.options.axis||this.options.axis=="x"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis=="y"){this.helper[0].style.top=this.position.top+"px"}if($.ui.ddmanager){$.ui.ddmanager.drag(this,e)}return false},mouseStop:function(e,noPropagation){if($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,e)}if(this.options.revert){var self=this;var cur=self.currentItem.offset();if(self.placeholder){self.placeholder.animate({opacity:"hide"},(parseInt(this.options.revert,10)||500)-50)}$(this.helper).animate({left:cur.left-this.offset.parent.left-self.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:cur.top-this.offset.parent.top-self.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){self.propagate("stop",e,null,noPropagation);self.clear(e)})}else{this.propagate("stop",e,null,noPropagation);this.clear(e,noPropagation)}return false},clear:function(e,noPropagation){if(this.domPosition!=this.currentItem.prev().not(".ui-sortable-helper")[0]){this.propagate("update",e,null,noPropagation)}if(!contains(this.element[0],this.currentItem[0])){if(this.domPosition==this.currentItem.prev().not(".ui-sortable-helper")[0]){this.propagate("update",e,null,noPropagation)}this.propagate("remove",e,null,noPropagation);for(var i=this.containers.length-1;i>=0;i--){if(contains(this.containers[i].element[0],this.currentItem[0])){this.containers[i].propagate("update",e,this,noPropagation);this.containers[i].propagate("receive",e,this,noPropagation)}}}for(var i=this.containers.length-1;i>=0;i--){this.containers[i].propagate("deactivate",e,this,noPropagation);if(this.containers[i].containerCache.over){this.containers[i].propagate("out",e,this);this.containers[i].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){return false}$(this.currentItem).css("visibility","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();return true},rearrange:function(e,i,a){a?a.append(this.currentItem):i.item[this.direction=="down"?"before":"after"](this.currentItem);this.refreshPositions(true);if(this.options.placeholder){this.options.placeholder.update.call(this.element,this.currentItem,this.placeholder)}}}));$.extend($.ui.sortable,{getter:"serialize toArray",defaults:{tolerance:"guess",distance:0,delay:0,cancel:":input,button",items:"> *",zIndex:1000,dropOnEmpty:true,appendTo:"parent"}});$.ui.plugin.add("sortable","cursor",{start:function(e,ui){var t=$("body");if(t.css("cursor")){ui.options._cursor=t.css("cursor")}t.css("cursor",ui.options.cursor)},stop:function(e,ui){if(ui.options._cursor){$("body").css("cursor",ui.options._cursor)}}});$.ui.plugin.add("sortable","zIndex",{start:function(e,ui){var t=ui.helper;if(t.css("zIndex")){ui.options._zIndex=t.css("zIndex")}t.css("zIndex",ui.options.zIndex)},stop:function(e,ui){if(ui.options._zIndex){$(ui.helper).css("zIndex",ui.options._zIndex)}}});$.ui.plugin.add("sortable","opacity",{start:function(e,ui){var t=ui.helper;if(t.css("opacity")){ui.options._opacity=t.css("opacity")}t.css("opacity",ui.options.opacity)},stop:function(e,ui){if(ui.options._opacity){$(ui.helper).css("opacity",ui.options._opacity)}}});$.ui.plugin.add("sortable","scroll",{start:function(e,ui){var o=ui.options;var i=$(this).data("sortable");o.scrollSensitivity=o.scrollSensitivity||20;o.scrollSpeed=o.scrollSpeed||20;i.overflowY=function(el){do{if(/auto|scroll/.test(el.css("overflow"))||(/auto|scroll/).test(el.css("overflow-y"))){return el}el=el.parent()}while(el[0].parentNode);return $(document)}(i.currentItem);i.overflowX=function(el){do{if(/auto|scroll/.test(el.css("overflow"))||(/auto|scroll/).test(el.css("overflow-x"))){return el}el=el.parent()}while(el[0].parentNode);return $(document)}(i.currentItem);if(i.overflowY[0]!=document&&i.overflowY[0].tagName!="HTML"){i.overflowYOffset=i.overflowY.offset()}if(i.overflowX[0]!=document&&i.overflowX[0].tagName!="HTML"){i.overflowXOffset=i.overflowX.offset()}},sort:function(e,ui){var o=ui.options;var i=$(this).data("sortable");if(i.overflowY[0]!=document&&i.overflowY[0].tagName!="HTML"){if((i.overflowYOffset.top+i.overflowY[0].offsetHeight)-e.pageY<o.scrollSensitivity){i.overflowY[0].scrollTop=i.overflowY[0].scrollTop+o.scrollSpeed}if(e.pageY-i.overflowYOffset.top<o.scrollSensitivity){i.overflowY[0].scrollTop=i.overflowY[0].scrollTop-o.scrollSpeed}}else{if(e.pageY-$(document).scrollTop()<o.scrollSensitivity){$(document).scrollTop($(document).scrollTop()-o.scrollSpeed)}if($(window).height()-(e.pageY-$(document).scrollTop())<o.scrollSensitivity){$(document).scrollTop($(document).scrollTop()+o.scrollSpeed)}}if(i.overflowX[0]!=document&&i.overflowX[0].tagName!="HTML"){if((i.overflowXOffset.left+i.overflowX[0].offsetWidth)-e.pageX<o.scrollSensitivity){i.overflowX[0].scrollLeft=i.overflowX[0].scrollLeft+o.scrollSpeed}if(e.pageX-i.overflowXOffset.left<o.scrollSensitivity){i.overflowX[0].scrollLeft=i.overflowX[0].scrollLeft-o.scrollSpeed}}else{if(e.pageX-$(document).scrollLeft()<o.scrollSensitivity){$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed)}if($(window).width()-(e.pageX-$(document).scrollLeft())<o.scrollSensitivity){$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed)}}}})})(jQuery);$(document).ready(function(){$("ul.dropdown li").hover(function(){$(this).addClass("hover");$("> .dir",this).addClass("open");$("ul:first",this).css("visibility","visible")},function(){$(this).removeClass("hover");$(".open",this).removeClass("open");$("ul:first",this).css("visibility","hidden")})});if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return }this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1)}if(id){this.setAttribute("id",id)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(c){this.addParam("bgcolor",c)}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9)}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true)},setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key]}return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}_19='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';_19+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var _1a=this.getParams();for(var key in _1a){_19+=[key]+'="'+_1a[key]+'" '}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+='flashvars="'+_1c+'"'}_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}_19='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';_19+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var _1d=this.getParams();for(var key in _1d){_19+='<param name="'+key+'" value="'+_1d[key]+'" />'}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+='<param name="flashvars" value="'+_1f+'" />'}_19+="</object>"}return _19},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0])}catch(e){axo=null}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(_23.major==6){return _23}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}}}return _23};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false}if(this.major>fv.major){return true}if(this.minor<fv.minor){return false}if(this.minor>fv.minor){return true}if(this.rev<fv.rev){return false}return true};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var tb_pathToImage="images/loadingAnimation.gif";eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c)}k=[function(e){return r[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,"|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox".split("|"),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}('8={3b:"1.6",2o:"1B.1Y,1B.23,1B.2e",2i:"",2H:1a,12:"",2C:1a,Z:"",2a:\'<H V="$0">$$</H>\',R:"&#F;",1j:"&#F;&#F;&#F;&#F;",1f:"&#F;<1W/>",3c:5(){9 $(y).39("1k")[0]},I:{},N:{}};(5($){$(5(){5 1J(l,a){5 2I(A,h){4 3=(1v h.3=="1h")?h.3:h.3.1w;k.1m({A:A,3:"("+3+")",u:1+(3.c(/\\\\./g,"%").c(/\\[.*?\\]/g,"%").3a(/\\((?!\\?)/g)||[]).u,z:(h.z)?h.z:8.2a})}5 2z(){4 1E=0;4 1x=x 2A;Q(4 i=0;i<k.u;i++){4 3=k[i].3;3=3.c(/\\\\\\\\|\\\\(\\d+)/g,5(m,1F){9!1F?m:"\\\\"+(1E+1+1t(1F))});1x.1m(3);1E+=k[i].u}4 1w=1x.3d("|");9 x 1u(1w,(a.3g)?"2j":"g")}5 1S(o){9 o.c(/&/g,"&3h;").c(/</g,"&3e;")}5 1R(o){9 o.c(/ +/g,5(1X){9 1X.c(/ /g,R)})}5 G(o){o=1S(o);7(R){o=1R(o)}9 o}5 2m(2E){4 i=0;4 j=1;4 h;19(h=k[i++]){4 1b=D;7(1b[j]){4 1U=/(\\\\\\$)|(?:\\$\\$)|(?:\\$(\\d+))/g;4 z=h.z.c(1U,5(m,1V,K){4 3f=\'\';7(1V){9"$"}v 7(!K){9 G(1b[j])}v 7(K=="0"){9 h.A}v{9 G(1b[j+1t(K,10)])}});4 1A=D[D.u-2];4 2h=D[D.u-1];4 2G=2h.2v(11,1A);11=1A+2E.u;14+=G(2G)+z;9 z}v{j+=h.u}}}4 R=8.R;4 k=x 2A;Q(4 A 2r a.k){2I(A,a.k[A])}4 14="";4 11=0;l.c(2z(),2m);4 2y=l.2v(11,l.u);14+=G(2y);9 14}5 2B(X){7(!8.N[X]){4 Y=\'<Y 32="1p" 33="p/2u"\'+\' 30="\'+X+\'">\';8.N[X]=1H;7($.31.34){4 W=J.1L(Y);4 $W=$(W);$("2d").1O($W)}v{$("2d").1O(Y)}}}5 1q(e,a){4 l=e&&e.1g&&e.1g[0]&&e.1g[0].37;7(!l)l="";l=l.c(/\\r\\n?/g,"\\n");4 C=1J(l,a);7(8.1j){C=C.c(/\\t/g,8.1j)}7(8.1f){C=C.c(/\\n/g,8.1f)}$(e).38(C)}5 1o(q,13){4 1l={12:8.12,2x:q+".1d",Z:8.Z,2w:q+".2u"};4 B;7(13&&1v 13=="2l")B=$.35(1l,13);v B=1l;9{a:B.12+B.2x,1p:B.Z+B.2w}}7($.2q)$.2q({36:"2l.15"});4 2n=x 1u("\\\\b"+8.2i+"\\\\b","2j");4 1e=[];$(8.2o).2D(5(){4 e=y;4 1n=$(e).3i("V");7(!1n){9}4 q=$.3u(1n.c(2n,""));7(\'\'!=q){1e.1m(e);4 f=1o(q,e.15);7(8.2H||e.15){7(!8.N[f.a]){1D{8.N[f.a]=1H;$.3v(f.a,5(M){M.f=f.a;8.I[f.a]=M;7(8.2C){2B(f.1p)}$("."+q).2D(5(){4 f=1o(q,y.15);7(M.f==f.a){1q(y,M)}})})}1I(3s){3t("a 3w Q: "+q+\'@\'+3z)}}}v{4 a=8.I[f.a];7(a){1q(e,a)}}}});7(J.1i&&J.1i.29){5 22(p){7(\'\'==p){9""}1z{4 16=(x 3A()).2k()}19(p.3x(16)>-1);p=p.c(/\\<1W[^>]*?\\>/3y,16);4 e=J.1L(\'<1k>\');e.3l=p;p=e.3m.c(x 1u(16,"g"),\'\\r\\n\');9 p}4 T="";4 18=1G;$(1e).3j().G("1k").U("2c",5(){18=y}).U("1M",5(){7(18==y)T=J.1i.29().3k});$("3n").U("3q",5(){7(\'\'!=T){2p.3r.3o(\'3p\',22(T));2V.2R=1a}}).U("2c",5(){T=""}).U("1M",5(){18=1G})}})})(1Z);8.I["1Y.1d"]={k:{2M:{3:/\\/\\*[^*]*\\*+(?:[^\\/][^*]*\\*+)*\\//},25:{3:/\\<!--(?:.|\\n)*?--\\>/},2f:{3:/\\/\\/.*/},2P:{3:/2L|2T|2J|2O|2N|2X|2K|2Z|2U|2S|2W|2Y|2Q|51|c-50/},53:{3:/\\/[^\\/\\\\\\n]*(?:\\\\.[^\\/\\\\\\n]*)*\\/[52]*/},1h:{3:/(?:\\\'[^\\\'\\\\\\n]*(?:\\\\.[^\\\'\\\\\\n]*)*\\\')|(?:\\"[^\\"\\\\\\n]*(?:\\\\.[^\\"\\\\\\n]*)*\\")/},27:{3:/\\b[+-]?(?:\\d*\\.?\\d+|\\d+\\.?\\d*)(?:[1r][+-]?\\d+)?\\b/},4X:{3:/\\b(D|1N|1K|1I|2t|2s|4W|1z|v|1a|Q|5|7|2r|4Z|x|1G|9|1Q|y|1H|1D|1v|4|4Y|19|59)\\b/},1y:{3:/\\b(58|2k|2p|5b|5a|55|J|54|57|1t|56|4L|4K|4N|4M|4H|4G|4J)\\b/},1C:{3:/(?:\\<\\w+)|(?:\\>)|(?:\\<\\/\\w+\\>)|(?:\\/\\>)/},26:{3:/\\s+\\w+(?=\\s*=)/},20:{3:/([\\"\\\'])(?:(?:[^\\1\\\\\\r\\n]*?(?:\\1\\1|\\\\.))*[^\\1\\\\\\r\\n]*?)\\1/},21:{3:/&[\\w#]+?;/},4I:{3:/(\\$|1Z)/}}};8.I["23.1d"]={k:{25:{3:/\\<!--(?:.|\\n)*?--\\>/},1h:{3:/(?:\\\'[^\\\'\\\\\\n]*(?:\\\\.[^\\\'\\\\\\n]*)*\\\')|(?:\\"[^\\"\\\\\\n]*(?:\\\\.[^\\"\\\\\\n]*)*\\")/},27:{3:/\\b[+-]?(?:\\d*\\.?\\d+|\\d+\\.?\\d*)(?:[1r][+-]?\\d+)?\\b/},1C:{3:/(?:\\<\\w+)|(?:\\>)|(?:\\<\\/\\w+\\>)|(?:\\/\\>)/},26:{3:/\\s+\\w+(?=\\s*=)/},20:{3:/([\\"\\\'])(?:(?:[^\\1\\\\\\r\\n]*?(?:\\1\\1|\\\\.))*[^\\1\\\\\\r\\n]*?)\\1/},21:{3:/&[\\w#]+?;/}}};8.I["2e.1d"]={k:{4S:{3:/\\/\\*[^*]*\\*+([^\\/][^*]*\\*+)*\\//},2f:{3:/(?:\\/\\/.*)|(?:[^\\\\]\\#.*)/},4V:{3:/\\\'[^\\\'\\\\]*(?:\\\\.[^\\\'\\\\]*)*\\\'/},4U:{3:/\\"[^\\"\\\\]*(?:\\\\.[^\\"\\\\]*)*\\"/},4P:{3:/\\b(?:[4O][2b][1s][1s]|[4R][4Q][2b][1P]|[5c][5v][1s][5u][1P])\\b/},5x:{3:/\\b[+-]?(\\d*\\.?\\d+|\\d+\\.?\\d*)([1r][+-]?\\d+)?\\b/},5y:{3:/\\b(?:5z|5w(?:5A|5E(?:5F(?:17|1c)|5G(?:17|1c))|17|1T|5B|5C|5D(?:17|1T|1c)|1c)|P(?:5h(?:5k|5j)|5e(?:5d|5g(?:5f|5l)|5r|E(?:5t|5s)|5n(?:5m|5p)|L(?:3X|3W)|O(?:S|3Y(?:3T|3S|3V))|3U|S(?:44|47|46)|41))|40)\\b/},1y:{3:/(?:\\$43|\\$42|\\$3R|\\$3G|\\$3F|\\$3I|\\$3H|\\$3C|\\$3B|\\$3D)\\b/},28:{3:/\\b(?:3O|3N|3P|3K|3J|3M|3L|48|4v|1N|1K|1I|4u|V|4x|4w|2t|4r|2s|4q|1z|4t|v|4s|4D|4C|4F|4E|4z|4y|4B|4A|4p|4d|2F|2F|4g|Q|4f|5|1y|7|4a|4m|4l|4o|4i|4k|x|4j|4h|4n|4b|4c|49|4e|3Q|3E|9|45|1Q|y|3Z|1D|5o|5q|4|19|5i)\\b/},2g:{3:/\\$(\\w+)/,z:\'<H V="28">$</H><H V="2g">$1</H>\'},1C:{3:/(?:\\<\\?[24][4T][24])|(?:\\<\\?)|(?:\\?\\>)/}}}',62,353,"|||exp|var|function||if|ChiliBook|return|recipe||replace||el|path||step|||steps|ingredients|||str|text|recipeName||||length|else||new|this|replacement|stepName|settings|dish|arguments||160|filter|span|recipes|document|||recipeLoaded|required|||for|replaceSpace||insidePRE|bind|class|domLink|stylesheetPath|link|stylesheetFolder||lastIndex|recipeFolder|options|perfect|chili|newline|ERROR|downPRE|while|false|aux|WARNING|js|codes|replaceNewLine|childNodes|string|selection|replaceTab|pre|settingsDef|push|elClass|getPath|stylesheet|makeDish|eE|Ll|parseInt|RegExp|typeof|source|exps|global|do|offset|code|tag|try|prevLength|aNum|null|true|catch|cook|case|createElement|mouseup|break|append|Ee|switch|replaceSpaces|escapeHTML|NOTICE|pattern|escaped|br|spaces|mix|jQuery|avalue|entity|preformatted|xml|Pp|htcom|aname|numbers|keyword|createRange|defaultReplacement|Uu|mousedown|head|php|com|variable|input|elementClass|gi|valueOf|object|chef|selectClass|elementPath|window|metaobjects|in|default|continue|css|substring|stylesheetFile|recipeFile|lastUnmatched|knowHow|Array|checkCSS|stylesheetLoading|each|matched|extends|unmatched|recipeLoading|prepareStep|unblockUI|ajaxSubmit|silverlight|jscom|unblock|block|plugin|clearFields|returnValue|fieldValue|blockUI|formSerialize|event|resetForm|ajaxForm|clearForm|fieldSerialize|href|browser|rel|type|msie|extend|selector|data|html|next|match|version|getPRE|join|lt|bit|ignoreCase|amp|attr|parents|htmlText|innerHTML|innerText|body|setData|Text|copy|clipboardData|recipeNotAvailable|alert|trim|getJSON|unavailable|indexOf|ig|recipePath|Date|_SESSION|_SERVER|php_errormsg|require_once|_GET|_FILES|_REQUEST|_POST|__METHOD__|__LINE__|and|abstract|__FILE__|__CLASS__|__FUNCTION__|require|_ENV|END|CONT|PREFIX|START|OCALSTATEDIR|IBDIR|UTPUT_HANDLER_|throw|__COMPILER_HALT_OFFSET__|VERSION|_COOKIE|GLOBALS|API|static|YSCONFDIR|HLIB_SUFFIX|array|protected|implements|print|private|exit|public|foreach|final|or|isset|old_function|list|include_once|include|php_user_filter|interface|exception|die|declare|elseif|echo|cfunction|as|const|clone|endswitch|endif|eval|endwhile|enddeclare|empty|endforeach|endfor|isNaN|NaN|jquery|Infinity|clearTimeout|setTimeout|clearInterval|setInterval|Nn|value|Rr|Tt|mlcom|Hh|string2|string1|delete|keywords|void|instanceof|content|taconite|gim|regexp|escape|constructor|parseFloat|unescape|toString|with|prototype|element|Ff|BINDIR|HP_|PATH|CONFIG_FILE_|EAR_|xor|INSTALL_DIR|EXTENSION_DIR|SCAN_DIR|MAX|INT_|unset|SIZE|use|DATADIR|XTENSION_DIR|OL|Ss|Aa|E_|number|const1|DEFAULT_INCLUDE_PATH|ALL|PARSE|STRICT|USER_|CO|MPILE_|RE_".split("|"),0,{}));var whitespace="\n\r\t ";XMLP=function(strXML){strXML=SAXStrings.replace(strXML,null,null,"\r\n","\n");strXML=SAXStrings.replace(strXML,null,null,"\r","\n");this.m_xml=strXML;this.m_iP=0;this.m_iState=XMLP._STATE_PROLOG;this.m_stack=new Stack();this._clearAttributes()};XMLP._NONE=0;XMLP._ELM_B=1;XMLP._ELM_E=2;XMLP._ELM_EMP=3;XMLP._ATT=4;XMLP._TEXT=5;XMLP._ENTITY=6;XMLP._PI=7;XMLP._CDATA=8;XMLP._COMMENT=9;XMLP._DTD=10;XMLP._ERROR=11;XMLP._CONT_XML=0;XMLP._CONT_ALT=1;XMLP._ATT_NAME=0;XMLP._ATT_VAL=1;XMLP._STATE_PROLOG=1;XMLP._STATE_DOCUMENT=2;XMLP._STATE_MISC=3;XMLP._errs=new Array();XMLP._errs[XMLP.ERR_CLOSE_PI=0]="PI: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_DTD=1]="DTD: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_COMMENT=2]="Comment: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_CDATA=3]="CDATA: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_ELM=4]="Element: missing closing sequence";XMLP._errs[XMLP.ERR_CLOSE_ENTITY=5]="Entity: missing closing sequence";XMLP._errs[XMLP.ERR_PI_TARGET=6]="PI: target is required";XMLP._errs[XMLP.ERR_ELM_EMPTY=7]="Element: cannot be both empty and closing";XMLP._errs[XMLP.ERR_ELM_NAME=8]='Element: name must immediatly follow "<"';XMLP._errs[XMLP.ERR_ELM_LT_NAME=9]='Element: "<" not allowed in element names';XMLP._errs[XMLP.ERR_ATT_VALUES=10]="Attribute: values are required and must be in quotes";XMLP._errs[XMLP.ERR_ATT_LT_NAME=11]='Element: "<" not allowed in attribute names';XMLP._errs[XMLP.ERR_ATT_LT_VALUE=12]='Attribute: "<" not allowed in attribute values';XMLP._errs[XMLP.ERR_ATT_DUP=13]="Attribute: duplicate attributes not allowed";XMLP._errs[XMLP.ERR_ENTITY_UNKNOWN=14]="Entity: unknown entity";XMLP._errs[XMLP.ERR_INFINITELOOP=15]="Infininte loop";XMLP._errs[XMLP.ERR_DOC_STRUCTURE=16]="Document: only comments, processing instructions, or whitespace allowed outside of document element";XMLP._errs[XMLP.ERR_ELM_NESTING=17]="Element: must be nested correctly";XMLP.prototype._addAttribute=function(name,value){this.m_atts[this.m_atts.length]=new Array(name,value)};XMLP.prototype._checkStructure=function(iEvent){if(XMLP._STATE_PROLOG==this.m_iState){if((XMLP._TEXT==iEvent)||(XMLP._ENTITY==iEvent)){if(SAXStrings.indexOfNonWhitespace(this.getContent(),this.getContentBegin(),this.getContentEnd())!=-1){return this._setErr(XMLP.ERR_DOC_STRUCTURE)}}if((XMLP._ELM_B==iEvent)||(XMLP._ELM_EMP==iEvent)){this.m_iState=XMLP._STATE_DOCUMENT}}if(XMLP._STATE_DOCUMENT==this.m_iState){if((XMLP._ELM_B==iEvent)||(XMLP._ELM_EMP==iEvent)){this.m_stack.push(this.getName())}if((XMLP._ELM_E==iEvent)||(XMLP._ELM_EMP==iEvent)){var strTop=this.m_stack.pop();if((strTop==null)||(strTop!=this.getName())){return this._setErr(XMLP.ERR_ELM_NESTING)}}if(this.m_stack.count()==0){this.m_iState=XMLP._STATE_MISC;return iEvent}}if(XMLP._STATE_MISC==this.m_iState){if((XMLP._ELM_B==iEvent)||(XMLP._ELM_E==iEvent)||(XMLP._ELM_EMP==iEvent)||(XMLP.EVT_DTD==iEvent)){return this._setErr(XMLP.ERR_DOC_STRUCTURE)}if((XMLP._TEXT==iEvent)||(XMLP._ENTITY==iEvent)){if(SAXStrings.indexOfNonWhitespace(this.getContent(),this.getContentBegin(),this.getContentEnd())!=-1){return this._setErr(XMLP.ERR_DOC_STRUCTURE)}}}return iEvent};XMLP.prototype._clearAttributes=function(){this.m_atts=new Array()};XMLP.prototype._findAttributeIndex=function(name){for(var i=0;i<this.m_atts.length;i++){if(this.m_atts[i][XMLP._ATT_NAME]==name){return i}}return -1};XMLP.prototype.getAttributeCount=function(){return this.m_atts?this.m_atts.length:0};XMLP.prototype.getAttributeName=function(index){return((index<0)||(index>=this.m_atts.length))?null:this.m_atts[index][XMLP._ATT_NAME]};XMLP.prototype.getAttributeValue=function(index){return((index<0)||(index>=this.m_atts.length))?null:__unescapeString(this.m_atts[index][XMLP._ATT_VAL])};XMLP.prototype.getAttributeValueByName=function(name){return this.getAttributeValue(this._findAttributeIndex(name))};XMLP.prototype.getColumnNumber=function(){return SAXStrings.getColumnNumber(this.m_xml,this.m_iP)};XMLP.prototype.getContent=function(){return(this.m_cSrc==XMLP._CONT_XML)?this.m_xml:this.m_cAlt};XMLP.prototype.getContentBegin=function(){return this.m_cB};XMLP.prototype.getContentEnd=function(){return this.m_cE};XMLP.prototype.getLineNumber=function(){return SAXStrings.getLineNumber(this.m_xml,this.m_iP)};XMLP.prototype.getName=function(){return this.m_name};XMLP.prototype.next=function(){return this._checkStructure(this._parse())};XMLP.prototype._parse=function(){if(this.m_iP==this.m_xml.length){return XMLP._NONE}if(this.m_iP==this.m_xml.indexOf("<?",this.m_iP)){return this._parsePI(this.m_iP+2)}else{if(this.m_iP==this.m_xml.indexOf("<!DOCTYPE",this.m_iP)){return this._parseDTD(this.m_iP+9)}else{if(this.m_iP==this.m_xml.indexOf("<!--",this.m_iP)){return this._parseComment(this.m_iP+4)}else{if(this.m_iP==this.m_xml.indexOf("<![CDATA[",this.m_iP)){return this._parseCDATA(this.m_iP+9)}else{if(this.m_iP==this.m_xml.indexOf("<",this.m_iP)){return this._parseElement(this.m_iP+1)}else{if(this.m_iP==this.m_xml.indexOf("&",this.m_iP)){return this._parseEntity(this.m_iP+1)}else{return this._parseText(this.m_iP)}}}}}}};XMLP.prototype._parseAttribute=function(iB,iE){var iNB,iNE,iEq,iVB,iVE;var cQuote,strN,strV;this.m_cAlt="";iNB=SAXStrings.indexOfNonWhitespace(this.m_xml,iB,iE);if((iNB==-1)||(iNB>=iE)){return iNB}iEq=this.m_xml.indexOf("=",iNB);if((iEq==-1)||(iEq>iE)){return this._setErr(XMLP.ERR_ATT_VALUES)}iNE=SAXStrings.lastIndexOfNonWhitespace(this.m_xml,iNB,iEq);iVB=SAXStrings.indexOfNonWhitespace(this.m_xml,iEq+1,iE);if((iVB==-1)||(iVB>iE)){return this._setErr(XMLP.ERR_ATT_VALUES)}cQuote=this.m_xml.charAt(iVB);if(SAXStrings.QUOTES.indexOf(cQuote)==-1){return this._setErr(XMLP.ERR_ATT_VALUES)}iVE=this.m_xml.indexOf(cQuote,iVB+1);if((iVE==-1)||(iVE>iE)){return this._setErr(XMLP.ERR_ATT_VALUES)}strN=this.m_xml.substring(iNB,iNE+1);strV=this.m_xml.substring(iVB+1,iVE);if(strN.indexOf("<")!=-1){return this._setErr(XMLP.ERR_ATT_LT_NAME)}if(strV.indexOf("<")!=-1){return this._setErr(XMLP.ERR_ATT_LT_VALUE)}strV=SAXStrings.replace(strV,null,null,"\n"," ");strV=SAXStrings.replace(strV,null,null,"\t"," ");iRet=this._replaceEntities(strV);if(iRet==XMLP._ERROR){return iRet}strV=this.m_cAlt;if(this._findAttributeIndex(strN)==-1){this._addAttribute(strN,strV)}else{return this._setErr(XMLP.ERR_ATT_DUP)}this.m_iP=iVE+2;return XMLP._ATT};XMLP.prototype._parseCDATA=function(iB){var iE=this.m_xml.indexOf("]]>",iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_CDATA)}this._setContent(XMLP._CONT_XML,iB,iE);this.m_iP=iE+3;return XMLP._CDATA};XMLP.prototype._parseComment=function(iB){var iE=this.m_xml.indexOf("-->",iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_COMMENT)}this._setContent(XMLP._CONT_XML,iB,iE);this.m_iP=iE+3;return XMLP._COMMENT};XMLP.prototype._parseDTD=function(iB){var iE,strClose,iInt,iLast;iE=this.m_xml.indexOf(">",iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_DTD)}iInt=this.m_xml.indexOf("[",iB);strClose=((iInt!=-1)&&(iInt<iE))?"]>":">";while(true){if(iE==iLast){return this._setErr(XMLP.ERR_INFINITELOOP)}iLast=iE;iE=this.m_xml.indexOf(strClose,iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_DTD)}if(this.m_xml.substring(iE-1,iE+2)!="]]>"){break}}this.m_iP=iE+strClose.length;return XMLP._DTD};XMLP.prototype._parseElement=function(iB){var iE,iDE,iNE,iRet;var iType,strN,iLast;iDE=iE=this.m_xml.indexOf(">",iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_ELM)}if(this.m_xml.charAt(iB)=="/"){iType=XMLP._ELM_E;iB++}else{iType=XMLP._ELM_B}if(this.m_xml.charAt(iE-1)=="/"){if(iType==XMLP._ELM_E){return this._setErr(XMLP.ERR_ELM_EMPTY)}iType=XMLP._ELM_EMP;iDE--}iDE=SAXStrings.lastIndexOfNonWhitespace(this.m_xml,iB,iDE);if(iE-iB!=1){if(SAXStrings.indexOfNonWhitespace(this.m_xml,iB,iDE)!=iB){return this._setErr(XMLP.ERR_ELM_NAME)}}this._clearAttributes();iNE=SAXStrings.indexOfWhitespace(this.m_xml,iB,iDE);if(iNE==-1){iNE=iDE+1}else{this.m_iP=iNE;while(this.m_iP<iDE){if(this.m_iP==iLast){return this._setErr(XMLP.ERR_INFINITELOOP)}iLast=this.m_iP;iRet=this._parseAttribute(this.m_iP,iDE);if(iRet==XMLP._ERROR){return iRet}}}strN=this.m_xml.substring(iB,iNE);if(strN.indexOf("<")!=-1){return this._setErr(XMLP.ERR_ELM_LT_NAME)}this.m_name=strN;this.m_iP=iE+1;return iType};XMLP.prototype._parseEntity=function(iB){var iE=this.m_xml.indexOf(";",iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_ENTITY)}this.m_iP=iE+1;return this._replaceEntity(this.m_xml,iB,iE)};XMLP.prototype._parsePI=function(iB){var iE,iTB,iTE,iCB,iCE;iE=this.m_xml.indexOf("?>",iB);if(iE==-1){return this._setErr(XMLP.ERR_CLOSE_PI)}iTB=SAXStrings.indexOfNonWhitespace(this.m_xml,iB,iE);if(iTB==-1){return this._setErr(XMLP.ERR_PI_TARGET)}iTE=SAXStrings.indexOfWhitespace(this.m_xml,iTB,iE);if(iTE==-1){iTE=iE}iCB=SAXStrings.indexOfNonWhitespace(this.m_xml,iTE,iE);if(iCB==-1){iCB=iE}iCE=SAXStrings.lastIndexOfNonWhitespace(this.m_xml,iCB,iE);if(iCE==-1){iCE=iE-1}this.m_name=this.m_xml.substring(iTB,iTE);this._setContent(XMLP._CONT_XML,iCB,iCE+1);this.m_iP=iE+2;return XMLP._PI};XMLP.prototype._parseText=function(iB){var iE,iEE;iE=this.m_xml.indexOf("<",iB);if(iE==-1){iE=this.m_xml.length}iEE=this.m_xml.indexOf("&",iB);if((iEE!=-1)&&(iEE<=iE)){iE=iEE}this._setContent(XMLP._CONT_XML,iB,iE);this.m_iP=iE;return XMLP._TEXT};XMLP.prototype._replaceEntities=function(strD,iB,iE){if(SAXStrings.isEmpty(strD)){return""}iB=iB||0;iE=iE||strD.length;var iEB,iEE,strRet="";iEB=strD.indexOf("&",iB);iEE=iB;while((iEB>0)&&(iEB<iE)){strRet+=strD.substring(iEE,iEB);iEE=strD.indexOf(";",iEB)+1;if((iEE==0)||(iEE>iE)){return this._setErr(XMLP.ERR_CLOSE_ENTITY)}iRet=this._replaceEntity(strD,iEB+1,iEE-1);if(iRet==XMLP._ERROR){return iRet}strRet+=this.m_cAlt;iEB=strD.indexOf("&",iEE)}if(iEE!=iE){strRet+=strD.substring(iEE,iE)}this._setContent(XMLP._CONT_ALT,strRet);return XMLP._ENTITY};XMLP.prototype._replaceEntity=function(strD,iB,iE){if(SAXStrings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;switch(strD.substring(iB,iE)){case"amp":strEnt="&";break;case"lt":strEnt="<";break;case"gt":strEnt=">";break;case"apos":strEnt="'";break;case"quot":strEnt='"';break;default:if(strD.charAt(iB)=="#"){strEnt=String.fromCharCode(parseInt(strD.substring(iB+1,iE)))}else{return this._setErr(XMLP.ERR_ENTITY_UNKNOWN)}break}this._setContent(XMLP._CONT_ALT,strEnt);return XMLP._ENTITY};XMLP.prototype._setContent=function(iSrc){var args=arguments;if(XMLP._CONT_XML==iSrc){this.m_cAlt=null;this.m_cB=args[1];this.m_cE=args[2]}else{this.m_cAlt=args[1];this.m_cB=0;this.m_cE=args[1].length}this.m_cSrc=iSrc};XMLP.prototype._setErr=function(iErr){var strErr=XMLP._errs[iErr];this.m_cAlt=strErr;this.m_cB=0;this.m_cE=strErr.length;this.m_cSrc=XMLP._CONT_ALT;return XMLP._ERROR};SAXDriver=function(){this.m_hndDoc=null;this.m_hndErr=null;this.m_hndLex=null};SAXDriver.DOC_B=1;SAXDriver.DOC_E=2;SAXDriver.ELM_B=3;SAXDriver.ELM_E=4;SAXDriver.CHARS=5;SAXDriver.PI=6;SAXDriver.CD_B=7;SAXDriver.CD_E=8;SAXDriver.CMNT=9;SAXDriver.DTD_B=10;SAXDriver.DTD_E=11;SAXDriver.prototype.parse=function(strD){var parser=new XMLP(strD);if(this.m_hndDoc&&this.m_hndDoc.setDocumentLocator){this.m_hndDoc.setDocumentLocator(this)}this.m_parser=parser;this.m_bErr=false;if(!this.m_bErr){this._fireEvent(SAXDriver.DOC_B)}this._parseLoop();if(!this.m_bErr){this._fireEvent(SAXDriver.DOC_E)}this.m_xml=null;this.m_iP=0};SAXDriver.prototype.setDocumentHandler=function(hnd){this.m_hndDoc=hnd};SAXDriver.prototype.setErrorHandler=function(hnd){this.m_hndErr=hnd};SAXDriver.prototype.setLexicalHandler=function(hnd){this.m_hndLex=hnd};SAXDriver.prototype.getColumnNumber=function(){return this.m_parser.getColumnNumber()};SAXDriver.prototype.getLineNumber=function(){return this.m_parser.getLineNumber()};SAXDriver.prototype.getMessage=function(){return this.m_strErrMsg};SAXDriver.prototype.getPublicId=function(){return null};SAXDriver.prototype.getSystemId=function(){return null};SAXDriver.prototype.getLength=function(){return this.m_parser.getAttributeCount()};SAXDriver.prototype.getName=function(index){return this.m_parser.getAttributeName(index)};SAXDriver.prototype.getValue=function(index){return this.m_parser.getAttributeValue(index)};SAXDriver.prototype.getValueByName=function(name){return this.m_parser.getAttributeValueByName(name)};SAXDriver.prototype._fireError=function(strMsg){this.m_strErrMsg=strMsg;this.m_bErr=true;if(this.m_hndErr&&this.m_hndErr.fatalError){this.m_hndErr.fatalError(this)}};SAXDriver.prototype._fireEvent=function(iEvt){var hnd,func,args=arguments,iLen=args.length-1;if(this.m_bErr){return }if(SAXDriver.DOC_B==iEvt){func="startDocument";hnd=this.m_hndDoc}else{if(SAXDriver.DOC_E==iEvt){func="endDocument";hnd=this.m_hndDoc}else{if(SAXDriver.ELM_B==iEvt){func="startElement";hnd=this.m_hndDoc}else{if(SAXDriver.ELM_E==iEvt){func="endElement";hnd=this.m_hndDoc}else{if(SAXDriver.CHARS==iEvt){func="characters";hnd=this.m_hndDoc}else{if(SAXDriver.PI==iEvt){func="processingInstruction";hnd=this.m_hndDoc}else{if(SAXDriver.CD_B==iEvt){func="startCDATA";hnd=this.m_hndLex}else{if(SAXDriver.CD_E==iEvt){func="endCDATA";hnd=this.m_hndLex}else{if(SAXDriver.CMNT==iEvt){func="comment";hnd=this.m_hndLex}}}}}}}}}if(hnd&&hnd[func]){if(0==iLen){hnd[func]()}else{if(1==iLen){hnd[func](args[1])}else{if(2==iLen){hnd[func](args[1],args[2])}else{if(3==iLen){hnd[func](args[1],args[2],args[3])}}}}}};SAXDriver.prototype._parseLoop=function(parser){var iEvent,parser;parser=this.m_parser;while(!this.m_bErr){iEvent=parser.next();if(iEvent==XMLP._ELM_B){this._fireEvent(SAXDriver.ELM_B,parser.getName(),this)}else{if(iEvent==XMLP._ELM_E){this._fireEvent(SAXDriver.ELM_E,parser.getName())}else{if(iEvent==XMLP._ELM_EMP){this._fireEvent(SAXDriver.ELM_B,parser.getName(),this);this._fireEvent(SAXDriver.ELM_E,parser.getName())}else{if(iEvent==XMLP._TEXT){this._fireEvent(SAXDriver.CHARS,parser.getContent(),parser.getContentBegin(),parser.getContentEnd()-parser.getContentBegin())}else{if(iEvent==XMLP._ENTITY){this._fireEvent(SAXDriver.CHARS,parser.getContent(),parser.getContentBegin(),parser.getContentEnd()-parser.getContentBegin())}else{if(iEvent==XMLP._PI){this._fireEvent(SAXDriver.PI,parser.getName(),parser.getContent().substring(parser.getContentBegin(),parser.getContentEnd()))}else{if(iEvent==XMLP._CDATA){this._fireEvent(SAXDriver.CD_B);this._fireEvent(SAXDriver.CHARS,parser.getContent(),parser.getContentBegin(),parser.getContentEnd()-parser.getContentBegin());this._fireEvent(SAXDriver.CD_E)}else{if(iEvent==XMLP._COMMENT){this._fireEvent(SAXDriver.CMNT,parser.getContent(),parser.getContentBegin(),parser.getContentEnd()-parser.getContentBegin())}else{if(iEvent==XMLP._DTD){}else{if(iEvent==XMLP._ERROR){this._fireError(parser.getContent())}else{if(iEvent==XMLP._NONE){return }}}}}}}}}}}}};SAXStrings=function(){};SAXStrings.WHITESPACE=" \t\n\r";SAXStrings.QUOTES="\"'";SAXStrings.getColumnNumber=function(strD,iP){if(SAXStrings.isEmpty(strD)){return -1}iP=iP||strD.length;var arrD=strD.substring(0,iP).split("\n");var strLine=arrD[arrD.length-1];arrD.length--;var iLinePos=arrD.join("\n").length;return iP-iLinePos};SAXStrings.getLineNumber=function(strD,iP){if(SAXStrings.isEmpty(strD)){return -1}iP=iP||strD.length;return strD.substring(0,iP).split("\n").length};SAXStrings.indexOfNonWhitespace=function(strD,iB,iE){if(SAXStrings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;for(var i=iB;i<iE;i++){if(SAXStrings.WHITESPACE.indexOf(strD.charAt(i))==-1){return i}}return -1};SAXStrings.indexOfWhitespace=function(strD,iB,iE){if(SAXStrings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;for(var i=iB;i<iE;i++){if(SAXStrings.WHITESPACE.indexOf(strD.charAt(i))!=-1){return i}}return -1};SAXStrings.isEmpty=function(strD){return(strD==null)||(strD.length==0)};SAXStrings.lastIndexOfNonWhitespace=function(strD,iB,iE){if(SAXStrings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;for(var i=iE-1;i>=iB;i--){if(SAXStrings.WHITESPACE.indexOf(strD.charAt(i))==-1){return i}}return -1};SAXStrings.replace=function(strD,iB,iE,strF,strR){if(SAXStrings.isEmpty(strD)){return""}iB=iB||0;iE=iE||strD.length;return strD.substring(iB,iE).split(strF).join(strR)};Stack=function(){this.m_arr=new Array()};Stack.prototype.clear=function(){this.m_arr=new Array()};Stack.prototype.count=function(){return this.m_arr.length};Stack.prototype.destroy=function(){this.m_arr=null};Stack.prototype.peek=function(){if(this.m_arr.length==0){return null}return this.m_arr[this.m_arr.length-1]};Stack.prototype.pop=function(){if(this.m_arr.length==0){return null}var o=this.m_arr[this.m_arr.length-1];this.m_arr.length--;return o};Stack.prototype.push=function(o){this.m_arr[this.m_arr.length]=o};function isEmpty(str){return(str==null)||(str.length==0)}function trim(trimString,leftTrim,rightTrim){if(isEmpty(trimString)){return""}if(leftTrim==null){leftTrim=true}if(rightTrim==null){rightTrim=true}var left=0;var right=0;var i=0;var k=0;if(leftTrim==true){while((i<trimString.length)&&(whitespace.indexOf(trimString.charAt(i++))!=-1)){left++}}if(rightTrim==true){k=trimString.length-1;while((k>=left)&&(whitespace.indexOf(trimString.charAt(k--))!=-1)){right++}}return trimString.substring(left,trimString.length-right)}function __escapeString(str){var escAmpRegEx=/&/g;var escLtRegEx=/</g;var escGtRegEx=/>/g;var quotRegEx=/"/g;var aposRegEx=/'/g;str=str.replace(escAmpRegEx,"&amp;");str=str.replace(escLtRegEx,"&lt;");str=str.replace(escGtRegEx,"&gt;");str=str.replace(quotRegEx,"&quot;");str=str.replace(aposRegEx,"&apos;");return str}function __unescapeString(str){var escAmpRegEx=/&amp;/g;var escLtRegEx=/&lt;/g;var escGtRegEx=/&gt;/g;var quotRegEx=/&quot;/g;var aposRegEx=/&apos;/g;str=str.replace(escAmpRegEx,"&");str=str.replace(escLtRegEx,"<");str=str.replace(escGtRegEx,">");str=str.replace(quotRegEx,'"');str=str.replace(aposRegEx,"'");return str}function addClass(classCollectionStr,newClass){if(classCollectionStr){if(classCollectionStr.indexOf("|"+newClass+"|")<0){classCollectionStr+=newClass+"|"}}else{classCollectionStr="|"+newClass+"|"}return classCollectionStr}DOMException=function(code){this._class=addClass(this._class,"DOMException");this.code=code};DOMException.INDEX_SIZE_ERR=1;DOMException.DOMSTRING_SIZE_ERR=2;DOMException.HIERARCHY_REQUEST_ERR=3;DOMException.WRONG_DOCUMENT_ERR=4;DOMException.INVALID_CHARACTER_ERR=5;DOMException.NO_DATA_ALLOWED_ERR=6;DOMException.NO_MODIFICATION_ALLOWED_ERR=7;DOMException.NOT_FOUND_ERR=8;DOMException.NOT_SUPPORTED_ERR=9;DOMException.INUSE_ATTRIBUTE_ERR=10;DOMException.INVALID_STATE_ERR=11;DOMException.SYNTAX_ERR=12;DOMException.INVALID_MODIFICATION_ERR=13;DOMException.NAMESPACE_ERR=14;DOMException.INVALID_ACCESS_ERR=15;DOMImplementation=function(){this._class=addClass(this._class,"DOMImplementation");this._p=null;this.preserveWhiteSpace=false;this.namespaceAware=true;this.errorChecking=true};DOMImplementation.prototype.escapeString=function DOMNode__escapeString(str){return __escapeString(str)};DOMImplementation.prototype.unescapeString=function DOMNode__unescapeString(str){return __unescapeString(str)};DOMImplementation.prototype.hasFeature=function DOMImplementation_hasFeature(feature,version){var ret=false;if(feature.toLowerCase()=="xml"){ret=(!version||(version=="1.0")||(version=="2.0"))}else{if(feature.toLowerCase()=="core"){ret=(!version||(version=="2.0"))}}return ret};DOMImplementation.prototype.loadXML=function DOMImplementation_loadXML(xmlStr){var parser;try{parser=new XMLP(xmlStr)}catch(e){alert("Error Creating the SAX Parser. Did you include xmlsax.js or tinyxmlsax.js in your web page?\nThe SAX parser is needed to populate XML for <SCRIPT>'s W3C DOM Parser with data.")}var doc=new DOMDocument(this);this._parseLoop(doc,parser);doc._parseComplete=true;return doc};DOMImplementation.prototype.translateErrCode=function DOMImplementation_translateErrCode(code){var msg="";switch(code){case DOMException.INDEX_SIZE_ERR:msg="INDEX_SIZE_ERR: Index out of bounds";break;case DOMException.DOMSTRING_SIZE_ERR:msg="DOMSTRING_SIZE_ERR: The resulting string is too long to fit in a DOMString";break;case DOMException.HIERARCHY_REQUEST_ERR:msg="HIERARCHY_REQUEST_ERR: The Node can not be inserted at this location";break;case DOMException.WRONG_DOCUMENT_ERR:msg="WRONG_DOCUMENT_ERR: The source and the destination Documents are not the same";break;case DOMException.INVALID_CHARACTER_ERR:msg="INVALID_CHARACTER_ERR: The string contains an invalid character";break;case DOMException.NO_DATA_ALLOWED_ERR:msg="NO_DATA_ALLOWED_ERR: This Node / NodeList does not support data";break;case DOMException.NO_MODIFICATION_ALLOWED_ERR:msg="NO_MODIFICATION_ALLOWED_ERR: This object cannot be modified";break;case DOMException.NOT_FOUND_ERR:msg="NOT_FOUND_ERR: The item cannot be found";break;case DOMException.NOT_SUPPORTED_ERR:msg="NOT_SUPPORTED_ERR: This implementation does not support function";break;case DOMException.INUSE_ATTRIBUTE_ERR:msg="INUSE_ATTRIBUTE_ERR: The Attribute has already been assigned to another Element";break;case DOMException.INVALID_STATE_ERR:msg="INVALID_STATE_ERR: The object is no longer usable";break;case DOMException.SYNTAX_ERR:msg="SYNTAX_ERR: Syntax error";break;case DOMException.INVALID_MODIFICATION_ERR:msg="INVALID_MODIFICATION_ERR: Cannot change the type of the object";break;case DOMException.NAMESPACE_ERR:msg="NAMESPACE_ERR: The namespace declaration is incorrect";break;case DOMException.INVALID_ACCESS_ERR:msg="INVALID_ACCESS_ERR: The object does not support this function";break;default:msg="UNKNOWN: Unknown Exception Code ("+code+")"}return msg};DOMImplementation.prototype._parseLoop=function DOMImplementation__parseLoop(doc,p){var iEvt,iNode,iAttr,strName;iNodeParent=doc;var el_close_count=0;var entitiesList=new Array();var textNodesList=new Array();if(this.namespaceAware){var iNS=doc.createNamespace("");iNS.setValue("http://www.w3.org/2000/xmlns/");doc._namespaces.setNamedItem(iNS)}while(true){iEvt=p.next();if(iEvt==XMLP._ELM_B){var pName=p.getName();pName=trim(pName,true,true);if(!this.namespaceAware){iNode=doc.createElement(p.getName());for(var i=0;i<p.getAttributeCount();i++){strName=p.getAttributeName(i);iAttr=iNode.getAttributeNode(strName);if(!iAttr){iAttr=doc.createAttribute(strName)}iAttr.setValue(p.getAttributeValue(i));iNode.setAttributeNode(iAttr)}}else{iNode=doc.createElementNS("",p.getName());iNode._namespaces=iNodeParent._namespaces._cloneNodes(iNode);for(var i=0;i<p.getAttributeCount();i++){strName=p.getAttributeName(i);if(this._isNamespaceDeclaration(strName)){var namespaceDec=this._parseNSName(strName);if(strName!="xmlns"){iNS=doc.createNamespace(strName)}else{iNS=doc.createNamespace("")}iNS.setValue(p.getAttributeValue(i));iNode._namespaces.setNamedItem(iNS)}else{iAttr=iNode.getAttributeNode(strName);if(!iAttr){iAttr=doc.createAttributeNS("",strName)}iAttr.setValue(p.getAttributeValue(i));iNode.setAttributeNodeNS(iAttr);if(this._isIdDeclaration(strName)){iNode.id=p.getAttributeValue(i)}}}if(iNode._namespaces.getNamedItem(iNode.prefix)){iNode.namespaceURI=iNode._namespaces.getNamedItem(iNode.prefix).value}for(var i=0;i<iNode.attributes.length;i++){if(iNode.attributes.item(i).prefix!=""){if(iNode._namespaces.getNamedItem(iNode.attributes.item(i).prefix)){iNode.attributes.item(i).namespaceURI=iNode._namespaces.getNamedItem(iNode.attributes.item(i).prefix).value}}}}if(iNodeParent.nodeType==DOMNode.DOCUMENT_NODE){iNodeParent.documentElement=iNode}iNodeParent.appendChild(iNode);iNodeParent=iNode}else{if(iEvt==XMLP._ELM_E){iNodeParent=iNodeParent.parentNode}else{if(iEvt==XMLP._ELM_EMP){pName=p.getName();pName=trim(pName,true,true);if(!this.namespaceAware){iNode=doc.createElement(pName);for(var i=0;i<p.getAttributeCount();i++){strName=p.getAttributeName(i);iAttr=iNode.getAttributeNode(strName);if(!iAttr){iAttr=doc.createAttribute(strName)}iAttr.setValue(p.getAttributeValue(i));iNode.setAttributeNode(iAttr)}}else{iNode=doc.createElementNS("",p.getName());iNode._namespaces=iNodeParent._namespaces._cloneNodes(iNode);for(var i=0;i<p.getAttributeCount();i++){strName=p.getAttributeName(i);if(this._isNamespaceDeclaration(strName)){var namespaceDec=this._parseNSName(strName);if(strName!="xmlns"){iNS=doc.createNamespace(strName)}else{iNS=doc.createNamespace("")}iNS.setValue(p.getAttributeValue(i));iNode._namespaces.setNamedItem(iNS)}else{iAttr=iNode.getAttributeNode(strName);if(!iAttr){iAttr=doc.createAttributeNS("",strName)}iAttr.setValue(p.getAttributeValue(i));iNode.setAttributeNodeNS(iAttr);if(this._isIdDeclaration(strName)){iNode.id=p.getAttributeValue(i)}}}if(iNode._namespaces.getNamedItem(iNode.prefix)){iNode.namespaceURI=iNode._namespaces.getNamedItem(iNode.prefix).value}for(var i=0;i<iNode.attributes.length;i++){if(iNode.attributes.item(i).prefix!=""){if(iNode._namespaces.getNamedItem(iNode.attributes.item(i).prefix)){iNode.attributes.item(i).namespaceURI=iNode._namespaces.getNamedItem(iNode.attributes.item(i).prefix).value}}}}if(iNodeParent.nodeType==DOMNode.DOCUMENT_NODE){iNodeParent.documentElement=iNode}iNodeParent.appendChild(iNode)}else{if(iEvt==XMLP._TEXT||iEvt==XMLP._ENTITY){var pContent=p.getContent().substring(p.getContentBegin(),p.getContentEnd());if(!this.preserveWhiteSpace){if(trim(pContent,true,true)==""){pContent=""}}if(pContent.length>0){var textNode=doc.createTextNode(pContent);iNodeParent.appendChild(textNode);if(iEvt==XMLP._ENTITY){entitiesList[entitiesList.length]=textNode}else{textNodesList[textNodesList.length]=textNode}}}else{if(iEvt==XMLP._PI){iNodeParent.appendChild(doc.createProcessingInstruction(p.getName(),p.getContent().substring(p.getContentBegin(),p.getContentEnd())))}else{if(iEvt==XMLP._CDATA){pContent=p.getContent().substring(p.getContentBegin(),p.getContentEnd());if(!this.preserveWhiteSpace){pContent=trim(pContent,true,true);pContent.replace(/ +/g," ")}if(pContent.length>0){iNodeParent.appendChild(doc.createCDATASection(pContent))}}else{if(iEvt==XMLP._COMMENT){var pContent=p.getContent().substring(p.getContentBegin(),p.getContentEnd());if(!this.preserveWhiteSpace){pContent=trim(pContent,true,true);pContent.replace(/ +/g," ")}if(pContent.length>0){iNodeParent.appendChild(doc.createComment(pContent))}}else{if(iEvt==XMLP._DTD){}else{if(iEvt==XMLP._ERROR){throw (new DOMException(DOMException.SYNTAX_ERR))}else{if(iEvt==XMLP._NONE){if(iNodeParent==doc){break}else{throw (new DOMException(DOMException.SYNTAX_ERR))}}}}}}}}}}}}var intCount=entitiesList.length;for(intLoop=0;intLoop<intCount;intLoop++){var entity=entitiesList[intLoop];var parentNode=entity.getParentNode();if(parentNode){parentNode.normalize();if(!this.preserveWhiteSpace){var children=parentNode.getChildNodes();var intCount2=children.getLength();for(intLoop2=0;intLoop2<intCount2;intLoop2++){var child=children.item(intLoop2);if(child.getNodeType()==DOMNode.TEXT_NODE){var childData=child.getData();childData=trim(childData,true,true);childData.replace(/ +/g," ");child.setData(childData)}}}}}if(!this.preserveWhiteSpace){var intCount=textNodesList.length;for(intLoop=0;intLoop<intCount;intLoop++){var node=textNodesList[intLoop];if(node.getParentNode()!=null){var nodeData=node.getData();nodeData=trim(nodeData,true,true);nodeData.replace(/ +/g," ");node.setData(nodeData)}}}};DOMImplementation.prototype._isNamespaceDeclaration=function DOMImplementation__isNamespaceDeclaration(attributeName){return(attributeName.indexOf("xmlns")>-1)};DOMImplementation.prototype._isIdDeclaration=function DOMImplementation__isIdDeclaration(attributeName){return(attributeName.toLowerCase()=="id")};DOMImplementation.prototype._isValidName=function DOMImplementation__isValidName(name){return name.match(re_validName)};re_validName=/^[a-zA-Z_:][a-zA-Z0-9\.\-_:]*$/;DOMImplementation.prototype._isValidString=function DOMImplementation__isValidString(name){return(name.search(re_invalidStringChars)<0)};re_invalidStringChars=/\x01|\x02|\x03|\x04|\x05|\x06|\x07|\x08|\x0B|\x0C|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F|\x7F/;DOMImplementation.prototype._parseNSName=function DOMImplementation__parseNSName(qualifiedName){var resultNSName=new Object();resultNSName.prefix=qualifiedName;resultNSName.namespaceName="";delimPos=qualifiedName.indexOf(":");if(delimPos>-1){resultNSName.prefix=qualifiedName.substring(0,delimPos);resultNSName.namespaceName=qualifiedName.substring(delimPos+1,qualifiedName.length)}return resultNSName};DOMImplementation.prototype._parseQName=function DOMImplementation__parseQName(qualifiedName){var resultQName=new Object();resultQName.localName=qualifiedName;resultQName.prefix="";delimPos=qualifiedName.indexOf(":");if(delimPos>-1){resultQName.prefix=qualifiedName.substring(0,delimPos);resultQName.localName=qualifiedName.substring(delimPos+1,qualifiedName.length)}return resultQName};DOMNodeList=function(ownerDocument,parentNode){this._class=addClass(this._class,"DOMNodeList");this._nodes=new Array();this.length=0;this.parentNode=parentNode;this.ownerDocument=ownerDocument;this._readonly=false};DOMNodeList.prototype.getLength=function DOMNodeList_getLength(){return this.length};DOMNodeList.prototype.item=function DOMNodeList_item(index){var ret=null;if((index>=0)&&(index<this._nodes.length)){ret=this._nodes[index]}return ret};DOMNodeList.prototype._findItemIndex=function DOMNodeList__findItemIndex(id){var ret=-1;if(id>-1){for(var i=0;i<this._nodes.length;i++){if(this._nodes[i]._id==id){ret=i;break}}}return ret};DOMNodeList.prototype._insertBefore=function DOMNodeList__insertBefore(newChild,refChildIndex){if((refChildIndex>=0)&&(refChildIndex<this._nodes.length)){var tmpArr=new Array();tmpArr=this._nodes.slice(0,refChildIndex);if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){tmpArr=tmpArr.concat(newChild.childNodes._nodes)}else{tmpArr[tmpArr.length]=newChild}this._nodes=tmpArr.concat(this._nodes.slice(refChildIndex));this.length=this._nodes.length}};DOMNodeList.prototype._replaceChild=function DOMNodeList__replaceChild(newChild,refChildIndex){var ret=null;if((refChildIndex>=0)&&(refChildIndex<this._nodes.length)){ret=this._nodes[refChildIndex];if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){var tmpArr=new Array();tmpArr=this._nodes.slice(0,refChildIndex);tmpArr=tmpArr.concat(newChild.childNodes._nodes);this._nodes=tmpArr.concat(this._nodes.slice(refChildIndex+1))}else{this._nodes[refChildIndex]=newChild}}return ret};DOMNodeList.prototype._removeChild=function DOMNodeList__removeChild(refChildIndex){var ret=null;if(refChildIndex>-1){ret=this._nodes[refChildIndex];var tmpArr=new Array();tmpArr=this._nodes.slice(0,refChildIndex);this._nodes=tmpArr.concat(this._nodes.slice(refChildIndex+1));this.length=this._nodes.length}return ret};DOMNodeList.prototype._appendChild=function DOMNodeList__appendChild(newChild){if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){this._nodes=this._nodes.concat(newChild.childNodes._nodes)}else{this._nodes[this._nodes.length]=newChild}this.length=this._nodes.length};DOMNodeList.prototype._cloneNodes=function DOMNodeList__cloneNodes(deep,parentNode){var cloneNodeList=new DOMNodeList(this.ownerDocument,parentNode);for(var i=0;i<this._nodes.length;i++){cloneNodeList._appendChild(this._nodes[i].cloneNode(deep))}return cloneNodeList};DOMNodeList.prototype.toString=function DOMNodeList_toString(){var ret="";for(var i=0;i<this.length;i++){ret+=this._nodes[i].toString()}return ret};DOMNamedNodeMap=function(ownerDocument,parentNode){this._class=addClass(this._class,"DOMNamedNodeMap");this.DOMNodeList=DOMNodeList;this.DOMNodeList(ownerDocument,parentNode)};DOMNamedNodeMap.prototype=new DOMNodeList;DOMNamedNodeMap.prototype.getNamedItem=function DOMNamedNodeMap_getNamedItem(name){var ret=null;var itemIndex=this._findNamedItemIndex(name);if(itemIndex>-1){ret=this._nodes[itemIndex]}return ret};DOMNamedNodeMap.prototype.setNamedItem=function DOMNamedNodeMap_setNamedItem(arg){if(this.ownerDocument.implementation.errorChecking){if(this.ownerDocument!=arg.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._readonly||(this.parentNode&&this.parentNode._readonly)){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(arg.ownerElement&&(arg.ownerElement!=this.parentNode)){throw (new DOMException(DOMException.INUSE_ATTRIBUTE_ERR))}}var itemIndex=this._findNamedItemIndex(arg.name);var ret=null;if(itemIndex>-1){ret=this._nodes[itemIndex];if(this.ownerDocument.implementation.errorChecking&&ret._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}else{this._nodes[itemIndex]=arg}}else{this._nodes[this.length]=arg}this.length=this._nodes.length;arg.ownerElement=this.parentNode;return ret};DOMNamedNodeMap.prototype.removeNamedItem=function DOMNamedNodeMap_removeNamedItem(name){var ret=null;if(this.ownerDocument.implementation.errorChecking&&(this._readonly||(this.parentNode&&this.parentNode._readonly))){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var itemIndex=this._findNamedItemIndex(name);if(this.ownerDocument.implementation.errorChecking&&(itemIndex<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var oldNode=this._nodes[itemIndex];if(this.ownerDocument.implementation.errorChecking&&oldNode._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}return this._removeChild(itemIndex)};DOMNamedNodeMap.prototype.getNamedItemNS=function DOMNamedNodeMap_getNamedItemNS(namespaceURI,localName){var ret=null;var itemIndex=this._findNamedItemNSIndex(namespaceURI,localName);if(itemIndex>-1){ret=this._nodes[itemIndex]}return ret};DOMNamedNodeMap.prototype.setNamedItemNS=function DOMNamedNodeMap_setNamedItemNS(arg){if(this.ownerDocument.implementation.errorChecking){if(this._readonly||(this.parentNode&&this.parentNode._readonly)){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=arg.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(arg.ownerElement&&(arg.ownerElement!=this.parentNode)){throw (new DOMException(DOMException.INUSE_ATTRIBUTE_ERR))}}var itemIndex=this._findNamedItemNSIndex(arg.namespaceURI,arg.localName);var ret=null;if(itemIndex>-1){ret=this._nodes[itemIndex];if(this.ownerDocument.implementation.errorChecking&&ret._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}else{this._nodes[itemIndex]=arg}}else{this._nodes[this.length]=arg}this.length=this._nodes.length;arg.ownerElement=this.parentNode;return ret};DOMNamedNodeMap.prototype.removeNamedItemNS=function DOMNamedNodeMap_removeNamedItemNS(namespaceURI,localName){var ret=null;if(this.ownerDocument.implementation.errorChecking&&(this._readonly||(this.parentNode&&this.parentNode._readonly))){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var itemIndex=this._findNamedItemNSIndex(namespaceURI,localName);if(this.ownerDocument.implementation.errorChecking&&(itemIndex<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var oldNode=this._nodes[itemIndex];if(this.ownerDocument.implementation.errorChecking&&oldNode._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}return this._removeChild(itemIndex)};DOMNamedNodeMap.prototype._findNamedItemIndex=function DOMNamedNodeMap__findNamedItemIndex(name){var ret=-1;for(var i=0;i<this._nodes.length;i++){if(this._nodes[i].name==name){ret=i;break}}return ret};DOMNamedNodeMap.prototype._findNamedItemNSIndex=function DOMNamedNodeMap__findNamedItemNSIndex(namespaceURI,localName){var ret=-1;if(localName){for(var i=0;i<this._nodes.length;i++){if((this._nodes[i].namespaceURI==namespaceURI)&&(this._nodes[i].localName==localName)){ret=i;break}}}return ret};DOMNamedNodeMap.prototype._hasAttribute=function DOMNamedNodeMap__hasAttribute(name){var ret=false;var itemIndex=this._findNamedItemIndex(name);if(itemIndex>-1){ret=true}return ret};DOMNamedNodeMap.prototype._hasAttributeNS=function DOMNamedNodeMap__hasAttributeNS(namespaceURI,localName){var ret=false;var itemIndex=this._findNamedItemNSIndex(namespaceURI,localName);if(itemIndex>-1){ret=true}return ret};DOMNamedNodeMap.prototype._cloneNodes=function DOMNamedNodeMap__cloneNodes(parentNode){var cloneNamedNodeMap=new DOMNamedNodeMap(this.ownerDocument,parentNode);for(var i=0;i<this._nodes.length;i++){cloneNamedNodeMap._appendChild(this._nodes[i].cloneNode(false))}return cloneNamedNodeMap};DOMNamedNodeMap.prototype.toString=function DOMNamedNodeMap_toString(){var ret="";for(var i=0;i<this.length-1;i++){ret+=this._nodes[i].toString()+" "}if(this.length>0){ret+=this._nodes[this.length-1].toString()}return ret};DOMNamespaceNodeMap=function(ownerDocument,parentNode){this._class=addClass(this._class,"DOMNamespaceNodeMap");this.DOMNamedNodeMap=DOMNamedNodeMap;this.DOMNamedNodeMap(ownerDocument,parentNode)};DOMNamespaceNodeMap.prototype=new DOMNamedNodeMap;DOMNamespaceNodeMap.prototype._findNamedItemIndex=function DOMNamespaceNodeMap__findNamedItemIndex(localName){var ret=-1;for(var i=0;i<this._nodes.length;i++){if(this._nodes[i].localName==localName){ret=i;break}}return ret};DOMNamespaceNodeMap.prototype._cloneNodes=function DOMNamespaceNodeMap__cloneNodes(parentNode){var cloneNamespaceNodeMap=new DOMNamespaceNodeMap(this.ownerDocument,parentNode);for(var i=0;i<this._nodes.length;i++){cloneNamespaceNodeMap._appendChild(this._nodes[i].cloneNode(false))}return cloneNamespaceNodeMap};DOMNamespaceNodeMap.prototype.toString=function DOMNamespaceNodeMap_toString(){var ret="";for(var ind=0;ind<this._nodes.length;ind++){var ns=null;try{var ns=this.parentNode.parentNode._namespaces.getNamedItem(this._nodes[ind].localName)}catch(e){break}if(!(ns&&(""+ns.nodeValue==""+this._nodes[ind].nodeValue))){ret+=this._nodes[ind].toString()+" "}}return ret};DOMNode=function(ownerDocument){this._class=addClass(this._class,"DOMNode");if(ownerDocument){this._id=ownerDocument._genId()}this.namespaceURI="";this.prefix="";this.localName="";this.nodeName="";this.nodeValue="";this.nodeType=0;this.parentNode=null;this.childNodes=new DOMNodeList(ownerDocument,this);this.firstChild=null;this.lastChild=null;this.previousSibling=null;this.nextSibling=null;this.attributes=new DOMNamedNodeMap(ownerDocument,this);this.ownerDocument=ownerDocument;this._namespaces=new DOMNamespaceNodeMap(ownerDocument,this);this._readonly=false};DOMNode.ELEMENT_NODE=1;DOMNode.ATTRIBUTE_NODE=2;DOMNode.TEXT_NODE=3;DOMNode.CDATA_SECTION_NODE=4;DOMNode.ENTITY_REFERENCE_NODE=5;DOMNode.ENTITY_NODE=6;DOMNode.PROCESSING_INSTRUCTION_NODE=7;DOMNode.COMMENT_NODE=8;DOMNode.DOCUMENT_NODE=9;DOMNode.DOCUMENT_TYPE_NODE=10;DOMNode.DOCUMENT_FRAGMENT_NODE=11;DOMNode.NOTATION_NODE=12;DOMNode.NAMESPACE_NODE=13;DOMNode.prototype.hasAttributes=function DOMNode_hasAttributes(){if(this.attributes.length==0){return false}else{return true}};DOMNode.prototype.getNodeName=function DOMNode_getNodeName(){return this.nodeName};DOMNode.prototype.getNodeValue=function DOMNode_getNodeValue(){return this.nodeValue};DOMNode.prototype.setNodeValue=function DOMNode_setNodeValue(nodeValue){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.nodeValue=nodeValue};DOMNode.prototype.getNodeType=function DOMNode_getNodeType(){return this.nodeType};DOMNode.prototype.getParentNode=function DOMNode_getParentNode(){return this.parentNode};DOMNode.prototype.getChildNodes=function DOMNode_getChildNodes(){return this.childNodes};DOMNode.prototype.getFirstChild=function DOMNode_getFirstChild(){return this.firstChild};DOMNode.prototype.getLastChild=function DOMNode_getLastChild(){return this.lastChild};DOMNode.prototype.getPreviousSibling=function DOMNode_getPreviousSibling(){return this.previousSibling};DOMNode.prototype.getNextSibling=function DOMNode_getNextSibling(){return this.nextSibling};DOMNode.prototype.getAttributes=function DOMNode_getAttributes(){return this.attributes};DOMNode.prototype.getOwnerDocument=function DOMNode_getOwnerDocument(){return this.ownerDocument};DOMNode.prototype.getNamespaceURI=function DOMNode_getNamespaceURI(){return this.namespaceURI};DOMNode.prototype.getPrefix=function DOMNode_getPrefix(){return this.prefix};DOMNode.prototype.setPrefix=function DOMNode_setPrefix(prefix){if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(!this.ownerDocument.implementation._isValidName(prefix)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}if(!this.ownerDocument._isValidNamespace(this.namespaceURI,prefix+":"+this.localName)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if((prefix=="xmlns")&&(this.namespaceURI!="http://www.w3.org/2000/xmlns/")){throw (new DOMException(DOMException.NAMESPACE_ERR))}if((prefix=="")&&(this.localName=="xmlns")){throw (new DOMException(DOMException.NAMESPACE_ERR))}}this.prefix=prefix;if(this.prefix!=""){this.nodeName=this.prefix+":"+this.localName}else{this.nodeName=this.localName}};DOMNode.prototype.getLocalName=function DOMNode_getLocalName(){return this.localName};DOMNode.prototype.insertBefore=function DOMNode_insertBefore(newChild,refChild){var prevNode;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=newChild.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._isAncestor(newChild)){throw (new DOMException(DOMException.HIERARCHY_REQUEST_ERR))}}if(refChild){var itemIndex=this.childNodes._findItemIndex(refChild._id);if(this.ownerDocument.implementation.errorChecking&&(itemIndex<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var newChildParent=newChild.parentNode;if(newChildParent){newChildParent.removeChild(newChild)}this.childNodes._insertBefore(newChild,this.childNodes._findItemIndex(refChild._id));prevNode=refChild.previousSibling;if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(newChild.childNodes._nodes.length>0){for(var ind=0;ind<newChild.childNodes._nodes.length;ind++){newChild.childNodes._nodes[ind].parentNode=this}refChild.previousSibling=newChild.childNodes._nodes[newChild.childNodes._nodes.length-1]}}else{newChild.parentNode=this;refChild.previousSibling=newChild}}else{prevNode=this.lastChild;this.appendChild(newChild)}if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(newChild.childNodes._nodes.length>0){if(prevNode){prevNode.nextSibling=newChild.childNodes._nodes[0]}else{this.firstChild=newChild.childNodes._nodes[0]}newChild.childNodes._nodes[0].previousSibling=prevNode;newChild.childNodes._nodes[newChild.childNodes._nodes.length-1].nextSibling=refChild}}else{if(prevNode){prevNode.nextSibling=newChild}else{this.firstChild=newChild}newChild.previousSibling=prevNode;newChild.nextSibling=refChild}return newChild};DOMNode.prototype.replaceChild=function DOMNode_replaceChild(newChild,oldChild){var ret=null;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=newChild.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._isAncestor(newChild)){throw (new DOMException(DOMException.HIERARCHY_REQUEST_ERR))}}var index=this.childNodes._findItemIndex(oldChild._id);if(this.ownerDocument.implementation.errorChecking&&(index<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}var newChildParent=newChild.parentNode;if(newChildParent){newChildParent.removeChild(newChild)}ret=this.childNodes._replaceChild(newChild,index);if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(newChild.childNodes._nodes.length>0){for(var ind=0;ind<newChild.childNodes._nodes.length;ind++){newChild.childNodes._nodes[ind].parentNode=this}if(oldChild.previousSibling){oldChild.previousSibling.nextSibling=newChild.childNodes._nodes[0]}else{this.firstChild=newChild.childNodes._nodes[0]}if(oldChild.nextSibling){oldChild.nextSibling.previousSibling=newChild}else{this.lastChild=newChild.childNodes._nodes[newChild.childNodes._nodes.length-1]}newChild.childNodes._nodes[0].previousSibling=oldChild.previousSibling;newChild.childNodes._nodes[newChild.childNodes._nodes.length-1].nextSibling=oldChild.nextSibling}}else{newChild.parentNode=this;if(oldChild.previousSibling){oldChild.previousSibling.nextSibling=newChild}else{this.firstChild=newChild}if(oldChild.nextSibling){oldChild.nextSibling.previousSibling=newChild}else{this.lastChild=newChild}newChild.previousSibling=oldChild.previousSibling;newChild.nextSibling=oldChild.nextSibling}return ret};DOMNode.prototype.removeChild=function DOMNode_removeChild(oldChild){if(this.ownerDocument.implementation.errorChecking&&(this._readonly||oldChild._readonly)){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var itemIndex=this.childNodes._findItemIndex(oldChild._id);if(this.ownerDocument.implementation.errorChecking&&(itemIndex<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}this.childNodes._removeChild(itemIndex);oldChild.parentNode=null;if(oldChild.previousSibling){oldChild.previousSibling.nextSibling=oldChild.nextSibling}else{this.firstChild=oldChild.nextSibling}if(oldChild.nextSibling){oldChild.nextSibling.previousSibling=oldChild.previousSibling}else{this.lastChild=oldChild.previousSibling}oldChild.previousSibling=null;oldChild.nextSibling=null;return oldChild};DOMNode.prototype.appendChild=function DOMNode_appendChild(newChild){if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.ownerDocument!=newChild.ownerDocument){throw (new DOMException(DOMException.WRONG_DOCUMENT_ERR))}if(this._isAncestor(newChild)){throw (new DOMException(DOMException.HIERARCHY_REQUEST_ERR))}}var newChildParent=newChild.parentNode;if(newChildParent){newChildParent.removeChild(newChild)}this.childNodes._appendChild(newChild);if(newChild.nodeType==DOMNode.DOCUMENT_FRAGMENT_NODE){if(newChild.childNodes._nodes.length>0){for(var ind=0;ind<newChild.childNodes._nodes.length;ind++){newChild.childNodes._nodes[ind].parentNode=this}if(this.lastChild){this.lastChild.nextSibling=newChild.childNodes._nodes[0];newChild.childNodes._nodes[0].previousSibling=this.lastChild;this.lastChild=newChild.childNodes._nodes[newChild.childNodes._nodes.length-1]}else{this.lastChild=newChild.childNodes._nodes[newChild.childNodes._nodes.length-1];this.firstChild=newChild.childNodes._nodes[0]}}}else{newChild.parentNode=this;if(this.lastChild){this.lastChild.nextSibling=newChild;newChild.previousSibling=this.lastChild;this.lastChild=newChild}else{this.lastChild=newChild;this.firstChild=newChild}}return newChild};DOMNode.prototype.hasChildNodes=function DOMNode_hasChildNodes(){return(this.childNodes.length>0)};DOMNode.prototype.cloneNode=function DOMNode_cloneNode(deep){try{return this.ownerDocument.importNode(this,deep)}catch(e){return null}};DOMNode.prototype.normalize=function DOMNode_normalize(){var inode;var nodesToRemove=new DOMNodeList();if(this.nodeType==DOMNode.ELEMENT_NODE||this.nodeType==DOMNode.DOCUMENT_NODE){var adjacentTextNode=null;for(var i=0;i<this.childNodes.length;i++){inode=this.childNodes.item(i);if(inode.nodeType==DOMNode.TEXT_NODE){if(inode.length<1){nodesToRemove._appendChild(inode)}else{if(adjacentTextNode){adjacentTextNode.appendData(inode.data);nodesToRemove._appendChild(inode)}else{adjacentTextNode=inode}}}else{adjacentTextNode=null;inode.normalize()}}for(var i=0;i<nodesToRemove.length;i++){inode=nodesToRemove.item(i);inode.parentNode.removeChild(inode)}}};DOMNode.prototype.isSupported=function DOMNode_isSupported(feature,version){return this.ownerDocument.implementation.hasFeature(feature,version)};DOMNode.prototype.getElementsByTagName=function DOMNode_getElementsByTagName(tagname){return this._getElementsByTagNameRecursive(tagname,new DOMNodeList(this.ownerDocument))};DOMNode.prototype._getElementsByTagNameRecursive=function DOMNode__getElementsByTagNameRecursive(tagname,nodeList){if(this.nodeType==DOMNode.ELEMENT_NODE||this.nodeType==DOMNode.DOCUMENT_NODE){if((this.nodeName==tagname)||(tagname=="*")){nodeList._appendChild(this)}for(var i=0;i<this.childNodes.length;i++){nodeList=this.childNodes.item(i)._getElementsByTagNameRecursive(tagname,nodeList)}}return nodeList};DOMNode.prototype.getXML=function DOMNode_getXML(){return this.toString()};DOMNode.prototype.getElementsByTagNameNS=function DOMNode_getElementsByTagNameNS(namespaceURI,localName){return this._getElementsByTagNameNSRecursive(namespaceURI,localName,new DOMNodeList(this.ownerDocument))};DOMNode.prototype._getElementsByTagNameNSRecursive=function DOMNode__getElementsByTagNameNSRecursive(namespaceURI,localName,nodeList){if(this.nodeType==DOMNode.ELEMENT_NODE||this.nodeType==DOMNode.DOCUMENT_NODE){if(((this.namespaceURI==namespaceURI)||(namespaceURI=="*"))&&((this.localName==localName)||(localName=="*"))){nodeList._appendChild(this)}for(var i=0;i<this.childNodes.length;i++){nodeList=this.childNodes.item(i)._getElementsByTagNameNSRecursive(namespaceURI,localName,nodeList)}}return nodeList};DOMNode.prototype._isAncestor=function DOMNode__isAncestor(node){return((this==node)||((this.parentNode)&&(this.parentNode._isAncestor(node))))};DOMNode.prototype.importNode=function DOMNode_importNode(importedNode,deep){var importNode;this.getOwnerDocument()._performingImportNodeOperation=true;try{if(importedNode.nodeType==DOMNode.ELEMENT_NODE){if(!this.ownerDocument.implementation.namespaceAware){importNode=this.ownerDocument.createElement(importedNode.tagName);for(var i=0;i<importedNode.attributes.length;i++){importNode.setAttribute(importedNode.attributes.item(i).name,importedNode.attributes.item(i).value)}}else{importNode=this.ownerDocument.createElementNS(importedNode.namespaceURI,importedNode.nodeName);for(var i=0;i<importedNode.attributes.length;i++){importNode.setAttributeNS(importedNode.attributes.item(i).namespaceURI,importedNode.attributes.item(i).name,importedNode.attributes.item(i).value)}for(var i=0;i<importedNode._namespaces.length;i++){importNode._namespaces._nodes[i]=this.ownerDocument.createNamespace(importedNode._namespaces.item(i).localName);importNode._namespaces._nodes[i].setValue(importedNode._namespaces.item(i).value)}}}else{if(importedNode.nodeType==DOMNode.ATTRIBUTE_NODE){if(!this.ownerDocument.implementation.namespaceAware){importNode=this.ownerDocument.createAttribute(importedNode.name)}else{importNode=this.ownerDocument.createAttributeNS(importedNode.namespaceURI,importedNode.nodeName);for(var i=0;i<importedNode._namespaces.length;i++){importNode._namespaces._nodes[i]=this.ownerDocument.createNamespace(importedNode._namespaces.item(i).localName);importNode._namespaces._nodes[i].setValue(importedNode._namespaces.item(i).value)}}importNode.setValue(importedNode.value)}else{if(importedNode.nodeType==DOMNode.DOCUMENT_FRAGMENT){importNode=this.ownerDocument.createDocumentFragment()}else{if(importedNode.nodeType==DOMNode.NAMESPACE_NODE){importNode=this.ownerDocument.createNamespace(importedNode.nodeName);importNode.setValue(importedNode.value)}else{if(importedNode.nodeType==DOMNode.TEXT_NODE){importNode=this.ownerDocument.createTextNode(importedNode.data)}else{if(importedNode.nodeType==DOMNode.CDATA_SECTION_NODE){importNode=this.ownerDocument.createCDATASection(importedNode.data)}else{if(importedNode.nodeType==DOMNode.PROCESSING_INSTRUCTION_NODE){importNode=this.ownerDocument.createProcessingInstruction(importedNode.target,importedNode.data)}else{if(importedNode.nodeType==DOMNode.COMMENT_NODE){importNode=this.ownerDocument.createComment(importedNode.data)}else{throw (new DOMException(DOMException.NOT_SUPPORTED_ERR))}}}}}}}}if(deep){for(var i=0;i<importedNode.childNodes.length;i++){importNode.appendChild(this.ownerDocument.importNode(importedNode.childNodes.item(i),true))}}this.getOwnerDocument()._performingImportNodeOperation=false;return importNode}catch(eAny){this.getOwnerDocument()._performingImportNodeOperation=false;throw eAny}};DOMNode.prototype.__escapeString=function DOMNode__escapeString(str){return __escapeString(str)};DOMNode.prototype.__unescapeString=function DOMNode__unescapeString(str){return __unescapeString(str)};DOMDocument=function(implementation){this._class=addClass(this._class,"DOMDocument");this.DOMNode=DOMNode;this.DOMNode(this);this.doctype=null;this.implementation=implementation;this.documentElement=null;this.all=new Array();this.nodeName="#document";this.nodeType=DOMNode.DOCUMENT_NODE;this._id=0;this._lastId=0;this._parseComplete=false;this.ownerDocument=this;this._performingImportNodeOperation=false};DOMDocument.prototype=new DOMNode;DOMDocument.prototype.getDoctype=function DOMDocument_getDoctype(){return this.doctype};DOMDocument.prototype.getImplementation=function DOMDocument_implementation(){return this.implementation};DOMDocument.prototype.getDocumentElement=function DOMDocument_getDocumentElement(){return this.documentElement};DOMDocument.prototype.createElement=function DOMDocument_createElement(tagName){if(this.ownerDocument.implementation.errorChecking&&(!this.ownerDocument.implementation._isValidName(tagName))){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}var node=new DOMElement(this);node.tagName=tagName;node.nodeName=tagName;this.all[this.all.length]=node;return node};DOMDocument.prototype.createDocumentFragment=function DOMDocument_createDocumentFragment(){var node=new DOMDocumentFragment(this);return node};DOMDocument.prototype.createTextNode=function DOMDocument_createTextNode(data){var node=new DOMText(this);node.data=data;node.nodeValue=data;node.length=data.length;return node};DOMDocument.prototype.createComment=function DOMDocument_createComment(data){var node=new DOMComment(this);node.data=data;node.nodeValue=data;node.length=data.length;return node};DOMDocument.prototype.createCDATASection=function DOMDocument_createCDATASection(data){var node=new DOMCDATASection(this);node.data=data;node.nodeValue=data;node.length=data.length;return node};DOMDocument.prototype.createProcessingInstruction=function DOMDocument_createProcessingInstruction(target,data){if(this.ownerDocument.implementation.errorChecking&&(!this.implementation._isValidName(target))){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}var node=new DOMProcessingInstruction(this);node.target=target;node.nodeName=target;node.data=data;node.nodeValue=data;node.length=data.length;return node};DOMDocument.prototype.createAttribute=function DOMDocument_createAttribute(name){if(this.ownerDocument.implementation.errorChecking&&(!this.ownerDocument.implementation._isValidName(name))){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}var node=new DOMAttr(this);node.name=name;node.nodeName=name;return node};DOMDocument.prototype.createElementNS=function DOMDocument_createElementNS(namespaceURI,qualifiedName){if(this.ownerDocument.implementation.errorChecking){if(!this.ownerDocument._isValidNamespace(namespaceURI,qualifiedName)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if(!this.ownerDocument.implementation._isValidName(qualifiedName)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}var node=new DOMElement(this);var qname=this.implementation._parseQName(qualifiedName);node.nodeName=qualifiedName;node.namespaceURI=namespaceURI;node.prefix=qname.prefix;node.localName=qname.localName;node.tagName=qualifiedName;this.all[this.all.length]=node;return node};DOMDocument.prototype.createAttributeNS=function DOMDocument_createAttributeNS(namespaceURI,qualifiedName){if(this.ownerDocument.implementation.errorChecking){if(!this.ownerDocument._isValidNamespace(namespaceURI,qualifiedName,true)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if(!this.ownerDocument.implementation._isValidName(qualifiedName)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}var node=new DOMAttr(this);var qname=this.implementation._parseQName(qualifiedName);node.nodeName=qualifiedName;node.namespaceURI=namespaceURI;node.prefix=qname.prefix;node.localName=qname.localName;node.name=qualifiedName;node.nodeValue="";return node};DOMDocument.prototype.createNamespace=function DOMDocument_createNamespace(qualifiedName){var node=new DOMNamespace(this);var qname=this.implementation._parseQName(qualifiedName);node.nodeName=qualifiedName;node.prefix=qname.prefix;node.localName=qname.localName;node.name=qualifiedName;node.nodeValue="";return node};DOMDocument.prototype.getElementById=function DOMDocument_getElementById(elementId){retNode=null;for(var i=0;i<this.all.length;i++){var node=this.all[i];if((node.id==elementId)&&(node._isAncestor(node.ownerDocument.documentElement))){retNode=node;break}}return retNode};DOMDocument.prototype._genId=function DOMDocument__genId(){this._lastId+=1;return this._lastId};DOMDocument.prototype._isValidNamespace=function DOMDocument__isValidNamespace(namespaceURI,qualifiedName,isAttribute){if(this._performingImportNodeOperation==true){return true}var valid=true;var qName=this.implementation._parseQName(qualifiedName);if(this._parseComplete==true){if(qName.localName.indexOf(":")>-1){valid=false}if((valid)&&(!isAttribute)){if(!namespaceURI){valid=false}}if((valid)&&(qName.prefix=="")){valid=false}}if((valid)&&(qName.prefix=="xml")&&(namespaceURI!="http://www.w3.org/XML/1998/namespace")){valid=false}return valid};DOMDocument.prototype.toString=function DOMDocument_toString(){return""+this.childNodes};DOMElement=function(ownerDocument){this._class=addClass(this._class,"DOMElement");this.DOMNode=DOMNode;this.DOMNode(ownerDocument);this.tagName="";this.id="";this.nodeType=DOMNode.ELEMENT_NODE};DOMElement.prototype=new DOMNode;DOMElement.prototype.getTagName=function DOMElement_getTagName(){return this.tagName};DOMElement.prototype.getAttribute=function DOMElement_getAttribute(name){var ret="";var attr=this.attributes.getNamedItem(name);if(attr){ret=attr.value}return ret};DOMElement.prototype.setAttribute=function DOMElement_setAttribute(name,value){var attr=this.attributes.getNamedItem(name);if(!attr){attr=this.ownerDocument.createAttribute(name)}var value=new String(value);if(this.ownerDocument.implementation.errorChecking){if(attr._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(!this.ownerDocument.implementation._isValidString(value)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}if(this.ownerDocument.implementation._isIdDeclaration(name)){this.id=value}attr.value=value;attr.nodeValue=value;if(value.length>0){attr.specified=true}else{attr.specified=false}this.attributes.setNamedItem(attr)};DOMElement.prototype.removeAttribute=function DOMElement_removeAttribute(name){return this.attributes.removeNamedItem(name)};DOMElement.prototype.getAttributeNode=function DOMElement_getAttributeNode(name){return this.attributes.getNamedItem(name)};DOMElement.prototype.setAttributeNode=function DOMElement_setAttributeNode(newAttr){if(this.ownerDocument.implementation._isIdDeclaration(newAttr.name)){this.id=newAttr.value}return this.attributes.setNamedItem(newAttr)};DOMElement.prototype.removeAttributeNode=function DOMElement_removeAttributeNode(oldAttr){if(this.ownerDocument.implementation.errorChecking&&oldAttr._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}var itemIndex=this.attributes._findItemIndex(oldAttr._id);if(this.ownerDocument.implementation.errorChecking&&(itemIndex<0)){throw (new DOMException(DOMException.NOT_FOUND_ERR))}return this.attributes._removeChild(itemIndex)};DOMElement.prototype.getAttributeNS=function DOMElement_getAttributeNS(namespaceURI,localName){var ret="";var attr=this.attributes.getNamedItemNS(namespaceURI,localName);if(attr){ret=attr.value}return ret};DOMElement.prototype.setAttributeNS=function DOMElement_setAttributeNS(namespaceURI,qualifiedName,value){var attr=this.attributes.getNamedItem(namespaceURI,qualifiedName);if(!attr){attr=this.ownerDocument.createAttributeNS(namespaceURI,qualifiedName)}var value=new String(value);if(this.ownerDocument.implementation.errorChecking){if(attr._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(!this.ownerDocument._isValidNamespace(namespaceURI,qualifiedName)){throw (new DOMException(DOMException.NAMESPACE_ERR))}if(!this.ownerDocument.implementation._isValidString(value)){throw (new DOMException(DOMException.INVALID_CHARACTER_ERR))}}if(this.ownerDocument.implementation._isIdDeclaration(name)){this.id=value}attr.value=value;attr.nodeValue=value;if(value.length>0){attr.specified=true}else{attr.specified=false}this.attributes.setNamedItemNS(attr)};DOMElement.prototype.removeAttributeNS=function DOMElement_removeAttributeNS(namespaceURI,localName){return this.attributes.removeNamedItemNS(namespaceURI,localName)};DOMElement.prototype.getAttributeNodeNS=function DOMElement_getAttributeNodeNS(namespaceURI,localName){return this.attributes.getNamedItemNS(namespaceURI,localName)};DOMElement.prototype.setAttributeNodeNS=function DOMElement_setAttributeNodeNS(newAttr){if((newAttr.prefix=="")&&this.ownerDocument.implementation._isIdDeclaration(newAttr.name)){this.id=newAttr.value}return this.attributes.setNamedItemNS(newAttr)};DOMElement.prototype.hasAttribute=function DOMElement_hasAttribute(name){return this.attributes._hasAttribute(name)};DOMElement.prototype.hasAttributeNS=function DOMElement_hasAttributeNS(namespaceURI,localName){return this.attributes._hasAttributeNS(namespaceURI,localName)};DOMElement.prototype.toString=function DOMElement_toString(){var ret="";var ns=this._namespaces.toString();if(ns.length>0){ns=" "+ns}var attrs=this.attributes.toString();if(attrs.length>0){attrs=" "+attrs}ret+="<"+this.nodeName+ns+attrs+">";ret+=this.childNodes.toString();ret+="</"+this.nodeName+">";return ret};DOMAttr=function(ownerDocument){this._class=addClass(this._class,"DOMAttr");this.DOMNode=DOMNode;this.DOMNode(ownerDocument);this.name="";this.specified=false;this.value="";this.nodeType=DOMNode.ATTRIBUTE_NODE;this.ownerElement=null;this.childNodes=null;this.attributes=null};DOMAttr.prototype=new DOMNode;DOMAttr.prototype.getName=function DOMAttr_getName(){return this.nodeName};DOMAttr.prototype.getSpecified=function DOMAttr_getSpecified(){return this.specified};DOMAttr.prototype.getValue=function DOMAttr_getValue(){return this.nodeValue};DOMAttr.prototype.setValue=function DOMAttr_setValue(value){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.setNodeValue(value)};DOMAttr.prototype.setNodeValue=function DOMAttr_setNodeValue(value){this.nodeValue=new String(value);this.value=this.nodeValue;this.specified=(this.value.length>0)};DOMAttr.prototype.toString=function DOMAttr_toString(){var ret="";ret+=this.nodeName+'="'+this.__escapeString(this.nodeValue)+'"';return ret};DOMAttr.prototype.getOwnerElement=function(){return this.ownerElement};DOMNamespace=function(ownerDocument){this._class=addClass(this._class,"DOMNamespace");this.DOMNode=DOMNode;this.DOMNode(ownerDocument);this.name="";this.specified=false;this.value="";this.nodeType=DOMNode.NAMESPACE_NODE};DOMNamespace.prototype=new DOMNode;DOMNamespace.prototype.getValue=function DOMNamespace_getValue(){return this.nodeValue};DOMNamespace.prototype.setValue=function DOMNamespace_setValue(value){this.nodeValue=new String(value);this.value=this.nodeValue};DOMNamespace.prototype.toString=function DOMNamespace_toString(){var ret="";if(this.nodeName!=""){ret+=this.nodeName+'="'+this.__escapeString(this.nodeValue)+'"'}else{ret+='xmlns="'+this.__escapeString(this.nodeValue)+'"'}return ret};DOMCharacterData=function(ownerDocument){this._class=addClass(this._class,"DOMCharacterData");this.DOMNode=DOMNode;this.DOMNode(ownerDocument);this.data="";this.length=0};DOMCharacterData.prototype=new DOMNode;DOMCharacterData.prototype.getData=function DOMCharacterData_getData(){return this.nodeValue};DOMCharacterData.prototype.setData=function DOMCharacterData_setData(data){this.setNodeValue(data)};DOMCharacterData.prototype.setNodeValue=function DOMCharacterData_setNodeValue(data){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.nodeValue=new String(data);this.data=this.nodeValue;this.length=this.nodeValue.length};DOMCharacterData.prototype.getLength=function DOMCharacterData_getLength(){return this.nodeValue.length};DOMCharacterData.prototype.substringData=function DOMCharacterData_substringData(offset,count){var ret=null;if(this.data){if(this.ownerDocument.implementation.errorChecking&&((offset<0)||(offset>this.data.length)||(count<0))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}if(!count){ret=this.data.substring(offset)}else{ret=this.data.substring(offset,offset+count)}}return ret};DOMCharacterData.prototype.appendData=function DOMCharacterData_appendData(arg){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.setData(""+this.data+arg)};DOMCharacterData.prototype.insertData=function DOMCharacterData_insertData(offset,arg){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.data){if(this.ownerDocument.implementation.errorChecking&&((offset<0)||(offset>this.data.length))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}this.setData(this.data.substring(0,offset).concat(arg,this.data.substring(offset)))}else{if(this.ownerDocument.implementation.errorChecking&&(offset!=0)){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}this.setData(arg)}};DOMCharacterData.prototype.deleteData=function DOMCharacterData_deleteData(offset,count){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.data){if(this.ownerDocument.implementation.errorChecking&&((offset<0)||(offset>this.data.length)||(count<0))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}if(!count||(offset+count)>this.data.length){this.setData(this.data.substring(0,offset))}else{this.setData(this.data.substring(0,offset).concat(this.data.substring(offset+count)))}}};DOMCharacterData.prototype.replaceData=function DOMCharacterData_replaceData(offset,count,arg){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if(this.data){if(this.ownerDocument.implementation.errorChecking&&((offset<0)||(offset>this.data.length)||(count<0))){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}this.setData(this.data.substring(0,offset).concat(arg,this.data.substring(offset+count)))}else{this.setData(arg)}};DOMText=function(ownerDocument){this._class=addClass(this._class,"DOMText");this.DOMCharacterData=DOMCharacterData;this.DOMCharacterData(ownerDocument);this.nodeName="#text";this.nodeType=DOMNode.TEXT_NODE};DOMText.prototype=new DOMCharacterData;DOMText.prototype.splitText=function DOMText_splitText(offset){var data,inode;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if((offset<0)||(offset>this.data.length)){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}}if(this.parentNode){data=this.substringData(offset);inode=this.ownerDocument.createTextNode(data);if(this.nextSibling){this.parentNode.insertBefore(inode,this.nextSibling)}else{this.parentNode.appendChild(inode)}this.deleteData(offset)}return inode};DOMText.prototype.toString=function DOMText_toString(){return this.__escapeString(""+this.nodeValue)};DOMCDATASection=function(ownerDocument){this._class=addClass(this._class,"DOMCDATASection");this.DOMCharacterData=DOMCharacterData;this.DOMCharacterData(ownerDocument);this.nodeName="#cdata-section";this.nodeType=DOMNode.CDATA_SECTION_NODE};DOMCDATASection.prototype=new DOMCharacterData;DOMCDATASection.prototype.splitText=function DOMCDATASection_splitText(offset){var data,inode;if(this.ownerDocument.implementation.errorChecking){if(this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}if((offset<0)||(offset>this.data.length)){throw (new DOMException(DOMException.INDEX_SIZE_ERR))}}if(this.parentNode){data=this.substringData(offset);inode=this.ownerDocument.createCDATASection(data);if(this.nextSibling){this.parentNode.insertBefore(inode,this.nextSibling)}else{this.parentNode.appendChild(inode)}this.deleteData(offset)}return inode};DOMCDATASection.prototype.toString=function DOMCDATASection_toString(){var ret="";ret+="<![CDATA["+this.nodeValue+"]]>";return ret};DOMComment=function(ownerDocument){this._class=addClass(this._class,"DOMComment");this.DOMCharacterData=DOMCharacterData;this.DOMCharacterData(ownerDocument);this.nodeName="#comment";this.nodeType=DOMNode.COMMENT_NODE};DOMComment.prototype=new DOMCharacterData;DOMComment.prototype.toString=function DOMComment_toString(){var ret="";ret+="<!--"+this.nodeValue+"-->";return ret};DOMProcessingInstruction=function(ownerDocument){this._class=addClass(this._class,"DOMProcessingInstruction");this.DOMNode=DOMNode;this.DOMNode(ownerDocument);this.target="";this.data="";this.nodeType=DOMNode.PROCESSING_INSTRUCTION_NODE};DOMProcessingInstruction.prototype=new DOMNode;DOMProcessingInstruction.prototype.getTarget=function DOMProcessingInstruction_getTarget(){return this.nodeName};DOMProcessingInstruction.prototype.getData=function DOMProcessingInstruction_getData(){return this.nodeValue};DOMProcessingInstruction.prototype.setData=function DOMProcessingInstruction_setData(data){this.setNodeValue(data)};DOMProcessingInstruction.prototype.setNodeValue=function DOMProcessingInstruction_setNodeValue(data){if(this.ownerDocument.implementation.errorChecking&&this._readonly){throw (new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR))}this.nodeValue=new String(data);this.data=this.nodeValue};DOMProcessingInstruction.prototype.toString=function DOMProcessingInstruction_toString(){var ret="";ret+="<?"+this.nodeName+" "+this.nodeValue+" ?>";return ret};DOMDocumentFragment=function(ownerDocument){this._class=addClass(this._class,"DOMDocumentFragment");this.DOMNode=DOMNode;this.DOMNode(ownerDocument);this.nodeName="#document-fragment";this.nodeType=DOMNode.DOCUMENT_FRAGMENT_NODE};DOMDocumentFragment.prototype=new DOMNode;DOMDocumentFragment.prototype.toString=function DOMDocumentFragment_toString(){var xml="";var intCount=this.getChildNodes().getLength();for(intLoop=0;intLoop<intCount;intLoop++){xml+=this.getChildNodes().item(intLoop).toString()}return xml};DOMDocumentType=function(){alert("DOMDocumentType.constructor(): Not Implemented")};DOMEntity=function(){alert("DOMEntity.constructor(): Not Implemented")};DOMEntityReference=function(){alert("DOMEntityReference.constructor(): Not Implemented")};DOMNotation=function(){alert("DOMNotation.constructor(): Not Implemented")};Strings=new Object();Strings.WHITESPACE=" \t\n\r";Strings.QUOTES="\"'";Strings.isEmpty=function Strings_isEmpty(strD){return(strD==null)||(strD.length==0)};Strings.indexOfNonWhitespace=function Strings_indexOfNonWhitespace(strD,iB,iE){if(Strings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;for(var i=iB;i<iE;i++){if(Strings.WHITESPACE.indexOf(strD.charAt(i))==-1){return i}}return -1};Strings.lastIndexOfNonWhitespace=function Strings_lastIndexOfNonWhitespace(strD,iB,iE){if(Strings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;for(var i=iE-1;i>=iB;i--){if(Strings.WHITESPACE.indexOf(strD.charAt(i))==-1){return i}}return -1};Strings.indexOfWhitespace=function Strings_indexOfWhitespace(strD,iB,iE){if(Strings.isEmpty(strD)){return -1}iB=iB||0;iE=iE||strD.length;for(var i=iB;i<iE;i++){if(Strings.WHITESPACE.indexOf(strD.charAt(i))!=-1){return i}}return -1};Strings.replace=function Strings_replace(strD,iB,iE,strF,strR){if(Strings.isEmpty(strD)){return""}iB=iB||0;iE=iE||strD.length;return strD.substring(iB,iE).split(strF).join(strR)};Strings.getLineNumber=function Strings_getLineNumber(strD,iP){if(Strings.isEmpty(strD)){return -1}iP=iP||strD.length;return strD.substring(0,iP).split("\n").length};Strings.getColumnNumber=function Strings_getColumnNumber(strD,iP){if(Strings.isEmpty(strD)){return -1}iP=iP||strD.length;var arrD=strD.substring(0,iP).split("\n");var strLine=arrD[arrD.length-1];arrD.length--;var iLinePos=arrD.join("\n").length;return iP-iLinePos};StringBuffer=function(){this._a=new Array()};StringBuffer.prototype.append=function StringBuffer_append(d){this._a[this._a.length]=d};StringBuffer.prototype.toString=function StringBuffer_toString(){return this._a.join("")};DOMNode.NODE_TYPE_TEST=1;DOMNode.NODE_NAME_TEST=2;DOMNode.ANCESTOR_AXIS=1;DOMNode.ANCESTOR_OR_SELF_AXIS=2;DOMNode.ATTRIBUTE_AXIS=3;DOMNode.CHILD_AXIS=4;DOMNode.DESCENDANT_AXIS=5;DOMNode.DESCENDANT_OR_SELF_AXIS=6;DOMNode.FOLLOWING_AXIS=7;DOMNode.FOLLOWING_SIBLING_AXIS=8;DOMNode.NAMESPACE_AXIS=9;DOMNode.PARENT_AXIS=10;DOMNode.PRECEDING_AXIS=11;DOMNode.PRECEDING_SIBLING_AXIS=12;DOMNode.SELF_AXIS=13;DOMNode.ROOT_AXIS=14;DOMNode.prototype.getStringValue=function(){var thisBranch=this._getDescendantOrSelfAxis();var textNodes=thisBranch.getTypedItems(DOMNode.TEXT_NODE);var stringValue="";if(textNodes.length>0){stringValue+=textNodes.item(0).nodeValue;for(var i=1;i<textNodes.length;i++){stringValue+=" "+textNodes.item(i).nodeValue}}return stringValue};DOMNode.prototype._filterByAttributeExistance=function(expr,containerNodeSet){try{if(expr.indexOf("*")<0){var attributeName=expr.substr(1,expr.length);var attribute=this.getAttributes().getNamedItem(attributeName);if(attribute!=null){return true}else{return false}}else{if(this.getAttributes().getLength()>0){return true}else{return false}}}catch(e){return false}};DOMNode.prototype._filterByAttributeValue=function(expr,containerNodeSet){try{var nameStart=expr.indexOf("@")+1;var equalsStart=expr.indexOf("=");var attributeName=expr.substr(nameStart,expr.indexOf("=",nameStart)-1);var valueTesting=expr.substr(equalsStart+1,expr.length);if(valueTesting.charAt(0)=='"'||valueTesting.charAt(0)=="'"){valueTesting=valueTesting.substr(1,valueTesting.length)}if(valueTesting.charAt(valueTesting.length-1)=='"'||valueTesting.charAt(valueTesting.length-1)=="'"){valueTesting=valueTesting.substr(0,valueTesting.length-1)}var attribute=this.getAttributes().getNamedItem(attributeName);if(attribute.getValue()==valueTesting){return true}else{return false}}catch(e){return false}};DOMNode.prototype._filterByAttribute=function(expr,containerNodeSet){if(expr=="@*"){return this._filterByAttributeExistance(expr,containerNodeSet)}if(expr.indexOf("=")<0){return this._filterByAttributeExistance(expr,containerNodeSet)}return this._filterByAttributeValue(expr,containerNodeSet)};DOMNode.prototype._filterByNot=function(expr,containerNodeSet){expr=expr.substr(4,expr.length);var endNotLocation=this._findExpressionEnd(expr,"(",")");expr=expr.substr(0,endNotLocation);return !this._filter(expr,containerNodeSet)};DOMNode.prototype._findExpressionEnd=function(expression,startCharacter,endCharacter){var startCharacterNum=0;var endExpressionLocation=0;var intCount=expression.length;for(intLoop=0;intLoop<intCount;intLoop++){var character=expression.charAt(intLoop);switch(character){case startCharacter:startCharacterNum++;break;case endCharacter:if(startCharacterNum==0){endExpressionLocation=intLoop}else{startCharacterNum--}break}if(endExpressionLocation!=0){break}}return endExpressionLocation};DOMNode.prototype._filterByLocation=function(expr,containerNodeSet){var item=0+expr-1;if(this==containerNodeSet.item(item)){return true}else{return false}};DOMNode.prototype._filterByLast=function(expr,containerNodeSet){if(this==containerNodeSet.item(containerNodeSet.length-1)){return true}else{return false}};DOMNode.prototype._filterByCount=function(expr,containerNodeSet){var countStart=expr.indexOf("=")+1;var countStr=expr.substr(countStart,expr.length);var countInt=parseInt(countStr);expr=expr.substr(6,expr.length);expr=expr.substr(0,this._findExpressionEnd(expr,"(",")"));if(expr=="*"){return false}var tmpNodeSet=this.selectNodeSet(expr);var tmpNodeSetLength=tmpNodeSet.length;if(tmpNodeSetLength==countInt){return true}else{return false}};DOMNode.prototype._filterByName=function(expr,containerNodeSet){var equalLocation=expr.indexOf("=");var quoteChar=expr.charAt(equalLocation+1);var name="";for(intLoop=equalLocation+2;intLoop<expr.length;intLoop++){if(expr.charAt(intLoop)==quoteChar){break}else{name+=expr.charAt(intLoop)}}if(this.getNodeName()==name){return true}else{return false}};DOMNode.prototype._filterByPosition=function(expr,containerNodeSet){var equalsLocation=expr.indexOf("=");var tmpPos=expr.substr(equalsLocation+1,expr.length);if(tmpPos.indexOf("last()")==0){if(this==containerNodeSet.item(containerNodeSet.length-1)){return true}else{return false}}var intCount=tmpPos.length;var positionStr="";for(intLoop=0;intLoop<intCount;intLoop++){if(isNaN(positionStr+tmpPos.charAt(intLoop))==false){positionStr+=tmpPos.charAt(intLoop)}else{break}}var positionInt=parseInt(positionStr)-1;if(this==containerNodeSet.item(positionInt)){return true}else{return false}};DOMNode.prototype._filter=function(expr,containerNodeSet){expr=trim(expr,true,true);if(expr.indexOf("not(")==0){return this._filterByNot(expr,containerNodeSet)}if(expr.indexOf("count(")==0){return this._filterByCount(expr,containerNodeSet)}if(expr.indexOf("name(")==0){return this._filterByName(expr,containerNodeSet)}if(expr.indexOf("position(")==0){return this._filterByPosition(expr,containerNodeSet)}if(expr.indexOf("@")>-1){return this._filterByAttribute(expr,containerNodeSet)}if(isNaN(expr)==false){return this._filterByLocation(expr,containerNodeSet)}if(expr=="last()"){return this._filterByLast(expr,containerNodeSet)}};DOMNode.prototype._getAxis=function(axisConst){if(axisConst==DOMNode.ANCESTOR_AXIS){return this._getAncestorAxis()}else{if(axisConst==DOMNode.ANCESTOR_OR_SELF_AXIS){return this._getAncestorOrSelfAxis()}else{if(axisConst==DOMNode.ATTRIBUTE_AXIS){return this._getAttributeAxis()}else{if(axisConst==DOMNode.CHILD_AXIS){return this._getChildAxis()}else{if(axisConst==DOMNode.DESCENDANT_AXIS){return this._getDescendantAxis()}else{if(axisConst==DOMNode.DESCENDANT_OR_SELF_AXIS){return this._getDescendantOrSelfAxis()}else{if(axisConst==DOMNode.FOLLOWING_AXIS){return this._getFollowingAxis()}else{if(axisConst==DOMNode.FOLLOWING_SIBLING_AXIS){return this._getFollowingSiblingAxis()}else{if(axisConst==DOMNode.NAMESPACE_AXIS){return this._getNamespaceAxis()}else{if(axisConst==DOMNode.PARENT_AXIS){return this._getParentAxis()}else{if(axisConst==DOMNode.PRECEDING_AXIS){return this._getPrecedingAxis()}else{if(axisConst==DOMNode.PRECEDING_SIBLING_AXIS){return this._getPrecedingSiblingAxis()}else{if(axisConst==DOMNode.SELF_AXIS){return this._getSelfAxis()}else{if(axisConst==DOMNode.ROOT_AXIS){return this._getRootAxis()}else{alert("Error in DOMNode._getAxis: Attempted to get unknown axis type "+axisConst);return null}}}}}}}}}}}}}}};DOMNode.prototype._getAncestorAxis=function(){var parentNode=this.parentNode;if(parentNode.nodeType!=DOMNode.DOCUMENT_NODE){return this.parentNode._getAncestorOrSelfAxis()}else{return new XPATHNodeSet(this.ownerDocument,this.parentNode,null)}};DOMNode.prototype._getAncestorOrSelfAxis=function(){return this._getSelfAxis().union(this._getAncestorAxis())};DOMNode.prototype._getAttributeAxis=function(){return new XPATHNodeSet(this.ownerDocument,this.parentNode,this.attributes)};DOMNode.prototype._getChildAxis=function(){return new XPATHNodeSet(this.ownerDocument,this.parentNode,this.childNodes)};DOMNode.prototype._getDescendantAxis=function(){var descendantNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);for(var i=0;i<this.childNodes.length;i++){descendantNodeSet.union(this.childNodes.item(i)._getDescendantOrSelfAxis())}return descendantNodeSet};DOMNode.prototype._getReversedDescendantAxis=function(){var descendantNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);for(var i=this.childNodes.length-1;i>=0;i--){descendantNodeSet.union(this.childNodes.item(i)._getReversedDescendantOrSelfAxis())}return descendantNodeSet};DOMNode.prototype._getDescendantOrSelfAxis=function(){return this._getSelfAxis().union(this._getDescendantAxis())};DOMNode.prototype._getReversedDescendantOrSelfAxis=function(){return this._getSelfAxis().union(this._getReversedDescendantAxis())};DOMNode.prototype._getFollowingAxis=function(){var followingNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);if(this.nextSibling){followingNodeSet._appendChild(this.nextSibling);followingNodeSet.union(this.nextSibling._getDescendantAxis());followingNodeSet.union(this.nextSibling._getFollowingAxis())}return followingNodeSet};DOMNode.prototype._getFollowingSiblingAxis=function(){var followingSiblingNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);if(this.nextSibling){followingSiblingNodeSet._appendChild(this.nextSibling);followingSiblingNodeSet.union(this.nextSibling._getFollowingSiblingAxis())}return followingSiblingNodeSet};DOMNode.prototype._getParentAxis=function(){var parentNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);var parentNode=this.parentNode;if(parentNode){parentNodeSet._appendChild(parentNode)}return parentNodeSet};DOMNode.prototype._getPrecedingAxis=function(){var precedingNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);if(this.previousSibling){precedingNodeSet.union(this.previousSibling._getReversedDescendantAxis());precedingNodeSet._appendChild(this.previousSibling);precedingNodeSet.union(this.previousSibling._getPrecedingAxis())}return precedingNodeSet};DOMNode.prototype._getPrecedingSiblingAxis=function(){var precedingSiblingNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);if(this.previousSibling){precedingSiblingNodeSet._appendChild(this.previousSibling);precedingSiblingNodeSet.union(this.previousSibling._getPrecedingSiblingAxis())}return precedingSiblingNodeSet};DOMNode.prototype._getSelfAxis=function(){var selfNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);selfNodeSet._appendChild(this);return selfNodeSet};DOMNode.prototype._getRootAxis=function(){var rootNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode,null);rootNodeSet._appendChild(this.documentElement);return rootNodeSet};DOMNode.prototype.selectNodeSet=function(locationPath){locationPath=locationPath.replace(/^\//g,"root::");var result;try{result=this.selectNodeSet_recursive(locationPath);return result}catch(e){return null}};DOMNode.prototype.selectNodeSet_recursive=function(locationPath){var locationSteps=locationPath.split("/");var candidateNodeSet;var resultNodeSet=new XPATHNodeSet(this.ownerDocument,this.parentNode);if(locationSteps.length>0){var stepStr=locationSteps[0];locationSteps=__removeFirstArrayElement(locationSteps);var stepObj=this._parseStep(stepStr);var axisStr=stepObj.axis;var nodeTestStr=stepObj.nodeTest;var predicateListStr=stepObj.predicateList;var axisType=this._parseAxis(axisStr);var nodeTestObj=this._parseNodeTest(nodeTestStr);var nodeTestType=nodeTestObj.type;var nodeTestValue=nodeTestObj.value;candidateNodeSet=this._getAxis(axisType);if(nodeTestType==DOMNode.NODE_TYPE_TEST){candidateNodeSet=candidateNodeSet.getTypedItems(nodeTestValue)}else{if(nodeTestType==DOMNode.NODE_NAME_TEST){candidateNodeSet=candidateNodeSet.getNamedItems(nodeTestValue)}}var predicateList=this._parsePredicates(predicateListStr);for(predicate in predicateList){candidateNodeSet=candidateNodeSet.filter(predicateList[predicate])}if(locationSteps.length>0){var remainingLocationPath=locationSteps.join("/");candidateNodeSet=candidateNodeSet.selectNodeSet_recursive(remainingLocationPath)}}return candidateNodeSet};DOMNode.prototype._nodeTypeIs=function(node,type){return(node.nodeType==type)};DOMNode.prototype._nodeNameIs=function(node,name){return(node.nodeName==name)};DOMNode.prototype._parseStep=function(step){var resultStep=new Object();resultStep.axis="";var nodeTestStartInd=0;var axisEndInd=step.indexOf("::");if(axisEndInd>-1){resultStep.axis=step.substring(0,axisEndInd);nodeTestStartInd=axisEndInd+2}resultStep.predicateList="";var predicateStartInd=step.indexOf("[");if(predicateStartInd>-1){resultStep.predicateList=step.substring(predicateStartInd);resultStep.nodeTest=step.substring(nodeTestStartInd,predicateStartInd)}else{resultStep.nodeTest=step.substring(nodeTestStartInd)}if(resultStep.nodeTest.indexOf("@")==0){resultStep.axis="attribute";resultStep.nodeTest=resultStep.nodeTest.substring(1)}if(resultStep.nodeTest.length==0){resultStep.axis="descendant-or-self"}if(resultStep.nodeTest==".."){resultStep.axis="parent";resultStep.nodeTest="node()"}if(resultStep.nodeTest=="."){resultStep.axis="self";resultStep.nodeTest="node()"}return resultStep};DOMNode.prototype._parseAxis=function(axisStr){var returnAxisType=DOMNode.CHILD_AXIS;if(axisStr=="ancestor"){returnAxisType=DOMNode.ANCESTOR_AXIS}else{if(axisStr=="ancestor-or-self"){returnAxisType=DOMNode.ANCESTOR_OR_SELF_AXIS}else{if(axisStr=="attribute"){returnAxisType=DOMNode.ATTRIBUTE_AXIS}else{if(axisStr=="child"){returnAxisType=DOMNode.CHILD_AXIS}else{if(axisStr=="descendant"){returnAxisType=DOMNode.DESCENDANT_AXIS}else{if(axisStr=="descendant-or-self"){returnAxisType=DOMNode.DESCENDANT_OR_SELF_AXIS}else{if(axisStr=="following"){returnAxisType=DOMNode.FOLLOWING_AXIS}else{if(axisStr=="following-sibling"){returnAxisType=DOMNode.FOLLOWING_SIBLING_AXIS}else{if(axisStr=="namespace"){returnAxisType=DOMNode.NAMESPACE_AXIS}else{if(axisStr=="parent"){returnAxisType=DOMNode.PARENT_AXIS}else{if(axisStr=="preceding"){returnAxisType=DOMNode.PRECEDING_AXIS}else{if(axisStr=="preceding-sibling"){returnAxisType=DOMNode.PRECEDING_SIBLING_AXIS}else{if(axisStr=="self"){returnAxisType=DOMNode.SELF_AXIS}else{if(axisStr=="root"){returnAxisType=DOMNode.ROOT_AXIS}}}}}}}}}}}}}}return returnAxisType};DOMNode.prototype._parseNodeTest=function(nodeTestStr){var returnNodeTestObj=new Object();if(nodeTestStr.length==0){returnNodeTestObj.type=DOMNode.NODE_TYPE_TEST;returnNodeTestObj.value="node"}else{var funInd=nodeTestStr.indexOf("(");if(funInd>-1){returnNodeTestObj.type=DOMNode.NODE_TYPE_TEST;returnNodeTestObj.value=nodeTestStr.substring(0,funInd)}else{returnNodeTestObj.type=DOMNode.NODE_NAME_TEST;returnNodeTestObj.value=nodeTestStr}}return returnNodeTestObj};DOMNode.prototype._parsePredicates=function(predicateListStr){var returnPredicateArray=new Array();if(predicateListStr.length>0){var firstOpenBracket=predicateListStr.indexOf("[");var lastCloseBracket=predicateListStr.lastIndexOf("]");predicateListStr=predicateListStr.substring(firstOpenBracket+1,lastCloseBracket);returnPredicateArray=predicateListStr.split("][")}return returnPredicateArray};XPATHNodeSet=function(ownerDocument,parentNode,nodeList){this.DOMNodeList=DOMNodeList;this.DOMNodeList(ownerDocument,parentNode);if(nodeList){for(var i=0;i<nodeList.length;i++){this._appendChild(nodeList.item(i))}}};XPATHNodeSet.prototype=new DOMNodeList();XPATHNodeSet.prototype.selectNodeSet_recursive=function(xpath){var selectedNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){var candidateNode=this.item(i);selectedNodeSet.union(candidateNode.selectNodeSet_recursive(xpath))}return selectedNodeSet};XPATHNodeSet.prototype.getNamedItems=function(nodeName){var namedItemsNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){var candidateNode=this.item(i);if((nodeName=="*")||(candidateNode.nodeName==nodeName)){namedItemsNodeSet._appendChild(candidateNode)}}return namedItemsNodeSet};XPATHNodeSet.prototype.getTypedItems=function(nodeType){var typedItemsNodeSet=new XPATHNodeSet(this.ownerDocument);var nodeTypeId;if(nodeType.toLowerCase()=="node"){nodeTypeId=0}else{if(nodeType.toLowerCase()=="text"){nodeTypeId=DOMNode.TEXT_NODE}else{if(nodeType.toLowerCase()=="comment"){nodeTypeId=DOMNode.COMMENT_NODE}else{if(nodeType.toLowerCase()=="processing-instruction"){nodeTypeId=DOMNode.PROCESSING_INSTRUCTION_NODE}}}}for(var i=0;i<this.length;i++){var candidateNode=this.item(i);if((nodeTypeId==0)||(candidateNode.nodeType==nodeTypeId)){typedItemsNodeSet._appendChild(candidateNode)}}return typedItemsNodeSet};XPATHNodeSet.prototype._getAxis=function(axisConst){if(axisConst==DOMNode.ANCESTOR_AXIS){return this._getAncestorAxis()}else{if(axisConst==DOMNode.ANCESTOR_OR_SELF_AXIS){return this._getAncestorOrSelfAxis()}else{if(axisConst==DOMNode.ATTRIBUTE_AXIS){return this._getAttributeAxis()}else{if(axisConst==DOMNode.CHILD_AXIS){return this._getChildAxis()}else{if(axisConst==DOMNode.DESCENDANT_AXIS){return this._getDescendantAxis()}else{if(axisConst==DOMNode.DESCENDANT_OR_SELF_AXIS){return this._getDescendantOrSelfAxis()}else{if(axisConst==DOMNode.FOLLOWING_AXIS){return this._getFollowingAxis()}else{if(axisConst==DOMNode.FOLLOWING_SIBLING_AXIS){return this._getFollowingSiblingAxis()}else{if(axisConst==DOMNode.NAMESPACE_AXIS){return this._getNamespaceAxis()}else{if(axisConst==DOMNode.PARENT_AXIS){return this._getParentAxis()}else{if(axisConst==DOMNode.PRECEDING_AXIS){return this._getPrecedingAxis()}else{if(axisConst==DOMNode.PRECEDING_SIBLING_AXIS){return this._getPrecedingSiblingAxis()}else{if(axisConst==DOMNode.SELF_AXIS){return this._getSelfAxis()}else{if(axisConst==DOMNode.ROOT_AXIS){return this._getRootAxis()}else{alert("Error in XPATHNodeSet._getAxis: Attempted to get unknown axis type "+axisConst);return null}}}}}}}}}}}}}}};XPATHNodeSet.prototype._getAncestorAxis=function(){var ancestorAxisNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){ancestorAxisNodeSet.union(this.item(i)._getDescendantAxis())}};XPATHNodeSet.prototype._getAncestorOrSelfAxis=function(){var ancestorOrSelfAxisNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){ancestorOrSelfAxisNodeSet.union(this.item(i)._getAncestorOrSelfAxis())}};XPATHNodeSet.prototype._getAttributeAxis=function(){var attributeAxisNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){attributeAxisNodeSet.union(this.item(i)._getAttributeAxis())}};XPATHNodeSet.prototype._getChildAxis=function(){var childNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){childNodeSet.union(this.item(i)._getChildAxis())}};XPATHNodeSet.prototype._getDescendantAxis=function(){var descendantNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){descendantNodeSet.union(this.item(i)._getDescendantAxis())}};XPATHNodeSet.prototype._getReversedDescendantAxis=function(){var descendantNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=this.length-1;i>=0;i--){descendantNodeSet.union(this.item(i)._getReversedDescendantAxis())}};XPATHNodeSet.prototype._getDescendantOrSelfAxis=function(){var descendantOrSelfNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){descendantOrSelfNodeSet.union(this.item(i)._getDescendantOrSelfAxis())}};XPATHNodeSet.prototype._getFollowingAxis=function(){var followingNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){followingNodeSet.union(this.item(i)._getFollowingAxis())}};XPATHNodeSet.prototype._getFollowingSiblingAxis=function(){var followingSibilingNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){followingSibilingNodeSet.union(this.item(i)._getFollowingSiblingAxis())}};XPATHNodeSet.prototype._getParentAxis=function(){var parentNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){parentNodeSet.union(this.item(i)._getParentAxis())}};XPATHNodeSet.prototype._getPrecedingAxis=function(){var precedingNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){precedingNodeSet.union(this.item(i)._getPrecedingAxis())}};XPATHNodeSet.prototype._getPrecedingSiblingAxis=function(){var precedingSiblingNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){precedingSiblingNodeSet.union(this.item(i)._getPrecedingSiblingAxis())}};XPATHNodeSet.prototype._getSelfAxis=function(){var selfNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){selfNodeSet.union(this.item(i)._getSelfAxis())}};XPATHNodeSet.prototype.union=function(nodeSet){for(var i=0;i<nodeSet.length;i++){this._appendChild(nodeSet.item(i))}return this};XPATHNodeSet.prototype._getContainingNodeSet=function(){return this};XPATHNodeSet.prototype.getLength=function(){return this.length};XPATHNodeSet.prototype.filter=function(expressionStr){var matchingNodeSet=new XPATHNodeSet(this.ownerDocument);for(var i=0;i<this.length;i++){if(this.item(i)._filter(expressionStr,this)){matchingNodeSet._appendChild(this.item(i))}}return matchingNodeSet};function __removeFirstArrayElement(oldArray){var newArray=new Array();try{for(intLoop=1;intLoop<oldArray.length;intLoop++){newArray[newArray.length]=oldArray[intLoop]}}catch(e){}return newArray}function xmlEscapeXMLToHTML(xmlData){var gt;var str=xmlData;gt=-1;while(str.indexOf("<",gt+1)>-1){var gt=str.indexOf("<",gt+1);var newStr=str.substr(0,gt);newStr+="_LT_";newStr=newStr+str.substr(gt+1,str.length);str=newStr}gt=-1;while(str.indexOf(">",gt+1)>-1){var gt=str.indexOf(">",gt+1);var newStr=str.substr(0,gt);newStr+="_GT_";newStr=newStr+str.substr(gt+1,str.length);str=newStr}gt=-1;while(str.indexOf("&",gt+1)>-1){var gt=str.indexOf("&",gt+1);var newStr=str.substr(0,gt);newStr+="_AMP_";newStr=newStr+str.substr(gt+1,str.length);str=newStr}return str}function xmlUnescapeHTMLToXML(xmlData){var str=xmlData;var gt;gt=-1;while(str.indexOf("_LT_",gt+1)>-1){var gt=str.indexOf("_LT_",gt+1);var newStr=str.substr(0,gt);newStr+="<";newStr=newStr+str.substr(gt+1+3,str.length);str=newStr}gt=-1;while(str.indexOf("_GT_",gt+1)>-1){var gt=str.indexOf("_GT_",gt+1);var newStr=str.substr(0,gt);newStr+=">";newStr=newStr+str.substr(gt+1+3,str.length);str=newStr}gt=-1;while(str.indexOf("_AMP_",gt+1)>-1){var gt=str.indexOf("_AMP_",gt+1);var newStr=str.substr(0,gt);newStr+="&";newStr=newStr+str.substr(gt+1+4,str.length);str=newStr}return str}var dateFormat=function(){var token=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloZ]|"[^"]*"|'[^']*'/g,timezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,timezoneClip=/[^-+\dA-Z]/g,pad=function(value,length){value=String(value);length=parseInt(length)||2;while(value.length<length){value="0"+value}return value};return function(date,mask){if(arguments.length==1&&(typeof date=="string"||date instanceof String)&&!/\d/.test(date)){mask=date;date=undefined}date=date?new Date(date):new Date();if(isNaN(date)){throw"invalid date"}var dF=dateFormat;mask=String(dF.masks[mask]||mask||dF.masks["default"]);var d=date.getDate(),D=date.getDay(),m=date.getMonth(),y=date.getFullYear(),H=date.getHours(),M=date.getMinutes(),s=date.getSeconds(),L=date.getMilliseconds(),o=date.getTimezoneOffset(),flags={d:d,dd:pad(d),ddd:dF.i18n.dayNames[D],dddd:dF.i18n.dayNames[D+7],m:m+1,mm:pad(m+1),mmm:dF.i18n.monthNames[m],mmmm:dF.i18n.monthNames[m+12],yy:String(y).slice(2),yyyy:y,h:H%12||12,hh:pad(H%12||12),H:H,HH:pad(H),M:M,MM:pad(M),s:s,ss:pad(s),l:pad(L,3),L:pad(L>99?Math.round(L/10):L),t:H<12?"a":"p",tt:H<12?"am":"pm",T:H<12?"A":"P",TT:H<12?"AM":"PM",Z:(String(date).match(timezone)||[""]).pop().replace(timezoneClip,""),o:(o>0?"-":"+")+pad(Math.floor(Math.abs(o)/60)*100+Math.abs(o)%60,4)};return mask.replace(token,function($0){return($0 in flags)?flags[$0]:$0.slice(1,$0.length-1)})}}();dateFormat.masks={"default":"ddd mmm d yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoFullDateTime:"yyyy-mm-dd'T'HH:MM:ss.lo"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(mask){return dateFormat(this,mask)};var WTF={};WTF.vars={up:"up",down:"down",left:"left",right:"right",onData:"on",list:"list",grid:"grid",tabs:'<div class="tabs clearfix"><div id="tabCalendar" class="tab">Calendar View</div><div id="tabList" class="tab">Lists View</div></div>',ajaxCl:"calAjax",ajaxGfx:"../../_res/images/cal-ajax-loader.gif"};WTF.closeDay=function(e){$("#calBig.grid div.calDayData").hide().parent().removeClass(WTF.vars.onData);e.stopPropagation()};WTF.toggleTab=function(obj){if(obj.id=="tabCalendar"){setCookie("tablist","false",1);$("#tabCalendar").addClass(WTF.vars.onData);$("#tabList").removeClass(WTF.vars.onData)}else{setCookie("tablist","true",1);$("#tabCalendar").removeClass(WTF.vars.onData);$("#tabList").addClass(WTF.vars.onData)}$(obj).blur()};WTF.setupGrid=function(){if($.browser.msie==true&&$.browser.version<7){$("#calBig #calDays ul.calDayShort li:first-child").addClass("first-child");$("#calBig #calHeader ul li:first-child").addClass("first-child");$("#calBig.grid #calDays li.data").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})}if($("#calBig.grid div.calDayData span.close").size()<1){$("#calBig.grid div.calDayData").prepend('<span class="close">Close</span>')}$("#calBig.grid div.calDayData span.close").show().click(WTF.closeDay);var strs="li."+WTF.vars.up+", li."+WTF.vars.down+", li."+WTF.vars.left+", li."+WTF.vars.right;if($(strs,"#calBig.grid").size()<1){var yearMonth=$("#calBig #calHeader").get(0);yearMonth=yearMonth.className.split(" ");var month=yearMonth[0]-1;var year=yearMonth[1];var start=new Date(year,month).getDay();$("#calBig #calDays li.data").each(function(){var thisDayNum=parseInt($(this).find("div:first-child").text());var thisDate=new Date(year,month,thisDayNum).getDay();(thisDate>=4)?$(this).addClass(WTF.vars.left):$(this).addClass(WTF.vars.right);var work=parseInt(((start+thisDayNum)/7)+1);(work>3)?$(this).addClass(WTF.vars.up):$(this).addClass(WTF.vars.down)})}$("#calBig li.data").click(function(event){WTF.closeDay(event);$(this).addClass(WTF.vars.onData).find("div.calDayData").show()});$("#calBig.grid").parent().click(WTF.closeDay)};WTF.setDay=function(txtNode){$("#instr").remove();$("#cal span.on").removeClass("on");$(txtNode).addClass("on");$("#highlight").text($(txtNode).text())};WTF.setLoader=function(){$("#hpCal div.p10").empty().html('<img class="'+WTF.vars.ajaxCl+'" src="'+WTF.vars.ajaxGfx+'" alt="loading..." />')};WTF.setErr=function(){window.setTimeout(function(){$("#hpCal div.p10").empty().html("<p>Error loading content. Please refresh and try again.</p>")},500)};WTF.loadSuc=function(jaxData){window.setTimeout(function(){$("body").append('<div id="calSet" style="display:none"></div>');var zzz=$("#calSet").html(jaxData).find("#calForm").html();$("#hpCal div.p10").hide().empty().html(zzz).fadeIn();$("#calSet").remove();WTF.buildCal()},500)};WTF.buildCal=function(){$("#cal.small .calDayShort").addClass("dyn").each(function(){if($(this).parent()[0].firstChild.nodeType==3){$($(this).parent()[0].firstChild).wrap("<span></span>")}});var fadeSp="fast";if($("#cal.small li.data").size()==0){WTF.setInstruction(0)}else{if($("#cal.small li.today").find(".calDayShort").size()>0){var x=$("#cal.small li.today .calDayShort").fadeIn(fadeSp).parent().find("span").eq(0);WTF.setDay(x)}else{if($("#cal.small li.today").children().size()==1){var x=$("#cal.small li.today").nextAll("li.data").eq(0).find(".calDayShort").fadeIn(fadeSp).parent().find("span").eq(0);WTF.setDay(x);WTF.setInstruction(1)}else{if($("#cal.small li.today").find(".calDayShort").size()==0){var x=$("#cal.small li.data:eq(0) .calDayShort").fadeIn(fadeSp).parent().find("span").eq(0);WTF.setDay(x)}}}}$("#cal.small li.data").addClass("click").click(function(){$("#cal.small li.data .calDayShort:visible").fadeOut(fadeSp);WTF.setDay($(this).find("div.today").find("span").eq(0));$(this).find(".calDayShort").fadeIn(fadeSp)});var nextPrev=$("#hpCal div.headlinetools a");nextPrev.eq(0).click(function(){WTF.setLoader();$.ajax({type:"GET",url:$(this).attr("rel"),timeout:5000,global:false,error:function(){WTF.setErr()},success:function(data){WTF.loadSuc(data)},dataType:"html"});return false});nextPrev.eq(1).click(function(){WTF.setLoader();$.ajax({type:"GET",url:$(this).attr("rel"),timeout:5000,global:false,error:function(){WTF.setErr()},success:function(data){WTF.loadSuc(data)},dataType:"html"});return false})};WTF.setInstruction=function(yesNo){var txt=(yesNo)?"Select a day to the left to see the day's information.":'No information for this month. You may<br />click "Previous" or "Next" to see another month.';$("#calHighlights").append('<p id="instr">'+txt+"</p>")};$(document).ready(function(){if($("#calBig").size()>0){$("#tabs").replaceWith(WTF.vars.tabs);if($("#calBig").get(0).className=="list"){$("#calBig").removeClass("list").addClass("grid")}WTF.setupGrid()}if($("#cal.small").size()>0){WTF.buildCal()}var x=$("div#filter").next("div");$("#tabList").click(function(){WTF.toggleTab(this);$(x).attr("class","list").attr("id","calBig");$("li.data").unbind("click").find("div.calDayData").show();$("#calBig.list div.calDayData span.close").hide();return false});$("#tabCalendar").click(function(){WTF.toggleTab(this);$("li.data").removeClass("on").find("div.calDayData").hide();$(x).attr("class","grid").attr("id","calBig");WTF.setupGrid();return false});(getCookie("tablist")=="true")?$("#tabList").trigger("click"):$("#tabCalendar").trigger("click")});var animspeed=500;var txt_expand="Expand";var txt_collapse="Collapse";var txt_mailLink="mailto:";txt_mailLink+="?subject=Wolf Trap Show! Let's Go!";txt_mailLink+="&body="+location.href;function getCookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null}if(start==-1){return null}var end=document.cookie.indexOf(";",len);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(len,end))}function setCookie(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expires){expires=expires*1000*60*60*24}var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+((expires)?";expires="+expires_date.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":"")}$(document).ready(function(){$("ul").each(function(){$("li:last",this).addClass("last")});$("#leftnav ul.nav li li li.active").parents("li").find("a:first").addClass("open");$("hr").wrap('<div class="hr"></div>');$(".two-col li:odd").css("float","right");$(".two-col li:even").css("clear","left");$("div#radiovideo div.tabs a").click(function(){var switchto=$(this).attr("class");$(this).parents("#radiovideo").removeClass("radio").removeClass("video").addClass(switchto);this.blur();return false});$("#col1 .insert .p10").prepend('<div class="switcher"><a class="collapse" href="#">'+txt_collapse+"</a></div>");$("#col2 .insert .p10").prepend('<div class="switcher"><a class="expand" href="#">'+txt_expand+"</a></div>");$("#col1 .switcher a").click(function(){if(this.className=="collapse"){$("#col1").removeClass("grid-ad").addClass("grid-ab");$(".grid-ab").css({margin:"10px 0 10px 10px",width:"315px"});$("#col2").removeClass("grid-ef").addClass("grid-cf");$(this).removeClass("collapse").addClass("expand").text(txt_expand);$("#col2 .switcher a").removeClass("expand").addClass("collapse").text(txt_collapse);setCookie("searchcol","col2",1,"/")}else{$("#col1").removeClass("grid-ab").addClass("grid-ad");$(".grid-ad").attr("style","");$("#col2").removeClass("grid-cf").addClass("grid-ef");$(this).removeClass("expand").addClass("collapse").text(txt_collapse);$("#col2 .switcher a").removeClass("collapse").addClass("expand").text(txt_expand);setCookie("searchcol","col1",1,"/")}this.blur();return false});$("#col2 .switcher a").click(function(){if(this.className=="expand"){$("#col1").removeClass("grid-ad").addClass("grid-ab");$(".grid-ab").css({margin:"10px 0 10px 10px",width:"315px"});$("#col2").removeClass("grid-ef").addClass("grid-cf");$(this).removeClass("expand").addClass("collapse").text(txt_collapse);$("#col1 .switcher a").removeClass("collapse").addClass("expand").text(txt_expand);setCookie("searchcol","col2",1,"/")}else{$("#col1").removeClass("grid-ab").addClass("grid-ad");$(".grid-ad").attr("style","");$("#col2").removeClass("grid-cf").addClass("grid-ef");$(this).removeClass("collapse").addClass("expand").text(txt_expand);$("#col1 .switcher a").removeClass("expand").addClass("collapse").text(txt_collapse);setCookie("searchcol","col1",1,"/")}this.blur();return false});if($("#col1").get(0)&&getCookie("searchcol")=="col2"){$("#col1").removeClass("grid-ad").addClass("grid-ab");$(".grid-ab").css({margin:"10px 0 10px 10px",width:"315px"});$("#col2").removeClass("grid-ef").addClass("grid-cf");$("#col1 .switcher a").removeClass("collapse").addClass("expand").text(txt_expand);$("#col2 .switcher a").removeClass("expand").addClass("collapse").text(txt_collapse)}$("li a.emailLink").attr("href",txt_mailLink)});var logging=false;var logViaAjax=true;var logViaAlert=false;var shortenLogMsg=false;var initPageOnce=false;var thickboxIds=new Array();var loginCookie=null;var treeCollection=null;var thickboxWidth=800;var thickboxHeight=600;var disableButtonTimeout=10*1000;function generateUid(){return new Date().getTime()+""+Math.round(100000000000*Math.random())}var statusTimestamp=0;var statusTimeToLive=10*1024;var statusMessage="";function generateTimestamp(){var timestamp=new Date();return timestamp.getHours()+":"+timestamp.getMinutes()+":"+timestamp.getSeconds()+"."+timestamp.getMilliseconds()}function alertLog(msg){$.prompt(msg)}function log(msg){if(msg.length>255&&shortenLogMsg){msg=msg.substring(0,254)}var url=".XmlRequestServlet?handler=com.ud.core.xmlservice.cms.LogService";if(logging){msg=generateTimestamp()+" "+msg;if(logViaAjax){logAjax(url,msg)}if(logViaAlert){logAlert(msg)}}}function logAlert(msg){MAX=255*10;if(msg.length>MAX){alert(msg.substr(0,MAX));logAlert(msg.substring(MAX))}else{alert(msg)}}function logAjax(url,msg){var ajaxExchange=getHTTPObject();ajaxExchange.open("POST",url,true);ajaxExchange.setRequestHeader("Content-Type","application/x-www-form-urlencoded");ajaxExchange.send("message="+escape(msg))}var ajaxCount=0;function redirect(redirectUrl){window.location=redirectUrl}function setStatus(msg){statusTimestamp=new Date().getTime();statusMessage=msg;if(document.getElementById("statusMessageDisplay")!=null){$("#statusMessageDisplay").html('<div class="loader" id="statusMessage">&nbsp;</div>');setTimeout("clearStatus()",statusTimeToLive+10)}}function clearStatus(){clearStatusWithForce(false)}function clearStatusWithForce(force){if((force||statusTimestamp+statusTimeToLive<new Date().getTime()&&statusTimestamp!=0)&&document.getElementById("statusMessageDisplay")!=null){$("#statusMessageDisplay").empty()}}function genericCallAjax(url,evalCode){genericCallAjaxWithXml(url,null,evalCode)}function genericCallAjaxWithXml(url,postXml,evalCode){var postData="xml="+escape(postXml);genericCallAjaxWithPost(url,postData,evalCode)}function genericCallAjaxWithPost(url,postData,evalCode){clearStatus();log("genericCallAjaxWithPost("+url+", "+postData+", "+evalCode+")");showBusyStatus();var ajaxExchange=getHTTPObject();if(ajaxExchange){ajaxExchange.onreadystatechange=function(){genericAjaxCallback(ajaxExchange,evalCode)}}ajaxExchange.open("POST",url,true);if(postData==null){ajaxExchange.send("")}else{ajaxExchange.setRequestHeader("Content-Type","application/x-www-form-urlencoded");ajaxExchange.send(postData)}}function genericAjaxCallback(ajaxExchange,evalCode){try{if(ajaxExchange==null){throw"ajaxExchange variable is null"}if(ajaxExchange.readyState==4){if(!(ajaxExchange.status==200||ajaxExchange.status==304)){throw ("Server Error (genericAjaxCallback): "+ajaxExchange.status)}else{var ajaxText=ajaxExchange.responseText;var ajaxXml=ajaxExchange.responseXML;log("received response  in genericCallback("+ajaxExchange+", "+evalCode+")\r\n"+ajaxText);try{ajaxXml.normalize()}catch(e2){}if(evalCode!=null){eval(evalCode)}}hideBusyStatus()}}catch(e){setStatus("An error has occurred and a system administrator has been notified.");log("ERROR: "+e.message)}}function showBusyStatus(){setStatus("Updating page...");if(document.getElementById("preloader")!=null){document.getElementById("preloader").innerHTML='<img src="../../img/preloader/ploader_fpo.gif" alt="preloader" />'}ajaxCount++}function hideBusyStatus(){ajaxCount--;if(ajaxCount<=0){if(statusMessage=="Updating page..."){clearStatusWithForce(true)}if(document.getElementById("preloader")!=null){document.getElementById("preloader").innerHTML=""}}}function getHTTPObject(){var xhr=false;if(window.XMLHttpRequest){xhr=new XMLHttpRequest()}else{if(window.ActiveXObject){try{xhr=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){xhr=false}}}}return xhr}function getElementByIdAttr(id,attr){result=getElementById(id).getAttribute(attr);return result}function getElementById(id){result=document.getElementById(id);return result}function submitAjaxForm(url,formName){submitModuleForm(url,formName)}function setDOMValue(id,val){getElementById(id).value=val}function initializeSortable(name){Sortable.create(name,{dropOnEmpty:true,containment:[name],constraint:false})}function getListOrder(name){var result=Sortable.serialize(name,{name:"key"});return result}function deleteFile(inputName){log("deleteFile");var id=inputName+"Delete";$(id).remove();var element='<input class="hiddenDelete" type="hidden" id="'+id+'" name="'+id+'" value="delete"/>';$("input[name = '"+inputName+"']").val("").after(element);$("#"+inputName+"Preview").remove();$("#"+inputName+"RemoveButton").remove();$("#removeButtonIcon"+inputName).hide();$("#removeButton"+inputName).hide()}function processAjaxFormResponse(responseText,statusText){alert("Your information has been processed")}function processAjaxFormResponseUserManagement(responseText,statusText){dom=parseDOM(responseText);uid=dom.find("//username/text()")+"";isVerified=dom.find("//isVerified/text()")+"";role=dom.find("//role/text()")+"";cmd=dom.find("//cmd/text()")+"";cls="desc user";if(role=="admin"||role=="RWISO Administrator"||role=="Website Administrator"){cls+="_admin"}if(isVerified=="false"){cls+="_delete"}$("#title"+uid).attr("class",cls);if(cmd!=null&&cmd=="assumeRole"){$("#assumeUser").remove();$("#title"+uid).after("<div id='assumeUser' class='desc assumeUser'>Assumed role</div>")}else{if(cmd!=null&&cmd=="deleteUser"){$("#userRow"+uid).remove();total=Number($("#totalUsers").html())-1;if(total<0){total=0}$("#totalUsers").html(total)}}}function initPage(){initTinyMceForPage();initCookies();$(document).ready(function(){if(!initPageOnce){initPageOnce=true;initAjaxForms();initTooltips();initStarInputs();initTabs()}})}function deleteCookie(COOKIE_NAME){$.cookie(COOKIE_NAME,null,{path:"/"})}function initCookies(){loginCookie=$.cookie("loginCookie");$.cookie("loginCookie",loginCookie,{path:"/"})}function initTooltips(){$("a.toolTip").tooltip({bodyHandler:function(){return $($(this).attr("href")).html()},showURL:false})}function initStarInputs(){$(".starInput").each(function(i,node){node=$(node);id=node.attr("id");$("#"+id+"StarDiv").rating("#"+id,{maxvalue:5})})}function initTabs(){$(".tabs").tabs()}function initValidationForm(formId){obj=$("#"+formId);obj.submit(function(){msg="";hasErrors=false;obj.find("input[class*='required']").each(function(i,node){node=$(node);if(node.attr("value")==null||node.attr("value").trim()==""){hasErrors=true}});if(hasErrors){msg+="Please fill out all required fields"}if(hasErrors){$("#statusMsg").html('<div class="errorMessage">'+msg+"</div>")}return !hasErrors})}function initAjaxForms(){var options={success:processAjaxFormResponse};$(document).ready(function(){$(".ajaxForm").each(function(i,node){node=$(node);options2=options;ajaxHandler=node.find("input[name='ajaxHandler']").val();preAjaxHandler=node.find("input[name='preAjaxHandler']").val();validationForm=node.find("input[name='validationForm']").val();preloadQuery=node.find("input[name='preloadQuery']").val();uid=generateUid();node.attr("id",uid);node.find("input[name='formId']").remove();idHtml='<input type="hidden" name="formId" value="'+uid+'"/>';node.append(idHtml);if(preAjaxHandler!=null){eval("options2 = { beforeSubmit: "+preAjaxHandler+" }");node.ajaxForm(options2)}else{if(validationForm!=null){eval("options2 = { beforeSubmit: beforeSumbitAjaxForm, success: validateForm }");node.ajaxForm(options2)}else{if(ajaxHandler!=null){eval("options2 = { beforeSubmit: beforeSumbitAjaxForm, success: "+ajaxHandler+" }");node.ajaxForm(options2)}}}if(preloadQuery!=null){loadFormData(uid,preloadQuery)}})})}function beforeSumbitAjaxForm(){saveTinyMceData()}function initTinyMceForPage(){if(typeof (tinyMCE)!="undefined"){tinyMCE.init({mode:"textareas",encoding:"xml",theme:"advanced",plugins:"safari,spellchecker,pagebreak,style,layer,advimage,advlink,inlinepopups,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",theme_advanced_buttons1:"bold,italic,underline,strikethrough, |, forecolor,backcolor,charmap,|,bullist,numlist,link",theme_advanced_buttons2:"formatselect,fontselect,fontsizeselect",theme_advanced_buttons3:"spellchecker,code,preview",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_resizing:true,onchange_callback:"saveTinyMceData",editor_deselector:"textOnlyTextArea"})}}function initTinyMce2(){$("textarea").change(function(){saveTinyMceData()})}function saveTinyMceData(){if(typeof (tinyMCE)!="undefined"){tinyMCE.triggerSave();$("textarea").each(function(i,node){node=$(node);node.val(node.val())})}}function loadTinyMceData(){if(typeof (tinyMCE)!="undefined"){$("textarea[class!='textOnlyTextArea']").each(function(i,node){id=node.id;node=$(node);if(id!=null){name=id}else{name=node.attr("name")}log("loadTinyMceData(): textarea update: "+name+", val: "+node.val());editor=tinyMCE.get(name);if(editor!=null){log("loadTinyMceData(): editor.setContent: "+node.val());editor.setContent(node.val())}});log("loadTinyMceData(): description: "+$("textarea[@name='description']").val())}}function processAjaxFormResponseAddComment(responseText,statusText){$(".approveMessageHolder").html('<div class="approveMessage"><p>Thank you. Your comment has been submitted for approval.</p></div>').show();$("textarea[name='comment']").val("");setTimeout('$(".approveMessageHolder").hide().empty()',statusTimeToLive+10)}function validateForm(responseText,statusText){responseText=decodeAjaxResponse(responseText);dom=parseDOM(responseText);if(dom.find("//hasErrors/text()")=="true"){applyValidationResult(responseText,dom)}else{if(dom.find("//ajaxPostHandler/text()")!=null&&(dom.find("//ajaxPostHandler/text()")+"").trim()!=""){handler=dom.find("//ajaxPostHandler/text()");eval(handler+"(responseText, statusText)")}else{if(dom.find("//ajaxForward/text()")!=null&&(dom.find("//ajaxForward/text()")+"").trim()!=""){ajaxForward=xmlUnescapeHTMLToXML("/core"+dom.find("//ajaxForward/text()"));redirect(ajaxForward)}else{formId=dom.find("//formId/text()");form=$("input[@value='"+formId+"']").parent();form.find("input[@name='validationForm']").remove();form.unbind();form.submit()}}}}function applyValidationResult(responseText,dom){enableButtons();$(".validationMessage").remove();$(".fieldValidationMessage").remove();formId=dom.find("//formId/text()");form=$("#"+formId);dom.find("//input").each(function(i,node){domInput=node;if(domInput.find("@name").currentNode!=null){name=domInput.find("@name").currentNode.getValue();type=domInput.find("@type").currentNode.getValue();message="";domInput.find("validation/message/text()").each(function(i2,node2){message+=", "+node2});if(message.length>0){message=message.substr(2)}formInput=null;if(type.indexOf("extarea")!=-1){formInput=form.find("textarea[@name='"+name+"']")}else{formInput=form.find("input[@name='"+name+"']")}if(message.length>0){formInput.parent().after('<dd class="fieldValidationMessage"><div class="desc attention validationMessage">'+message+"</div></dd>")}}});form.before('<div class="errorMessage validationMessage"><p>Ooops! In order to continue, you must complete the form correctly.</p></div>')}function applyHtmlResult(html){html=xmlEscapeXMLToHTML(html);id=generateUid();form='<form action="../system/showEscapedHtml.jsp" id="'+id+'" method="post"><textarea name="html">'+html+"</textarea></form>";$("body").append(form);$("#"+id).submit()}function decodeAjaxResponse(ajaxText){if(ajaxText==null||(ajaxText.indexOf("<textarea>")==-1&&ajaxText.indexOf("<TEXTAREA>")==-1)){return ajaxText}key="textarea";if(ajaxText.indexOf("<TEXTAREA>")!=-1){key="TEXTAREA"}ajaxText=ajaxText.substring(ajaxText.indexOf("<"+key+">")+10,ajaxText.lastIndexOf("</"+key+">"));ajaxText=characterDecode(ajaxText);return ajaxText}function characterDecode(str){result="";eval("result=String.fromCharCode("+str+")");return result}function submitForm(action,obj){if(action!=null&&action=="yes"){id=obj.find("div").attr("id");$("#"+id).find("form").submit()}}function submitAjaxForm(action,obj){if(action!=null&&action=="yes"){id=obj.find("div").attr("id");$("#"+id).ajaxSubmit()}}function loadSimpleForm(url,formId,callback){if(formId!=null){$("#"+formId).clearForm();formId='"'+formId+'"'}evalCode="applySimpleForm(ajaxText, "+formId+", '"+callback+"')";genericCallAjax(url,evalCode)}function setFormValue(formId,name,val){form=$("form[id='"+formId+"']");if(form.html()==null){form=$("#"+formId).find("form")}form.find("input[name='"+name+"']").val(val)}function applySimpleForm(ajaxText,formId,callback){log("applySimpleForm(): "+ajaxText);dom=parseDOM(ajaxText);$(".deleteCode").remove();dom.find("//*").each(function(i,node){name=node.currentNode.getNodeName();if(name!=null&&name.endsWith("SelectCode")){val=node.find("text()")+"";val=xmlUnescapeHTMLToXML(val);if(formId!=null){form=$("form[id='"+formId+"']")}else{form=$("form")}name2=name.substring(0,name.indexOf("SelectCode"));nodeSelect=form.find("select[name='"+name2+"']");nodeSelect.html(val)}});dom.find("//*").each(function(i,node){name=node.currentNode.getNodeName();val=node.find("text()")+"";val=xmlUnescapeHTMLToXML(val);if(formId!=null){form=$("form[id='"+formId+"']")}else{form=$("form")}node2=form.find("input[name='"+name+"']");if(node2.size()==0){node2=form.find("textarea[name='"+name+"']")}if(node2.size()==0){node2=form.find("select[name='"+name+"']")}if(node2.size()==0&&name.endsWith("Filename")){name=name.substring(0,name.indexOf("Filename"));node2=form.find("input[name='"+name+"']")}if(node2.size()>0){type=node2.attr("type");if(type=="textarea"){val=adjustParsedXml(val)}if(name!="forward"){if(type!="file"){node2.val(val)}else{if(node2.parent().parent().find(".deleteCode").length==0){val=dom.find("//"+name+"Filename/text()")+"";deleteCode='<dd class="deleteCode"><a id="'+name+'RemoveButton" href="javascript:void(0)" onClick="deleteFile(\''+name+'\')" class="desc delete">Delete</a></dd>';node2.parent().after(deleteCode);deleteCode='<dl class="deleteCode"><dt><label for="preview">File Link</label></dt><dd></dd><dd><div id="'+name+'Preview"><a target="new" href="'+contentUrl+"/"+val+'">File Link</a></div></dd></dl>	';node2.parent().parent().after(deleteCode)}}log("loaded form element: "+name+", "+val+", "+type+", val: "+node2.val())}}});if(callback!=null&&callback!="null"){eval(callback)}syncCheckboxes();loadTinyMceData()}function syncCheckboxes(){$(".ajaxForm").each(function(i,node){form=$(node);form.find("input[type='checkbox']").each(function(i2,node2){checkbox=$(node2);name=checkbox.attr("name").replace("Checkbox","");val=form.find("input[name='"+name+"']").attr("value");if(val.startsWith("not_")||val==""){}else{checkbox.attr("checked","true")}})})}function initThickbox(){tb_init("a.thickbox, area.thickbox, input.thickbox")}function initThickboxById(id){if(thickboxIds[id]==null){thickboxIds[id]="done";tb_init("#thickbox"+id)}}function loadFormData(formId,query){url=".XmlRequestServlet?handler=com.ud.core.formservice.handler.GenericLoaderFH&forward=/www/system/showRawXmlRequest.jsp&xquery="+query;evalCode="applySimpleForm(ajaxText)";genericCallAjax(url,evalCode)}function applyFormData(ajaxText){dom=parseDOM(ajaxText);dom.find("XmlMessage/*").each(function(i,node){name=node.currentNode.getNodeName();val=node.find("text()")+"";node2=$("form input[name='"+name+"']");if(node2.size()==0){node2=$("form textarea[name='"+name+"']")}if(node2.size()>0){type=node2.attr("type");if(name!="forward"){if(type!="file"){node2.val(val)}else{val=dom.find("//"+name+"Filename/text()")+"";deleteCode='<dd><a id="'+name+'RemoveButton" href="javascript:void(0)" onClick="deleteFile(\''+name+'\')" class="icon delete">Delete</a>';node2.parent().after(deleteCode);if(isImg(val)){deleteCode='<dl><dt><label for="preview">Image Preview</label></dt><dd><div id="'+name+'Preview"><img src="'+contentUrl+"/"+val+'" width="50"/></div></dd></dl>	';node2.parent().parent().after(deleteCode)}else{deleteCode='<dl><dt><label for="preview">File Link</label></dt><dd><div id="'+name+'Preview"><a target="_blank" href="'+contentUrl+"/"+val+'">File Link</a></div></dd></dl>	';node2.parent().parent().after(deleteCode)}}}}})}function isImg(f){if(f==null){return false}if(f.endsWith(".gif")||f.endsWith(".jpg")||f.endsWith(".tiff")||f.endsWith(".png")||f.endsWith(".bmp")){return true}return false}function syncCheckbox(id){checked=$("#"+id+":checked").length;val=$("#"+id).val();if(checked==0){val="not_"+val}$("input[name='"+id+"']").attr("value",val)}function adjustParsedXml(str){if(str==null){return str}return str.replace(/&quot;/g,'"')}function disableTinyMce(id){$("#"+id).find("textarea[class!='textOnlyTextArea']").each(function(i,node){nodeOrig=node;node=$(node);node.val(node.val());name=node.attr("name");if(nodeOrig.id==""){nodeOrig.id=id+"_"+name}id=nodeOrig.id;try{tinyMCE.execCommand("mceRemoveControl",true,id)}catch(e){}})}function enableTinyMce(id){tinyMCE.idCounter=0;$("#"+id).find("textarea[class!='textOnlyTextArea']").each(function(i,node){nodeOrig=node;node=$(node);node.val(node.val());name=node.attr("name");if(nodeOrig.id==""){nodeOrig.id=id+"_"+name}id=nodeOrig.id;try{tinyMCE.execCommand("mceAddControl",true,id)}catch(e){}})}function loadTreeForm(nodeId,divFormId){if(divFormId==null){divFormId="editForm"}url=".XmlRequestServlet?handler=com.ud.core.formservice.handler.GenericLoaderFH&amp;forward=/www/system/showRawXmlRequest.jsp&amp;nodeId="+nodeId+"&amp;xquery=collection('"+treeCollection+"')//node[@id='"+nodeId+"']/data";formId=$("#"+divFormId).find("form").attr("id");disableTinyMce(divFormId);callbackFunction="initThickboxTinyMce()";loadSimpleForm(url,formId,callbackFunction)}function initTreeForm(nodeId,divFormId){if(divFormId==null){divFormId="editForm"}formId=$("#"+divFormId).find("form").attr("id");$("#"+formId).clearForm();disableTinyMce(divFormId);$("#"+formId).clearForm();callbackFunction="initThickboxTinyMce()";setTimeout(callbackFunction,2000)}function initThickboxTinyMce(){enableTinyMce("TB_window")}function initThickboxScrollHandler(){$("#TB_ajaxContent").scroll(function(){refreshThickboxTinyMce()})}var refreshTBTimestamp=0;function refreshThickboxTinyMce(){if(new Date().getTime()>refreshTBTimestamp){refreshTBTimestamp=new Date().getTime()+200;cleanupThickboxTinyMce();initThickboxTinyMce()}}function cleanupThickboxTinyMce(){disableTinyMce("TB_window")}function initTree(treeCollectionIn,treeFormCollectionIn){treeCollection=treeCollectionIn;var treeFormCollection=treeFormCollectionIn;$("#treeAdmin").fileTree({root:"/0",script:"/core/www/tree/getNode.jsp?thickBoxWidth="+thickboxWidth+"&thickboxHeight="+thickboxHeight+"&formCollection="+treeFormCollection+"&collectionIn="+treeCollection})}function initSort(id){$("#"+id).find("ul").sortable({items:"li",revert:true,tree:true,stop:stopSort,containment:"#"+id});disableSort(id)}function stopSort(e,ui){disableSort("treeAdmin")}function moveTreeItemServer(id,action){url=".XmlRequestServlet?handler=com.ud.core.formservice.handler.tree.TreeFH&amp;forward=/www/system/showRawXmlRequest.jsp&amp;collection="+treeCollection+"&amp;nodeId="+id+"&amp;action="+action;evalCode="moveTreeItemServerCallback(ajaxText)";genericCallAjax(url,evalCode)}function moveTreeItemServerCallback(ajaxText){}function moveTreeItem(id,action){try{node=$("#treeItem"+id);if(action=="down"){node.next().after(node)}if(action=="up"){node.prev().before(node)}if(action=="left"){par=node.parent().parent();if(par.get(0).nodeName=="li"||par.get(0).nodeName=="LI"){par.after(node)}}if(action=="right"){par=node.prev();if(par.get(0).nodeName=="li"||par.get(0).nodeName=="LI"){if(par.find("ul:first").length==0){par.append('<ul class="jqueryFileTree" style="display: none;"></ul>')}par.find("ul:first").append(node)}}}catch(e){}moveTreeItemServer(id,action)}function enableSort(id){initSort(id);$("#"+id).find("ul").sortable("enable")}function disableSort(id){$("#"+id).find("ul").sortable("disable")}function featureNews(id){$(".featuredNewsContent").hide();$("#"+id+"NewsContent").show();$(".featuredNewsSide").attr("class","featureSide featuredNewsSide");$("#"+id+"NewsSide").attr("class","featureSideHere featuredNewsSide")}function copyHtml(from,to){if($(from).html()!=null){$(to).html($(from).html())}}function moveHtml(from,to,removeScriptTags){if($(from).html()!=null){if(removeScriptTags){$(from).find("script").remove();$(from).find("SCRIPT").remove()}$(to).html($(from).html());$(from).empty()}}var timerObj;var timerLabel;function disableTimeout(obj){timerObj=obj;timerObj.disabled=true;setTimeout("timerObj.disabled=false",5000)}var buttonG;function disableButton(button){buttonG=button;setTimeout("disableButton2()",100)}function disableButton2(){buttonG.disabled=true;setTimeout("enableButtons()",disableButtonTimeout)}function enableButtons(){$(".disableButton").removeAttr("disabled")}if(!(new String).trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}if(!(new String).normalize&&(new String).trim){String.prototype.normalize=String.prototype.normalise=function(){return this.trim().replace(/\s+/g," ")}}if(!(new String).startsWith){String.prototype.startsWith=function(str,i){i=(i)?"i":"";var re=new RegExp("^"+str,i);return(this.normalize().match(re))?true:false}}if(!(new String).endsWith){String.prototype.endsWith=function(str,i){i=(i)?"gi":"g";var re=new RegExp(str+"$",i);return(this.normalize().match(re))?true:false}}String.prototype.trim=function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1")};function XmlDOM(domImplIn,domDocIn,currentNodeIn,resultIn,lengthIn){var domImpl=domImplIn;var domDoc=domDocIn;var currentNode=currentNodeIn;var result=resultIn;var length=lengthIn;this.createDOM=createDOM;this.show=show;this.toString=toString;this.toStringDebug=toStringDebug;this.append=append;this.parent=parent;this.cloneDOM=cloneDOM;this.cloneDOM2=cloneDOM2;this.cloneDOM3=cloneDOM3;this.cloneDOM4=cloneDOM4;this.find=find;this.length=length;this.clone=clone;this.importElement=importElement;this.text=text;this.html=html;this.each=each;this.remove=remove;this.empty=empty;this.result=result;this.parse=parse;this.innerHtml=innerHtml;this.domDoc=domDoc;this.currentNode=currentNode;this.getAllChildren=getAllChildren;if(domImpl==null){createDOM()}function createDOM(){domImpl=new DOMImplementation();domDoc=domImpl.loadXML("<root/>");currentNode=domDoc.getDocumentElement()}function cloneDOM(){return new XmlDOM(domImpl,domDoc,currentNode,result,length)}function cloneDOM2(curNode){return new XmlDOM(domImpl,domDoc,curNode,result,length)}function cloneDOM3(curNode,len){return new XmlDOM(domImpl,domDoc,curNode,result,len)}function cloneDOM4(curNode,res,len){return new XmlDOM(domImpl,domDoc,curNode,res,len)}function append(str){var newImpl=new DOMImplementation().loadXML("<root>"+str+"</root>");var element=newImpl.getDocumentElement();var childNodes=element.getChildNodes();for(var i=0;i<childNodes.getLength();i++){var childNode=childNodes.item(i);childNode=domDoc.importNode(childNode,true);currentNode.appendChild(childNode,true)}return cloneDOM()}function parent(){return cloneDOM2(currentNode.getParentNode())}function getAllChildren(){result="";children=currentNode.getChildNodes();for(i=0;i<children.getLength();i++){result+=cloneDOM2(children.item(i)).toString()}return result}function each(f){if(result==null){return }for(var i=0;i<result.getLength();i++){f(i,cloneDOM2(result.item(i)))}}function clone(){var str=this.toString();return parse(str)}function parse(str){var element=new DOMImplementation().loadXML(str).getDocumentElement();return importElement(element)}function importElement(element){var node=domDoc.importNode(element,true);return cloneDOM2(node)}function show(){alert(this.toStringDebug())}function toString(){if(currentNode==null){return""}return currentNode.toString()}function toStringDebug(){return"DOC: "+domDoc.toString()+" CURRENT NODE: "+currentNode.toString()+" RESULT: "+result}function find(query){resultHere=currentNode.selectNodeSet(query);var result=null;if(resultHere!=null&&resultHere.getLength()>0){result=cloneDOM4(resultHere.item(0),resultHere,resultHere.getLength())}else{result=cloneDOM4(null,null,0)}return result}function innerHtml(){if(currentNode==null){return""}var html="";for(var i=0;i<currentNode.getChildNodes().getLength();i++){html+=currentNode.getChildNodes().item(i).toString()}return html}function text(val){if(val!=null){if(currentNode.selectNodeSet("text()").getLength()==0){currentNode.appendChild(domDoc.createTextNode(val))}var textNode=currentNode.selectNodeSet("text()").item(0).setNodeValue(val)}if(currentNode==null){return""}var text=currentNode.getNodeValue();if(text==""){try{text=currentNode.selectNodeSet("text()").item(0).getNodeValue();if(text==null){text=""}}catch(e){}}return text.trim()}function remove(){if(currentNode!=null){currentNode.getParentNode().removeChild(currentNode);currentNode=null}return cloneDOM()}function empty(){while(currentNode.getChildNodes().getLength()>0){currentNode.removeChild(currentNode.getFirstChild())}return cloneDOM()}function html(){return toString()}}function parseDOM(str){try{var dom=new XmlDOM();dom=dom.append(str);dom=dom.find("node()");return dom}catch(e){throw (e)}}function testDOM(){testLargeDOM()}function testLargeDOM(){var str="<root>";for(var i=0;i<5000;i++){str+="<val>longval</val>"}str+="</root>";domImpl=new DOMImplementation();alert("pre parse: "+str.length);domDoc=domImpl.loadXML(str);alert("post parse")}function testEachDOM(){var dom=createTestDOM();dom.append("<f>f1</f><f>f2</f><f>f3</f>");dom.find("//f").each(function(i,domI){alert(i+", "+domI.html())})}function testParseDOM(){var str="<fooman>this is fooman</fooman>";var dom=parseDOM(str);dom.show()}function testQueryChainDOM(){var dom=createTestDOM();dom.show();dom=dom.find("grandpa").find("dad").find("kid");dom.show();dom=dom.find("grandpa");dom.show()}function testChainDOM(){var dom=createTestDOM();dom.append("<chain1>chainVal</chain1>").append("<chain2>chainVal</chain2>");dom.show()}function createTestDOM(){var dom=new XmlDOM();dom.append("<child>fooChild</child><grandpa><dad><kid></kid></dad></grandpa>");return dom}function testQueryDOM(){var dom=createTestDOM();var result=dom.find("//child").result;dom.show()}function testAppendDOM(){var dom=createTestDOM();dom.append("<child>fooChild</child>");dom.show();dom.append("<parent><child1>val1</child1><child2>val2</child2></parent>");dom.show();dom.append("<brother1>val1</brother1><brother2>val2</brother2>");dom.show()}function loadModule(url,id,formData){var evalCode="postModule(ajaxText, '"+id+"')";genericCallAjaxWithPost(url,formData,evalCode)}function postModule(ajaxText,id){log("postModule(): "+id+", "+ajaxText);var htmlCode=parseDOM(ajaxText).find("//div[@id='response']").html();if(htmlCode.length==0){htmlCode=ajaxText}var module=$("#moduleViewContainer"+id);var x=$("#cms").offset().left+module.offset().left;var y=$("#cms").offset().top+module.offset().top;log("cms(x,y): ("+$("#cms").offset().left+","+$("#cms").offset().top+"), module(x,y): ("+module.offset().left+","+module.offset().top+"), total(x,y): ("+x+","+y+")");module.css("top",y);module.css("left",x);module.html(htmlCode)}var scheduleDOM;var scheduleTimestamp;var scheduleId;var WEEK_DURATION_MS=1000*60*60*24*7;var slotDuration=1000*60*15;var nowTimestamp;var scheduleBuffer;var RESERVATION_BUFFER_MS=1000*60*10;var isOwner=false;var debug=false;var hasChanged=false;var carts=new Array();var promoId;var debugDisableTimeProtection=false;var fromObj;function initPsychPage(){$(document).ready(function(){refreshNav();setTimeout("refreshNav()",200);setTimeout("refreshNav()",1000)})}function refreshNav(){if(loginCookie!=null&&loginCookie!="null"){$("#navButton1").html("Logout");$("#navButton1").attr("href","/core/www/admin/logout.jsp");$("#navButton2").html("Go To My Account");$("#navButton2").attr("href","/core/www/psych/welcomePage.jsp")}else{$("#navButton1").html("Login");$("#navButton1").attr("href","/login");$("#navButton2").html("Become a Member");$("#navButton2").attr("href","/register");$("#navButton3").html("Become an Advisor");$("#navButton3").attr("href","/contact/contact.php")}}function initSchedule(){logging=true;hideSchedule();$(document).ready(function(){$(".timeslot").mouseup(function(){scheduleMouseUp($(this))}).mousedown(function(){scheduleMouseDown($(this))});if(isOwner){$("#ownerMenu").show();$("#miniCart").hide();$("#quickScheduler").submit(function(){$(this).ajaxSubmit();return false})}else{$("#miniCart").show();$("#ownerMenu").hide()}})}function submitQuickScheduler(){}function scheduleMouseDown(obj){fromObj=obj}function submitOrder(){slotListing=new Array();for(i in carts){cart=carts[i];for(j=0;j<cart.length;j++){slotTime=cart[j];slotListing.push(slotTime)}}slotListing.sort();slots=slotListing.join(" ");$("#orderForm").find("input[name=slots]").val(slots);if(slots.trim()==""){$.prompt("You have not selected any times to reserve. Please go back to the scheduler and click on one or more yellow squares to reserve a time slot.",{buttons:{Ok:"Ok"}})}else{$("#orderForm").submit()}}function saveSchedule(doRedirect){if(!hasChanged||!isOwner){return }slotListing=new Array();$(".available").each(function(i,node){node=$(node);slotTime=node.attr("id").replace("slot","");slotListing.push(slotTime)});slotListing.sort();slots=slotListing.join(" ");submitUrl=saveScheduleUrl+"&timestamp="+scheduleTimestamp+"&id="+scheduleId;xmlObj="<slots>"+slots+"</slots>";evalCode="applySaveSchedule(ajaxText)";hideSchedule();genericCallAjaxWithXml(submitUrl,xmlObj,evalCode);hasChanged=false;$("#saveButton").hide();if(doRedirect!=null&&doRedirect==true){redirect(redirectUrl)}}function submitPayment(val){if(val=="Ok"){$("input[@name='amount']").val($("select[@name='preAmount']").val());if($("input[@name='preAmount2']").val()!=""){$("input[@name='amount']").val($("input[@name='preAmount2']").val())}$("#paymentForm").submit()}}function submitPromoPayment(val){if(val=="Ok"){$("input[@name='amount']").val($("select[@name='preAmount']").val());$("input[@name='custom']").val($("input[@name='custom']").val()+" "+promoId);if($("input[@name='preAmount2']").val()!=""){$("input[@name='amount']").val($("input[@name='preAmount2']").val())}$("#paymentForm").submit()}}function submitNewCallerPromoForm2(advisorId){$("input[@name='advisor']").val(advisorId);$("#paymentForm").submit()}function scheduleMouseUp(obj){toObj=obj;xFrom=getX(fromObj);xTo=getX(toObj);yFrom=getY(fromObj);yTo=getY(toObj);for(i=xFrom;i<=xTo;i++){for(j=yFrom;j<=yTo;j++){cell=$("#tr"+i).find(".td"+j);toggleCell(cell);if(debug){cell.html(cell.attr("class"))}}}$("#tr"+xTo).find(".td"+yTo).focus();renderCart()}function toggleCell(obj){hasChanged=true;$("#saveButton").show();if(isOwner){ownerToggle(obj)}else{userToggle(obj)}}function ownerToggle(obj){cls=cell.attr("class");if(cls.indexOf("available")!=-1){cls=cls.replace("available","")}else{if(cls.indexOf("book")==-1){cls=cls+" available"}}cell.attr("class",cls)}function userToggle(obj){cls=cell.attr("class");if(cls.indexOf("booking")!=-1){cls=cls.replace("booking","")}else{if(cls.indexOf("available")!=-1){cls=cls+" booking"}}cell.attr("class",cls)}function getX(obj){cls=obj.attr("class");result=cls.substr(cls.indexOf("tr")+2);result=result.substring(0,result.indexOf(" "));return result}function getY(obj){cls=obj.attr("class");result=cls.substr(cls.indexOf("td")+2);result=result.substring(0,result.indexOf(" "));return result}function setNow(timestamp){nowTimestamp=timestamp}function setScheduleBuffer(buffer){scheduleBuffer=buffer}function loadSchedule(timestamp,id){hideSchedule();hasChanged=false;$("#saveButton").hide();scheduleTimestamp=timestamp;scheduleId=id;submitUrl=loadScheduleUrl+"&timestamp="+scheduleTimestamp+"&id="+scheduleId;evalCode="applySchedule(ajaxText)";genericCallAjax(submitUrl,evalCode)}function reloadSchedule(){loadSchedule(scheduleTimestamp,scheduleId)}function loadNextSchedule(){saveSchedule();rollSlotTimestamps(WEEK_DURATION_MS);loadSchedule(scheduleTimestamp+WEEK_DURATION_MS,scheduleId)}function loadPreviousSchedule(){saveSchedule();rollSlotTimestamps(-WEEK_DURATION_MS);loadSchedule(scheduleTimestamp-WEEK_DURATION_MS,scheduleId)}function rollSlotTimestamps(inc){$(".timeslot").each(function(i,node){node=$(node);oldTimestamp=parseInt(node.attr("id").substr(4));newTimestamp=oldTimestamp+inc;node.attr("id","slot"+newTimestamp)})}function applySchedule(ajaxText){scheduleDOM=parseDOM(ajaxText);renderSchedule();showSchedule()}function applySaveSchedule(ajaxText){showSchedule()}function hideSchedule(){$("#statusMessage").html('<div class="loader">&nbsp;</div><div class="attentionMessage">Please wait while the schedule is loading</div>');$("#scheduleContainer").hide()}function showSchedule(){$("#statusMessage").empty();$("#scheduleContainer").show()}function renderSchedule(){$(".timeslot").each(function(i,node){node=$(node);cls=node.attr("class").replace("available","").replace("event","").replace("booked","").replace("booking","");node.attr("class",cls);node.html("")});scheduleDOM.find("//day").each(function(i,node){timestamp=node.find("timestamp/text()");d=new Date();d.setTime(timestamp);label=getDayOfWeek(i)+", "+getMonth(d.getMonth())+" "+d.getDate();$("#day"+i).html(label)});scheduleDOM.find("//slot").each(function(i,node){statusId=node.find("status/text()")+"";timestamp=node.find("timestamp/text()");if(timestamp>(nowTimestamp+scheduleBuffer)||isOwner||debugDisableTimeProtection){cls=$("#slot"+timestamp).attr("class");if(status!=null&&(isOwner||(!isOwner&&statusId!="booked"))){cls+=" "+statusId}$("#slot"+timestamp).attr("class",cls);if(debug){$("#slot"+timestamp).html(cls)}if(isOwner&&statusId=="booked"){orderId=node.find("order/XmlMessage/orderId/text()");str='<a id="thickbox'+timestamp+'View" onclick="initThickboxById(\''+timestamp+'View\')" href="viewOrder.jsp?orderId='+orderId+'&amp;KeepThis=true&amp;TB_iframe=true&amp;height=500&amp;width=760" class="thickbox">Booked</a>';$("#slot"+timestamp).html(str)}}});if(!isOwner){$("tr[class*='scheduleRow']:not(:has(td[class*='available']))").hide();$("tr[class*='scheduleRow']:has(td[class*='available'])").show()}loadCart();renderCart()}function debugPrintClasses(){$(".timeslot").each(function(i,node){node=$(node);cls=node.attr("class");node.html(cls+": "+node.html())})}function getDayOfWeek(i){switch(i){case 0:return"Sun";case 1:return"Mon";case 2:return"Tue";case 3:return"Wed";case 4:return"Thu";case 5:return"Fri";case 6:return"Sat";default:return"Sun"}}function getMonth(i){switch(i){case 0:return"Jan";case 1:return"Feb";case 2:return"Mar";case 3:return"Apr";case 4:return"May";case 5:return"Jun";case 6:return"Jul";case 7:return"Aug";case 8:return"Sep";case 9:return"Oct";case 10:return"Nov";case 11:return"Dec";default:return"Jan"}}function saveCart(){cartId=scheduleTimestamp;totalTime=0;slotListing=new Array();$(".booking").each(function(i,node){node=$(node);totalTime+=slotDuration;slotTime=node.attr("id").replace("slot","");slotListing.push(slotTime)});slotListing.sort();if(carts[cartId]==null){carts.push(slotListing)}carts[cartId]=slotListing}function loadCart(){cartId=scheduleTimestamp;slotListing=carts[cartId];if(slotListing==null){return }for(i=0;i<slotListing.length;i++){timestamp=slotListing[i];cls=$("#slot"+timestamp).attr("class")+" booking";$("#slot"+timestamp).attr("class",cls)}}function renderCart(){saveCart();if(isOwner){return }totalTime=0;slotListing=new Array();for(i in carts){cart=carts[i];for(j=0;j<cart.length;j++){totalTime+=slotDuration;slotTime=cart[j];d=new Date();d.setTime(slotTime);slotListing.push("<li>"+d.format("mm/dd/yy hh:MM TT")+" EST</li>")}}slotListing.sort();hours=parseInt(totalTime/(1000*60*60));minutes=parseInt((totalTime-hours*1000*60*60)/(1000*60));str=hours+" hours "+minutes+" minutes";$("#cartHourTotal").html(str);$("#cartSlotListing").html(slotListing.join(" "))}function saveOwnerSchedule(){}function submitPaymentForm(responseText,statusText){$.prompt("<iframe frameborder=0 scrolling=no src=paymentNote.html width=600></iframe>",{callback:submitPayment,buttons:{Agree:"Ok",Cancel:"Cancel"}})}function submitNewCallerPromoForm(advisorId){promoId=advisorId;$.prompt("<iframe frameborder=0 scrolling=no src=paymentNote.html width=600></iframe>",{callback:submitPromoPayment,buttons:{Agree:"Ok",Cancel:"Cancel"}})}function initOrdersList(){$(document).ready(function(){$(".decisionDiv").each(function(i,node){try{node=$(node);slots=node.find(".cancelFormForm").find("input[@name='slots']").val().split(" ");isOld=false;isOld2=false;cutoff=new Date().getTime();cutoff2=new Date().getTime()-1000*60*60*24;for(i=0;i<slots.length;i++){slot=slots[i];if(slot<cutoff){isOld=true}if(slot<cutoff2){isOld2=true}}if(isOld){node.find(".feedbackForm").show()}if(!isOld2){node.find(".cancelForm").show()}}catch(err){}})})};