;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}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d=="23"){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=[]}}N I D(b).2q(d)}N G(D.1D(d))I D(S)[D.17.27?"27":"43"](d);I 7.6Y(D.2d(d))},5w:"1.2.6",8G:H(){I 7.K},K:0,3p:H(a){I a==12?D.2d(7):7[a]},2I:H(b){J a=D(b);a.5n=7;I a},6Y:H(a){7.K=0;2p.44.1p.1w(7,a);I 7},P:H(a,b){I D.P(7,a,b)},5i:H(b){J a=-1;I D.2L(b&&b.5w?b[0]:b,7)},1K:H(c,a,b){J d=c;G(c.1q==56)G(a===12)I 7[0]&&D[b||"1K"](7[0],c);N{d={};d[c]=a}I 7.P(H(i){R(c 1n d)D.1K(b?7.V:7,c,D.1i(7,d[c],b,i,c))})},1g:H(b,a){G((b==\'2h\'||b==\'1Z\')&&3d(a)<0)a=12;I 7.1K(b,a,"2a")},1r:H(b){G(1j b!="49"&&b!=U)I 7.4E().3v((7[0]&&7[0].2z||S).5F(b));J a="";D.P(b||7,H(){D.P(7.3t,H(){G(7.16!=8)a+=7.16!=1?7.76:D.17.1r([7])})});I a},5z:H(b){G(7[0])D(b,7[0].2z).5y().39(7[0]).2l(H(){J a=7;1B(a.1x)a=a.1x;I a}).3v(7);I 7},8Y:H(a){I 7.P(H(){D(7).6Q().5z(a)})},8R:H(a){I 7.P(H(){D(7).5z(a)})},3v:H(){I 7.3W(19,M,Q,H(a){G(7.16==1)7.3U(a)})},6F:H(){I 7.3W(19,M,M,H(a){G(7.16==1)7.39(a,7.1x)})},6E:H(){I 7.3W(19,Q,Q,H(a){7.1d.39(a,7)})},5q:H(){I 7.3W(19,Q,M,H(a){7.1d.39(a,7.2H)})},3l:H(){I 7.5n||D([])},2q:H(b){J c=D.2l(7,H(a){I D.2q(b,a)});I 7.2I(/[^+>] [^+>]/.11(b)||b.1h("..")>-1?D.4r(c):c)},5y:H(e){J f=7.2l(H(){G(D.14.1f&&!D.4n(7)){J a=7.6o(M),5h=S.3h("1v");5h.3U(a);I D.4h([5h.4H])[0]}N I 7.6o(M)});J d=f.2q("*").5c().P(H(){G(7[E]!=12)7[E]=U});G(e===M)7.2q("*").5c().P(H(i){G(7.16==3)I;J c=D.L(7,"3w");R(J a 1n c)R(J b 1n c[a])D.W.1e(d[i],a,c[a][b],c[a][b].L)});I f},1E:H(b){I 7.2I(D.1D(b)&&D.3C(7,H(a,i){I b.1k(a,i)})||D.3g(b,7))},4Y:H(b){G(b.1q==56)G(62.11(b))I 7.2I(D.3g(b,7,M));N b=D.3g(b,7);J a=b.K&&b[b.K-1]!==12&&!b.16;I 7.1E(H(){I a?D.2L(7,b)<0:7!=b})},1e:H(a){I 7.2I(D.4r(D.2R(7.3p(),1j a==\'23\'?D(a):D.2d(a))))},3F:H(a){I!!a&&D.3g(a,7).K>0},7T:H(a){I 7.3F("."+a)},6e:H(b){G(b==12){G(7.K){J c=7[0];G(D.Y(c,"2A")){J e=c.64,63=[],15=c.15,2V=c.O=="2A-2V";G(e<0)I U;R(J i=2V?e:0,2f=2V?e+1:15.K;i<2f;i++){J d=15[i];G(d.2W){b=D.14.1f&&!d.at.2x.an?d.1r:d.2x;G(2V)I b;63.1p(b)}}I 63}N I(7[0].2x||"").1o(/\\r/g,"")}I 12}G(b.1q==4L)b+=\'\';I 7.P(H(){G(7.16!=1)I;G(b.1q==2p&&/5O|5L/.11(7.O))7.4J=(D.2L(7.2x,b)>=0||D.2L(7.34,b)>=0);N G(D.Y(7,"2A")){J a=D.2d(b);D("9R",7).P(H(){7.2W=(D.2L(7.2x,a)>=0||D.2L(7.1r,a)>=0)});G(!a.K)7.64=-1}N 7.2x=b})},2K:H(a){I a==12?(7[0]?7[0].4H:U):7.4E().3v(a)},7b:H(a){I 7.5q(a).21()},79:H(i){I 7.3s(i,i+1)},3s:H(){I 7.2I(2p.44.3s.1w(7,19))},2l:H(b){I 7.2I(D.2l(7,H(a,i){I b.1k(a,i,a)}))},5c:H(){I 7.1e(7.5n)},L:H(d,b){J a=d.1R(".");a[1]=a[1]?"."+a[1]:"";G(b===12){J c=7.5C("9z"+a[1]+"!",[a[0]]);G(c===12&&7.K)c=D.L(7[0],d);I c===12&&a[1]?7.L(a[0]):c}N I 7.1P("9u"+a[1]+"!",[a[0],b]).P(H(){D.L(7,d,b)})},3b:H(a){I 7.P(H(){D.3b(7,a)})},3W:H(g,f,h,d){J e=7.K>1,3x;I 7.P(H(){G(!3x){3x=D.4h(g,7.2z);G(h)3x.9o()}J b=7;G(f&&D.Y(7,"1T")&&D.Y(3x[0],"4F"))b=7.3H("22")[0]||7.3U(7.2z.3h("22"));J c=D([]);D.P(3x,H(){J a=e?D(7).5y(M)[0]:7;G(D.Y(a,"1m"))c=c.1e(a);N{G(a.16==1)c=c.1e(D("1m",a).21());d.1k(b,a)}});c.P(6T)})}};D.17.5j.44=D.17;H 6T(i,a){G(a.4d)D.3Y({1a:a.4d,31:Q,1O:"1m"});N D.5u(a.1r||a.6O||a.4H||"");G(a.1d)a.1d.37(a)}H 1z(){I+2B 8J}D.1l=D.17.1l=H(){J b=19[0]||{},i=1,K=19.K,4x=Q,15;G(b.1q==8I){4x=b;b=19[1]||{};i=2}G(1j b!="49"&&1j b!="H")b={};G(K==i){b=7;--i}R(;i<K;i++)G((15=19[i])!=U)R(J c 1n 15){J a=b[c],2w=15[c];G(b===2w)6M;G(4x&&2w&&1j 2w=="49"&&!2w.16)b[c]=D.1l(4x,a||(2w.K!=U?[]:{}),2w);N G(2w!==12)b[c]=2w}I b};J E="4M"+1z(),6K=0,5r={},6G=/z-?5i|8B-?8A|1y|6B|8v-?1Z/i,3P=S.3P||{};D.1l({8u:H(a){1b.$=3m$;G(a)1b.4M=w;I D},1D:H(a){I!!a&&1j a!="23"&&!a.Y&&a.1q!=2p&&/^[\\s[]?H/.11(a+"")},4n:H(a){I a.1C&&!a.1c||a.2j&&a.2z&&!a.2z.1c},5u:H(a){a=D.3k(a);G(a){J b=S.3H("6w")[0]||S.1C,1m=S.3h("1m");1m.O="1r/4t";G(D.14.1f)1m.1r=a;N 1m.3U(S.5F(a));b.39(1m,b.1x);b.37(1m)}},Y:H(b,a){I b.Y&&b.Y.2r()==a.2r()},1Y:{},L:H(c,d,b){c=c==1b?5r:c;J a=c[E];G(!a)a=c[E]=++6K;G(d&&!D.1Y[a])D.1Y[a]={};G(b!==12)D.1Y[a][d]=b;I d?D.1Y[a][d]:a},3b:H(c,b){c=c==1b?5r:c;J a=c[E];G(b){G(D.1Y[a]){2U D.1Y[a][b];b="";R(b 1n D.1Y[a])1X;G(!b)D.3b(c)}}N{1U{2U c[E]}1V(e){G(c.5l)c.5l(E)}2U D.1Y[a]}},P:H(d,a,c){J e,i=0,K=d.K;G(c){G(K==12){R(e 1n d)G(a.1w(d[e],c)===Q)1X}N R(;i<K;)G(a.1w(d[i++],c)===Q)1X}N{G(K==12){R(e 1n d)G(a.1k(d[e],e,d[e])===Q)1X}N R(J b=d[0];i<K&&a.1k(b,i,b)!==Q;b=d[++i]){}}I d},1i:H(b,a,c,i,d){G(D.1D(a))a=a.1k(b,i);I a&&a.1q==4L&&c=="2a"&&!6G.11(d)?a+"2X":a},1F:{1e:H(c,b){D.P((b||"").1R(/\\s+/),H(i,a){G(c.16==1&&!D.1F.3T(c.1F,a))c.1F+=(c.1F?" ":"")+a})},21:H(c,b){G(c.16==1)c.1F=b!=12?D.3C(c.1F.1R(/\\s+/),H(a){I!D.1F.3T(b,a)}).6s(" "):""},3T:H(b,a){I D.2L(a,(b.1F||b).6r().1R(/\\s+/))>-1}},6q:H(b,c,a){J e={};R(J d 1n c){e[d]=b.V[d];b.V[d]=c[d]}a.1k(b);R(J d 1n c)b.V[d]=e[d]},1g:H(d,e,c){G(e=="2h"||e=="1Z"){J b,3X={30:"5x",5g:"1G",18:"3I"},35=e=="2h"?["5e","6k"]:["5G","6i"];H 5b(){b=e=="2h"?d.8f:d.8c;J a=0,2C=0;D.P(35,H(){a+=3d(D.2a(d,"57"+7,M))||0;2C+=3d(D.2a(d,"2C"+7+"4b",M))||0});b-=29.83(a+2C)}G(D(d).3F(":4j"))5b();N D.6q(d,3X,5b);I 29.2f(0,b)}I D.2a(d,e,c)},2a:H(f,l,k){J e,V=f.V;H 3E(b){G(!D.14.2k)I Q;J a=3P.54(b,U);I!a||a.52("3E")==""}G(l=="1y"&&D.14.1f){e=D.1K(V,"1y");I e==""?"1":e}G(D.14.2G&&l=="18"){J d=V.50;V.50="0 7Y 7W";V.50=d}G(l.1I(/4i/i))l=y;G(!k&&V&&V[l])e=V[l];N G(3P.54){G(l.1I(/4i/i))l="4i";l=l.1o(/([A-Z])/g,"-$1").3y();J c=3P.54(f,U);G(c&&!3E(f))e=c.52(l);N{J g=[],2E=[],a=f,i=0;R(;a&&3E(a);a=a.1d)2E.6h(a);R(;i<2E.K;i++)G(3E(2E[i])){g[i]=2E[i].V.18;2E[i].V.18="3I"}e=l=="18"&&g[2E.K-1]!=U?"2F":(c&&c.52(l))||"";R(i=0;i<g.K;i++)G(g[i]!=U)2E[i].V.18=g[i]}G(l=="1y"&&e=="")e="1"}N G(f.4g){J h=l.1o(/\\-(\\w)/g,H(a,b){I b.2r()});e=f.4g[l]||f.4g[h];G(!/^\\d+(2X)?$/i.11(e)&&/^\\d/.11(e)){J j=V.1A,66=f.65.1A;f.65.1A=f.4g.1A;V.1A=e||0;e=V.aM+"2X";V.1A=j;f.65.1A=66}}I e},4h:H(l,h){J k=[];h=h||S;G(1j h.3h==\'12\')h=h.2z||h[0]&&h[0].2z||S;D.P(l,H(i,d){G(!d)I;G(d.1q==4L)d+=\'\';G(1j d=="23"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,H(b,a,c){I c.1I(/^(aK|4f|7E|aG|4T|7A|aB|3n|az|ay|av)$/i)?b:a+"></"+c+">"});J f=D.3k(d).3y(),1v=h.3h("1v");J e=!f.1h("<au")&&[1,"<2A 7w=\'7w\'>","</2A>"]||!f.1h("<ar")&&[1,"<7v>","</7v>"]||f.1I(/^<(aq|22|am|ak|ai)/)&&[1,"<1T>","</1T>"]||!f.1h("<4F")&&[2,"<1T><22>","</22></1T>"]||(!f.1h("<af")||!f.1h("<ad"))&&[3,"<1T><22><4F>","</4F></22></1T>"]||!f.1h("<7E")&&[2,"<1T><22></22><7q>","</7q></1T>"]||D.14.1f&&[1,"1v<1v>","</1v>"]||[0,"",""];1v.4H=e[1]+d+e[2];1B(e[0]--)1v=1v.5T;G(D.14.1f){J g=!f.1h("<1T")&&f.1h("<22")<0?1v.1x&&1v.1x.3t:e[1]=="<1T>"&&f.1h("<22")<0?1v.3t:[];R(J j=g.K-1;j>=0;--j)G(D.Y(g[j],"22")&&!g[j].3t.K)g[j].1d.37(g[j]);G(/^\\s/.11(d))1v.39(h.5F(d.1I(/^\\s*/)[0]),1v.1x)}d=D.2d(1v.3t)}G(d.K===0&&(!D.Y(d,"3V")&&!D.Y(d,"2A")))I;G(d[0]==12||D.Y(d,"3V")||d.15)k.1p(d);N k=D.2R(k,d)});I k},1K:H(d,f,c){G(!d||d.16==3||d.16==8)I 12;J e=!D.4n(d),40=c!==12,1f=D.14.1f;f=e&&D.3X[f]||f;G(d.2j){J g=/5Q|4d|V/.11(f);G(f=="2W"&&D.14.2k)d.1d.64;G(f 1n d&&e&&!g){G(40){G(f=="O"&&D.Y(d,"4T")&&d.1d)7p"O a3 a1\'t 9V 9U";d[f]=c}G(D.Y(d,"3V")&&d.7i(f))I d.7i(f).76;I d[f]}G(1f&&e&&f=="V")I D.1K(d.V,"9T",c);G(40)d.9Q(f,""+c);J h=1f&&e&&g?d.4G(f,2):d.4G(f);I h===U?12:h}G(1f&&f=="1y"){G(40){d.6B=1;d.1E=(d.1E||"").1o(/7f\\([^)]*\\)/,"")+(3r(c)+\'\'=="9L"?"":"7f(1y="+c*7a+")")}I d.1E&&d.1E.1h("1y=")>=0?(3d(d.1E.1I(/1y=([^)]*)/)[1])/7a)+\'\':""}f=f.1o(/-([a-z])/9H,H(a,b){I b.2r()});G(40)d[f]=c;I d[f]},3k:H(a){I(a||"").1o(/^\\s+|\\s+$/g,"")},2d:H(b){J a=[];G(b!=U){J i=b.K;G(i==U||b.1R||b.4I||b.1k)a[0]=b;N 1B(i)a[--i]=b[i]}I a},2L:H(b,a){R(J i=0,K=a.K;i<K;i++)G(a[i]===b)I i;I-1},2R:H(a,b){J i=0,T,2S=a.K;G(D.14.1f){1B(T=b[i++])G(T.16!=8)a[2S++]=T}N 1B(T=b[i++])a[2S++]=T;I a},4r:H(a){J c=[],2o={};1U{R(J i=0,K=a.K;i<K;i++){J b=D.L(a[i]);G(!2o[b]){2o[b]=M;c.1p(a[i])}}}1V(e){c=a}I c},3C:H(c,a,d){J b=[];R(J i=0,K=c.K;i<K;i++)G(!d!=!a(c[i],i))b.1p(c[i]);I b},2l:H(d,a){J c=[];R(J i=0,K=d.K;i<K;i++){J b=a(d[i],i);G(b!=U)c[c.K]=b}I c.7d.1w([],c)}});J v=9B.9A.3y();D.14={5B:(v.1I(/.+(?:9y|9x|9w|9v)[\\/: ]([\\d.]+)/)||[])[1],2k:/75/.11(v),2G:/2G/.11(v),1f:/1f/.11(v)&&!/2G/.11(v),42:/42/.11(v)&&!/(9s|75)/.11(v)};J y=D.14.1f?"7o":"72";D.1l({71:!D.14.1f||S.70=="6Z",3X:{"R":"9n","9k":"1F","4i":y,72:y,7o:y,9h:"9f",9e:"9d",9b:"99"}});D.P({6W:H(a){I a.1d},97:H(a){I D.4S(a,"1d")},95:H(a){I D.3a(a,2,"2H")},91:H(a){I D.3a(a,2,"4l")},8Z:H(a){I D.4S(a,"2H")},8X:H(a){I D.4S(a,"4l")},8W:H(a){I D.5v(a.1d.1x,a)},8V:H(a){I D.5v(a.1x)},6Q:H(a){I D.Y(a,"8U")?a.8T||a.8S.S:D.2d(a.3t)}},H(c,d){D.17[c]=H(b){J a=D.2l(7,d);G(b&&1j b=="23")a=D.3g(b,a);I 7.2I(D.4r(a))}});D.P({6P:"3v",8Q:"6F",39:"6E",8P:"5q",8O:"7b"},H(c,b){D.17[c]=H(){J a=19;I 7.P(H(){R(J i=0,K=a.K;i<K;i++)D(a[i])[b](7)})}});D.P({8N:H(a){D.1K(7,a,"");G(7.16==1)7.5l(a)},8M:H(a){D.1F.1e(7,a)},8L:H(a){D.1F.21(7,a)},8K:H(a){D.1F[D.1F.3T(7,a)?"21":"1e"](7,a)},21:H(a){G(!a||D.1E(a,[7]).r.K){D("*",7).1e(7).P(H(){D.W.21(7);D.3b(7)});G(7.1d)7.1d.37(7)}},4E:H(){D(">*",7).21();1B(7.1x)7.37(7.1x)}},H(a,b){D.17[a]=H(){I 7.P(b,19)}});D.P(["6N","4b"],H(i,c){J b=c.3y();D.17[b]=H(a){I 7[0]==1b?D.14.2G&&S.1c["5t"+c]||D.14.2k&&1b["5s"+c]||S.70=="6Z"&&S.1C["5t"+c]||S.1c["5t"+c]:7[0]==S?29.2f(29.2f(S.1c["4y"+c],S.1C["4y"+c]),29.2f(S.1c["2i"+c],S.1C["2i"+c])):a==12?(7.K?D.1g(7[0],b):U):7.1g(b,a.1q==56?a:a+"2X")}});H 25(a,b){I a[0]&&3r(D.2a(a[0],b,M),10)||0}J C=D.14.2k&&3r(D.14.5B)<8H?"(?:[\\\\w*3m-]|\\\\\\\\.)":"(?:[\\\\w\\8F-\\8E*3m-]|\\\\\\\\.)",6L=2B 4v("^>\\\\s*("+C+"+)"),6J=2B 4v("^("+C+"+)(#)("+C+"+)"),6I=2B 4v("^([#.]?)("+C+"*)");D.1l({6H:{"":H(a,i,m){I m[2]=="*"||D.Y(a,m[2])},"#":H(a,i,m){I a.4G("2v")==m[2]},":":{8D:H(a,i,m){I i<m[3]-0},8C:H(a,i,m){I i>m[3]-0},3a:H(a,i,m){I m[3]-0==i},79:H(a,i,m){I m[3]-0==i},3o:H(a,i){I i==0},3S:H(a,i,m,r){I i==r.K-1},6D:H(a,i){I i%2==0},6C:H(a,i){I i%2},"3o-4u":H(a){I a.1d.3H("*")[0]==a},"3S-4u":H(a){I D.3a(a.1d.5T,1,"4l")==a},"8z-4u":H(a){I!D.3a(a.1d.5T,2,"4l")},6W:H(a){I a.1x},4E:H(a){I!a.1x},8y:H(a,i,m){I(a.6O||a.8x||D(a).1r()||"").1h(m[3])>=0},4j:H(a){I"1G"!=a.O&&D.1g(a,"18")!="2F"&&D.1g(a,"5g")!="1G"},1G:H(a){I"1G"==a.O||D.1g(a,"18")=="2F"||D.1g(a,"5g")=="1G"},8w:H(a){I!a.3R},3R:H(a){I a.3R},4J:H(a){I a.4J},2W:H(a){I a.2W||D.1K(a,"2W")},1r:H(a){I"1r"==a.O},5O:H(a){I"5O"==a.O},5L:H(a){I"5L"==a.O},5p:H(a){I"5p"==a.O},3Q:H(a){I"3Q"==a.O},5o:H(a){I"5o"==a.O},6A:H(a){I"6A"==a.O},6z:H(a){I"6z"==a.O},2s:H(a){I"2s"==a.O||D.Y(a,"2s")},4T:H(a){I/4T|2A|6y|2s/i.11(a.Y)},3T:H(a,i,m){I D.2q(m[3],a).K},8t:H(a){I/h\\d/i.11(a.Y)},8s:H(a){I D.3C(D.3O,H(b){I a==b.T}).K}}},6x:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2B 4v("^([:.#]*)("+C+"+)")],3g:H(a,c,b){J d,1t=[];1B(a&&a!=d){d=a;J f=D.1E(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1t=b?c=f.r:D.2R(1t,f.r)}I 1t},2q:H(t,o){G(1j t!="23")I[t];G(o&&o.16!=1&&o.16!=9)I[];o=o||S;J d=[o],2o=[],3S,Y;1B(t&&3S!=t){J r=[];3S=t;t=D.3k(t);J l=Q,3j=6L,m=3j.2D(t);G(m){Y=m[1].2r();R(J i=0;d[i];i++)R(J c=d[i].1x;c;c=c.2H)G(c.16==1&&(Y=="*"||c.Y.2r()==Y))r.1p(c);d=r;t=t.1o(3j,"");G(t.1h(" ")==0)6M;l=M}N{3j=/^([>+~])\\s*(\\w*)/i;G((m=3j.2D(t))!=U){r=[];J k={};Y=m[2].2r();m=m[1];R(J j=0,3i=d.K;j<3i;j++){J n=m=="~"||m=="+"?d[j].2H:d[j].1x;R(;n;n=n.2H)G(n.16==1){J g=D.L(n);G(m=="~"&&k[g])1X;G(!Y||n.Y.2r()==Y){G(m=="~")k[g]=M;r.1p(n)}G(m=="+")1X}}d=r;t=D.3k(t.1o(3j,""));l=M}}G(t&&!l){G(!t.1h(",")){G(o==d[0])d.4s();2o=D.2R(2o,d);r=d=[o];t=" "+t.6v(1,t.K)}N{J h=6J;J m=h.2D(t);G(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2D(t)}m[2]=m[2].1o(/\\\\/g,"");J f=d[d.K-1];G(m[1]=="#"&&f&&f.61&&!D.4n(f)){J p=f.61(m[2]);G((D.14.1f||D.14.2G)&&p&&1j p.2v=="23"&&p.2v!=m[2])p=D(\'[@2v="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.Y(p,m[3]))?[p]:[]}N{R(J i=0;d[i];i++){J a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];G(a=="*"&&d[i].Y.3y()=="49")a="3n";r=D.2R(r,d[i].3H(a))}G(m[1]==".")r=D.5m(r,m[2]);G(m[1]=="#"){J e=[];R(J i=0;r[i];i++)G(r[i].4G("2v")==m[2]){e=[r[i]];1X}r=e}d=r}t=t.1o(h,"")}}G(t){J b=D.1E(t,r);d=r=b.r;t=D.3k(b.t)}}G(t)d=[];G(d&&o==d[0])d.4s();2o=D.2R(2o,d);I 2o},5m:H(r,m,a){m=" "+m+" ";J c=[];R(J i=0;r[i];i++){J b=(" "+r[i].1F+" ").1h(m)>=0;G(!a&&b||a&&!b)c.1p(r[i])}I c},1E:H(t,r,h){J d;1B(t&&t!=d){d=t;J p=D.6x,m;R(J i=0;p[i];i++){m=p[i].2D(t);G(m){t=t.8r(m[0].K);m[2]=m[2].1o(/\\\\/g,"");1X}}G(!m)1X;G(m[1]==":"&&m[2]=="4Y")r=62.11(m[3])?D.1E(m[3],r,M).r:D(r).4Y(m[3]);N G(m[1]==".")r=D.5m(r,m[2],h);N G(m[1]=="["){J g=[],O=m[3];R(J i=0,3i=r.K;i<3i;i++){J a=r[i],z=a[D.3X[m[2]]||m[2]];G(z==U||/5Q|4d|2W/.11(m[2]))z=D.1K(a,m[2])||\'\';G((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1h(m[5])||O=="$="&&z.6v(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1h(m[5])>=0)^h)g.1p(a)}r=g}N G(m[1]==":"&&m[2]=="3a-4u"){J e={},g=[],11=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2D(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.11(m[3])&&"8q+"+m[3]||m[3]),3o=(11[1]+(11[2]||1))-0,d=11[3]-0;R(J i=0,3i=r.K;i<3i;i++){J j=r[i],1d=j.1d,2v=D.L(1d);G(!e[2v]){J c=1;R(J n=1d.1x;n;n=n.2H)G(n.16==1)n.4q=c++;e[2v]=M}J b=Q;G(3o==0){G(j.4q==d)b=M}N G((j.4q-d)%3o==0&&(j.4q-d)/3o>=0)b=M;G(b^h)g.1p(j)}r=g}N{J f=D.6H[m[1]];G(1j f=="49")f=f[m[2]];G(1j f=="23")f=6u("Q||H(a,i){I "+f+";}");r=D.3C(r,H(a,i){I f(a,i,m,r)},h)}}I{r:r,t:t}},4S:H(b,c){J a=[],1t=b[c];1B(1t&&1t!=S){G(1t.16==1)a.1p(1t);1t=1t[c]}I a},3a:H(a,e,c,b){e=e||1;J d=0;R(;a;a=a[c])G(a.16==1&&++d==e)1X;I a},5v:H(n,a){J r=[];R(;n;n=n.2H){G(n.16==1&&n!=a)r.1p(n)}I r}});D.W={1e:H(f,i,g,e){G(f.16==3||f.16==8)I;G(D.14.1f&&f.4I)f=1b;G(!g.24)g.24=7.24++;G(e!=12){J h=g;g=7.3M(h,H(){I h.1w(7,19)});g.L=e}J j=D.L(f,"3w")||D.L(f,"3w",{}),1H=D.L(f,"1H")||D.L(f,"1H",H(){G(1j D!="12"&&!D.W.5k)I D.W.1H.1w(19.3L.T,19)});1H.T=f;D.P(i.1R(/\\s+/),H(c,b){J a=b.1R(".");b=a[0];g.O=a[1];J d=j[b];G(!d){d=j[b]={};G(!D.W.2t[b]||D.W.2t[b].4p.1k(f)===Q){G(f.3K)f.3K(b,1H,Q);N G(f.6t)f.6t("4o"+b,1H)}}d[g.24]=g;D.W.26[b]=M});f=U},24:1,26:{},21:H(e,h,f){G(e.16==3||e.16==8)I;J i=D.L(e,"3w"),1L,5i;G(i){G(h==12||(1j h=="23"&&h.8p(0)=="."))R(J g 1n i)7.21(e,g+(h||""));N{G(h.O){f=h.2y;h=h.O}D.P(h.1R(/\\s+/),H(b,a){J c=a.1R(".");a=c[0];G(i[a]){G(f)2U i[a][f.24];N R(f 1n i[a])G(!c[1]||i[a][f].O==c[1])2U i[a][f];R(1L 1n i[a])1X;G(!1L){G(!D.W.2t[a]||D.W.2t[a].4A.1k(e)===Q){G(e.6p)e.6p(a,D.L(e,"1H"),Q);N G(e.6n)e.6n("4o"+a,D.L(e,"1H"))}1L=U;2U i[a]}}})}R(1L 1n i)1X;G(!1L){J d=D.L(e,"1H");G(d)d.T=U;D.3b(e,"3w");D.3b(e,"1H")}}},1P:H(h,c,f,g,i){c=D.2d(c);G(h.1h("!")>=0){h=h.3s(0,-1);J a=M}G(!f){G(7.26[h])D("*").1e([1b,S]).1P(h,c)}N{G(f.16==3||f.16==8)I 12;J b,1L,17=D.1D(f[h]||U),W=!c[0]||!c[0].32;G(W){c.6h({O:h,2J:f,32:H(){},3J:H(){},4C:1z()});c[0][E]=M}c[0].O=h;G(a)c[0].6m=M;J d=D.L(f,"1H");G(d)b=d.1w(f,c);G((!17||(D.Y(f,\'a\')&&h=="4V"))&&f["4o"+h]&&f["4o"+h].1w(f,c)===Q)b=Q;G(W)c.4s();G(i&&D.1D(i)){1L=i.1w(f,b==U?c:c.7d(b));G(1L!==12)b=1L}G(17&&g!==Q&&b!==Q&&!(D.Y(f,\'a\')&&h=="4V")){7.5k=M;1U{f[h]()}1V(e){}}7.5k=Q}I b},1H:H(b){J a,1L,38,5f,4m;b=19[0]=D.W.6l(b||1b.W);38=b.O.1R(".");b.O=38[0];38=38[1];5f=!38&&!b.6m;4m=(D.L(7,"3w")||{})[b.O];R(J j 1n 4m){J c=4m[j];G(5f||c.O==38){b.2y=c;b.L=c.L;1L=c.1w(7,19);G(a!==Q)a=1L;G(1L===Q){b.32();b.3J()}}}I a},6l:H(b){G(b[E]==M)I b;J d=b;b={8o:d};J c="8n 8m 8l 8k 2s 8j 47 5d 6j 5E 8i L 8h 8g 4K 2y 5a 59 8e 8b 58 6f 8a 88 4k 87 86 84 6d 2J 4C 6c O 82 81 35".1R(" ");R(J i=c.K;i;i--)b[c[i]]=d[c[i]];b[E]=M;b.32=H(){G(d.32)d.32();d.80=Q};b.3J=H(){G(d.3J)d.3J();d.7Z=M};b.4C=b.4C||1z();G(!b.2J)b.2J=b.6d||S;G(b.2J.16==3)b.2J=b.2J.1d;G(!b.4k&&b.4K)b.4k=b.4K==b.2J?b.6c:b.4K;G(b.58==U&&b.5d!=U){J a=S.1C,1c=S.1c;b.58=b.5d+(a&&a.2e||1c&&1c.2e||0)-(a.6b||0);b.6f=b.6j+(a&&a.2c||1c&&1c.2c||0)-(a.6a||0)}G(!b.35&&((b.47||b.47===0)?b.47:b.5a))b.35=b.47||b.5a;G(!b.59&&b.5E)b.59=b.5E;G(!b.35&&b.2s)b.35=(b.2s&1?1:(b.2s&2?3:(b.2s&4?2:0)));I b},3M:H(a,b){b.24=a.24=a.24||b.24||7.24++;I b},2t:{27:{4p:H(){55();I},4A:H(){I}},3D:{4p:H(){G(D.14.1f)I Q;D(7).2O("53",D.W.2t.3D.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("53",D.W.2t.3D.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3D";I D.W.1H.1w(7,19)}},3N:{4p:H(){G(D.14.1f)I Q;D(7).2O("51",D.W.2t.3N.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("51",D.W.2t.3N.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3N";I D.W.1H.1w(7,19)}}}};D.17.1l({2O:H(c,a,b){I c=="4X"?7.2V(c,a,b):7.P(H(){D.W.1e(7,c,b||a,b&&a)})},2V:H(d,b,c){J e=D.W.3M(c||b,H(a){D(7).4e(a,e);I(c||b).1w(7,19)});I 7.P(H(){D.W.1e(7,d,e,c&&b)})},4e:H(a,b){I 7.P(H(){D.W.21(7,a,b)})},1P:H(c,a,b){I 7.P(H(){D.W.1P(c,a,7,M,b)})},5C:H(c,a,b){I 7[0]&&D.W.1P(c,a,7[0],Q,b)},2m:H(b){J c=19,i=1;1B(i<c.K)D.W.3M(b,c[i++]);I 7.4V(D.W.3M(b,H(a){7.4Z=(7.4Z||0)%i;a.32();I c[7.4Z++].1w(7,19)||Q}))},7X:H(a,b){I 7.2O(\'3D\',a).2O(\'3N\',b)},27:H(a){55();G(D.2Q)a.1k(S,D);N D.3A.1p(H(){I a.1k(7,D)});I 7}});D.1l({2Q:Q,3A:[],27:H(){G(!D.2Q){D.2Q=M;G(D.3A){D.P(D.3A,H(){7.1k(S)});D.3A=U}D(S).5C("27")}}});J x=Q;H 55(){G(x)I;x=M;G(S.3K&&!D.14.2G)S.3K("69",D.27,Q);G(D.14.1f&&1b==1S)(H(){G(D.2Q)I;1U{S.1C.7V("1A")}1V(3e){3B(19.3L,0);I}D.27()})();G(D.14.2G)S.3K("69",H(){G(D.2Q)I;R(J i=0;i<S.4W.K;i++)G(S.4W[i].3R){3B(19.3L,0);I}D.27()},Q);G(D.14.2k){J a;(H(){G(D.2Q)I;G(S.3f!="68"&&S.3f!="1J"){3B(19.3L,0);I}G(a===12)a=D("V, 7A[7U=7S]").K;G(S.4W.K!=a){3B(19.3L,0);I}D.27()})()}D.W.1e(1b,"43",D.27)}D.P(("7R,7Q,43,85,4y,4X,4V,7P,"+"7O,7N,89,53,51,7M,2A,"+"5o,7L,7K,8d,3e").1R(","),H(i,b){D.17[b]=H(a){I a?7.2O(b,a):7.1P(b)}});J F=H(a,c){J b=a.4k;1B(b&&b!=c)1U{b=b.1d}1V(3e){b=c}I b==c};D(1b).2O("4X",H(){D("*").1e(S).4e()});D.17.1l({67:D.17.43,43:H(g,d,c){G(1j g!=\'23\')I 7.67(g);J e=g.1h(" ");G(e>=0){J i=g.3s(e,g.K);g=g.3s(0,e)}c=c||H(){};J f="2P";G(d)G(D.1D(d)){c=d;d=U}N{d=D.3n(d);f="6g"}J h=7;D.3Y({1a:g,O:f,1O:"2K",L:d,1J:H(a,b){G(b=="1W"||b=="7J")h.2K(i?D("<1v/>").3v(a.4U.1o(/<1m(.|\\s)*?\\/1m>/g,"")).2q(i):a.4U);h.P(c,[a.4U,b,a])}});I 7},aL:H(){I D.3n(7.7I())},7I:H(){I 7.2l(H(){I D.Y(7,"3V")?D.2d(7.aH):7}).1E(H(){I 7.34&&!7.3R&&(7.4J||/2A|6y/i.11(7.Y)||/1r|1G|3Q/i.11(7.O))}).2l(H(i,c){J b=D(7).6e();I b==U?U:b.1q==2p?D.2l(b,H(a,i){I{34:c.34,2x:a}}):{34:c.34,2x:b}}).3p()}});D.P("7H,7G,7F,7D,7C,7B".1R(","),H(i,o){D.17[o]=H(f){I 7.2O(o,f)}});J B=1z();D.1l({3p:H(d,b,a,c){G(D.1D(b)){a=b;b=U}I D.3Y({O:"2P",1a:d,L:b,1W:a,1O:c})},aE:H(b,a){I D.3p(b,U,a,"1m")},aD:H(c,b,a){I D.3p(c,b,a,"3z")},aC:H(d,b,a,c){G(D.1D(b)){a=b;b={}}I D.3Y({O:"6g",1a:d,L:b,1W:a,1O:c})},aA:H(a){D.1l(D.60,a)},60:{1a:5Z.5Q,26:M,O:"2P",2T:0,7z:"4R/x-ax-3V-aw",7x:M,31:M,L:U,5Y:U,3Q:U,4Q:{2N:"4R/2N, 1r/2N",2K:"1r/2K",1m:"1r/4t, 4R/4t",3z:"4R/3z, 1r/4t",1r:"1r/as",4w:"*/*"}},4z:{},3Y:H(s){s=D.1l(M,s,D.1l(M,{},D.60,s));J g,2Z=/=\\?(&|$)/g,1u,L,O=s.O.2r();G(s.L&&s.7x&&1j s.L!="23")s.L=D.3n(s.L);G(s.1O=="4P"){G(O=="2P"){G(!s.1a.1I(2Z))s.1a+=(s.1a.1I(/\\?/)?"&":"?")+(s.4P||"7u")+"=?"}N G(!s.L||!s.L.1I(2Z))s.L=(s.L?s.L+"&":"")+(s.4P||"7u")+"=?";s.1O="3z"}G(s.1O=="3z"&&(s.L&&s.L.1I(2Z)||s.1a.1I(2Z))){g="4P"+B++;G(s.L)s.L=(s.L+"").1o(2Z,"="+g+"$1");s.1a=s.1a.1o(2Z,"="+g+"$1");s.1O="1m";1b[g]=H(a){L=a;1W();1J();1b[g]=12;1U{2U 1b[g]}1V(e){}G(i)i.37(h)}}G(s.1O=="1m"&&s.1Y==U)s.1Y=Q;G(s.1Y===Q&&O=="2P"){J j=1z();J k=s.1a.1o(/(\\?|&)3m=.*?(&|$)/,"$ap="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1I(/\\?/)?"&":"?")+"3m="+j:"")}G(s.L&&O=="2P"){s.1a+=(s.1a.1I(/\\?/)?"&":"?")+s.L;s.L=U}G(s.26&&!D.4O++)D.W.1P("7H");J n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;G(s.1O=="1m"&&O=="2P"&&n.11(s.1a)&&n.2D(s.1a)[1]!=5Z.al){J i=S.3H("6w")[0];J h=S.3h("1m");h.4d=s.1a;G(s.7t)h.aj=s.7t;G(!g){J l=Q;h.ah=h.ag=H(){G(!l&&(!7.3f||7.3f=="68"||7.3f=="1J")){l=M;1W();1J();i.37(h)}}}i.3U(h);I 12}J m=Q;J c=1b.7s?2B 7s("ae.ac"):2B 7r();G(s.5Y)c.6R(O,s.1a,s.31,s.5Y,s.3Q);N c.6R(O,s.1a,s.31);1U{G(s.L)c.4B("ab-aa",s.7z);G(s.5S)c.4B("a9-5R-a8",D.4z[s.1a]||"a7, a6 a5 a4 5N:5N:5N a2");c.4B("X-9Z-9Y","7r");c.4B("9W",s.1O&&s.4Q[s.1O]?s.4Q[s.1O]+", */*":s.4Q.4w)}1V(e){}G(s.7m&&s.7m(c,s)===Q){s.26&&D.4O--;c.7l();I Q}G(s.26)D.W.1P("7B",[c,s]);J d=H(a){G(!m&&c&&(c.3f==4||a=="2T")){m=M;G(f){7k(f);f=U}1u=a=="2T"&&"2T"||!D.7j(c)&&"3e"||s.5S&&D.7h(c,s.1a)&&"7J"||"1W";G(1u=="1W"){1U{L=D.6X(c,s.1O,s.9S)}1V(e){1u="5J"}}G(1u=="1W"){J b;1U{b=c.5I("7g-5R")}1V(e){}G(s.5S&&b)D.4z[s.1a]=b;G(!g)1W()}N D.5H(s,c,1u);1J();G(s.31)c=U}};G(s.31){J f=4I(d,13);G(s.2T>0)3B(H(){G(c){c.7l();G(!m)d("2T")}},s.2T)}1U{c.9P(s.L)}1V(e){D.5H(s,c,U,e)}G(!s.31)d();H 1W(){G(s.1W)s.1W(L,1u);G(s.26)D.W.1P("7C",[c,s])}H 1J(){G(s.1J)s.1J(c,1u);G(s.26)D.W.1P("7F",[c,s]);G(s.26&&!--D.4O)D.W.1P("7G")}I c},5H:H(s,a,b,e){G(s.3e)s.3e(a,b,e);G(s.26)D.W.1P("7D",[a,s,e])},4O:0,7j:H(a){1U{I!a.1u&&5Z.9O=="5p:"||(a.1u>=7e&&a.1u<9N)||a.1u==7c||a.1u==9K||D.14.2k&&a.1u==12}1V(e){}I Q},7h:H(a,c){1U{J b=a.5I("7g-5R");I a.1u==7c||b==D.4z[c]||D.14.2k&&a.1u==12}1V(e){}I Q},6X:H(a,c,b){J d=a.5I("9J-O"),2N=c=="2N"||!c&&d&&d.1h("2N")>=0,L=2N?a.9I:a.4U;G(2N&&L.1C.2j=="5J")7p"5J";G(b)L=b(L,c);G(c=="1m")D.5u(L);G(c=="3z")L=6u("("+L+")");I L},3n:H(a){J s=[];G(a.1q==2p||a.5w)D.P(a,H(){s.1p(3u(7.34)+"="+3u(7.2x))});N R(J j 1n a)G(a[j]&&a[j].1q==2p)D.P(a[j],H(){s.1p(3u(j)+"="+3u(7))});N s.1p(3u(j)+"="+3u(D.1D(a[j])?a[j]():a[j]));I s.6s("&").1o(/%20/g,"+")}});D.17.1l({1N:H(c,b){I c?7.2g({1Z:"1N",2h:"1N",1y:"1N"},c,b):7.1E(":1G").P(H(){7.V.18=7.5D||"";G(D.1g(7,"18")=="2F"){J a=D("<"+7.2j+" />").6P("1c");7.V.18=a.1g("18");G(7.V.18=="2F")7.V.18="3I";a.21()}}).3l()},1M:H(b,a){I b?7.2g({1Z:"1M",2h:"1M",1y:"1M"},b,a):7.1E(":4j").P(H(){7.5D=7.5D||D.1g(7,"18");7.V.18="2F"}).3l()},78:D.17.2m,2m:H(a,b){I D.1D(a)&&D.1D(b)?7.78.1w(7,19):a?7.2g({1Z:"2m",2h:"2m",1y:"2m"},a,b):7.P(H(){D(7)[D(7).3F(":1G")?"1N":"1M"]()})},9G:H(b,a){I 7.2g({1Z:"1N"},b,a)},9F:H(b,a){I 7.2g({1Z:"1M"},b,a)},9E:H(b,a){I 7.2g({1Z:"2m"},b,a)},9D:H(b,a){I 7.2g({1y:"1N"},b,a)},9M:H(b,a){I 7.2g({1y:"1M"},b,a)},9C:H(c,a,b){I 7.2g({1y:a},c,b)},2g:H(k,j,i,g){J h=D.77(j,i,g);I 7[h.36===Q?"P":"36"](H(){G(7.16!=1)I Q;J f=D.1l({},h),p,1G=D(7).3F(":1G"),46=7;R(p 1n k){G(k[p]=="1M"&&1G||k[p]=="1N"&&!1G)I f.1J.1k(7);G(p=="1Z"||p=="2h"){f.18=D.1g(7,"18");f.33=7.V.33}}G(f.33!=U)7.V.33="1G";f.45=D.1l({},k);D.P(k,H(c,a){J e=2B D.28(46,f,c);G(/2m|1N|1M/.11(a))e[a=="2m"?1G?"1N":"1M":a](k);N{J b=a.6r().1I(/^([+-]=)?([\\d+-.]+)(.*)$/),2b=e.1t(M)||0;G(b){J d=3d(b[2]),2M=b[3]||"2X";G(2M!="2X"){46.V[c]=(d||1)+2M;2b=((d||1)/e.1t(M))*2b;46.V[c]=2b+2M}G(b[1])d=((b[1]=="-="?-1:1)*d)+2b;e.3G(2b,d,2M)}N e.3G(2b,a,"")}});I M})},36:H(a,b){G(D.1D(a)||(a&&a.1q==2p)){b=a;a="28"}G(!a||(1j a=="23"&&!b))I A(7[0],a);I 7.P(H(){G(b.1q==2p)A(7,a,b);N{A(7,a).1p(b);G(A(7,a).K==1)b.1k(7)}})},9X:H(b,c){J a=D.3O;G(b)7.36([]);7.P(H(){R(J i=a.K-1;i>=0;i--)G(a[i].T==7){G(c)a[i](M);a.7n(i,1)}});G(!c)7.5A();I 7}});J A=H(b,c,a){G(b){c=c||"28";J q=D.L(b,c+"36");G(!q||a)q=D.L(b,c+"36",D.2d(a))}I q};D.17.5A=H(a){a=a||"28";I 7.P(H(){J q=A(7,a);q.4s();G(q.K)q[0].1k(7)})};D.1l({77:H(b,a,c){J d=b&&b.1q==a0?b:{1J:c||!c&&a||D.1D(b)&&b,2u:b,41:c&&a||a&&a.1q!=9t&&a};d.2u=(d.2u&&d.2u.1q==4L?d.2u:D.28.5K[d.2u])||D.28.5K.74;d.5M=d.1J;d.1J=H(){G(d.36!==Q)D(7).5A();G(D.1D(d.5M))d.5M.1k(7)};I d},41:{73:H(p,n,b,a){I b+a*p},5P:H(p,n,b,a){I((-29.9r(p*29.9q)/2)+0.5)*a+b}},3O:[],48:U,28:H(b,c,a){7.15=c;7.T=b;7.1i=a;G(!c.3Z)c.3Z={}}});D.28.44={4D:H(){G(7.15.2Y)7.15.2Y.1k(7.T,7.1z,7);(D.28.2Y[7.1i]||D.28.2Y.4w)(7);G(7.1i=="1Z"||7.1i=="2h")7.T.V.18="3I"},1t:H(a){G(7.T[7.1i]!=U&&7.T.V[7.1i]==U)I 7.T[7.1i];J r=3d(D.1g(7.T,7.1i,a));I r&&r>-9p?r:3d(D.2a(7.T,7.1i))||0},3G:H(c,b,d){7.5V=1z();7.2b=c;7.3l=b;7.2M=d||7.2M||"2X";7.1z=7.2b;7.2S=7.4N=0;7.4D();J e=7;H t(a){I e.2Y(a)}t.T=7.T;D.3O.1p(t);G(D.48==U){D.48=4I(H(){J a=D.3O;R(J i=0;i<a.K;i++)G(!a[i]())a.7n(i--,1);G(!a.K){7k(D.48);D.48=U}},13)}},1N:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1N=M;7.3G(0,7.1t());G(7.1i=="2h"||7.1i=="1Z")7.T.V[7.1i]="9m";D(7.T).1N()},1M:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1M=M;7.3G(7.1t(),0)},2Y:H(a){J t=1z();G(a||t>7.15.2u+7.5V){7.1z=7.3l;7.2S=7.4N=1;7.4D();7.15.45[7.1i]=M;J b=M;R(J i 1n 7.15.45)G(7.15.45[i]!==M)b=Q;G(b){G(7.15.18!=U){7.T.V.33=7.15.33;7.T.V.18=7.15.18;G(D.1g(7.T,"18")=="2F")7.T.V.18="3I"}G(7.15.1M)7.T.V.18="2F";G(7.15.1M||7.15.1N)R(J p 1n 7.15.45)D.1K(7.T.V,p,7.15.3Z[p])}G(b)7.15.1J.1k(7.T);I Q}N{J n=t-7.5V;7.4N=n/7.15.2u;7.2S=D.41[7.15.41||(D.41.5P?"5P":"73")](7.4N,n,0,1,7.15.2u);7.1z=7.2b+((7.3l-7.2b)*7.2S);7.4D()}I M}};D.1l(D.28,{5K:{9l:9j,9i:7e,74:9g},2Y:{2e:H(a){a.T.2e=a.1z},2c:H(a){a.T.2c=a.1z},1y:H(a){D.1K(a.T.V,"1y",a.1z)},4w:H(a){a.T.V[a.1i]=a.1z+a.2M}}});D.17.2i=H(){J b=0,1S=0,T=7[0],3q;G(T)ao(D.14){J d=T.1d,4a=T,1s=T.1s,1Q=T.2z,5U=2k&&3r(5B)<9c&&!/9a/i.11(v),1g=D.2a,3c=1g(T,"30")=="3c";G(T.7y){J c=T.7y();1e(c.1A+29.2f(1Q.1C.2e,1Q.1c.2e),c.1S+29.2f(1Q.1C.2c,1Q.1c.2c));1e(-1Q.1C.6b,-1Q.1C.6a)}N{1e(T.5X,T.5W);1B(1s){1e(1s.5X,1s.5W);G(42&&!/^t(98|d|h)$/i.11(1s.2j)||2k&&!5U)2C(1s);G(!3c&&1g(1s,"30")=="3c")3c=M;4a=/^1c$/i.11(1s.2j)?4a:1s;1s=1s.1s}1B(d&&d.2j&&!/^1c|2K$/i.11(d.2j)){G(!/^96|1T.*$/i.11(1g(d,"18")))1e(-d.2e,-d.2c);G(42&&1g(d,"33")!="4j")2C(d);d=d.1d}G((5U&&(3c||1g(4a,"30")=="5x"))||(42&&1g(4a,"30")!="5x"))1e(-1Q.1c.5X,-1Q.1c.5W);G(3c)1e(29.2f(1Q.1C.2e,1Q.1c.2e),29.2f(1Q.1C.2c,1Q.1c.2c))}3q={1S:1S,1A:b}}H 2C(a){1e(D.2a(a,"6V",M),D.2a(a,"6U",M))}H 1e(l,t){b+=3r(l,10)||0;1S+=3r(t,10)||0}I 3q};D.17.1l({30:H(){J a=0,1S=0,3q;G(7[0]){J b=7.1s(),2i=7.2i(),4c=/^1c|2K$/i.11(b[0].2j)?{1S:0,1A:0}:b.2i();2i.1S-=25(7,\'94\');2i.1A-=25(7,\'aF\');4c.1S+=25(b,\'6U\');4c.1A+=25(b,\'6V\');3q={1S:2i.1S-4c.1S,1A:2i.1A-4c.1A}}I 3q},1s:H(){J a=7[0].1s;1B(a&&(!/^1c|2K$/i.11(a.2j)&&D.1g(a,\'30\')==\'93\'))a=a.1s;I D(a)}});D.P([\'5e\',\'5G\'],H(i,b){J c=\'4y\'+b;D.17[c]=H(a){G(!7[0])I;I a!=12?7.P(H(){7==1b||7==S?1b.92(!i?a:D(1b).2e(),i?a:D(1b).2c()):7[c]=a}):7[0]==1b||7[0]==S?46[i?\'aI\':\'aJ\']||D.71&&S.1C[c]||S.1c[c]:7[0][c]}});D.P(["6N","4b"],H(i,b){J c=i?"5e":"5G",4f=i?"6k":"6i";D.17["5s"+b]=H(){I 7[b.3y()]()+25(7,"57"+c)+25(7,"57"+4f)};D.17["90"+b]=H(a){I 7["5s"+b]()+25(7,"2C"+c+"4b")+25(7,"2C"+4f+"4b")+(a?25(7,"6S"+c)+25(7,"6S"+4f):0)}})})();',62,669,'|||||||this|||||||||||||||||||||||||||||||||||if|function|return|var|length|data|true|else|type|each|false|for|document|elem|null|style|event||nodeName|||test|undefined||browser|options|nodeType|fn|display|arguments|url|window|body|parentNode|add|msie|css|indexOf|prop|typeof|call|extend|script|in|replace|push|constructor|text|offsetParent|cur|status|div|apply|firstChild|opacity|now|left|while|documentElement|isFunction|filter|className|hidden|handle|match|complete|attr|ret|hide|show|dataType|trigger|doc|split|top|table|try|catch|success|break|cache|height||remove|tbody|string|guid|num|global|ready|fx|Math|curCSS|start|scrollTop|makeArray|scrollLeft|max|animate|width|offset|tagName|safari|map|toggle||done|Array|find|toUpperCase|button|special|duration|id|copy|value|handler|ownerDocument|select|new|border|exec|stack|none|opera|nextSibling|pushStack|target|html|inArray|unit|xml|bind|GET|isReady|merge|pos|timeout|delete|one|selected|px|step|jsre|position|async|preventDefault|overflow|name|which|queue|removeChild|namespace|insertBefore|nth|removeData|fixed|parseFloat|error|readyState|multiFilter|createElement|rl|re|trim|end|_|param|first|get|results|parseInt|slice|childNodes|encodeURIComponent|append|events|elems|toLowerCase|json|readyList|setTimeout|grep|mouseenter|color|is|custom|getElementsByTagName|block|stopPropagation|addEventListener|callee|proxy|mouseleave|timers|defaultView|password|disabled|last|has|appendChild|form|domManip|props|ajax|orig|set|easing|mozilla|load|prototype|curAnim|self|charCode|timerId|object|offsetChild|Width|parentOffset|src|unbind|br|currentStyle|clean|float|visible|relatedTarget|previousSibling|handlers|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|child|RegExp|_default|deep|scroll|lastModified|teardown|setRequestHeader|timeStamp|update|empty|tr|getAttribute|innerHTML|setInterval|checked|fromElement|Number|jQuery|state|active|jsonp|accepts|application|dir|input|responseText|click|styleSheets|unload|not|lastToggle|outline|mouseout|getPropertyValue|mouseover|getComputedStyle|bindReady|String|padding|pageX|metaKey|keyCode|getWH|andSelf|clientX|Left|all|visibility|container|index|init|triggered|removeAttribute|classFilter|prevObject|submit|file|after|windowData|inner|client|globalEval|sibling|jquery|absolute|clone|wrapAll|dequeue|version|triggerHandler|oldblock|ctrlKey|createTextNode|Top|handleError|getResponseHeader|parsererror|speeds|checkbox|old|00|radio|swing|href|Modified|ifModified|lastChild|safari2|startTime|offsetTop|offsetLeft|username|location|ajaxSettings|getElementById|isSimple|values|selectedIndex|runtimeStyle|rsLeft|_load|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|val|pageY|POST|unshift|Bottom|clientY|Right|fix|exclusive|detachEvent|cloneNode|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|image|zoom|odd|even|before|prepend|exclude|expr|quickClass|quickID|uuid|quickChild|continue|Height|textContent|appendTo|contents|open|margin|evalScript|borderTopWidth|borderLeftWidth|parent|httpData|setArray|CSS1Compat|compatMode|boxModel|cssFloat|linear|def|webkit|nodeValue|speed|_toggle|eq|100|replaceWith|304|concat|200|alpha|Last|httpNotModified|getAttributeNode|httpSuccess|clearInterval|abort|beforeSend|splice|styleFloat|throw|colgroup|XMLHttpRequest|ActiveXObject|scriptCharset|callback|fieldset|multiple|processData|getBoundingClientRect|contentType|link|ajaxSend|ajaxSuccess|ajaxError|col|ajaxComplete|ajaxStop|ajaxStart|serializeArray|notmodified|keypress|keydown|change|mouseup|mousedown|dblclick|focus|blur|stylesheet|hasClass|rel|doScroll|black|hover|solid|cancelBubble|returnValue|wheelDelta|view|round|shiftKey|resize|screenY|screenX|relatedNode|mousemove|prevValue|originalTarget|offsetHeight|keyup|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|Date|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|outer|prev|scrollTo|static|marginTop|next|inline|parents|able|cellSpacing|adobeair|cellspacing|522|maxLength|maxlength|readOnly|400|readonly|fast|600|class|slow|1px|htmlFor|reverse|10000|PI|cos|compatible|Function|setData|ie|ra|it|rv|getData|userAgent|navigator|fadeTo|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|fadeOut|300|protocol|send|setAttribute|option|dataFilter|cssText|changed|be|Accept|stop|With|Requested|Object|can|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|XMLHTTP|th|Microsoft|td|onreadystatechange|onload|cap|charset|colg|host|tfoot|specified|with|1_|thead|leg|plain|attributes|opt|embed|urlencoded|www|area|hr|ajaxSetup|meta|post|getJSON|getScript|marginLeft|img|elements|pageYOffset|pageXOffset|abbr|serialize|pixelLeft'.split('|'),0,{}));var Drupal=Drupal||{};Drupal.jsEnabled=document.getElementsByTagName&&document.createElement&&document.createTextNode&&document.documentElement&&document.getElementById;Drupal.extend=function(obj){for(var i in obj){if(this[i]){Drupal.extend.apply(this[i],[obj[i]]);}
else{this[i]=obj[i];}}};Drupal.redirectFormButton=function(uri,button,handler){button.onmouseover=button.onfocus=function(){button.onclick=function(){Drupal.createIframe();var button=this;var action=button.form.action;var target=button.form.target;this.form.action=uri;this.form.target='redirect-target';handler.onsubmit();window.iframeHandler=function(){var iframe=$('#redirect-target').get(0);button.form.action=action;button.form.target=target;try{response=(iframe.contentWindow||iframe.contentDocument||iframe).document.body.innerHTML;response=response.replace(/[\f\n\r\t]/g,' ');if(window.opera){response=response.replace(/&quot;/g,'"');}}
catch(e){response=null;}
response=Drupal.parseJson(response);if(response.status==0){handler.onerror(response.data);return;}
handler.oncomplete(response.data);return true;}
return true;}}
button.onmouseout=button.onblur=function(){button.onclick=null;}};Drupal.absolutePosition=function(el){var sLeft=0,sTop=0;var isDiv=/^div$/i.test(el.tagName);if(isDiv&&el.scrollLeft){sLeft=el.scrollLeft;}
if(isDiv&&el.scrollTop){sTop=el.scrollTop;}
var r={x:el.offsetLeft-sLeft,y:el.offsetTop-sTop};if(el.offsetParent){var tmp=Drupal.absolutePosition(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}
return r;};Drupal.dimensions=function(el){return{width:el.offsetWidth,height:el.offsetHeight};};Drupal.mousePosition=function(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop};};Drupal.parseJson=function(data){if((data.substring(0,1)!='{')&&(data.substring(0,1)!='[')){return{status:0,data:data.length?data:'Unspecified error'};}
return eval('('+data+');');};Drupal.createIframe=function(){if($('#redirect-holder').size()){return;}
window.iframeHandler=function(){};var div=document.createElement('div');div.id='redirect-holder';$(div).html('<iframe name="redirect-target" id="redirect-target" class="redirect" onload="window.iframeHandler();"></iframe>');var iframe=div.firstChild;$(iframe).attr({name:'redirect-target',id:'redirect-target'}).css({position:'absolute',height:'1px',width:'1px',visibility:'hidden'});$('body').append(div);};Drupal.deleteIframe=function(){$('#redirect-holder').remove();};Drupal.freezeHeight=function(){Drupal.unfreezeHeight();var div=document.createElement('div');$(div).css({position:'absolute',top:'0px',left:'0px',width:'1px',height:$('body').css('height')}).attr('id','freeze-height');$('body').append(div);};Drupal.unfreezeHeight=function(){$('#freeze-height').remove();};Drupal.encodeURIComponent=function(item,uri){uri=uri||location.href;item=encodeURIComponent(item).replace('%2F','/');return uri.indexOf('?q=')?item:item.replace('%26','%2526').replace('%23','%2523');};if(Drupal.jsEnabled){document.documentElement.className='js';};page_loading=true;corner2=function(t,o){cnt=(o+'').replace(/[^\d]/g,'');size='normal'
if(cnt<5)size='small';if(cnt>8)size='big';Nifty(t.tagName+'#'+t.id,size);};function in_array(needle,haystack){for(var i=0;i<haystack.length;i++){if(haystack[i]==needle){return i;}}
return-1;}
function array_remove(idx,haystack)
{haystack.splice(idx,1)}
function create_hidden(_name,_id,_value,attributes)
{var hid=document.createElement('input');hid.type='hidden';hid.name=_name;hid.id=_id;hid.value=_value;if(attributes)
$(hid).attr(attributes);return hid;}
function RC_TB_open(title,action){TB_show(title,action,false);$("#TB_closeWindowButton").remove();my_TB_remove=TB_remove;TB_remove=function(){return false;};$('#TB_overlay')[0].onclick=function(){return false;};}
function RC_TB_remove(){TB_remove=my_TB_remove;my_TB_remove();return false;}
function rc_confirm(title,text,ok_callback){body=text;var args='';for(var i=3;arguments.length;i++){if(i==3){args=arguments[3]}else
args+=','+arguments[i]}
confirm_object=callback_arg;body+="<br><br><br>";body+='<input id="confirmed" type=button value="yes" onclick="RC_TB_remove();window[\''+ok_callback+'\']('+args+')">';body+='<input type=button value="no" onclick="RC_TB_remove();">';$("#Confirm").html(body);var action='#TB_inline?height=100&width=300&inlineId=Confirm';RC_TB_open(title,action);}
function clog(){caller_name=(clog.caller+'').split(' ')[1].replace(/\(.*/,'');if($.browser.mozilla&&typeof console!="undefined"){console.log(caller_name,arguments);}}
function MultiSelector(list_target,max)
{this.list_target=list_target;this.count=0;this.id=0;if(max){this.max=max;}else{this.max=-1;};this.addElement=function(element)
{if(element.tagName=='INPUT'&&element.type=='file')
{errMsg='';element.name='files[file_'+this.id+"]";this.id++;element.multi_selector=this;element.onchange=function()
{tmp=element.value.split('.');ext=tmp[(tmp.length)-1].toLowerCase();if(errMsg)
{var new_element=document.createElement('input');new_element.type='file';this.parentNode.insertBefore(new_element,this);this.multi_selector.addElement(new_element);this.parentNode.removeChild(this);return;}
var new_element=document.createElement('input');new_element.type='file';this.parentNode.insertBefore(new_element,this);this.multi_selector.addElement(new_element);this.multi_selector.addListRow(this);$(this).css('display','none');};this.current_element=element;}else{alert('Error: not a file input element');};};this.addListRow=function(element){var new_row=document.createElement('div');new_row.className='mediaserver_file_list_item';var new_row_button=document.createElement('a');new_row_button.innerHTML=' (X)';new_row.element=element;new_row_button.onclick=function(){this.parentNode.element.parentNode.removeChild(this.parentNode.element);this.parentNode.element.multi_selector.count--;this.parentNode.element.multi_selector.current_element.disabled=false;this.parentNode.parentNode.removeChild(this.parentNode);return false;};this.count++;if(this.max!=-1&&this.count>=this.max)
{this.current_element.disabled=true;};new_row.innerHTML=element.value;new_row.appendChild(new_row_button);this.list_target.appendChild(new_row);};this.reset=function(){$('a',this.list_target).each(function(){this.onclick()});}};function change_div(div,navigate){if(navigate=='back'){new_page=div-1;}else{new_page=div+1;}
document.getElementById('form_'+div).style.display='none';document.getElementById('form_'+new_page).style.display='block';}
function change_tags_type(tag_type,child_count,tid){document.getElementById("tag_type").value=tag_type;document.getElementById("tag_type_tid").value=tid;if(child_count>1){$("#tag_name_free").hide();$("#tag_name_autocomplete").show();}else{$("#tag_name_autocomplete").hide();$("#tag_name_free").show();}}
function drupal_url(path){return url(path);}
function url(path)
{return Drupal.settings.jstools.basePath+path;}
function eval_json(json){obj=eval("("+json+")");return obj;}
function niceMessage(text,controls,callback){if(typeof callback=='function'){return callback();}
$('#ajax-report-buttons input:visible').sbutton();if(controls.jqm_params)
{$("#ajax-report-message").html(text);create_jqmodal($("#ajax-report-window"),controls.jqm_params.linker_obj,$("#ajax-report-title").html(),{position:'center',width:400,height:100,border_width:20,border_height:20},{TransferTo:'#'+controls.jqm_params.linker_obj.id});}
return;}
jQuery.fn.replace=function(){var stack=[];return this.domManip(arguments,true,1,function(a){this.parentNode.replaceChild(a,this);stack.push(a);}).pushStack(stack);};function is_def(variable)
{return(typeof variable!='undefined');}
function box_position(b,relative,rel_align,my_align,alt_rel_align,alt_my_align,offsY,offsX)
{var rel_align_valid_values=['left_top','right_top','left_bottom','right_bottom','center_left','center_top','center_bottom','center_top'];var my_align_valid_values=['left_top','right_top','left_bottom','right_bottom'];var bounds=windowInnerSize();var scrolled=window_scroll_offset();if(relative!=null&&typeof(relative)=='object')
{var top=0;var left=0;var rel_align=rel_align&&in_array(rel_align,rel_align_valid_values)!=-1?rel_align:'left_top';var my_align=my_align&&in_array(my_align,my_align_valid_values)!=-1?my_align:'left_top';switch(rel_align)
{case'left_top':switch(my_align)
{case'left_top':break;case'right_top':var c=findAbsoluteOffset(relative);var left=c[0]-b.offsetWidth;var top=c[1];break;case'right_bottom':break;case'left_bottom':break;}
break;case'right_top':switch(my_align)
{case'left_top':break;case'right_top':break;case'right_bottom':break;case'left_bottom':break;}
break;case'right_bottom':switch(my_align)
{case'left_top':break;case'right_top':var c=findAbsoluteOffset(relative);var left=c[0]+relative.offsetWidth-b.offsetWidth;var top=c[1]+relative.offsetHeight;break;case'right_bottom':break;case'left_bottom':var c=findAbsoluteOffset(relative);var left=c[0]+relative.offsetWidth;var top=c[1]+relative.offsetHeight-b.offsetHeight;break;}
break;case'left_bottom':switch(my_align)
{case'left_top':break;case'right_top':var c=findAbsoluteOffset(relative);var left=c[0]-b.offsetWidth;var top=c[1]+relative.offsetHeight;break;case'right_bottom':var c=findAbsoluteOffset(relative);var left=c[0]-b.offsetWidth;var top=c[1]+relative.offsetHeight-b.offsetHeight;break;case'left_bottom':break;}
break;}}
else
{var left=Math.floor((bounds[0]-b.offsetWidth)/2)+scrolled[0];var top=Math.floor((bounds[1]-b.offsetHeight)/2)+scrolled[1];}
top+=offsY==null?0:offsY;left+=offsX==null?0:offsX;if(alt_rel_align&&alt_my_align)
{if(left<0||left+b.offsetWidth>scrolled[0]+bounds[0]||top<0||top+b.offsetHeight>scrolled[1]+bounds[1])
{$(document).trigger('boxPositionAltPrefered',{});box_position(b,relative,alt_rel_align,alt_my_align);return;}}
$(b).css({'left':left,'top':top});return[left,top];}
function is_numeric(n)
{return!isNaN(parseInt(n));}
function is_int(i){return!isNaN(i)}
function findAbsoluteOffset(el)
{var x=0;var y=0;var cur=el;while(cur.offsetParent)
{x+=cur.offsetLeft;y+=cur.offsetTop;cur=cur.offsetParent;}
return[x,y];}
function windowInnerSize()
{if(self.innerWidth)
return[self.innerWidth,self.innerHeight];else if(document.documentElement&&document.documentElement.clientWidth)
return[document.documentElement.clientWidth,document.documentElement.clientHeight];else if(document.body)
return[document.body.clientWidth,document.body.clientHeight];}
function window_scroll_offset()
{var x,y;if(self.pageYOffset)
{x=self.pageXOffset;y=self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop)
{x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop;}
else if(document.body)
{x=document.body.scrollLeft;y=document.body.scrollTop;}
return[x,y];}
function window_height()
{var x,y;var test1=document.body.scrollHeight;var test2=document.body.offsetHeight
if(test1>test2)
{x=document.body.scrollWidth;y=document.body.scrollHeight;}
else
{x=document.body.offsetWidth;y=document.body.offsetHeight;}
return[x,y];}
function set_as_homepage(){if($.browser.msie){document.body.style.behavior='url(#default#homepage)';document.body.setHomePage(document.location.href);}else{}}
HTMLArea={'Config':new_hash,'makeEditors':new_hash,'startEditors':new_hash};function new_hash(){return{}}
function change_parent_url(url)
{alert(2);document.location=url;};NameSpace=function(namespace){if(typeof NS=='undefined')NS={};if(typeof VARS=='undefined')VARS={};if(typeof VARS[namespace]=='undefined')VARS[namespace]={};if(typeof NS[namespace]=='undefined')NS[namespace]={};NS[namespace].name=namespace;return NS[namespace];}
Utils=NameSpace('Utils');Utils.replace_names=function(res,pattern,replacement){var idpat=pattern.replace(/\]\[/g,'-').replace(/\[/g,'-').replace(/\]/g,'-').replace(/_/g,'-');var idrep=replacement.replace(/\]\[/g,'-').replace(/\[/g,'-').replace(/\]/g,'-').replace(/_/g,'-');if(res.id){res.id=(res.id+'').replace(idpat,idrep);}
if(res.tagName&&res.tagName=='LABEL'){var l_for=res.getAttribute('for')+'';var l_nfor=l_for.replace(idpat,idrep);res.setAttribute('for',l_nfor);}else
if(res.name&&res.tagName=='INPUT'){res.name=(res.name+'').replace(pattern,replacement);if(res.className&&(res.className+'').match(/form-text/))res.value='';}else
if(res.name&&res.tagName=='SELECT'){res.name=(res.name+'').replace(pattern,replacement);}
if(res.hasChildNodes&&res.hasChildNodes()){for(child in res.childNodes){if(res.childNodes[child])Utils.replace_names(res.childNodes[child],pattern,replacement);}}else{return;}}
Utils.get_func_name=function(){return(Utils.get_func_name.caller+'').split(' ')[1].replace(/\(.*/,'');}
Utils.fix_fieldsets=function(){$('fieldset.collapsed').addClass('collapsible');$('fieldset.collapsible > legend').each(function(){var fieldset=$(this.parentNode);if($('input.error, textarea.error, select.error',fieldset).size()>0){fieldset.removeClass('collapsed');}
var text=this.innerHTML;$(this).empty().append($('<a href="#">'+text+'</a>').click(function(){var fieldset=$(this).parents('fieldset:first')[0];if(!fieldset.animating){fieldset.animating=true;Drupal.toggleFieldset(fieldset);}
return false;})).after($('<div class="fieldset-wrapper"></div>').append(fieldset.children(':not(legend)')));});}
Utils._et=function(e){var targ;if(!e)var e=window.event;if(e.target)targ=e.target;else if(e.srcElement)targ=e.srcElement;if(targ.nodeType==3)
targ=targ.parentNode;return targ;}
Utils._etn=function(e){return Utils._et(e).nodeName;}
function JS_serialize(data,prefix){if("object"!=typeof(data)||null===data||data instanceof Array){alert("Only objects can be serialized");return"";}
if(typeof prefix=='undefined'||!prefix)prefix="";return serializeObject(prefix,data).join("&");}
function serializeObject(prefix,data){if(null===data){return prefix.length?[prefix+"="]:[];}
var vars=new Array;switch(typeof(data)){case"object":if(data instanceof Array){for(var i=0;i<data.length;i++)
vars=vars.concat(this.serializeObject(prefix+"["+i+"]",data[i]));}else{for(var i in data)
vars=vars.concat(this.serializeObject(prefix.length?prefix+"["+escape(i)+"]":escape(i),data[i]));}
break;case"string":case"number":vars.push(prefix+"="+encodeURIComponent(data));break;case"boolean":vars.push(prefix+"="+(data?1:0));break;}
return vars;}
function _po(text_to_translate){if(__TEXTS&&__TEXTS[text_to_translate]){translated=__TEXTS[text_to_translate];}else translated=text_to_translate;if(arguments.length>1){params=arguments[1];for(i in params){translated=translated.replace('%'+i,params[i]);}
return translated;}else return translated;}
function oext(oName,oObj){var temp=$.extend(oObj,window[oName]||{});window[oName]=temp;return window[oName];}
String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1,this.length);};;$().ready(function(){var href_objs=document.getElementsByTagName('A');var tests=[new RegExp(/^\//),new RegExp('^http://.*\.?kidstv\.co\.il'),new RegExp('^http://.*\.?logitv\.co\.il'),new RegExp('^http://.*\.?vgames\.co\.il'),new RegExp('^http://.*\.?total-media\.net'),new RegExp('^mailto:'),new RegExp(/^#/),new RegExp(/^javascript:/)];var il=href_objs.length;var jl=tests.length;var j;for(var i=0;i<il;i++){var href_obj=href_objs[i];var href=href_obj.href;if(href){var passed_tests=true;for(j=0;j<jl;j++)
{if(href.match(tests[j])!=null)
{passed_tests=false;break;}}
if(passed_tests)
{if(!href_obj.id){href_obj.id='link_out_'+i;}
$(href_obj).attr('url',href_obj.href);href_array[href_obj.id]=href_obj.href;$(href_obj).click(function(event){href_location_window(href_array[$(this).attr('id')],$(this).attr('id'));event.preventDefault();});$(href_obj).attr('href','#');}}}
$('input.confirm-continue-button',$('form.confirm-form')).sbutton({css:{'width':110}});$('input.confirm-cancel-button',$('form.confirm-form')).sbutton({css:{'width':110,'margin-left':'70px'}});});var href_array=Array();var last_href;function href_location_window(href,link_id){last_href=href;var target="_self";if($('#link_getting_out').length)$('#link_getting_out').remove();if($('#'+link_id).attr('class')=='newsoutlink')
target="_new";$('body').append('<div id="link_getting_out">אתה עומד לצאת מאתר ערוץ הילדים. להמשיך? <div class="link_yesno"><div id="link_out_yes"><a id="link_out_yes_link" href="'+href+'" target="'+target+'" '+(target=="_new"?'onclick="jqmodal_object.close();"':'')+'>כן</a></div><div id="link_out_no"><a id="link_out_no_link" href="javascript: jqmodal_object.close();">לא</a></div></div></div>');$('#link_out_yes').sbutton({css:{position:'relative','float':'left'}});$('#link_out_no').sbutton();create_jqmodal($('#link_getting_out'),$('body'),'outgoing link',{'position':'center'},{TransferTo:link_id});}
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 UUID(){this.id='a'+(UUID.starter++);}
UUID.starter=(new Date().getTime());UUID.prototype.valueOf=function(){return this.id;}
UUID.prototype.toString=function(){return this.id;};$(document).ready(function()
{$('input:file').bind('keypress',function(){return false;});});;var niftyOk=(document.getElementById&&document.createElement&&Array.prototype.push);var niftyCss=true;String.prototype.find=function(what){return(this.indexOf(what)>=0?true:false);}
var oldonload=window.onload;if(typeof(NiftyLoad)!='function')NiftyLoad=function(){};if(typeof(oldonload)=='function')
window.onload=function(){oldonload();NiftyLoad()};else window.onload=function(){NiftyLoad()};function Nifty(selector,options){if(niftyOk==false)return;if(niftyCss==false)AddCss();var i,v=selector.split(","),h=0;if(options==null)options="";if(options.find("fixed-height"))
h=getElementsBySelector(v[0])[0].offsetHeight;for(i=0;i<v.length;i++)
Rounded(v[i],options);if(options.find("height"))SameHeight(selector,h);}
function Rounded(selector,options){var i,top="",bottom="",v=new Array();if(options!=""){options=options.replace("left","tl bl");options=options.replace("right","tr br");options=options.replace("top","tr tl");options=options.replace("bottom","br bl");options=options.replace("transparent","alias");if(options.find("tl")){top="both";if(!options.find("tr"))top="left";}
else if(options.find("tr"))top="right";if(options.find("bl")){bottom="both";if(!options.find("br"))bottom="left";}
else if(options.find("br"))bottom="right";}
if(top==""&&bottom==""&&!options.find("none")){top="both";bottom="both";}
v=getElementsBySelector(selector);for(i=0;i<v.length;i++){FixIE(v[i]);if(top!="")AddTop(v[i],top,options);if(bottom!="")AddBottom(v[i],bottom,options);}}
function AddTop(el,side,options){var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;d.style.marginLeft="-"+getPadding(el,"Left")+"px";d.style.marginRight="-"+getPadding(el,"Right")+"px";if(options.find("alias")||(color=getBk(el))=="transparent"){color="transparent";bk="transparent";border=getParentBk(el);btype="t";}
else{bk=getParentBk(el);border=Mix(color,bk);}
d.style.background=bk;d.className="niftycorners";p=getPadding(el,"Top");if(options.find("small")){d.style.marginBottom=(p-2)+"px";btype+="s";lim=2;}
else if(options.find("big")){d.style.marginBottom=(p-10)+"px";btype+="b";lim=8;}
else d.style.marginBottom=(p-5)+"px";for(i=1;i<=lim;i++)
d.appendChild(CreateStrip(i,side,color,border,btype));el.style.paddingTop="0";el.insertBefore(d,el.firstChild);}
function AddBottom(el,side,options){var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;d.style.marginLeft="-"+getPadding(el,"Left")+"px";d.style.marginRight="-"+getPadding(el,"Right")+"px";if(options.find("alias")||(color=getBk(el))=="transparent"){color="transparent";bk="transparent";border=getParentBk(el);btype="t";}
else{bk=getParentBk(el);border=Mix(color,bk);}
d.style.background=bk;d.className="niftycorners";p=getPadding(el,"Bottom");if(options.find("small")){d.style.marginTop=(p-2)+"px";btype+="s";lim=2;}
else if(options.find("big")){d.style.marginTop=(p-10)+"px";btype+="b";lim=8;}
else d.style.marginTop=(p-5)+"px";for(i=lim;i>0;i--)
d.appendChild(CreateStrip(i,side,color,border,btype));el.style.paddingBottom=0;el.appendChild(d);}
function CreateStrip(index,side,color,border,btype){var x=CreateEl("b");x.className=btype+index;x.style.backgroundColor=color;x.style.borderColor=border;if(side=="left"){x.style.borderRightWidth="0";x.style.marginRight="0";}
else if(side=="right"){x.style.borderLeftWidth="0";x.style.marginLeft="0";}
return(x);}
function CreateEl(x){return(document.createElement(x));}
function FixIE(el){if(el.currentStyle!=null&&el.currentStyle.hasLayout!=null&&el.currentStyle.hasLayout==false)
el.style.display="inline-block";}
function SameHeight(selector,maxh){var i,v=selector.split(","),t,j,els=[],gap;for(i=0;i<v.length;i++){t=getElementsBySelector(v[i]);els=els.concat(t);}
for(i=0;i<els.length;i++){if(els[i].offsetHeight>maxh)maxh=els[i].offsetHeight;els[i].style.height="auto";}
for(i=0;i<els.length;i++){gap=maxh-els[i].offsetHeight;if(gap>0){t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px";nc=els[i].lastChild;if(nc.className=="niftycorners")
els[i].insertBefore(t,nc);else els[i].appendChild(t);}}}
function getElementsBySelector(selector){var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c;if(selector.find("#")){if(selector.find(" ")){s=selector.split(" ");var fs=s[0].split("#");if(fs.length==1)return(objlist);f=document.getElementById(fs[1]);if(f){v=f.getElementsByTagName(s[1]);for(i=0;i<v.length;i++)objlist.push(v[i]);}
return(objlist);}
else{s=selector.split("#");tag=s[0];selid=s[1];if(selid!=""){f=document.getElementById(selid);if(f)objlist.push(f);return(objlist);}}}
if(selector.find(".")){s=selector.split(".");tag=s[0];selclass=s[1];if(selclass.find(" ")){s=selclass.split(" ");selclass=s[0];tag2=s[1];}}
var v=document.getElementsByTagName(tag);if(selclass==""){for(i=0;i<v.length;i++)objlist.push(v[i]);return(objlist);}
for(i=0;i<v.length;i++){c=v[i].className.split(" ");for(j=0;j<c.length;j++){if(c[j]==selclass){if(tag2=="")objlist.push(v[i]);else{v2=v[i].getElementsByTagName(tag2);for(k=0;k<v2.length;k++)objlist.push(v2[k]);}}}}
return(objlist);}
function getParentBk(x){var el=x.parentNode,c;while(el.tagName.toUpperCase()!="HTML"&&(c=getBk(el))=="transparent")
el=el.parentNode;if(c=="transparent")c="#FFFFFF";return(c);}
function getBk(x){prop="backgroundColor";var c=(x.currentStyle)?(x.currentStyle[prop]):((document.defaultView.getComputedStyle)?document.defaultView.getComputedStyle(x,'')[prop]:null);if(c==null||c=="transparent"||c.find("rgba(0, 0, 0, 0)"))
return("transparent");if(c.find("rgb"))c=rgb2hex(c);return(c);}
function getPadding(x,side){prop="padding"+side;var p=(x.currentStyle)?(x.currentStyle[prop]):null;if(p==null||!p.find("px"))return(0);return(parseInt(p));}
function getStyleProp(x,prop){if(x.currentStyle)
return(x.currentStyle[prop]);if(document.defaultView.getComputedStyle){debugger;return(document.defaultView.getComputedStyle(x,'')[prop]);}
return(null);}
function rgb2hex(value){var hex="",v,h,i;var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var h=regexp.exec(value);for(i=1;i<4;i++){v=parseInt(h[i]).toString(16);if(v.length==1)hex+="0"+v;else hex+=v;}
return("#"+hex);}
function Mix(c1,c2){var i,step1,step2,x,y,r=new Array(3);if(c1.length==4)step1=1;else step1=2;if(c2.length==4)step2=1;else step2=2;for(i=0;i<3;i++){x=parseInt(c1.substr(1+step1*i,step1),16);if(step1==1)x=16*x+x;y=parseInt(c2.substr(1+step2*i,step2),16);if(step2==1)y=16*y+y;r[i]=Math.floor((x*50+y*50)/100);r[i]=r[i].toString(16);if(r[i].length==1)r[i]="0"+r[i];}
return("#"+r[0]+r[1]+r[2]);};jQuery.fn.corner=function(o){return this.each(function(index){cnt=(o+'').replace(/[^\d]/g,'');size='normal'
if(cnt<5)size='small';if(cnt>8)size='big';$this=$(this);var uuid=new UUID();$this.addClass(uuid.id);Nifty(this.tagName+'.'+uuid,size);$this.removeClass(uuid.id);});};;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}('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);',62,72,'|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'),0,{}));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}('(9($){$.1m.O=9(e){e=$.1a({D:\'10\',K:\'1h\',7:\'P\',5:\'C\',3:Y},e||{});m f=9(b,c,a){m d=[],s=1.0,a=(a<g)?a:g;11{d[d.3]=N(B(b),s,B(c));s-=((g/a)*0.Z)}X(s>0);q d},N=9(b,c,a){m d=[];V(m i=0;i<b.3;i++)d[i]=t.r(b[i]*c)+t.r(a[i]*(1.0-c));q d},B=9(a){q 1g 1f(u(a.F(0,2)),u(a.F(2,4)),u(a.F(4,6)))},u=9(a){q 15(a,16)};q E.14(9(){m a=$(E),j=a.13(),k=a.12(),x=0,y=0,w=1,h=1,l=[],3=e.3||(e.7==\'p\'?j:k),5=(e.5==\'H\'?\'H:0;\':\'C:0;\')+(e.5==\'M\'?\'M:0;\':\'L:0;\'),8=f(e.D,e.K,3);A(e.7==\'P\'){h=t.r(3/8.3)||1;w=j}W{w=t.r(3/8.3)||1;h=k}l.v(\'<n 1k="O" J="5: U; \'+5+\' j: \'+(e.7==\'p\'?3+"o":"g%")+\'; k: \'+(e.7==\'p\'?"g%":3+"o")+\'; 1j: 1i; z-I: 0; S-R: #\'+(e.5.1e(\'H\')!=-1?e.D:e.K)+\'">\');V(m i=0;i<8.3;i++){l.v(\'<n J="5:U;z-I:1;C:\'+y+\'o;L:\'+x+\'o;k:\'+(e.7==\'p\'?"g%":h+"o")+\';j:\'+(e.7==\'p\'?w+"o":"g%")+\';S-R:1d(\'+8[i][0]+\',\'+8[i][1]+\',\'+8[i][2]+\');"></n>\');e.7==\'p\'?x+=w:y+=h;A(y>=k||x>=j)1c}l.v(\'</n>\');A(a.G(\'5\')==\'1b\')a.G(\'5\',\'Q\');a.l(\'<n J="T:\'+a.G("T")+\'; 5: Q; z-I: 2;">\'+E.19+\'</n>\').18(l.17(\'\'))})}})(1l);',62,85,'|||length||position||direction|colorArray|function|||||||100|||width|height|html|var|div|px|vertical|return|round|colorPercent|Math|toDec|push|||||if|longHexToDec|top|from|this|substring|css|bottom|index|style|to|left|right|setColorHue|gradient|horizontal|relative|color|background|display|absolute|for|else|while|null|01|000000|do|innerHeight|innerWidth|each|parseInt||join|prepend|innerHTML|extend|static|break|rgb|indexOf|Array|new|ffffff|hidden|overflow|class|jQuery|fn'.split('|'),0,{}));function Pnglet(width,height,depth){this.width=width||16;this.height=height||16;this.depth=Math.min(256,depth||16);this.pix_size=height*(width+1);this.data_size=2+this.pix_size+5*Math.floor((this.pix_size+0xffff-1)/0xffff)+4;this.ihdr_offs=0;this.ihdr_size=4+4+13+4;this.plte_offs=this.ihdr_offs+this.ihdr_size;this.plte_size=4+4+3*depth+4;this.trns_offs=this.plte_offs+this.plte_size;this.trns_size=4+4+depth+4;this.idat_offs=this.trns_offs+this.trns_size;this.idat_size=4+4+this.data_size+4;this.iend_offs=this.idat_offs+this.idat_size;this.iend_size=4+4+4;this.png_size=this.iend_offs+this.iend_size;this.png=new Array(this.png_size);function initialize(png,offs,str){for(var i=1;i<arguments.length;i+=1)
if(typeof arguments[i].length!="undefined")
for(var j=0;j<arguments[i].length;j+=1)
png[offs++]=arguments[i].charAt(j);};function byte2(w){return String.fromCharCode((w>>8)&255,w&255);};function byte4(w){return String.fromCharCode((w>>24)&255,(w>>16)&255,(w>>8)&255,w&255);};function byte2lsb(w){return String.fromCharCode(w&255,(w>>8)&255);};for(var i=0;i<this.png_size;i+=1)
this.png[i]=String.fromCharCode(0);initialize(this.png,this.ihdr_offs,byte4(this.ihdr_size-12),'IHDR',byte4(width),byte4(height),String.fromCharCode(8,3));initialize(this.png,this.plte_offs,byte4(this.plte_size-12),'PLTE');initialize(this.png,this.trns_offs,byte4(this.trns_size-12),'tRNS');initialize(this.png,this.idat_offs,byte4(this.idat_size-12),'IDAT');initialize(this.png,this.iend_offs,byte4(this.iend_size-12),'IEND');var header=((8+(7<<4))<<8)|(3<<6);header+=31-(header%31);initialize(this.png,this.idat_offs+8,byte2(header));for(i=0;i*0xffff<this.pix_size;i+=1){var size,bits;if(i+0xffff<this.pix_size){size=0xffff;bits=String.fromCharCode(0);}else{size=this.pix_size-i*0xffff;bits=String.fromCharCode(1);}
initialize(this.png,this.idat_offs+8+2+i*(5+0xffff),bits,byte2lsb(size),byte2lsb(~size));}
this.palette=new Object();this.pindex=0;}
Pnglet.version="19990427.0";Pnglet.prototype.inBounds=function(x,y){return x>=0&&x<this.width&&y>=0&&y<this.height;}
Pnglet.prototype.clipX=function(x){return(x<0)?0:(x>=this.width)?this.width-1:x;}
Pnglet.prototype.clipY=function(y){return(y<0)?0:(y>=this.height)?this.height-1:y;}
Pnglet.prototype.index=function(x,y){var i=y*(this.width+1)+x+1;var j=this.idat_offs+8+2+Math.floor((i/0xffff)+1)*5+i;return j;}
Pnglet.prototype.color=function(red,green,blue,alpha){alpha=alpha>=0?alpha:255;var rgba=(((((alpha<<8)+red)<<8)+green)<<8)+blue;if(typeof this.palette[rgba]=="undefined"){if(this.pindex==this.depth)return String.fromCharCode(0);this.palette[rgba]=String.fromCharCode(this.pindex);this.png[this.plte_offs+8+this.pindex*3+0]=String.fromCharCode(red);this.png[this.plte_offs+8+this.pindex*3+1]=String.fromCharCode(green);this.png[this.plte_offs+8+this.pindex*3+2]=String.fromCharCode(blue);this.png[this.trns_offs+8+this.pindex]=String.fromCharCode(alpha);this.pindex+=1;}
return this.palette[rgba];}
Pnglet.prototype.isColor=function(color){return typeof(color)=='string'&&color.length==1&&color.charCodeAt(0)>=0&&color.charCodeAt(0)<this.depth;}
Pnglet.prototype.red=function(color){return this.png[this.plte_offs+8+color.charCodeAt(0)*3+0].charCodeAt(0);}
Pnglet.prototype.green=function(color){return this.png[this.plte_offs+8+color.charCodeAt(0)*3+1].charCodeAt(0);}
Pnglet.prototype.blue=function(color){return this.png[this.plte_offs+8+color.charCodeAt(0)*3+2].charCodeAt(0);}
Pnglet.prototype.alpha=function(color){return this.png[this.trns_offs+8+color.charCodeAt(0)].charCodeAt(0);}
Pnglet.prototype.point=function(pointColor,x0,y0){var a=arguments;this.pointNXY(pointColor,(a.length-1)/2,function(i){return a[2*i+1];},function(i){return a[2*i+2];});}
Pnglet.prototype.pointNXY=function(pointColor,n,x,y){if(!this.isColor(pointColor))
return;for(var i=0;i<n;i+=1){var x1=x(i),y1=y(i);if(this.inBounds(x1,y1))
this.png[this.index(x1,y1)]=pointColor;}}
Pnglet.prototype.output=function(){function initialize(png,offs,str){for(var i=1;i<arguments.length;i+=1)
if(typeof arguments[i].length!="undefined")
for(var j=0;j<arguments[i].length;j+=1)
png[offs++]=arguments[i].charAt(j);}
function byte4(w){return String.fromCharCode((w>>24)&255,(w>>16)&255,(w>>8)&255,w&255);}
var BASE=65521;var NMAX=5552;var s1=1;var s2=0;var n=NMAX;for(var y=0;y<this.height;y+=1)
for(var x=-1;x<this.width;x+=1){s1+=this.png[this.index(x,y)].charCodeAt(0);s2+=s1;if((n-=1)==0){s1%=BASE;s2%=BASE;n=NMAX;}}
s1%=BASE;s2%=BASE;initialize(this.png,this.idat_offs+this.idat_size-8,byte4((s2<<16)|s1));function crc32(png,offs,size){var crc=-1;for(var i=4;i<size-4;i+=1)
crc=Pnglet.crc32_table[(crc^png[offs+i].charCodeAt(0))&0xff]^((crc>>8)&0x00ffffff);initialize(png,offs+size-4,byte4(crc^-1));}
crc32(this.png,this.ihdr_offs,this.ihdr_size);crc32(this.png,this.plte_offs,this.plte_size);crc32(this.png,this.trns_offs,this.trns_size);crc32(this.png,this.idat_offs,this.idat_size);crc32(this.png,this.iend_offs,this.iend_size);return"\211PNG\r\n\032\n"+this.png.join('');}
Pnglet.crc32_table=new Array(256);for(var n=0;n<256;n++){var c=n;for(var k=0;k<8;k++){if(c&1)
c=-306674912^((c>>1)&0x7fffffff);else
c=(c>>1)&0x7fffffff;}
Pnglet.crc32_table[n]=c;};jQuery.fn.pngradient=function(options){return this.each(function(){var width=$(this).innerWidth(),height=$(this).innerHeight(),x=0,y=0,w=1,h=1,html=[];if(options.direction!='vertical'){width=1;length=height;}else{height=1;length=width;}
options=$.extend({'width':width,'height':height,'length':length},options);bitmap_cache=(typeof bitmap_cache!="undefined"?bitmap_cache:{});key=options.from+options.to+options.direction+length;if($(this).attr('gradient')==key)return;if(!bitmap_cache[key]){bitmap_cache[key]=dataUrl('image/png',(new Gradient(options)).output());}
source=bitmap_cache[key];$(this).attr('gradient',key);$(this).css('background-image','url('+source+')!important;');});}
jQuery.fn.filteradiant=function(options){return this.each(function(){alpha='FF';filter='progid:DXImageTransform.Microsoft.gradient('
+'  enabled="true"'
+', startColorstr=#'+alpha+options.from
+', endColorstr=#'+alpha+options.to
+', GradientType='+(options.direction=='vertical'?1:0)+')';this.style.filter=filter;});}
Gradient=function(){if(arguments.length)options=arguments[0];if(options.direction=='vertical'){line_numbers=options.width;}else{line_numbers=options.height;}
options=$.extend({width:1,height:1,direction:'horizontal',from:'000000',to:'ffffff',position:'top',step:0,stretch:false,'line_numbers':line_numbers},options||{});return this.create(options);;}
Gradient.prototype.create=function(options){for(i in options)this[i]=options[i];this.step=parseInt(Math.abs(options.step));this.palete=createColorPath(this.from,this.to,this.line_numbers);this.image=new Pnglet(this.width,this.height,256);this.fill();return this.image;}
Gradient.prototype.fill=function(){palete_temp=this.palete;line_numbers=this.line_numbers;colors=Array();repeat=(line_numbers-(line_numbers%palete_temp.length))/palete_temp.length;if(repeat==1)repeat=0;for(var i in palete_temp){colors.push(palete_temp[i]);if(this.stretch&&repeat)
for(j=0;j<=repeat;j++){colors.push(palete_temp[i]);}}
last=colors.length-1;reversed=(this.position=='right'||this.position=='bottom');var strech_ratio=last/line_numbers;for(i=0;i<line_numbers;i=i+1+this.step){var j=Math.floor(i*strech_ratio);r=(colors[j]?colors[j][0]:colors[last][0]);g=(colors[j]?colors[j][1]:colors[last][1]);b=(colors[j]?colors[j][2]:colors[last][2]);color=this.image.color(r,g,b,255);if(this.direction=='vertical'){this.image.png[this.image.index((reversed?line_numbers-i:i),0)]=color;}else{this.image.png[this.image.index(0,(reversed?line_numbers-i:i))]=color;}}}
var createColorPath=function(startColor,endColor,distance){var colorPath=[],maximum=250,colorPercent=1.0,distance=(distance<maximum)?distance:maximum;do{colorPath[colorPath.length]=setColorHue(longHexToDec(startColor),colorPercent,longHexToDec(endColor));colorPercent-=((100/distance)*0.01);}while(colorPercent>0);return colorPath;},setColorHue=function(originColor,opacityPercent,maskRGB){var returnColor=[];for(var i=0;i<originColor.length;i++)
returnColor[i]=Math.round(originColor[i]*opacityPercent)+Math.round(maskRGB[i]*(1.0-opacityPercent));return returnColor;},longHexToDec=function(longHex){return new Array(toDec(longHex.substring(0,2)),toDec(longHex.substring(2,4)),toDec(longHex.substring(4,6)));},toDec=function(hex){return parseInt(hex,16);};function dataUrl(mimetype,string){return"data:"+mimetype+";base64,"+base64(string);}
var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function base64(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+
keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i<input.length);return output;};jQuery.fn.gradiwrap=function(options){options=$.extend({from:'000000',to:'ffffff',direction:'horizontal',position:'top',length:null},options||{});return this.each(function(){var width=$(this).innerWidth(),height=$(this).innerHeight(),x=0,y=0,w=1,h=1,html=[],length=options.length||(options.direction=='vertical'?width:height);version=(navigator.userAgent+'').replace(/^.*MSIE /,'').replace(/;.*$/,'');if($.browser.mozilla||$.browser.opera){brw='moz';}else if($.browser.msie&&version>=5.5){brw='msie';}else brw='old';switch(brw){case'msie':$(this).filteradiant(options);break;case'moz':$(this).pngradient(options);break;default:$(this).gradient(options);break;}
$(this).css('background-repeat','repeat');});};;jQuery.fn.extend({onionSkin:function(){return this.each(function(){new jQuery.onionSkin(this);});}});jQuery.extend({onionSkin:function(e){var publ=this;publ.init=function(){var delta=e.id.match(/[\d]+$/);var innerWrapper=$(e).children('div');if(innerWrapper.length!=1)
{return;}
var elemClass=$(e).get(0).className;if(elemClass.indexOf('header_contener')&&$(innerWrapper).parents('div.header_contener').length>0)
return;var preset={'top':'os-top','left':'os-left','right':'os-right','bottom':'os-bottom','top-left':'os-top-left','top-right':'os-top-right','bottom-left':'os-bottom-left','bottom-right':'os-bottom-right','placeholder':'os-placeholder','corner':'os-corner'}
if(typeof(onionskin_presets)=='object')
{var div=null;for(var p in onionskin_presets)
{var parts=p.split('_');if(parts[1]!=delta)
continue;div=$('div[@class^='+parts[0]+'_]:eq(0)',innerWrapper).get(0);break;}
if(is_def(div)&&div!=null)
{for(var i=0;i<onionskin_presets[p].length;i++)
{var classes=preset[onionskin_presets[p][i]].split(' ');for(var j=0;j<classes.length;j++)
classes[j]+='-'+p.replace('_','-');preset[onionskin_presets[p][i]]=classes.join(' ');}}}
$(innerWrapper).wrap('<div class="'+preset["top"]+'">'+'<div class="'+preset["left"]+'">'+'<div class="'+preset["right"]+'">'+'<div class="'+preset["bottom"]+'">'+'<div class="'+preset["corner"]+' '+preset["top-left"]+'">'+'<div class="'+preset["corner"]+' '+preset["top-right"]+'">'+'<div class="'+preset["corner"]+' '+preset["bottom-left"]+'">'+'<div class="'+preset["corner"]+' '+preset["bottom-right"]+' '+preset["placeholder"]+'">'+'</div>'+'</div>'+'</div>'+'</div>'+'</div>'+'</div>'+'</div>'+'</div>');}
publ.init();}});;(function($){var menu,shadow,trigger,content,hash,currentTarget;var defaults={menuStyle:{listStyle:'none',padding:'1px',margin:'0px',backgroundColor:'#fff',border:'1px solid #999',width:'100px'},itemStyle:{margin:'0px',color:'#000',display:'block',cursor:'default',padding:'3px',border:'1px solid #fff',backgroundColor:'transparent'},itemHoverStyle:{border:'1px solid #0a246a',backgroundColor:'#b6bdd2'},eventPosX:'pageX',eventPosY:'pageY',shadow:true,onContextMenu:null,onShowMenu:null};$.fn.contextMenu=function(id,options){if(!menu){menu=$('<div id="jqContextMenu"></div>').hide().css({position:'absolute',zIndex:'500'}).appendTo('body').bind('click',function(e){e.stopPropagation();});}
if(!shadow){shadow=$('<div></div>').css({backgroundColor:'#000',position:'absolute',opacity:0.2,zIndex:499}).appendTo('body').hide();}
hash=hash||[];hash.push({id:id,menuStyle:$.extend({},defaults.menuStyle,options.menuStyle||{}),itemStyle:$.extend({},defaults.itemStyle,options.itemStyle||{}),itemHoverStyle:$.extend({},defaults.itemHoverStyle,options.itemHoverStyle||{}),bindings:options.bindings||{},params:options.params||{},shadow:options.shadow||options.shadow===false?options.shadow:defaults.shadow,onContextMenu:options.onContextMenu||defaults.onContextMenu,onShowMenu:options.onShowMenu||defaults.onShowMenu,eventPosX:options.eventPosX||defaults.eventPosX,eventPosY:options.eventPosY||defaults.eventPosY});var index=hash.length-1;$(this).bind('contextmenu',function(e){var bShowContext=(!!hash[index].onContextMenu)?hash[index].onContextMenu(e):true;if(bShowContext)display(index,this,e,options);return false;});return this;};function display(index,trigger,e,options){var cur=hash[index];content=$('#'+cur.id).find('ul:first').clone(true);content.css(cur.menuStyle).find('li').css(cur.itemStyle).hover(function(){$(this).css(cur.itemHoverStyle);},function(){$(this).css(cur.itemStyle);}).find('img').css({verticalAlign:'middle',paddingRight:'2px'});menu.html(content);var params=[];for(var key in cur.params)
params[key]=cur.params[key];if(!!cur.onShowMenu)menu=cur.onShowMenu(e,menu,params);$.each(cur.bindings,function(id,func){$('#'+id,menu).bind('click',function(e){hide();func(trigger,currentTarget,params);});});menu.css({'left':e[cur.eventPosX],'top':e[cur.eventPosY]}).show();if(cur.shadow)shadow.css({width:menu.width(),height:menu.height(),left:e.pageX+2,top:e.pageY+2}).show();$(document).one('click',hide);}
function hide(){menu.hide();shadow.hide();}
$.contextMenu={defaults:function(userDefaults){$.each(userDefaults,function(i,val){if(typeof val=='object'&&defaults[i]){$.extend(defaults[i],val);}
else defaults[i]=val;});}};})(jQuery);$(function(){$('div.contextMenu').hide();});;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;;jQuery.fn.zebra=function(odd_val,even_val){return this.each(function(){var odd=$('>:odd',this),even=$('>:even',this);odd_val[0]=='#'?odd.css('background-color',odd_val):odd.addClass(odd_val);even_val[0]=='#'?even.css('background-color',even_val):even.addClass(even_val);});};(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.Tooltip={blocked:false,defaults:{position:[],delay:200,showURL:true,extraClass:"",top:0,left:0},block:function(){$.Tooltip.blocked=!$.Tooltip.blocked;}};$.fn.extend({Tooltip:function(settings){settings=$.extend({},$.Tooltip.defaults,settings);createHelper();$(document).bind('boxPositionAltPrefered',function(){$(helper.parent).removeClass('left-bottom').addClass('right-bottom');});return this.each(function(){this.tSettings=settings;this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).focus(save).blur(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(){if(helper.parent)
return;helper.parent=$('<div id="tooltip"><h3></h3><div class="body"></div><div class="url"></div></div>').hide().appendTo('#page');if($.fn.bgiframe)
helper.parent.bgiframe();helper.title=$('h3',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent);}
function handle(event){if(this.tSettings.delay)
tID=setTimeout(show,this.tSettings.delay);else
show();track=!!this.tSettings.track;$('body').bind('mousemove',update);update.apply(this,arguments);}
function save(){if($.Tooltip.blocked||this==current||!this.tooltipText)
return;current=this;title=this.tooltipText;if(this.tSettings.bodyHandler){helper.title.hide();helper.body.html(this.tSettings.bodyHandler.call(this)).show();}else if(this.tSettings.showBody){var parts=title.split(this.tSettings.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(this.tSettings.showURL&&$(this).url())
helper.url.html($(this).url().replace('http://','')).show();else
helper.url.hide();helper.parent.addClass(this.tSettings.extraClass);if(this.tSettings.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")){$('body').unbind('mousemove',update)}
if(current==null){$('body').unbind('mousemove',update);return;}
var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+current.tSettings.left;top=event.pageY+current.tSettings.top;$(helper.parent).addClass('left-bottom');var coords=box_position(helper.parent.get(0),this,'left_bottom','right_bottom','right_bottom','left_bottom',current.tSettings.top,current.tSettings.left);}
return;var v=viewport(),h=helper.parent.get(0);var bounds=windowInnerSize();if(coords&&coords[0]<0){$(helper.parent).removeClass('left-bottom').addClass('right-bottom');box_position(helper.parent.get(0),this,'right_bottom','left_bottom');}
return;if(v.y+v.cy<h.offsetTop+h.offsetHeight){box_position(helper.parent.get(0),this);}}
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(this.tSettings.extraClass);if(this.tSettings.fixPNG)
helper.parent.unfixPNG();}})(jQuery);;jQuery.extend(jQuery.fn,{validate:function(options){var validator=new jQuery.validator(options,this[0]);var validator=jQuery.data(this[0],'validator');if(validator){return validator;}
validator=new jQuery.validator(options,this[0]);jQuery.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input.cancel:submit").click(function(){validator.cancelSubmit=true;});this.submit(function(event){if(validator.settings.debug)
event.preventDefault();function handle(){if(validator.settings.submitHandler){validator.settings.submitHandler.call(validator,validator.currentForm);return false;}
return true;}
if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}
if(validator.form()){return handle();}else{validator.focusInvalid();return false;}});}
return validator;},push:function(t){return this.setArray(jQuery.merge(this.get(),t));}});jQuery.extend(jQuery.expr[":"],{blank:"!jQuery.trim(a.value)",filled:"!!jQuery.trim(a.value)",unchecked:"!a.checked"});jQuery.format=function(source,params){if(arguments.length==1)
return function(){var args=jQuery.makeArray(arguments);args.unshift(source);return jQuery.format.apply(this,args);};if(arguments.length>2&&params.constructor!=Array){params=jQuery.makeArray(arguments).slice(1);}
if(params.constructor!=Array){params=[params];}
jQuery.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};jQuery.validator=function(options,form){this.settings=jQuery.extend({},jQuery.validator.defaults,options);this.currentForm=form;this.labelContainer=jQuery(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||jQuery(form);this.containers=jQuery(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.invalid={};this.reset();this.refresh();};jQuery.extend(jQuery.validator,{defaults:{messages:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:jQuery([]),errorLabelContainer:jQuery([]),onsubmit:true,ignore:[],onblur:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.required(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)
this.element(element);}},setDefaults:function(settings){jQuery.extend(jQuery.validator.defaults,settings);},messages:{required:"This field is required.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxLength:jQuery.format("Please enter a value no longer than {0} characters."),minLength:jQuery.format("Please enter a value of at least {0} characters."),rangeLength:jQuery.format("Please enter a value between {0} and {1} characters long."),rangeValue:jQuery.format("Please enter a value between {0} and {1}."),maxValue:jQuery.format("Please enter a value less than or equal to {0}."),minValue:jQuery.format("Please enter a value greater than or equal to {0}.")},prototype:{form:function(){this.prepareForm();for(var i=0;this.elements[i];i++){this.check(this.elements[i]);}
jQuery.extend(this.submitted,this.errorMap);this.invalid=jQuery.extend({},this.errorMap);this.settings.invalidHandler&&this.settings.invalidHandler.call(this);this.showErrors();return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}
if(!this.numberOfInvalids()){this.toHide.push(this.containers);}
this.showErrors();return result;},showErrors:function(errors){if(errors){jQuery.extend(this.errorMap,errors);this.errorList=[];for(name in errors){this.errorList.push({message:errors[name],element:jQuery("[@name='"+name+"']:first",this.currentForm)[0]});}
this.successList=jQuery.grep(this.successList,function(element){return!(element.name in errors);});}
this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if(jQuery.fn.resetForm)
jQuery(this.currentForm).resetForm();this.prepareForm();this.hideErrors();this.elements.removeClass(this.settings.errorClass);},numberOfInvalids:function(){var count=0;for(i in this.invalid)
count++;return count;},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{jQuery(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus();}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&jQuery.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},refresh:function(){var validator=this;validator.rulesCache={};function focused(){validator.lastActive=this;if(validator.settings.focusCleanup&&!validator.blockFocusCleanup){jQuery(this).removeClass(validator.settings.errorClass);validator.errorsFor(this).hide();}}
this.elements=jQuery(this.currentForm).find("input, select, textarea").not(":submit, :reset").not("[@disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in validator.rulesCache||!validator.rules(this).length)
return false;validator.rulesCache[this.name]=validator.rules(this);return true;});this.elements.focus(focused);validator.settings.onblur&&validator.elements.blur(function(){validator.settings.onblur.call(validator,this);});validator.settings.onkeyup&&validator.elements.keyup(function(){validator.settings.onkeyup.call(validator,this);});if(validator.settings.onclick){var checkables=jQuery([]);validator.elements.each(function(){if(validator.checkable(this))
checkables.push(validator.checkableGroup(this));});checkables.click(function(){validator.settings.onclick.call(validator,this);});}},clean:function(selector){return jQuery(selector)[0];},errors:function(){return jQuery(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=jQuery([]);this.toHide=jQuery([]);},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(this.clean(element));},check:function(element){element=this.clean(element);jQuery(element).removeClass(this.settings.errorClass);var rules=this.rulesCache[element.name];for(var i=0;rules[i];i++){var rule=rules[i];try{var result=jQuery.validator.methods[rule.method].call(this,jQuery.trim(element.value),element,rule.parameters);if(result===-1)
break;if(!result){jQuery(element).addClass(this.settings.errorClass);this.formatAndAdd(rule,element);return false;}}catch(e){this.settings.debug&&window.console&&console.warn("exception occured when checking element "+element.id
+", check the '"+rule.method+"' method");throw e;}}
if(rules.length&&this.settings.success)
this.successList.push(element);return true;},configuredMessage:function(id,method){var m=this.settings.messages[id];return m&&(m.constructor==String?m:m[method]);},defaultMessage:function(element,method){return this.configuredMessage(element.name,method)||element.title||jQuery.validator.messages[method]||"<strong>Warning: No message defined for "+element.name+"</strong>";},formatAndAdd:function(rule,element){var message=this.defaultMessage(element,rule.method);if(typeof message=="function")
message=message.call(this,rule.parameters,element);this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)
toToggle.push(toToggle.parents(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.showLabel(error.element,error.message);}
if(this.errorList.length){this.toShow.push(this.containers);}
for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}
this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);if(this.settings.overrideErrors||label.attr("generated")){label.html(message);}}else{label=jQuery("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+">").parent();}
if(!this.labelContainer.append(label).length)
this.settings.errorPlacement?this.settings.errorPlacement(label,jQuery(element)):label.insertAfter(element);}
if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}
this.toShow.push(label);},errorsFor:function(element){return this.errors().filter("[@for='"+this.idOrName(element)+"']");},idOrName:function(element){return this.checkable(element)?element.name:element.id||element.name;},rules:function(element){var data=this.data(element);if(!data)
return[];var rules=[];if(typeof data=="string"){var transformed={};transformed[data]=true;data=transformed;}
jQuery.each(data,function(key,value){rules[rules.length]={method:key,parameters:value};});return rules;},data:function(element){return this.settings.rules?this.settings.rules[element.name]:this.settings.meta?jQuery(element).metadata()[this.settings.meta]:jQuery(element).metadata();},checkable:function(element){return/radio|checkbox/i.test(element.type);},checkableGroup:function(element){return jQuery(element.form||document).find('[@name="'+element.name+'"]');},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return jQuery("option:selected",element).length;case'input':if(this.checkable(element))
return this.checkableGroup(element).filter(':checked').length;}
return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!jQuery(param,element.form).length;},"function":function(param,element){return param(element);}},required:function(element){return!jQuery.validator.methods.required.call(this,jQuery.trim(element.value),element);}},methods:{required:function(value,element,param){if(!this.depend(param,element))
return-1;switch(element.nodeName.toLowerCase()){case'select':var options=jQuery("option:selected",element);return options.length>0&&(element.type=="select-multiple"||(jQuery.browser.msie&&!(options[0].attributes['value'].specified)?options[0].text:options[0].value).length>0);case'input':if(this.checkable(element))
return this.getLength(value,element)>0;default:return value.length>0;}},minLength:function(value,element,param){return this.required(element)||this.getLength(value,element)>=param;},maxLength:function(value,element,param){return this.required(element)||this.getLength(value,element)<=param;},rangeLength:function(value,element,param){var length=this.getLength(value,element);return this.required(element)||(length>=param[0]&&length<=param[1]);},minValue:function(value,element,param){return this.required(element)||value>=param;},maxValue:function(value,element,param){return this.required(element)||value<=param;},rangeValue:function(value,element,param){return this.required(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.required(element)||/^[^\s,;]+@([^\s.,;]+\.)+[\w-]{2,}$/i.test(value);},url:function(value,element){return this.required(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.required(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.required(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},dateDE:function(value,element){return this.required(element)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);},number:function(value,element){return this.required(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},numberDE:function(value,element){return this.required(element)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);},digits:function(value,element){return this.required(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.required(element))
return true;var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9)
nDigit-=9;}
nCheck+=nDigit;bEven=!bEven;}
return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param:"png|jpe?g|gif";return this.required(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){return value==jQuery(param).val();}},addMethod:function(name,method,message){jQuery.validator.methods[name]=method;jQuery.validator.messages[name]=message;}});;(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);var data=$.data(elem,settings.single);if(data)return data;data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)
data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length)
data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)
data=attr;}
if(data.indexOf('{')<0)
data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);;jQuery.validator.addMethod("maxWords",function(value,element,params){return!$(element).val()||$(element).val().match(/bw+b/g).length<params;},'Please enter {0} words or less.');jQuery.validator.addMethod("minWords",function(value,element,params){return!$(element).val()||$(element).val().match(/bw+b/g).length>=params;},'Please enter at least {0} words.');jQuery.validator.addMethod("rangeWords",function(value,element,params){return!$(element).val()||($(element).val().match(/bw+b/g).length>=params[0]&&$(element).val().match(/bw+b/g).length<params[1]);},'Please enter between {0} and {1} words.');jQuery.validator.addMethod("letterswithbasicpunc",function(value,element){return!jQuery.validator.methods.required(value,element)||/^[a-z-.,()'\"s]+$/i.test(value);},"Letters or punctuation only please");jQuery.validator.addMethod("alphanumeric",function(value,element){return!jQuery.validator.methods.required(value,element)||/^w+$/i.test(value);},"Letters, numbers, spaces or underscores only please");jQuery.validator.addMethod("lettersonly",function(value,element){return!jQuery.validator.methods.required(value,element)||/^[a-z]+$/i.test(value);},"Letters only please");jQuery.validator.addMethod("nowhitespace",function(value,element){return!jQuery.validator.methods.required(value,element)||/^S+$/i.test(value);},"No white space please");jQuery.validator.addMethod("anything",function(value,element){return!jQuery.validator.methods.required(value,element)||/^.+$/i.test(value);},"May contain any characters.");jQuery.validator.addMethod("integer",function(value,element){return!jQuery.validator.methods.required(value,element)||/^d+$/i.test(value);},"Numbers only please");jQuery.validator.addMethod("phone",function(value,element){return!jQuery.validator.methods.required(value,element)||/^d{3}-d{3}-d{4}$/.test(value);},"Must be XXX-XXX-XXXX");jQuery.validator.addMethod("ziprange",function(value,element){return!jQuery.validator.methods.required(value,element)||/^90[2-5]\d\{2}-\d{4}$/.test(value);},"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx");;jQuery.fn.replace=function(){var stack=[];return this.domManip(arguments,true,1,function(a){this.parentNode.replaceChild(a,this);stack.push(a);}).pushStack(stack);};jQuery.fn.stitle=function(options){return this.each(function(){var $this=$(this),width=$this.innerWidth(),height=$this.innerHeight();options=$.extend({margin:0,padding:0,border:0,size:10},options||{});$this.wrap('<div class="gradiwrap"></div>');$this.parent().gradiwrap(options);$this.parent().corner(options.size+'px');if(options.padding=='*')options.padding=$this.css('padding');$this.css({margin:options.margin,border:options.border,padding:options.padding});});};callbacks_cache={};callbacks_args={};jQuery.fn.sbutton=function(options){return this.each(function(){var $this=$(this),width=$this.innerWidth(),height=$this.innerHeight(),css_settings={display:'block!important'};uuid=new UUID();var def_hoveron=function(el){$(el).addClass('sbutton-hover').removeClass('sbutton');return true;},def_hoveroff=function(el){$(el).addClass('sbutton').removeClass('sbutton-hover');return true;},do_callback=function(uuid,callback_name,args,add_args){if(callbacks_cache[uuid]&&callbacks_cache[uuid][callback_name]){var add_args=callbacks_args[uuid][callback_name];result=callbacks_cache[uuid][callback_name](args,add_args);}else result=true;return result;},real_hoveron=function(){var btn=$(this);var uuid=$(this).attr('uuid');callback_done=do_callback(uuid,'pre_callback',this);if(callback_done){$(this).attr('disabled','').removeClass('disabled');do_callback(uuid,'hover_on',this);}else{if($.browser.msie){$(this).addClass('disabled');$(this).fadeTo('fast',0.5);}else{$(this).attr('disabled','disabled').addClass('disabled');}}
return true;},real_hoveroff=function(){var btn=$(this);var uuid=btn.attr('uuid');do_callback(uuid,'hover_off',this);$(this).attr('disabled','').removeClass('disabled');if($.browser.msie)$(this).fadeTo('fast',1);do_callback(uuid,'post_callback',this);return true;}
options=$.extend({hover_on:def_hoveron,hover_off:def_hoveroff,pre_callback:nooptrue,post_callback:nooptrue,click:nooptrue},options||{});options.css=$.extend(css_settings,options.css||{});callbacks_cache[uuid]={hover_on:options.hover_on,hover_off:options.hover_off,pre_callback:options.pre_callback,post_callback:options.post_callback,click:options.click,'real_hoveron':real_hoveron,'real_hoveroff':real_hoveroff};callbacks_args[uuid]=$.extend({'hover_on':{},'hover_off':{},'pre_callback':{},'post_callback':{},'click':{}},options.args);button_html=['<div class="sbutton" id="'+uuid+'" uuid="'+uuid+'">','  <div class="sbutton-right">','    <div class="sbutton-left">','      <div class="sbutton-content">',($this.val()?$this.val():$this.html()),'      </div>','    </div>','  </div>','</div>'].join('');$this.before(button_html);btn=$this.parent().find('div.sbutton[@uuid="'+uuid+'"]');$this.attr('summary',uuid);btn.attr('uuid',uuid);if('undefined'!=typeof options.className){btn.addClass(options.className);}
btn.hover(callbacks_cache[uuid].real_hoveron,callbacks_cache[uuid].real_hoveroff);btn.click(function(){var form_id='@@@'+$(this).parents('form').attr('id')+'@@@';var tag=$this[0].nodeName.toLowerCase();uuid=$(this).attr('uuid');var cnt_id='noga_submit_counter'+uuid;if(isNaN(Drupal.settings[cnt_id])){Drupal.settings[cnt_id]=0;}
var avoidForms=[];var avoidString='';for(key in avoidForms){avoidString+='@@@'+avoidForms[key]+'@@@';}
var avoidMultipleSubmission=(avoidString.search(form_id)!=-1&&Drupal.settings[cnt_id]!=0);if(!do_callback(uuid,'click',this))return;if($(this).is('.disabled')||$('.disabled',this).length>0||$(this).parent().is('.disabled')||avoidMultipleSubmission){}
else{if($(tag+'[@summary='+uuid+']').length>0&&$(tag+'[@summary='+uuid+']').get(0).click){orig_btn=$(tag+'[@summary='+uuid+']').get(0).click();}
else{orig_btn=$(tag+'[@summary='+uuid+']').click();}
if(avoidString.search(form_id)!=-1){Drupal.settings[cnt_id]++;}}});$this.css({visibility:'hidden',position:'absolute',display:'block'});actual_width=btn.find('.sbutton-content').innerWidth()+46;options.css=$.extend({width:actual_width},options.css);ready_style=$.browser.msie?prepare_css(options.css):options.css;btn.css(ready_style);});};function prepare_css(css_obj){var robj={};for(i in css_obj){if((''+css_obj[i]).indexOf('important')!=-1){robj[(''+i).toUpperCase()]=(''+css_obj[i]).replace('!',' !');}else{robj[i]=css_obj[i];}}
return robj;}
var nooptrue=function(){return true;};jQuery.extend({createUploadIframe:function(id,uri){var frameId='jQuery'+id;if(window.ActiveXObject){var io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof uri=='boolean'){io.src='javascript:false';}
else if(typeof uri=='string'){io.src=uri;}}
else{var io=document.createElement('iframe');io.id=frameId;io.name=frameId;}
$(io).css({position:'absolute',display:'none'});document.body.appendChild(io);return io;},ajaxUpload:function(s){s=jQuery.extend({},jQuery.ajaxSettings,s);var id=new Date().getTime()
io=jQuery.createUploadIframe(id,s.secureuri)
if(s.global&&!jQuery.active++)
jQuery.event.trigger("ajaxStart");var requestDone=false;var xml={}
if(s.global)
jQuery.event.trigger("ajaxSend",[xml,s]);var uploadCallback=function(isTimeout){try{xml.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;xml.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;}
catch(e){}
if(xml||isTimeout=="timeout"){requestDone=true;var status;try{status=isTimeout!="timeout"?"success":"error";if(status!="error"){var data=jQuery.uploadHttpData(xml,s.dataType);if(s.success)
s.success(data,status);if(s.global)
jQuery.event.trigger("ajaxSuccess",[xml,s]);}else
jQuery.handleError(s,xml,status);}catch(e){status="error";jQuery.handleError(s,xml,status,e);}
if(s.global)
jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)
jQuery.event.trigger("ajaxStop");if(s.complete)
s.complete(xml,status);jQuery(io).unbind()
setTimeout(function(){document.body.removeChild(io);},100)
xml=null}}
if(s.timeout>0){setTimeout(function(){if(!requestDone)uploadCallback("timeout");},s.timeout);}
try{var frameId='jQuery'+id;var io=document.getElementById(frameId);$(s.uploadform).attr('old_act',function(){return this.action});$(s.uploadform).attr('old_trg',function(){return this.target});s.uploadform.action=s.url;s.uploadform.method='POST';s.uploadform.target=frameId;if(s.uploadform.encoding){s.uploadform.encoding='multipart/form-data';}
else{s.uploadform.enctype='multipart/form-data';}
s.uploadform.submit();$(s.uploadform).attr('action',function(){val=$(this).attr('old_act');$(this).removeAttr('old_act');return val;});$(s.uploadform).attr('target',function(){val=$(this).attr('old_trg');$(this).removeAttr('old_trg');if(!val)$(this).removeAttr('target');return val;});}catch(e){jQuery.handleError(s,xml,null,e);}
if(window.attachEvent){io.attachEvent('onload',uploadCallback);}
else{io.addEventListener('load',uploadCallback,false);}
return{abort:function(){}};},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script")
jQuery.globalEval(data);if(type=="json")
eval("data = "+data);if(type=="html")
jQuery("<div>").html(data).evalScripts();return data;}});function articles_init(){var gallery=$('div.photo_gallery_article-node').get(0);if(gallery)
{articles_prepare_pager();}}
$(document).ready(articles_init);function articles_ajax(url)
{var on_success=function(data){$('div.photo_gallery_article-gallery').html(data);articles_prepare_pager();}
var on_error=function(){}
$.ajax({success:on_success,dataType:'text',error:on_error,type:'GET',data:{},url:url});}
function articles_prepare_pager()
{$('div.photo_gallery_article-gallery div.pager a').each(function(){$(this).click(function(ev){ev.preventDefault();$(this).blur();var m=this.href.split("/");articles_ajax('/articles/gallery/'+m[m.length-1]);})});};Marker=NameSpace('Marker');Marker.helper_init=function(){Marker.markers=$('a.marker');$('#btnjqconfirm').sbutton({css:{'width':'80px','float':'right'}});$('#btnjqcancel').sbutton({css:{'width':'80px','float':'left'}});$('#btnjqcancel').click(function(){$('#tmp_float_window_jqmodal_x_link').get(0).onclick();});Marker.markers.each(Marker.prepare);}
Marker.toggle=function(data){var response_obj=Drupal.parseJson(data);if(typeof response_obj=='undefined'||!response_obj)return false;var marker=$('a.marker[@uuid='+response_obj.uuid+']').attr('href',response_obj.path);var cloned=marker.clone(true);$(marker).before(cloned).remove();cloned.each(Marker.prepare).html(response_obj.title);Marker.marker_gen(cloned,response_obj);var callback=$(marker).attr('callback');var callback_args=$(marker).attr('callback_args');if(typeof window[callback]=='function'){if(callback_args){window[callback](cloned,response_obj,Drupal.parseJson(callback_args));}else window[callback](cloned,response_obj);}
$('#tmp_float_window_jqmodal_x_link').get(0).onclick();}
Marker.prepare=function(){if($(this).attr('uuid')){Marker.uuid=$(this).attr('uuid')}else{Marker.uuid=new UUID();$(this).attr('uuid',Marker.uuid);}
$(this).attr('path',$(this).attr('href')+'/js/');$(this).click(function(ev){var e=this;ev.preventDefault();var textbag=$('span.textholder',$(this).parent('span'));if(textbag.length>0)
{var title=$('#jqconfirm-marker-header').html();var opname=$(this).attr('class').match(/\s?(op_[\w]+)/);if(opname[1]&&(typeof jqmodal_object=='undefined'||jqmodal_object==null))
{$('#jqconfirm-marker-content').html(textbag.find('span.'+opname[1]).html());$('#btnjqconfirm').unbind('click');$('#btnjqconfirm').click(function(){$.get($(e).attr('path')+$(e).attr('uuid'),Marker.toggle);});create_jqmodal($('#jqconfirm-marker'),$(this),title,{'border_width':'10','border_height':'10','position':'center'},{TransferTo:this.id});}}
else
$.get($(this).attr('path')+$(this).attr('uuid'),Marker.toggle);});$(this).attr('href','#');}
Marker.marker_gen=function(marker,response){if(typeof response.op!='undefined'&&typeof response.state!='undefined'){$(marker).removeClass('op_'+response.op).addClass('op_'+response.state);}}
function marker_init(){Marker.helper_init();}
$(document).ready(marker_init);;function del_fan(mark_type,mark_data){var mark_data_arr=mark_data.split('&');var site_domain='http://'+document.domain;nid_arr=mark_data_arr[2].split('=');nid=nid_arr[1];$.get(site_domain+'/marker/1/'+nid+'/del/js');}
function add_fan(mark_type,mark_data){var mark_data_arr=mark_data.split('&');var site_domain='http://'+document.domain;nid_arr=mark_data_arr[2].split('=');nid=nid_arr[1];$.get(site_domain+'/marker/1/'+nid+'/add/js');};(function($){$.fn.jqm=function(o){var p={overlay:50,overlayClass:'jqmOverlay',closeClass:'jqmClose',trigger:'.jqModal',ajax:F,ajaxText:'',target:F,modal:F,toTop:F,onShow:F,onHide:F,onLoad:F};return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s;H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s};if(p.trigger)$(this).jqmAddTrigger(p.trigger);});};$.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide');};$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow');};$.fn.jqmShow=function(t){return this.each(function(){t=t||window.event;$.jqm.open(this._jqm,t);});};$.fn.jqmHide=function(t){return this.each(function(){t=t||window.event;$.jqm.close(this._jqm,t)});};$.jqm={hash:{},open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index'))),z=(z>0)?z:3000,o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z);if(c.modal){if(!A[0])L('bind');A.push(s);}
else if(c.overlay>0)h.w.jqmAddClose(o);else o=F;h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in{Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}}
if(c.ajax){var r=c.target||h.w,u=c.ajax,r=(typeof r=='string')?$(r,h.w):$(r),u=(u.substr(0,1)=='@')?$(t).attr(u.substring(1)):u;r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});}
else if(cc)h.w.jqmAddClose($(cc,h.w));if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);(c.onShow)?c.onShow(h):h.w.show();e(h);return F;},close:function(s){var h=H[s];if(!h.a)return F;h.a=F;if(A[0]){A.pop();if(!A[0])L('unbind');}
if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();}return F;},params:{}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version=="6.0"),F=false,i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),e=function(h){if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i);f(h);},f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}},L=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return!r;},hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function(){if(!this[c]){this[c]=[];$(this).click(function(){for(var i in{jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F;});}this[c].push(s);});});};})(jQuery);;$().ready(function(){$('#dialog').jqm({modal:true});});function rc_confirm(title,msg,callback){$('#confirm').jqmShow().find('p.jqmConfirmMsg').html(msg).end().find('div.jqmConfirmTitle').html(title).end().find(':submit:visible').click(function(){$('#confirm').jqmHide();if(this.value=='yes')
(typeof callback=='string')?window.location.href=callback:new callback;});}
$().ready(function(){$('#confirm').jqm({overlay:88,modal:true,trigger:false});$('a.confirm').click(function(){rc_confirm('About to visit: '+this.href+' !',this.href);return false;});});function rc_alert(msg){$('#alert').jqmShow().find('div.jqmAlertContent').html(msg);}
$().ready(function(){$('#alert').jqm({overlay:0,modal:true,trigger:false});});;var jqmodal_object;function create_jqmodal(content_object,linker_object,content_title,style,behavior)
{var o=new Object();if(is_def(style['width']))
o.got_width=style['width'];else o.got_width=null;if(is_def(style['height']))
o.got_height=style['height'];else o.got_height=null;if(is_def(style['positionX']))
o.got_positionX=style['positionX'];else o.got_positionX=null;if(is_def(style['positionY']))
o.got_positionY=style['positionY'];else o.got_positionY=null;if(is_def(style['border_height']))
o.border_height=style['border_height'];else o.border_height=null;if(is_def(style['border_width']))
o.border_width=style['border_width'];else o.border_width=null;if(is_def(style['position']))
o.position=style['position'];else o.position=null;if(is_def(behavior['onclose']))
o.jqmodal_onclose=behavior['onclose'];else o.jqmodal_onclose=jqmodal_onclosenull;if(behavior['aftershow'])
o.jqmodal_aftershow=behavior['aftershow'];else o.jqmodal_aftershow=jqmodal_aftershownull;o.title=content_title;o.jqmodal_linker_object=linker_object;o.jqmodal_content=content_object;o.jqmodal_content_parent=$(content_object).parent();o.height;o.width=$(content_object).width();o.top_;o.right;o.left;o.border;o.main_object_name='tmp_float_window_jqmodal_main';o.main_object=$('#'+o.main_object_name);o.min_width=100;o.max_width=770;o.min_height=50;o.max_height=500;o.border_top_offset;o.border_right_offset;o.jqmodal_width_set=jqmodal_width_set;o.jqmodal_height_set=jqmodal_height_set;o.jqmodal_positionX=jqmodal_positionX;o.jqmodal_positionY=jqmodal_positionY;o.jqmodal_set_close=jqmodal_set_close;o.jqmodal_set_border_shadow=jqmodal_set_border_shadow;o.jqmodal_onShow=jqmodal_onShow;o.close=jqmodal_close;o.TransferTo=jqmodal_TransferTo;o.FoldToggle=jqmodal_FoldToggle;o.show=jqmodal_show;o.hide=jqmodal_hide;if($(o.main_object).length==0){$('body').append('<div id="'+o.main_object_name+'" class="tmp_float_window_jqmodal_main"></div>');o.main_object=$('#'+o.main_object_name);}
$(o.main_object).html('');if(o.title)o.jqmodal_set_close();if($('#tmp_float_window_jqmodal').length==0)
$(o.main_object).append('<div id="tmp_float_window_jqmodal"></div>');$('#tmp_float_window_jqmodal').html('');o.jqmodal_width_set(o.got_width);o.jqmodal_height_set(o.got_height);$(o.main_object).css({'position':'absolute','visibility':'hidden','display':''});o.jqmodal_positionX(o.got_positionX);o.jqmodal_positionY(o.got_positionY);if(o.right>o.left){$(o.main_object).css({'top':o.top_,'right':'auto','left':o.left});}
else{$(o.main_object).css({'top':o.top_,'left':'auto','right':o.right});}
$(o.main_object).hide();$(o.main_object).css({'visibility':'','display':'none'});$(o.jqmodal_content).show();$('#tmp_float_window_jqmodal').append($(o.jqmodal_content));$('body').append('<iframe id="jqm_iframe"></iframe>');if(o.right<o.left&&o.right>0)
$('#jqm_iframe').css({position:'absolute',width:o.width,height:o.height,top:o.top_,right:o.right,border:'0px'});else
$('#jqm_iframe').css({position:'absolute',width:o.width,height:o.height,top:o.top_,left:o.left,border:'0px'});for(var func in behavior){if(func!='onclose'&&func!='aftershow')
o[func](behavior[func]);}
jqmodal_object=o;return(jqmodal_object);}
function jqmodal_onShow(){$(this.main_object).css('background-color','#ffffff');if(this.border_width>0||this.border_height>0)
this.jqmodal_set_border_shadow();if(typeof this.jqmodal_aftershow!='undefined');this.jqmodal_aftershow();}
function jqmodal_width_set(width){if(width)this.width=width;else{this.width=$(this.jqmodal_content).width();}
if(this.width<this.min_width)this.width=this.min_width;if(this.width>this.max_width)this.width=this.max_width;$(this.main_object).width(this.width);}
function jqmodal_height_set(height){if(height)this.height=height;else this.height=$(this.jqmodal_content).height();if(this.height<this.min_height)this.height=this.min_height;if(this.height>this.max_height)this.height=this.max_height;if(this.height>document.documentElement.clientHeight)this.height=document.documentElement.clientHeight;if(this.title)this.height=this.height+20;$(this.main_object).height(this.height);}
function jqmodal_positionX(right){if(right)this.right=right;else{var clientWidth=document.body.clientWidth;var half_clientWidth=document.body.clientWidth/2;var linker_left=$(this.jqmodal_linker_object).offset().left;var linker_right=clientWidth-linker_left-$(this.jqmodal_linker_object).innerHeight();if(this.position=='center'){this.left=(clientWidth-this.width)/2;this.right=999999;}
else{if(is_def(linker_right))this.right=linker_right;else this.right=0;if(is_def(linker_left))this.left=linker_left;else this.left=0;}}}
function jqmodal_positionY(top_){if(top_)this.top_=top_;else{var position;if($.browser.msie)position=document.documentElement.scrollTop;else position=window.pageYOffset;var clientHeight=document.documentElement.clientHeight;var linker_top=$(this.jqmodal_linker_object).offset().top;if(this.position=='center'){this.top_=position+(clientHeight-this.height)/2;}
else this.top_=linker_top;}
return;}
function jqmodal_show(speed){var main_object_=this.main_object;$(this.main_object).show(speed,function(){$(main_object_).jqm({modal:true}).jqmShow({onShow:this.jqmodal_set_border_shadow()});jqmodal_object.jqmodal_set_border_shadow();});}
function jqmodal_hide(speed){var main_object_=this.main_object;$(this.main_object).hide(speed,function(){$(main_object_).jqm({modal:true}).jqmShow();});}
function jqmodal_TransferTo(starter_object){this.main_object.jqm({modal:true}).jqmShow();this.jqmodal_onShow();}
function jqmodal_FoldToggle(){var main_object_=this.main_object;$(main_object_).FoldToggle(500,20,function(){$(main_object_).jqm({modal:true}).jqmShow();});}
function jqmodal_set_close(){$(this.main_object).append('<div class="tmp_float_window_jqmodal_x">'+'<a id="tmp_float_window_jqmodal_x_link" onclick="jqmodal_object.close()">'+'<img src="http://images.kidstv.co.il/images/general/x.gif"/>'+'</a>'+'</div>'+'<div class="tmp_float_window_jqmodal_title">'+this.title+'</span>');}
function jqmodal_close(){this.jqmodal_onclose();$(this.main_object).jqm().jqmHide();$(this.jqmodal_content_parent).append($(this.jqmodal_content));$(this.jqmodal_content).hide();$('#tmp_float_window_jqmodal').remove();$(this.main_object).remove();$('.jqmOverlay_border').remove();jqmodal_object=null;$('#jqm_iframe').remove();}
function jqmodal_set_border_shadow(){if(this.border_width&&this.border_height){var right=$(this.main_object).css('right').split('px')[0];var left=$(this.main_object).css('left').split('px')[0];if(right!='auto')right=right-this.border_width;if(left!='auto')left=left-this.border_width;$('.jqmOverlay').after('<div class="jqmOverlay_border"></div>');$('.jqmOverlay').hide();$('.jqmOverlay_border').css({'position':'absolute','right':right,'left':left,'top':$(this.main_object).css('top').split('px')[0]-this.border_height,'height':this.height+this.border_height*2,'width':this.width+this.border_width*2,'background-color':'#000000','opacity':'0.5','z-index':'2999'});}}
function jqmodal_minimize(){}
function jqmodal_resize(){}
function jqmodal_maximize(){}
function jqmodal_drag(){}
function set_jqmodal_window2(me,content_object,drag)
{jqmodal_content=content_object;jqmodal_content_parent=$(content_object).parent();var height=$(content_object).height();var width=$(content_object).width();if(width>760)width=760;if($.browser.msie)position=document.body.scrollTop;else position=window.pageYOffset;if($('#tmp_float_window_jqmodal_main').length==0)
$('body').append('<div id="tmp_float_window_jqmodal_main" class="tmp_float_window_jqmodal_main"></div>');$('#tmp_float_window_jqmodal_main').html('');$('#tmp_float_window_jqmodal_main').append('<div align="right"><a id="tmp_float_window_jqmodal_x" onclick="unset_jqmodal_window()">X</a></div>');if($('#tmp_float_window_jqmodal').length==0)
$('#tmp_float_window_jqmodal_main').append('<div id="tmp_float_window_jqmodal"></div>');$('#tmp_float_window_jqmodal').html('');$('#tmp_float_window_jqmodal_main').css('position','absolute');$('#tmp_float_window_jqmodal_main').css({top:(position+50),right:((document.body.clientWidth-width)/2)});$('#tmp_float_window_jqmodal_main').css('width',width);$('#tmp_float_window_jqmodal_main').css('background-color','#ffffff');$('#tmp_float_window_jqmodal_main').hide();$(content_object).show();$('#tmp_float_window_jqmodal').append($(content_object));$(me).TransferTo({to:'tmp_float_window_jqmodal_main',className:'tmp_float_window_jqmodal_TransferTo',duration:350,complete:function(){$('#tmp_float_window_jqmodal_main').jqm({modal:true}).jqmShow();}});}
function unset_jqmodal_window()
{$('#tmp_float_window_jqmodal_main').jqm().jqmHide();$(jqmodal_content_parent).append($(jqmodal_content));$(jqmodal_content).hide();$('#tmp_float_window_jqmodal').remove();$('#tmp_float_window_jqmodal_main').remove();}
function jqmodal_onclosenull(){return;}
function jqmodal_aftershownull(){return;};jQuery.each(["id","title","name","href","src","rel"],function(i,n){jQuery.fn[n]=function(h){return h==undefined?this.length?this[0][n]:null:this.attr(n,h);};});jQuery.each("top,left,position,float,overflow,color,background".split(","),function(i,n){jQuery.fn[n]=function(h){return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h);};});var e=("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select,"+"submit,keydown,keypress,keyup,error").split(",");for(var i=0;i<e.length;i++)new function(){var o=e[i];jQuery.fn["un"+o]=function(f){return this.unbind(o,f);};jQuery.fn["one"+o]=function(f){var element=jQuery(this);var handler=function(){element.unbind(o,handler);element=null;return f.apply(this,arguments);};return this.bind(o,handler);};};jQuery.fn.ancestors=jQuery.fn.parents;jQuery.expr[":"]["nth-child"]="jQuery.nth(a.parentNode.firstChild,parseInt(m[3])+1,'nextSibling')==a";jQuery.fn._filter=jQuery.fn.filter;jQuery.fn.filter=function(arr){return this._filter(arr.constructor==Array?arr.join(","):arr);};(function(jQuery){jQuery.each(["eq","lt","gt","contains"],function(i,n){jQuery.fn[n]=function(num,fn){return this.filter(":"+n+"("+num+")",fn);};});jQuery.fn.evalScripts=function(){};jQuery.fn.loadIfModified=function(){var old=jQuery.ajaxSettings.ifModified;jQuery.ajaxSettings.ifModified=true;var ret=jQuery.fn.load.apply(this,arguments);jQuery.ajaxSettings.ifModified=old;return ret;};jQuery.getIfModified=function(){var old=jQuery.ajaxSettings.ifModified;jQuery.ajaxSettings.ifModified=true;var ret=jQuery.get.apply(jQuery,arguments);jQuery.ajaxSettings.ifModified=old;return ret;};jQuery.ajaxTimeout=function(timeout){jQuery.ajaxSettings.timeout=timeout;};})(jQuery);;Drupal.preventSelect=function(elt){if(document.onselectstart){elt.onselectstart=function(){return false;}}
else{$(elt).mousedown(function(){return false;});}}
Drupal.getTarget=function(e){if(!e)e=window.event;var target=e.target?e.target:e.srcElement
if(!target)return null;if(target.nodeType==3)target=target.parentNode;if(target.tagName.toUpperCase()=='LABEL'&&e.type=='click'){if(target.getAttribute('for')){target=document.getElementById(target.getAttribute('for'));}}
return target;}
Drupal.url=function(path,query,fragment){query=query?query:'';fragment=fragment?fragment:'';var base=Drupal.settings.jstools.basePath;if(!Drupal.settings.jstools.cleanurls){if(query){return base+'?q='+path+'&'+query+fragment;}
else{return base+'?q='+path+'&'+fragment;}}
else{if(query){return base+path+'?'+query+fragment;}
else{return base+path+fragment;}}}
Drupal.getPath=function(href){href=href.substring(Drupal.settings.jstools.basePath.length+(Drupal.settings.jstools.cleanurls?0:3),href.length);var chars=['#','?','&'];for(i in chars){if(href.indexOf(chars[i])>-1){href=href.substr(0,href.indexOf(chars[i]));}}
return href;}
Drupal.redirectFormSubmit=function(uri,form,handler){$(form).submit(function(){Drupal.createIframe();var form=this;this.action=uri;this.target='redirect-target';handler.onsubmit();window.iframeHandler=function(){var iframe=$('#redirect-target').get(0);try{response=(iframe.contentWindow||iframe.contentDocument||iframe).document.body.innerHTML;response=response.replace(/[\f\n\r\t]/g,' ');if(window.opera){response=response.replace(/&quot;/g,'"');}}
catch(e){response=null;}
response=Drupal.parseJson(response);if(response.status==0){handler.onerror(response.data);return;}
handler.oncomplete(response.data);return true;}
return true;});}
Drupal.elementChildren=function(element){var children=[];for(i in element){if(i.substr(0,1)!='#'){children[children.length]=i;}}
return children;}
Drupal.elementProperties=function(element){var properties=[];for(i in element){if(i.substr(0,1)=='#'){properties[properties.length]=i;}}
return properties;};Drupal.activemenuAutoAttach=function(){var menus=Drupal.settings.activemenu;for(var menu in menus){$(menu+' li.expanded:not(.activemenu-processed)').each(function(){Drupal.preventSelect(this);$(this).click(function(e){if(this==Drupal.getTarget(e)){$(this).toggleClass('collapsed').toggleClass('expanded').find('ul').slideToggle();}}).addClass('activemenu-processed').find('ul').slideDown('fast',function(){$(this).css({height:''});});});$(menu+' li.collapsed:not(.activemenu-processed)').each(function(){if($(this).children('ul').length>0){return;}
var path=Drupal.getPath(this.firstChild.getAttribute('href',2));var url=Drupal.url(menus[menu]);var elt=this;Drupal.preventSelect(this);$(this).click(function(e){var offset=Drupal.mousePosition(e).x-Drupal.absolutePosition(this).x;if(offset<(0+parseInt($(this).css('padding-left')))){$.ajax({type:'POST',url:url,data:'path='+path,success:function(data){if($(elt).children('ul').length>0){return;}
data=Drupal.parseJson(data);$(elt).append(data.content).removeClass('collapsed').addClass('expanded').unclick().click(function(e){if(this==Drupal.getTarget(e)){$(this).toggleClass('collapsed').toggleClass('expanded').find('ul').slideToggle();}}).find('ul').slideDown();Drupal.activemenuAutoAttach();},error:function(xmlhttp){alert('An HTTP error '+xmlhttp.status+' occured.\n'+url);}});return false;}}).addClass('activemenu-processed');});}}
if(Drupal.jsEnabled){$(document).ready(Drupal.activemenuAutoAttach);};$(document).ready(TB_init);function TB_init(){$("a.thickbox").click(function(){var t=this.title||this.name||null;var g=this.rel||false;TB_show(t,this.href,g);this.blur();return false;});}
function TB_show(caption,url,imageGroup){try{if(document.getElementById("TB_HideSelect")==null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(TB_remove);}
if(caption==null){caption=""};$(window).scroll(TB_position);TB_overlaySize();$("body").append("<div id='TB_load'></div>");TB_load_position();if(url.indexOf("?")!==-1){var baseURL=url.substr(0,url.indexOf("?"));}else{var baseURL=url;}
var urlString=/\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;var urlType=baseURL.toLowerCase().match(urlString);if(urlType=='.jpg'||urlType=='.jpeg'||urlType=='.png'||urlType=='.gif'||urlType=='.bmp'){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=$("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML==""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=TB_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div>");$("#TB_closeWindowButton").click(TB_remove);if(!(TB_PrevHTML=="")){function goPrev(){if($(document).unclick(goPrev)){$(document).unclick(goPrev)};$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");TB_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}
$("#TB_prev").click(goPrev);}
if(!(TB_NextHTML=="")){function goNext(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");TB_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}
$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){TB_remove();}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();}}}
TB_position();$("#TB_load").remove();$("#TB_ImageOff").click(TB_remove);$("#TB_window").css({display:"block"});}
imgPreloader.src=url;}else{var queryString=url.replace(/^[^\?]+\??/,'');var params=TB_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30;TB_HEIGHT=(params['height']*1)+40;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' onload='TB_showIframe()'> </iframe>");}else{$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}
$("#TB_closeWindowButton").click(TB_remove);if(url.indexOf('TB_inline')!=-1){$("#TB_ajaxContent").html($('#'+params['inlineId']).html());TB_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else if(url.indexOf('TB_iframe')!=-1){TB_position();if(frames['TB_iframeContent']==undefined){$("#TB_load").remove();$("#TB_window").css({display:"block"});$(document).keyup(function(e){var key=e.keyCode;if(key==27){TB_remove()}});}}else{$("#TB_ajaxContent").load(url,function(){TB_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});});}}
$(window).resize(TB_position);document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){TB_remove();}}}catch(e){alert(e);}}
function TB_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function TB_remove(){$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});$("#TB_load").remove();return false;}
function TB_position(){var pagesize=TB_getPageSize();var arrayPageScroll=TB_getPageScrollTop();$("#TB_window").css({width:TB_WIDTH+"px",left:(arrayPageScroll[0]+(pagesize[0]-TB_WIDTH)/2)+"px",top:(arrayPageScroll[1]+(pagesize[1]-TB_HEIGHT)/2)+"px"});}
function TB_overlaySize(){if(window.innerHeight&&window.scrollMaxY||window.innerWidth&&window.scrollMaxX){yScroll=window.innerHeight+window.scrollMaxY;xScroll=window.innerWidth+window.scrollMaxX;}else if(document.body.scrollHeight>document.body.offsetHeight||document.body.scrollWidth>document.body.offsetWidth){yScroll=document.body.scrollHeight;xScroll=document.body.scrollWidth;}else{yScroll=document.body.offsetHeight;xScroll=document.body.offsetWidth;}
$("#TB_overlay").css({"height":yScroll+"px","width":xScroll+"px"});$("#TB_HideSelect").css({"height":yScroll+"px","width":xScroll+"px"});}
function TB_load_position(){var pagesize=TB_getPageSize();var arrayPageScroll=TB_getPageScrollTop();$("#TB_load").css({left:(arrayPageScroll[0]+(pagesize[0]-100)/2)+"px",top:(arrayPageScroll[1]+((pagesize[1]-100)/2))+"px"}).css({display:"block"});}
function TB_parseQuery(query){var Params=new Object();if(!query)return Params;var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2)continue;var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val;}
return Params;}
function TB_getPageScrollTop(){var yScrolltop;var xScrollleft;if(self.pageYOffset||self.pageXOffset){yScrolltop=self.pageYOffset;xScrollleft=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop||document.documentElement.scrollLeft){yScrolltop=document.documentElement.scrollTop;xScrollleft=document.documentElement.scrollLeft;}else if(document.body){yScrolltop=document.body.scrollTop;xScrollleft=document.body.scrollLeft;}
arrayPageScroll=new Array(xScrollleft,yScrolltop)
return arrayPageScroll;}
function TB_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight
arrayPageSize=new Array(w,h)
return arrayPageSize;};Drupal.Panels={};Drupal.Panels.autoAttach=function(){if($.browser.msie){$("div.panel-pane").hover(function(){$('div.panel-hide',this).addClass("panel-hide-hover");return true;},function(){$('div.panel-hide',this).removeClass("panel-hide-hover");return true;});$("div.admin-links").hover(function(){$(this).addClass("admin-links-hover");return true;},function(){$(this).removeClass("admin-links-hover");return true;});}};$(Drupal.Panels.autoAttach);;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
document.write(str);}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;};function utils_common_blocks()
{$('.registration_link').bind('click',function(ev){create_jqmodal($('.registration_link_hidden'),$('#main-wrapper'),_po('registration needed'),{'border_width':'20','border_height':'20','position':'center'},{TransferTo:'main-wrapper'});});$('[@id=registration_windowOpen2]').bind('click',function(){if(jqmodal_object){jqmodal_object.close();create_jqmodal($('#registration_windowContent'),$('#registration_windowOpen'),'',{},{TransferTo:'registration_windowOpen',onclose:registration_clean_login_form});}});}
$(document).ready(utils_common_blocks);;$().ready(function(){if($('.abuse_link',$('.footer')).length>0){$('.abuse_link',$('.footer')).sbutton({'margin-left':'50px'});}
if($.browser.msie&&$('body').hasClass('webform')){$('#sidebar-left .block-advpoll').css('display','block');}});;$(document).ready(terms_menu_init);function terms_menu_init(){var n=$('.term_shows .term_div_small').length;if(n>=7)
{var w=0;$('.term_shows .term_div_small').each(function(){w+=this.offsetWidth});var p=$('.term_shows .term_div_small').parent().get(0);var W=p.offsetWidth;var margin=(new Number((W-w)/(n+1))).toFixed(2)-0.01;$('.link_separator').css({'width':margin+'px','margin':0,'background':'none'}).show();}
var N=$('.term_shows .term_div_big').length;if(N>=6)
{var w=0;$('.term_shows .term_div_big').css({'padding-left':0,'padding-right':0}).each(function(){w+=this.offsetWidth});var p=$('.term_shows .term_div_big').parent().get(0);var W=p.offsetWidth;var margin=(new Number((W-w)/(N+1))).toFixed(2)-0.01;$('.link_separator').css({'width':margin+'px','margin':0,'background':'none'}).show();}};$(document).ready(function(){if($('#edit-remember-me').length){$('#user-login-form #edit-pass').keypress(function(e){if(e.keyCode==13)registration_check_submit();});$('#edit-remember-me').parent().parent().attr('id','remember_me');$('#user-login-form  #edit-submit').addClass("remove_me");$('#user-login-form #edit-submit').after('<input type="button" id="edit-submit" value="'+$('#user-login-form  #edit-submit').val()+'">');$('#user-login-form .remove_me').remove();$('#user-login-form  #edit-submit').click(function(){registration_check_submit();});$('#user-login-form  #edit-submit').sbutton({'css':{'width':'70px'}});$('#remember_me').before($('#reg_login_button_casing'));$('.registration_forgot_pass_submit_link_caser').sbutton({'css':{'width':'100px'}});$('#user-pass #edit-submit').hide();}});var submited=false;function registration_check_submit(){if(!submited)
submited='true';else{return;}
$('.reg_login_content_casing').fadeTo('slow',0.2);$('#registration_windowContent').after('<img src="/images/ajax-loader.gif" id="ajax-loader" style="position:absolute;left:35%;top:25%">');$.ajax({type:"POST",url:Drupal.url("registration/login"),async:false,secureuri:false,data:"name="+$('#user-login-form #edit-name').val()+"&pass="+$('#user-login-form #edit-pass').val(),success:function(arr,status,e){if(arr=='ok')
$('#user-login-form').submit();else{$('#ajax-loader').remove();$('.reg_login_content_casing').fadeTo('slow',1);if($('#registration_login_error').length<1){$('#user-login-form').before('<div id="registration_login_error" class="error">'+_po('אבוי! השם/אימייל או הסיסמא שגויים')+'</div>');$('#tmp_float_window_jqmodal_main').height($('#tmp_float_window_jqmodal_main').height()+20);$('#registration_windowContent').height($('#registration_windowContent').height()+20);}
submited=false;}},error:function(msg,status,e){alert(e);}});}
var show_login=0;function registration_show_login()
{if(show_login){$('.registration_login').css('display','none');show_login=0;}
else{$('.registration_login').css('display','');show_login=1;}}
function show_registration_win(evt){$('#registration_windowClose').click();el=$('#registration_login');registration_login_window=$('#registration_login_window');winInline=['<div id="registration_windowTop">','<div id="registration_windowTopContent">Window title</div>','<img src="/images/floatWindow/window_close.jpg" id="registration_windowClose" />','</div>','<div id="registration_windowContent"></div>'].join('');if(!registration_login_window[0]){registration_login_window=document.createElement('DIV');registration_login_window.id='registration_login_window';registration_login_window.innerHTML=winInline;$('body').append(registration_login_window);}else{registration_login_window.empty().append(winInline);}
$('#registration_windowContent').append(el.html());$('#registration_windowTopContent').html(this.innerHTML);registration_login_window=$('#registration_login_window');if(typeof pageYOffset!="undefined"){$('#registration_login_window').css("top",evt.clientY+pageYOffset-50);$('#registration_login_window').css("left",evt.clientX-70);}
else{$('#registration_login_window').css("top",evt.clientY+document.body.scrollTop-50);$('#registration_login_window').css("left",evt.clientX-70);}
$('#registration_windowContent .option').attr('id','registration_login_option');if(registration_login_window.css('display')=='none')
$(this).TransferTo({to:'registration_login_window',className:'transferer2',duration:400,close:'yes',complete:function()
{$('#registration_login_window').show();}});$(this).blur();$('#registration_windowClose').click(function(){registration_login_window=$(this).parent().parent();registration_login_window.hide();});return false;}
function registration_clean_login_form(){$('#user-login-form #edit-name').val('');$('#user-login-form #edit-pass').val('');$('#registration_login_error').remove();}
function registration_submit_forgot_pass(){$.ajax({type:"POST",url:Drupal.url("user/password"),secureuri:false,dataType:'json',data:"name="+$('#user-pass #edit-name').val()+"&form_id="+$('#user-pass #edit-user-pass').val()+"&op="+$('#user-pass #edit-submit').val(),success:function(msg,status,e){var smsg=msg['msg'];if(msg['error']==1){if($('#registration_forgot_pass_error').length==0){$('#tmp_float_window_jqmodal').height($('#tmp_float_window_jqmodal').height()+40);$('#registration_forgot_pass').before('<div id="registration_forgot_pass_error" class="error">'+msg['msg']+'</div>');}
else{$('#registration_forgot_pass_error').html(smsg);}}
else{jqmodal_object.close();create_jqmodal($('#registration_forgot_pass_ok'),$('#registration_windowOpen'),_po('Forgot password')+'?',{'position':'center'},{TransferTo:'registration_windowOpen'});$('.registration_forgot_pass_exp_ok').html(smsg);}},error:function(msg,status,e){alert(e);}});};$(document).ready(init_content_taxonomy_extender);function init_content_taxonomy_extender(){$('#tax_extend_add_btn').click(function(){if($('#'+$(this).attr('attached_to')).length<=0)
return;var sel_dom=$('#'+$(this).attr('attached_to')).get(0);var opt_arr=sel_dom.options;for(var i=0;i<opt_arr.length;i++){if(opt_arr[i].selected==true){var new_opt=document.createElement('option');var sel_term_name=opt_arr[i].text;var sel_term_val=opt_arr[i].value;var sel_term=sel_term_name+'['+sel_term_val+']';new_opt.value=sel_term_val;new_opt.text=sel_term;try
{$('#tax_extend_terms_box').get(0).add(new_opt,null);}
catch(ex)
{$('#tax_extend_terms_box').get(0).add(new_opt);}}}
mark_all($('#tax_extend_terms_box').get(0));return false;});$('#tax_extend_add_btn').click();$('#tax_extend_rem_btn').click(function(){var main_select=$('#'+$(this).attr('driven_from'));var secondary_select=$('#'+$(this).attr('attached_to'));secondary_select.find('option:selected').each(function(i){main_select.find('option[@value="'+$(this).attr('value')+'"]').removeAttr('selected');$(this).remove();});secondary_select.find('option').attr('selected','selected');return false;});$('.tax_extender_input').bind('value_selected',function(obj,tid){$('#'+$(this).attr('attached_to')).val(tid);$(this).val('');});}
function mark_all(options){for(var i=0;i<options.length;i++){options[i].selected=true;}};$(document).ready(function()
{$('.advpoll_text_label').bind('click',function(){$(this).parent().children(":input").click();});$('div.poll-submit .form-submit').sbutton();$('div.poll-submit .form-submit').bind('click',function(){if($('div.poll-submit .form-submit').parents('form').find(':input[@type=radio]:checked').val())
return true;else
return false;});});function onHooverCheck(){if($('div.poll-submit .form-submit').parents('form').find(':input[@type=radio]:checked').val())
return true;else
return false;};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}('(4(C){7 I=C.w.1d,D=C.h.2t&&(2l(C.h.1D)<1.9);C.e={1D:"@2o",2j:{1f:4(K,L,N){7 M=C.e[K].t;1O(7 J 3t N){M.Z[J]=M.Z[J]||[];M.Z[J].3d([L,N[J]])}},X:4(J,L,K){7 N=J.Z[L];6(!N){5}1O(7 M=0;M<N.T;M++){6(J.g[N[M][0]]){N[M][1].p(J.f,K)}}}},1E:4(L,K){7 J=C.h.1Z&&C.h.1D<2Y;6(L.1E&&!J){5 L.1E(K)}6(L.25){5!!(L.25(K)&16)}2X(K=K.2W){6(K==L){5 k}}5 b},U:{},d:4(J){6(C.e.U[J]){5 C.e.U[J]}7 K=C(\'<2Z 30="e-3b">\').2g(J).d({S:"1i",3a:"-26",1R:"-26",31:"2V"}).2U("1Y");C.e.U[J]=!!((!(/1h|2O/).c(K.d("2N"))||(/^[1-9]/).c(K.d("2L"))||(/^[1-9]/).c(K.d("2P"))||!(/1X/).c(K.d("2Q"))||!(/2T|2S\\(0, 0, 0, 0\\)/).c(K.d("2R"))));3c{C("1Y").1g(0).3q(K.1g(0))}3p(L){}5 C.e.U[J]},3o:4(M,K){6(C(M).d("n")=="19"){5 b}7 J=(K&&K=="1R")?"2K":"3r",L=b;6(M[J]>0){5 k}M[J]=1;L=(M[J]>0);M[J]=0;5 L},1k:4(K,J,L){5(K>J)&&(K<(J+L))},3s:4(O,K,N,M,J,L){5 C.e.1k(O,N,J)&&C.e.1k(K,M,L)},3v:{3u:8,3n:20,3m:3g,3f:17,3e:46,3h:40,3i:35,3l:13,3k:27,3j:36,3w:45,2H:37,2q:2n,2m:2k,2J:2D,2C:2r,2F:2G,2I:2B,2A:34,2u:33,2s:2w,2y:39,2x:16,2z:32,2v:9,2E:38}};6(D){7 F=C.o,E=C.w.2i,H="2p://2M.3L.4e/4g/4k/1j",A=/^4m-/,B=/^23:/;C.o=4(K,J,L){7 M=L!==1m;5(J=="4p"?(M?F.X(2,K,J,"23:"+L):(F.p(2,12)||"").18(B,"")):(A.c(J)?(M?K.4n(H,J.18(A,"1j:"),L):F.X(2,K,J.18(A,"1j:"))):F.p(2,12)))};C.w.2i=4(J){5(A.c(J)?2.11(4(){2.4q(H,J.18(A,""))}):E.X(2,J))}}C.w.1b({1d:4(){C("*",2).1f(2).11(4(){C(2).29("1d")});5 I.p(2,12)},4l:4(){5 2.o("v","4d").d("1W","").1c("1Q.e")},4h:4(){5 2.o("v","1J").d("1W","1X").l("1Q.e",4(){5 b})},4o:4(){7 J;6((C.h.10&&(/(4i|1G)/).c(2.d("S")))||(/1i/).c(2.d("S"))){J=2.15().1A(4(){5(/(1G|1i|21)/).c(C.m(2,"S",1))&&(/(1h|2f)/).c(C.m(2,"n",1)+C.m(2,"n-y",1)+C.m(2,"n-x",1))}).28(0)}4j{J=2.15().1A(4(){5(/(1h|2f)/).c(C.m(2,"n",1)+C.m(2,"n-y",1)+C.m(2,"n-x",1))}).28(0)}5(/21/).c(2.d("S"))||!J.T?C(1u):J}});C.1b(C.4f[":"],{r:4(K,L,J){5 C.r(K,J[3])},3x:4(L,M,K){7 N=L.4b.3K();4 J(O){5!(C(O).3J(":19")||C(O).15(":19").T)}5(L.3I>=0&&(("a"==N&&L.4c)||(/3M|3O|3N|22/.c(N)&&"19"!=L.2h&&!L.q))&&J(L))}});4 G(M,N,O,L){4 K(Q){7 P=C[M][N][Q]||[];5(V P=="z"?P.1l(/,?\\s+/):P)}7 J=K("3H");6(L.T==1&&V L[0]=="z"){J=J.3G(K("1K"))}5(C.3A(O,J)!=-1)}C.Y=4(K,J){7 L=K.1l(".")[0];K=K.1l(".")[1];C.w[K]=4(P){7 N=(V P=="z"),O=3z.t.3y.X(12,1);6(N&&P.3B(0,1)=="3C"){5 2}6(N&&G(L,K,P,O)){7 M=C.r(2[0],K);5(M?M[P].p(M,O):1m)}5 2.11(4(){7 Q=C.r(2,K);(!Q&&!N&&C.r(2,K,3F C[L][K](2,P)));(Q&&N&&C.3E(Q[P])&&Q[P].p(Q,O))})};C[L]=C[L]||{};C[L][K]=4(O,N){7 M=2;2.j=K;2.1o=C[L][K].3D||K;2.2a=L+"-"+K;2.g=C.1b({},C.Y.14,C[L][K].14,C.1N&&C.1N.1g(O)[K],N);2.f=C(O).l("3P."+K,4(Q,P,R){5 M.u(P,R)}).l("3Q."+K,4(Q,P){5 M.1p(P)}).l("1d",4(){5 M.1L()});2.1M()};C[L][K].t=C.1b({},C.Y.t,J);C[L][K].1K="1V"};C.Y.t={1M:4(){},1L:4(){2.f.44(2.j)},1V:4(L,M){7 K=L,J=2;6(V L=="z"){6(M===1m){5 2.1p(L)}K={};K[L]=M}C.11(K,4(N,O){J.u(N,O)})},1p:4(J){5 2.g[J]},u:4(J,K){2.g[J]=K;6(J=="q"){2.f[K?"2g":"43"](2.2a+"-q")}},42:4(){2.u("q",b)},47:4(){2.u("q",k)},48:4(K,L,M){7 J=(K==2.1o?K:2.1o+K);L=L||C.4a.49({2h:J,1n:2.f[0]});5 2.f.29(J,[L,M],2.g[K])}};C.Y.14={q:b};C.e.2b={41:4(){7 J=2;2.f.l("3Z."+2.j,4(K){5 J.1U(K)}).l("3T."+2.j,4(K){6(J.1q){J.1q=b;5 b}});6(C.h.10){2.1I=2.f.o("v");2.f.o("v","1J")}2.3S=b},3R:4(){2.f.1c("."+2.j);(C.h.10&&2.f.o("v",2.1I))},1U:4(L){(2.i&&2.W(L));2.1e=L;7 K=2,M=(L.3U==1),J=(V 2.g.1x=="z"?C(L.1n).15().1f(L.1n).1A(2.g.1x).T:b);6(!M||J||!2.1F(L)){5 k}2.1a=!2.g.1s;6(!2.1a){2.3V=3Y(4(){K.1a=k},2.g.1s)}6(2.1r(L)&&2.1w(L)){2.i=(2.1z(L)!==b);6(!2.i){L.1B();5 k}}2.1t=4(N){5 K.2c(N)};2.1C=4(N){5 K.W(N)};C(1u).l("24."+2.j,2.1t).l("2d."+2.j,2.1C);6(!C.h.1Z){L.1B()}5 k},2c:4(J){6(C.h.10&&!J.22){5 2.W(J)}6(2.i){2.1y(J);5 J.1B()}6(2.1r(J)&&2.1w(J)){2.i=(2.1z(2.1e,J)!==b);(2.i?2.1y(J):2.W(J))}5!2.i},W:4(J){C(1u).1c("24."+2.j,2.1t).1c("2d."+2.j,2.1C);6(2.i){2.i=b;2.1q=k;2.1H(J)}5 b},1r:4(J){5(1v.3X(1v.1T(2.1e.1P-J.1P),1v.1T(2.1e.1S-J.1S))>=2.g.2e)},1w:4(J){5 2.1a},1z:4(J){},1y:4(J){},1H:4(J){},1F:4(J){5 k}};C.e.2b.14={1x:3W,2e:1,1s:0}})(4r)',62,276,'||this||function|return|if|var||||false|test|css|ui|element|options|browser|_mouseStarted|widgetName|true|bind|curCSS|overflow|attr|apply|disabled|data||prototype|_setData|unselectable|fn|||string|||||||||||||||||||position|length|cssCache|typeof|_mouseUp|call|widget|plugins|msie|each|arguments||defaults|parents|||replace|hidden|mouseDelayMet|extend|unbind|remove|_mouseDownEvent|add|get|auto|absolute|aaa|isOverAxis|split|undefined|target|widgetEventPrefix|_getData|_preventClickEvent|_mouseDistanceMet|delay|_mouseMoveDelegate|document|Math|_mouseDelayMet|cancel|_mouseDrag|_mouseStart|filter|preventDefault|_mouseUpDelegate|version|contains|_mouseCapture|relative|_mouseStop|_mouseUnselectable|on|getterSetter|destroy|_init|metadata|for|pageX|selectstart|left|pageY|abs|_mouseDown|option|MozUserSelect|none|body|safari||fixed|button|wairole|mousemove|compareDocumentPosition|5000px||eq|triggerHandler|widgetBaseClass|mouse|_mouseMove|mouseup|distance|scroll|addClass|type|removeAttr|plugin|110|parseFloat|NUMPAD_DECIMAL|107|VERSION|http|NUMPAD_ADD|108|PERIOD|mozilla|PAGE_UP|TAB|190|SHIFT|RIGHT|SPACE|PAGE_DOWN|109|NUMPAD_ENTER|111|UP|NUMPAD_MULTIPLY|106|LEFT|NUMPAD_SUBTRACT|NUMPAD_DIVIDE|scrollLeft|height|www|cursor|default|width|backgroundImage|backgroundColor|rgba|transparent|appendTo|block|parentNode|while|522|div|class|display|||||||||top|gen|try|push|DELETE|CONTROL|188|DOWN|END|HOME|ESCAPE|ENTER|COMMA|CAPS_LOCK|hasScroll|catch|removeChild|scrollTop|isOver|in|BACKSPACE|keyCode|INSERT|tabbable|slice|Array|inArray|substring|_|eventPrefix|isFunction|new|concat|getter|tabIndex|is|toLowerCase|w3|input|textarea|select|setData|getData|_mouseDestroy|started|click|which|_mouseDelayTimer|null|max|setTimeout|mousedown||_mouseInit|enable|removeClass|removeData|||disable|_trigger|fix|event|nodeName|href|off|org|expr|2005|disableSelection|static|else|07|enableSelection|aria|setAttributeNS|scrollParent|role|removeAttributeNS|jQuery'.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}('(b(C){C.o=C.o||{};C.17(C.o,{2R:"@2Q",2P:b(F,G){1T(d E=0;E<G.1s;E++){8(G[E]!==V){C.2o(F[0],"2n.2p."+G[E],F[0].w[G[E]])}}},2N:b(F,G){1T(d E=0;E<G.1s;E++){8(G[E]!==V){F.j(G[E],C.2o(F[0],"2n.2p."+G[E]))}}},2X:b(E,F){8(F=="q"){F=E.2M(":2Y")?"1b":"1k"}6 F},2J:b(F,G){d H,E;2s(F[0]){Z"1d":H=0;U;Z"2F":H=0.5;U;Z"2e":H=1;U;2r:H=F[0]/G.2g}2s(F[1]){Z"18":E=0;U;Z"2E":E=0.5;U;Z"2x":E=1;U;2r:E=F[1]/G.2l}6{x:E,y:H}},2G:b(F){8(F.1q().T("1Q")=="1P"){6 F}d E={2l:F.3f({1S:2u}),2g:F.3m({1S:2u}),"2h":F.j("2h")};F.3j(\'<2i 1Q="1P" w="3c-3b:28%;34:1m;33:30;1S:0;31:0"></2i>\');d I=F.1q();8(F.j("t")=="1z"){I.j({t:"1A"});F.j({t:"1A"})}l{d H=F.j("1d");8(1N(h(H))){H="2k"}d G=F.j("18");8(1N(h(G))){G="2k"}I.j({t:F.j("t"),1d:H,18:G,35:F.j("z-36")}).1b();F.j({t:"1A",1d:0,18:0})}I.j(E);6 I},3a:b(E){8(E.1q().T("1Q")=="1P"){6 E.1q().39(E)}6 E},38:b(F,G,E,H){H=H||{};C.1r(G,b(J,I){1g=F.26(I);8(1g[0]>0){H[I]=1g[0]*E+1g[1]}});6 H},19:b(G,H,J,I){d E=(1a J=="b"?J:(I?I:V));d F=(1a J=="1J"?J:V);6 e.1r(b(){d O={};d M=C(e);d N=M.T("w")||"";8(1a N=="1J"){N=N["1I"]}8(G.q){M.37(G.q)?G.p=G.q:G.r=G.q}d K=C.17({},(1h.1f?1h.1f.2t(e,V):e.2v));8(G.r){M.12(G.r)}8(G.p){M.13(G.p)}d L=C.17({},(1h.1f?1h.1f.2t(e,V):e.2v));8(G.r){M.13(G.r)}8(G.p){M.12(G.p)}1T(d P 3k L){8(1a L[P]!="b"&&L[P]&&P.1v("3l")==-1&&P.1v("1s")==-1&&L[P]!=K[P]&&(P.1y(/1G/i)||(!P.1y(/1G/i)&&!1N(h(L[P],10))))&&(K.t!="1z"||(K.t=="1z"&&!P.1y(/18|1d|2e|2x/)))){O[P]=L[P]}}M.2D(O,H,F,b(){8(1a C(e).T("w")=="1J"){C(e).T("w")["1I"]="";C(e).T("w")["1I"]=N}l{C(e).T("w",N)}8(G.r){C(e).12(G.r)}8(G.p){C(e).13(G.p)}8(E){E.k(e,g)}})})}});C.S.17({2f:C.S.1b,22:C.S.1k,2c:C.S.q,2a:C.S.12,2d:C.S.13,20:C.S.1X,1o:b(E,G,F,H){6 C.o[E]?C.o[E].2U(e,{2T:E,2O:G||{},1n:F,1p:H}):V},1b:b(){8(!g[0]||(g[0].14==1H||/(1F|1E|1D)/.1x(g[0]))){6 e.2f.k(e,g)}l{d E=g[1]||{};E["1U"]="1b";6 e.1o.k(e,[g[0],E,g[2]||E.1n,g[3]||E.1p])}},1k:b(){8(!g[0]||(g[0].14==1H||/(1F|1E|1D)/.1x(g[0]))){6 e.22.k(e,g)}l{d E=g[1]||{};E["1U"]="1k";6 e.1o.k(e,[g[0],E,g[2]||E.1n,g[3]||E.1p])}},q:b(){8(!g[0]||(g[0].14==1H||/(1F|1E|1D)/.1x(g[0]))||(g[0].14==3e)){6 e.2c.k(e,g)}l{d E=g[1]||{};E["1U"]="q";6 e.1o.k(e,[g[0],E,g[2]||E.1n,g[3]||E.1p])}},12:b(F,E,H,G){6 E?C.o.19.k(e,[{r:F},E,H,G]):e.2a(F)},13:b(F,E,H,G){6 E?C.o.19.k(e,[{p:F},E,H,G]):e.2d(F)},1X:b(F,E,H,G){6 E?C.o.19.k(e,[{q:F},E,H,G]):e.20(F)},29:b(E,G,F,I,H){6 C.o.19.k(e,[{r:G,p:E},F,I,H])},32:b(){6 e.29.k(e,g)},26:b(E){d F=e.j(E),G=[];C.1r(["3i","3h","%","3d"],b(H,I){8(F.1v(I)>0){G=[1l(F),I]}});6 G}});C.1r(["23","3g","2Z","3n","2V","1G","2L"],b(F,E){C.2I.2K[E]=b(G){8(G.2H==0){G.R=D(G.21,E);G.1e=B(G.1e)}G.21.w[E]="1W("+[c.1w(c.1M(h((G.1B*(G.1e[0]-G.R[0]))+G.R[0]),f),0),c.1w(c.1M(h((G.1B*(G.1e[1]-G.R[1]))+G.R[1]),f),0),c.1w(c.1M(h((G.1B*(G.1e[2]-G.R[2]))+G.R[2]),f),0)].2W(",")+")"}});b B(F){d E;8(F&&F.14==2S&&F.1s==3){6 F}8(E=/1W\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.15(F)){6[h(E[1]),h(E[2]),h(E[3])]}8(E=/1W\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.15(F)){6[1l(E[1])*2.1C,1l(E[2])*2.1C,1l(E[3])*2.1C]}8(E=/#([a-W-X-9]{2})([a-W-X-9]{2})([a-W-X-9]{2})/.15(F)){6[h(E[1],16),h(E[2],16),h(E[3],16)]}8(E=/#([a-W-X-9])([a-W-X-9])([a-W-X-9])/.15(F)){6[h(E[1]+E[1],16),h(E[2]+E[2],16),h(E[3]+E[3],16)]}8(E=/4D\\(0, 0, 0, 0\\)/.15(F)){6 A["1m"]}6 A[C.4C(F).4B()]}b D(G,E){d F;4z{F=C.4A(G,E);8(F!=""&&F!="1m"||C.4E(G,"4F")){U}E="23"}4J(G=G.3o);6 B(F)}d A={4H:[0,f,f],4G:[1Y,f,f],4y:[27,27,4x],4L:[0,0,0],4o:[0,0,f],4n:[2C,42,42],4l:[0,f,f],4m:[0,0,Y],4q:[0,Y,Y],4r:[1L,1L,1L],4w:[0,28,0],4v:[4u,4s,2b],4t:[Y,0,Y],4K:[52,2b,47],54:[f,1Z,0],4Y:[51,50,4Z],53:[Y,0,0],4W:[4P,4O,4N],4M:[4Q,0,1j],4R:[f,0,f],4V:[f,4X,0],4U:[0,n,0],4T:[v,0,4S],4p:[1Y,24,1Z],4j:[3H,3G,24],3F:[2y,f,f],3D:[2z,3E,2z],3I:[1j,1j,1j],3J:[f,3O,3N],3M:[f,f,2y],3K:[0,f,0],4k:[f,0,f],3L:[n,0,0],3C:[0,0,n],3B:[n,n,0],3t:[f,2C,0],3s:[f,1i,3r],3p:[n,0,n],3q:[n,0,n],3u:[f,0,0],3v:[1i,1i,1i],3A:[f,f,f],3z:[f,f,0],1m:[f,f,f]};C.u.3y=C.u.2w;C.17(C.u,{2A:"2B",2w:b(F,G,E,I,H){6 C.u[C.u.2A](F,G,E,I,H)},3w:b(F,G,E,I,H){6 I*(G/=H)*G+E},2B:b(F,G,E,I,H){6-I*(G/=H)*(G-2)+E},3x:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G+E}6-I/2*((--G)*(G-2)-1)+E},3P:b(F,G,E,I,H){6 I*(G/=H)*G*G+E},3Q:b(F,G,E,I,H){6 I*((G=G/H-1)*G*G+1)+E},4b:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G+E}6 I/2*((G-=2)*G*G+2)+E},4a:b(F,G,E,I,H){6 I*(G/=H)*G*G*G+E},49:b(F,G,E,I,H){6-I*((G=G/H-1)*G*G*G-1)+E},46:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G*G+E}6-I/2*((G-=2)*G*G*G-2)+E},48:b(F,G,E,I,H){6 I*(G/=H)*G*G*G*G+E},4c:b(F,G,E,I,H){6 I*((G=G/H-1)*G*G*G*G+1)+E},4d:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G*G*G+E}6 I/2*((G-=2)*G*G*G*G+2)+E},4i:b(F,G,E,I,H){6-I*c.2j(G/H*(c.m/2))+I+E},4h:b(F,G,E,I,H){6 I*c.1c(G/H*(c.m/2))+E},4g:b(F,G,E,I,H){6-I/2*(c.2j(c.m*G/H)-1)+E},4e:b(F,G,E,I,H){6(G==0)?E:I*c.Q(2,10*(G/H-1))+E},4f:b(F,G,E,I,H){6(G==H)?E+I:I*(-c.Q(2,-10*G/H)+1)+E},45:b(F,G,E,I,H){8(G==0){6 E}8(G==H){6 E+I}8((G/=H/2)<1){6 I/2*c.Q(2,10*(G-1))+E}6 I/2*(-c.Q(2,-10*--G)+2)+E},44:b(F,G,E,I,H){6-I*(c.1t(1-(G/=H)*G)-1)+E},3V:b(F,G,E,I,H){6 I*c.1t(1-(G=G/H-1)*G)+E},3U:b(F,G,E,I,H){8((G/=H/2)<1){6-I/2*(c.1t(1-G*G)-1)+E}6 I/2*(c.1t(1-(G-=2)*G)+1)+E},3T:b(F,H,E,L,K){d I=1.11;d J=0;d G=L;8(H==0){6 E}8((H/=K)==1){6 E+L}8(!J){J=K*0.3}8(G<c.1O(L)){G=L;d I=J/4}l{d I=J/(2*c.m)*c.1V(L/G)}6-(G*c.Q(2,10*(H-=1))*c.1c((H*K-I)*(2*c.m)/J))+E},3R:b(F,H,E,L,K){d I=1.11;d J=0;d G=L;8(H==0){6 E}8((H/=K)==1){6 E+L}8(!J){J=K*0.3}8(G<c.1O(L)){G=L;d I=J/4}l{d I=J/(2*c.m)*c.1V(L/G)}6 G*c.Q(2,-10*H)*c.1c((H*K-I)*(2*c.m)/J)+L+E},3S:b(F,H,E,L,K){d I=1.11;d J=0;d G=L;8(H==0){6 E}8((H/=K/2)==2){6 E+L}8(!J){J=K*(0.3*1.5)}8(G<c.1O(L)){G=L;d I=J/4}l{d I=J/(2*c.m)*c.1V(L/G)}8(H<1){6-0.5*(G*c.Q(2,10*(H-=1))*c.1c((H*K-I)*(2*c.m)/J))+E}6 G*c.Q(2,-10*(H-=1))*c.1c((H*K-I)*(2*c.m)/J)*0.5+L+E},3W:b(F,G,E,J,I,H){8(H==1K){H=1.11}6 J*(G/=I)*G*((H+1)*G-H)+E},3X:b(F,G,E,J,I,H){8(H==1K){H=1.11}6 J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},43:b(F,G,E,J,I,H){8(H==1K){H=1.11}8((G/=I/2)<1){6 J/2*(G*G*(((H*=(1.2m))+1)*G-H))+E}6 J/2*((G-=2)*G*(((H*=(1.2m))+1)*G+H)+2)+E},2q:b(F,G,E,I,H){6 I-C.u.1R(F,H-G,0,I,H)+E},1R:b(F,G,E,I,H){8((G/=H)<(1/2.v)){6 I*(7.1u*G*G)+E}l{8(G<(2/2.v)){6 I*(7.1u*(G-=(1.5/2.v))*G+0.v)+E}l{8(G<(2.5/2.v)){6 I*(7.1u*(G-=(2.25/2.v))*G+0.41)+E}l{6 I*(7.1u*(G-=(2.40/2.v))*G+0.3Y)+E}}}},3Z:b(F,G,E,I,H){8(G<H/2){6 C.u.2q(F,G*2,0,I,H)*0.5+E}6 C.u.1R(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(4I)',62,315,'||||||return||if|||function|Math|var|this|255|arguments|parseInt||css|apply|else|PI|128|effects|remove|toggle|add||position|easing|75|style||||||||||||||||||||pow|start|fn|attr|break|null|fA|F0|139|case||70158|addClass|removeClass|constructor|exec||extend|left|animateClass|typeof|show|sin|top|end|defaultView|unit|document|192|211|hide|parseFloat|transparent|duration|effect|callback|parent|each|length|sqrt|5625|indexOf|max|test|match|static|relative|pos|55|fast|normal|slow|color|Number|cssText|object|undefined|169|min|isNaN|abs|fxWrapper|id|easeOutBounce|margin|for|mode|asin|rgb|toggleClass|240|140|_toggleClass|elem|_hide|backgroundColor|230||cssUnit|245|100|morph|_addClass|107|__toggle|_removeClass|bottom|_show|height|float|div|cos|auto|width|525|ec|data|storage|easeInBounce|default|switch|getComputedStyle|true|currentStyle|swing|right|224|144|def|easeOutQuad|165|animate|center|middle|createWrapper|state|fx|getBaseline|step|outlineColor|is|restore|options|save|VERSION|version|Array|method|call|borderTopColor|join|setMode|hidden|borderLeftColor|none|padding|switchClass|border|background|zIndex|index|hasClass|setTransition|replaceWith|removeWrapper|size|font|pt|Function|outerWidth|borderBottomColor|px|em|wrap|in|Moz|outerHeight|borderRightColor|parentNode|purple|violet|203|pink|orange|red|silver|easeInQuad|easeInOutQuad|jswing|yellow|white|olive|navy|lightgreen|238|lightcyan|216|173|lightgrey|lightpink|lime|maroon|lightyellow|193|182|easeInCubic|easeOutCubic|easeOutElastic|easeInOutElastic|easeInElastic|easeInOutCirc|easeOutCirc|easeInBack|easeOutBack|984375|easeInOutBounce|625|9375||easeInOutBack|easeInCirc|easeInOutExpo|easeInOutQuart||easeInQuint|easeOutQuart|easeInQuart|easeInOutCubic|easeOutQuint|easeInOutQuint|easeInExpo|easeOutExpo|easeInOutSine|easeOutSine|easeInSine|lightblue|magenta|cyan|darkblue|brown|blue|khaki|darkcyan|darkgrey|183|darkmagenta|189|darkkhaki|darkgreen|220|beige|do|curCSS|toLowerCase|trim|rgba|nodeName|body|azure|aqua|jQuery|while|darkolivegreen|black|darkviolet|122|150|233|148|fuchsia|130|indigo|green|gold|darksalmon|215|darkorchid|204||153|85|darkred|darkorange'.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}('(d(A){A.9.X=d(B){W f.q(d(){4 E=A(f),K=["V","j","i"];4 J=A.9.T(E,B.6.U||"Z");4 M=B.6.10||"k";4 C=B.6.s||16;4 D=B.6.S||5;4 G=B.14||11;8(/h|b/.12(J)){K.x("g")}A.9.w(E,K);E.h();A.9.z(E);4 F=(M=="k"||M=="Q")?"j":"i";4 O=(M=="k"||M=="i")?"7":"y";4 C=B.6.s||(F=="j"?E.R({n:m})/3:E.P({n:m})/3);8(J=="h"){E.l("g",0).l(F,O=="7"?-C:C)}8(J=="b"){C=C/(D*2)}8(J!="b"){D--}8(J=="h"){4 H={g:1};H[F]=(O=="7"?"+=":"-=")+C;E.a(H,G/2,B.6.c);C=C/2;D--}v(4 I=0;I<D;I++){4 N={},L={};N[F]=(O=="7"?"-=":"+=")+C;L[F]=(O=="7"?"+=":"-=")+C;E.a(N,G/2,B.6.c).a(L,G/2,B.6.c);C=(J=="b")?C*2:C/2}8(J=="b"){4 H={g:0};H[F]=(O=="7"?"-=":"+=")+C;E.a(H,G/2,B.6.c,d(){E.b();A.9.o(E,K);A.9.u(E);8(B.e){B.e.t(f,p)}})}13{4 N={},L={};N[F]=(O=="7"?"-=":"+=")+C;L[F]=(O=="7"?"+=":"-=")+C;E.a(N,G/2,B.6.c).a(L,G/2,B.6.c,d(){A.9.o(E,K);A.9.u(E);8(B.e){B.e.t(f,p)}})}E.q("Y",d(){E.r()});E.r()})}})(15)',62,69,'||||var||options|pos|if|effects|animate|hide|easing|function|callback|this|opacity|show|left|top|up|css|true|margin|restore|arguments|queue|dequeue|distance|apply|removeWrapper|for|save|push|neg|createWrapper||||||||||||||||outerWidth|down|outerHeight|times|setMode|mode|position|return|bounce|fx|effect|direction|250|test|else|duration|jQuery|20'.split('|'),0,{}));function noop(){return false;}
function get_func_name(){return(get_func_name.caller+'').split(' ')[1].replace(/\(.*/,'');};__MM={CACHE:{},cache_preview:{},block:{},empty:true,cache_handler:function(result_data){__MM.CACHE['cache_'+result_data.meta.type+result_data.meta.data]=result_data;},default_handler:function(result_data){__MM.cache_preview=result_data;},handlers:{nodes:function(data){$('#preview_block').empty().prepend(data.content);},links:function(data){link_data=data.content.replace('<br/>','');$('#preview_block').empty().prepend(link_data);$('#preview_block').append('&nbsp;| <input type="button" onclick="delete_link('+data.meta.data+');" value="'+_po('Delete')+'"/>');},views:function(data){$('#preview_block').empty().prepend(data.content);},panels:function(data){q_name=data.meta.type+data.meta.data;$('#preview_block').empty();temporary=document.createElement('DIV');$(temporary).append(data.content);for(area in data.areas){area_content_titles='';tst=$(temporary).find('.area_'+data.areas[area]);area_content_titles=' ['+tst.attr('summary')+']';preview_link="<input type=\"button\" onclick=\"preview_item(\'"+q_name+"\',\'"+data.areas[area]+"\');\" value=\"Preview\">";prepared_area='<div><label style="float:left;" class="option"><input checked type="checkbox" name="areas['+data.areas[area]+']"/>'+data.areas[area]+area_content_titles+'</label><div style="float:right;">'+preview_link+'</div></div><br style="clear:both;">';$('#preview_block').append(prepared_area);}
preview_link="<input type=\"button\" onclick=\"preview_item(\'"+q_name+"\',\'\');\" value=\"Preview\">";prepared_area='<div><label style="float:left;" class="option">Whole block</label><div style="float:right;">'+preview_link+'</div></div><br style="clear:both;">';$('#preview_block').append(prepared_area);}},d_handlers:{}};__MM.d_handlers['add_to_data']={nodes:function(data){return data.meta.name},links:function(data){return data.meta.name},views:function(data){return data.meta.name},panels:function(data){__MM.block[data.meta.type+data.meta.data]['areas']=Array();__MM.block[data.meta.type+data.meta.data]['areas_count']=0;$('input[@name^=areas]').each(function(){area_name=($(this).name()+'').replace('areas[','').replace(']','');__MM.block[__MM.cache_preview.meta.type+__MM.cache_preview.meta.data]['areas_count']++;if($(this).attr('checked')){__MM.block[__MM.cache_preview.meta.type+__MM.cache_preview.meta.data]['areas'].push(area_name);}});areas_count=__MM.block[data.meta.type+data.meta.data]['areas_count'];if(__MM.block[data.meta.type+data.meta.data]['areas'].length==0||areas_count==__MM.block[data.meta.type+data.meta.data]['areas'].length){ret_name=data.meta.name;}else{ret_name=data.meta.name+'['+__MM.block[data.meta.type+data.meta.data]['areas'].join(', ')+']';}
return ret_name;}}
__MM.d_handlers['recalc']={nodes:noop,links:noop,views:noop,panels:function(){q_name=__MM.cache_preview.meta.type+__MM.cache_preview.meta.data;if(!q_name)return;d_link=" | <input type=\"button\" onclick=\"delete_block_item(this,\'"+q_name+"\');\" value=\""+_po('Delete')+"\">";recalced='<label class="option"><input type="checkbox"/>'+__MM.d_handlers['add_to_data'].panels(__MM.cache_preview)+d_link+'</label>';$('#block_item_'+q_name).empty().append(recalced);}}
$(document).ready(init_ThreeDMenu);function init_ThreeDMenu(){$('select').each(function(){$(this).css('z-index','0')});$($('input[@name=typeselector]').click(change_type)[0]).click();$('#edit-preview-content').click(load_data);$('#edit-add-content').click(add_to_data);$('#edit-save-block').click(save_block);$('#edit-preview-content').hide();$('select[@name$=select]').change(function(){$('#edit-preview-content').click()});$('#edit-menu-attach').change(function(){menu_id=$(this).val();check_attached_menu(menu_id,false);})
update_whole_block_preview();$('#edit-preview-content').click();menu_overwrite_flag=false;}
function reattach(dothework,save_flag){if(dothework){my_TB_remove();menu_overwrite_flag=$('#edit-menu-attach').val();if(save_flag)
$('#edit-save-block').click();}else{my_TB_remove();menu_overwrite_flag=false;}
TB_remove=my_TB_remove;}
function check_attached_menu(menu_id,save_flag){menu_present=$('#ThreeDMenu_block_'+menu_id)[0];if(menu_present){assigned_to=menu_present.getAttribute('summary',false);assigned_name=menu_present.getAttribute('name',false);current=$('#edit-edit-mode').val();if(assigned_to==current){menu_overwrite_flag=true;return;}else{if(!$('#warning_message')[0]){$('BODY').append('<div id="warning_message" style="display:none"/>');}
t_message='';t_message+=_po('This menu item is already assigned to block %block_name Do you want remove old block from menu and assign it to new?',{block_name:'<br/><i>'+assigned_name+'</i><br/>'});t_message+='<br/><input type="button" onclick="reattach(true, '+save_flag+')" value="'+_po('Yes')+'"/>';t_message+='<input type="button" onclick="reattach(false,'+save_flag+')" value="'+_po('No')+'"/>';$('#warning_message').html(t_message);TB_show('Warning','#TB_inline?height=100&width=300&inlineId=warning_message',false);$("#TB_closeWindowButton").remove();my_TB_remove=TB_remove;TB_remove=noop;$('#TB_overlay')[0].onclick=noop;}}else{menu_overwrite_flag=true;return;}}
function preview_item(item_name,context){if(!__MM.cache_preview){return;}
if(!$('#preview_temp')[0]){var tmp_item='<div style="display:none" id="preview_temp">'+__MM.cache_preview.content+'</div>';$('BODY').append(tmp_item);}else{var tmp_item=__MM.cache_preview.content;$('#preview_temp').empty().append(tmp_item);}
if(context){tst=$('#preview_temp').find('.area_'+context);}else{tst=$('#preview_temp').children();}
if(!$('#preview_item')[0]){tt='<div id="preview_item"/>';$('#preview_block').append(tt);}
$('#preview_item').empty().prepend(tst);return false;}
function add_to_data(){context='add_to_data';if(!__MM.cache_preview.meta){return false;}
if(__MM.empty){$('#ThreeDMenu_body').empty();__MM.empty=false;}
if(__MM.block[__MM.cache_preview.meta.type+__MM.cache_preview.meta.data]){__MM.d_handlers['recalc'][__MM.cache_preview.meta.type]();update_whole_block_preview();return false;}else{q_name=__MM.cache_preview.meta.type+__MM.cache_preview.meta.data;if(!q_name)return;__MM.block[q_name]=__MM.cache_preview.meta;d_link=" | <input type=\"button\" onclick=\"delete_block_item(this,\'"+q_name+"\');\" value=\""+_po('Delete')+"\">";prepared_data='<div id="block_item_'+q_name+'" class="form-item block_item">';prepared_data+='<label class="option"><input type="checkbox"/>'+__MM.d_handlers[context][__MM.cache_preview.meta.type](__MM.cache_preview)+d_link+'</label>';prepared_data+='</div>';$('#ThreeDMenu_body').append(prepared_data);update_whole_block_preview();}}
function delete_block_item(dlink,context){if(__MM.block[context]){delete __MM.block[context];$(dlink).parent().parent().remove();}
cnt=0;for(i in __MM.block)cnt++;if(cnt==0){__MM.empty=true;$('#ThreeDMenu_body').empty().append('Block content');}
update_whole_block_preview();return false;}
__MM.d_handlers['get_preview']={nodes:function(q_name){item_content='';block=__MM.block[q_name];if(__MM.CACHE['cache_'+q_name]&&__MM.CACHE['cache_'+q_name].content){item_content=__MM.CACHE['cache_'+q_name].content;}
return item_content;},links:function(q_name){item_content='';block=__MM.block[q_name];if(__MM.CACHE['cache_'+q_name]&&__MM.CACHE['cache_'+q_name].content){item_content=__MM.CACHE['cache_'+q_name].content;}
return item_content;},views:function(q_name){item_content='';block=__MM.block[q_name];if(__MM.CACHE['cache_'+q_name]&&__MM.CACHE['cache_'+q_name].content){item_content=__MM.CACHE['cache_'+q_name].content;}
return item_content;},panels:function(q_name){block=__MM.block[q_name];item_content='';if(__MM.CACHE['cache_'+q_name]&&__MM.CACHE['cache_'+q_name].content){item_content=__MM.CACHE['cache_'+q_name].content;if(!$('#block_temp')[0]){tmp_block='<div id="block_temp" style="display:none;"/>';$('BODY').append(tmp_block);}
$('#block_temp').empty().append(item_content);areas_in=$('#block_temp').find('[@class^=area_]');areas_in_map={};for(i=0;i<=areas_in.length-1;i++){curarea=areas_in[i];area_name=(curarea.className+'').replace('area_','');areas_in_map[area_name]=false;}
for(i in __MM.block[q_name].areas){area_name=__MM.block[q_name].areas[i];areas_in_map[area_name]=true;}
for(i in areas_in_map){if(!areas_in_map[i]){$('#block_temp').find('.area_'+i).remove();}}
item_content=$('#block_temp').html();$('#block_temp').remove();}
if(!item_content){path=$('#edit-panels-select')[0].getAttribute('path',false);}
return item_content;}}
function update_whole_block_preview(){$('#allblock_preview').empty();prepared_data='';for(i in __MM.block){if(i=="")
continue;item_type=__MM.block[i].type;item_param=__MM.block[i].data;item_name=__MM.block[i].name;item_content=__MM.d_handlers['get_preview'][item_type](i);$('#allblock_preview').append('<div class="block_item_view" id="block_item_view_'+item_type+item_param+'">'+item_content+'</div>');item_height=$('#allblock_preview')[0].lastChild.offsetHeight;if(item_height){$('#block_item_'+item_type+item_param)[0].style.height=item_height+'px';}}}
function save_block(){path=$(this)[0].getAttribute('path',false);if(!path)return;menu_id=$('#edit-menu-attach').val();if(!menu_overwrite_flag){check_attached_menu(menu_id,true);if(!menu_overwrite_flag)return;}
block_name=$('#edit-block-name').val();block={ThreeDMenu:{name:block_name,menu:menu_id,data:__MM.block,overwrite_menu:menu_overwrite_flag},preset:$('select[@name=presets_list]').val(),edit_mode:$('#edit-edit-mode').val()};post_data=JS_serialize(block);$.post(path,post_data,save_callback);}
function link_create_form(){links_form=$('.links_form')[0];if(!links_form)return;$('#preview_block').empty().append($('.links_form').clone().show());$('#preview_block').find('.links_form').find('input[@name=op]').click(save_link);$('#preview_block').find('.links_form').find('input[@type=text]').keydown(function(e){if(e.keyCode==13){return false;}});Drupal.autocompleteAutoAttach();}
function save_link(){link_data=$('#preview_block').find('.links_form').find('input[@type=text]');path=$('#edit-links-form-save-link-btn')[0].getAttribute('path',false);if(!path)return;fields=Array();for(i=0;i<=link_data.length-1;i++){req=($(link_data[i])[0].className+'').indexOf('required');if(req!=-1&&!($(link_data[i]).val())){$(link_data[i]).css('border-color','red');return;}else{$(link_data[i]).css('border-color','');}
fields.push($(link_data[i]).name()+'='+encodeURIComponent($(link_data[i]).val()));}
post_data=fields.join('&');$.post(path,post_data,link_save_callback);return false;}
function delete_link(link_id){var confirmed=window.confirm(_po('Do you really want to delete the link?'));if(confirmed){$.post(Drupal.url('ThreeDMenu/link/delete'),{lid:link_id},link_del_callback);}else return false;}
function link_del_callback(data){if(!data)return;response_data=Drupal.parseJson(data);if(response_data){if(response_data.status){$('#preview_block').empty();$('#edit-links-select').find('option[@value='+response_data.lid+']').remove();}
alert(response_data.message);}else{alert('Error');}}
function link_save_callback(data){if(!data)return;link_data=Drupal.parseJson(data);if(!link_data.status){if(link_data.message){link_message=_po(link_data.message,link_data.message_args);alert(link_message);return;}
return;}
$('#edit-links-select').append('<option value="'+link_data['lid']+'">'+link_data['link_name']+'</option>');$('#preview_block').empty();$('#edit-preview-content').click();}
function save_callback(data){if(data){parsed_data=Drupal.parseJson(data);if(!parsed_data.status){alert('Error ocured during saving.');return;}
if(parsed_data.status){document.location=parsed_data.path;};}else{alert('Response is empty.');}}
function change_type(){__MM.cache_preview={};select_type=$(this)[0].value;$('#preview_block').empty();$('select.type_selector').parent().hide();$('#edit-'+select_type+'-select').parent().show();$('#edit-preview-content').click();}
function load_data(){$('input[@name=typeselector]').each(get_data);}
function get_data(){select_type=$(this)[0].value;our_select=$('#edit-'+select_type+'-select')[0];our_select_parent=$('#edit-'+select_type+'-select').parent()[0];select_style=our_select_parent.style.display;path=our_select.getAttribute('path',false);if(select_style!='none'&&path){switch(select_type){case'nodes':params=our_select.options[our_select.selectedIndex].value;if(params==0)return;break;case'links':params=our_select.options[our_select.selectedIndex].value;if(params==0){link_create_form();return;}
break;case'views':params=our_select.options[our_select.selectedIndex].value;if(params==0)return;break;case'panels':params=our_select.options[our_select.selectedIndex].value;if(params==0)return;break;default:return;break;}
var cached=__MM.CACHE['cache_'+select_type+params];if(cached){if(cached.meta){__MM.default_handler(cached);}
if(__MM.handlers[cached.meta.type]&&(typeof __MM.handlers[cached.meta.type])=='function'){__MM.handlers[cached.meta.type](cached);}}else{$.post(path+'/?',{type:select_type,data:params},finish_request)}}}
function finish_request(data){if(data){parsed_data=Drupal.parseJson(data);if(!parsed_data.status)return;if(parsed_data.meta){__MM.cache_handler(parsed_data);__MM.default_handler(parsed_data);}
if(__MM.handlers[parsed_data.meta.type]&&(typeof __MM.handlers[parsed_data.meta.type])=='function'){__MM.handlers[parsed_data.meta.type](parsed_data);}}
update_whole_block_preview();};$(document).ready(init_ThreeDMenu_menu);var menusize={};var animations=[];var anim_options=[];function init_ThreeDMenu_menu(){if($.browser.msie==false){$('a.primary_link').addClass('moz_plinks');}else{$('a.primary_link').addClass('ie_plinks');}
$("a[@id^=primary_menu_]").each(function(){$(this.parentNode).hover(function(){var block=$(this).find('div[@id^=ThreeDMenu_block_]')[0];$(block).css({top:(findPos(this)[1]-block.offsetParent.offsetTop+this.offsetHeight-5)+'px',left:Math.round(((2*findPos(this)[0]+this.offsetWidth)-block.offsetWidth)/2)-block.offsetParent.offsetLeft+'px',visibility:'visible',zIndex:9999});div_class=$(this).attr('class');$(this).addClass(div_class+'_prime_hover');},function(){var block=$(this).find('div[@id^=ThreeDMenu_block_]')[0];$(block).css({visibility:'hidden',zIndex:-99});div_class=$(this).attr('class');var classes=div_class.split(' ');var chosen_class='';for(i=0;i<classes.length;i++){if(classes[i].indexOf('_prime_hover')!=-1){chosen_class=classes[i];break;}}
if(chosen_class!='')
$(this).removeClass(chosen_class);});});}
function go_to_the_link(){if(!$(this).is('.primary_link'))return;lid=(this.id+'').replace(/[^\d]/g,'');if(!$('#ThreeDMenu_block_'+lid)[0]){path=$('a[@id^=primary_menu_]',this).attr('href');if(path)document.location=path;}}
function show_menu_block(ev){mid=$(this).id();mid=mid.replace(/[^\d]/g,'');$(this).parent()}
function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];};fav_been_here=false;buddy_been_here=false;$(document).ready(init_pulldown_listbox);function init_pulldown_listbox(){if($.browser.msie==false){$('a.primary_link').addClass('moz_plinks');}else{$('a.primary_link').addClass('ie_plinks');}
$('.favorites-pulldown-r').click(function(){if(fav_been_here==false){$.ajax({type:"GET",async:false,url:Drupal.url("registration/get/header/fav"),success:function(arr,status,e){if(arr!=''){$('.favorites-pulldown').append(arr);fav_been_here=true;}},error:function(msg,status,e){alert(e);}});}});$('.buddylist-pulldown-r').click(function(){if(buddy_been_here==false){$.ajax({type:"GET",async:false,url:Drupal.url("registration/get/header/bad"),success:function(arr,status,e){if(arr!=''){$('.buddylist-pulldown').append(arr);buddy_been_here=true;}},error:function(msg,status,e){alert(e);}});}});$("a[@id^=pulldown_link_],div[@id^=pulldown_link_]").each(function(){lid=(this.id+'').replace(/[^\d]/g,'');$($('#ThreeDMenu_block_'+lid)[0]).mousedown(function(ev){if(ev.target.tagName.toLowerCase()=='a')
{return false;}
ev.stopPropagation();});var menu_img=this;pos=findPos(menu_img);var show_block=function(){var mc=$(this).parents('.module_block_preset')[0];var offs=findPos($(this).parents('div.os-header-wrapper')[0]);$(this.nextSibling).removeClass('threedmenu-hidden').css({top:(findPos(mc)[1]-offs[1]+mc.offsetHeight-2)+'px',left:Math.round((findPos(mc)[0]-offs[0]+mc.offsetWidth)-this.nextSibling.offsetWidth)+'px',visibility:'visible'}).SlideInUp(300);$('div:first-child',mc).eq(0).css('background-image','url('+Drupal.settings.jstools.basePath+'images/header/pulldown_open.gif)');};var setHidden=function(){if(this.className.indexOf('ThreeDMenu_block')==-1)
return;var mc=$(this).parents('.module_block_preset')[0];$(this).addClass('threedmenu-hidden');$('div:first-child',mc).eq(0).css('background-image','url('+Drupal.settings.jstools.basePath+'images/header/pulldown_left.gif)');};var hide_block=function(){var mc=$(this).parents('.module_block_preset')[0];var offs=findPos($(this).parents('div.os-header-wrapper')[0]);$(this.nextSibling).css({top:(findPos(mc)[1]-offs[1]+mc.offsetHeight-2)+'px',left:Math.round((findPos(mc)[0]-offs[0]+mc.offsetWidth)-this.nextSibling.offsetWidth)+'px'}).SlideOutUp(300,setHidden);};$(this).toggle(show_block,hide_block);$(this).mousedown(function(ev){ev.preventDefault();ev.stopPropagation();});$('body').click(function(){var blocks=$('#header_left_side .module_block_preset');if(!blocks.length)return;blocks.each(function(){$('div:first-child',this).eq(0).css('background-image','url('+Drupal.settings.jstools.basePath+'images/header/pulldown_left.gif)');$(this).find('div[@id^=ThreeDMenu_block_]').each(function(){var mc=$(this).parents('.module_block_preset')[0];$(this.previousSibling)[0].lastToggle=1;$(this).css({visibility:'hidden'});});});});$(window).resize(function(){$(document).find('.module_block_preset').each(function(){$('div:first-child',this).eq(0).css('background-image','url('+Drupal.settings.jstools.basePath+'images/header/pulldown_left.gif)');$(this).find('div[@id^=ThreeDMenu_block_]').each(function(){var mc=$(this).parents('.module_block_preset')[0];$(this.previousSibling)[0].lastToggle=1;$(this).css({visibility:'hidden'});});});});});};function banner_resize(){var tower_banner=$('div.ads-spot-tower');var is=windowInnerSize()[0];var sw=110;var pw=$('#page')[0].offsetWidth;var visibility=(is-pw)/2>=sw?'visible':'hidden';$(tower_banner).css('visibility',visibility);}
$().ready(function(){var tower_banner=$('div.ads-spot-tower');if(tower_banner.length>0)
{$(window).resize(banner_resize);banner_resize();}});;$(document).ready(function(){var gradobj={'body div.block-terms_menu>div.blockinner div.content':{direction:'horizontal',from:'688ea1',to:'8db1af'},'body table.view .content-type-content-teaser .content':{direction:'horizontal',from:'669581',to:'659482'},'body table.view .topstrip_content,table.view .bottomstrip_content':{direction:'horizontal',from:'669581',to:'659482'},'body table.view .media_inner':{direction:'vertical',from:'7E5273',to:'9C7894'}};for(selector in gradobj)$(selector).gradiwrap(gradobj[selector]);var GRADIENTS=$.extend(gradobj,GRADIENTS||{});});;$(document).ready(toolbar_init);function toolbar_init(){var blocks=menu_arr;for(var i in blocks){if(typeof blocks[i]!="function"){var block=$('#block-menu-'+blocks[i]+' .blockinner');var toolbar_lis=$('li.leaf',block);var toolbar_links=$('li.leaf a',block);for(var j=0;j<$(toolbar_lis).size();j++)
$(toolbar_lis[j]).click(function(){var link_addr=$(this).children('a').attr('href');if(link_addr)
document.location=link_addr;});}}}