// $Id: jquery.js,v 1.12.2.3 2008/06/25 09:38:39 goba Exp $ 

/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
 * Rev: 5685
 */
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,{}));// $Id: drupal.js,v 1.41.2.4 2009/07/21 08:59:10 goba Exp $

var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

/**
 * Set the variable that indicates if JavaScript behaviors should be applied
 */
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;

/**
 * Attach all registered behaviors to a page element.
 *
 * Behaviors are event-triggered actions that attach to page elements, enhancing
 * default non-Javascript UIs. Behaviors are registered in the Drupal.behaviors
 * object as follows:
 * @code
 *    Drupal.behaviors.behaviorName = function () {
 *      ...
 *    };
 * @endcode
 *
 * Drupal.attachBehaviors is added below to the jQuery ready event and so
 * runs on initial page load. Developers implementing AHAH/AJAX in their
 * solutions should also call this function after new page content has been
 * loaded, feeding in an element to be processed, in order to attach all
 * behaviors to the new content.
 *
 * Behaviors should use a class in the form behaviorName-processed to ensure
 * the behavior is attached only once to a given element. (Doing so enables
 * the reprocessing of given elements, which may be needed on occasion despite
 * the ability to limit behavior attachment to a particular element.)
 *
 * @param context
 *   An element to attach behaviors to. If none is given, the document element
 *   is used.
 */
Drupal.attachBehaviors = function(context) {
  context = context || document;
  if (Drupal.jsEnabled) {
    // Execute all of them.
    jQuery.each(Drupal.behaviors, function() {
      this(context);
    });
  }
};

/**
 * Encode special characters in a plain-text string for display as HTML.
 */
Drupal.checkPlain = function(str) {
  str = String(str);
  var replace = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
  for (var character in replace) {
    var regex = new RegExp(character, 'g');
    str = str.replace(regex, replace[character]);
  }
  return str;
};

/**
 * Translate strings to the page language or a given language.
 *
 * See the documentation of the server-side t() function for further details.
 *
 * @param str
 *   A string containing the English string to translate.
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 * @return
 *   The translated string.
 */
Drupal.t = function(str, args) {
  // Fetch the localized version of the string.
  if (Drupal.locale.strings && Drupal.locale.strings[str]) {
    str = Drupal.locale.strings[str];
  }

  if (args) {
    // Transform arguments before inserting them
    for (var key in args) {
      switch (key.charAt(0)) {
        // Escaped only
        case '@':
          args[key] = Drupal.checkPlain(args[key]);
        break;
        // Pass-through
        case '!':
          break;
        // Escaped and placeholder
        case '%':
        default:
          args[key] = Drupal.theme('placeholder', args[key]);
          break;
      }
      str = str.replace(key, args[key]);
    }
  }
  return str;
};

/**
 * Format a string containing a count of items.
 *
 * This function ensures that the string is pluralized correctly. Since Drupal.t() is
 * called by this function, make sure not to pass already-localized strings to it.
 *
 * See the documentation of the server-side format_plural() function for further details.
 *
 * @param count
 *   The item count to display.
 * @param singular
 *   The string for the singular case. Please make sure it is clear this is
 *   singular, to ease translation (e.g. use "1 new comment" instead of "1 new").
 *   Do not use @count in the singular string.
 * @param plural
 *   The string for the plural case. Please make sure it is clear this is plural,
 *   to ease translation. Use @count in place of the item count, as in "@count
 *   new comments".
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 *   Note that you do not need to include @count in this array.
 *   This replacement is done automatically for the plural case.
 * @return
 *   A translated string.
 */
Drupal.formatPlural = function(count, singular, plural, args) {
  var args = args || {};
  args['@count'] = count;
  // Determine the index of the plural form.
  var index = Drupal.locale.pluralFormula ? Drupal.locale.pluralFormula(args['@count']) : ((args['@count'] == 1) ? 0 : 1);

  if (index == 0) {
    return Drupal.t(singular, args);
  }
  else if (index == 1) {
    return Drupal.t(plural, args);
  }
  else {
    args['@count['+ index +']'] = args['@count'];
    delete args['@count'];
    return Drupal.t(plural.replace('@count', '@count['+ index +']'));
  }
};

/**
 * Generate the themed representation of a Drupal object.
 *
 * All requests for themed output must go through this function. It examines
 * the request and routes it to the appropriate theme function. If the current
 * theme does not provide an override function, the generic theme function is
 * called.
 *
 * For example, to retrieve the HTML that is output by theme_placeholder(text),
 * call Drupal.theme('placeholder', text).
 *
 * @param func
 *   The name of the theme function to call.
 * @param ...
 *   Additional arguments to pass along to the theme function.
 * @return
 *   Any data the theme function returns. This could be a plain HTML string,
 *   but also a complex object.
 */
Drupal.theme = function(func) {
  for (var i = 1, args = []; i < arguments.length; i++) {
    args.push(arguments[i]);
  }

  return (Drupal.theme[func] || Drupal.theme.prototype[func]).apply(this, args);
};

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
Drupal.parseJson = function (data) {
  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
    return { status: 0, data: data.length ? data : Drupal.t('Unspecified error') };
  }
  return eval('(' + data + ');');
};

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
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);
};

/**
 * Unfreeze the body height
 */
Drupal.unfreezeHeight = function () {
  $('#freeze-height').remove();
};

/**
 * Wrapper around encodeURIComponent() which avoids Apache quirks (equivalent of
 * drupal_urlencode() in PHP). This function should only be used on paths, not
 * on query string arguments.
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

/**
 * Get the text selection in a textarea.
 */
Drupal.getSelection = function (element) {
  if (typeof(element.selectionStart) != 'number' && document.selection) {
    // The current selection
    var range1 = document.selection.createRange();
    var range2 = range1.duplicate();
    // Select all text.
    range2.moveToElementText(element);
    // Now move 'dummy' end point to end point of original range.
    range2.setEndPoint('EndToEnd', range1);
    // Now we can calculate start and end points.
    var start = range2.text.length - range1.text.length;
    var end = start + range1.text.length;
    return { 'start': start, 'end': end };
  }
  return { 'start': element.selectionStart, 'end': element.selectionEnd };
};

/**
 * Build an error message from ahah response.
 */
Drupal.ahahError = function(xmlhttp, uri) {
  if (xmlhttp.status == 200) {
    if (jQuery.trim($(xmlhttp.responseText).text())) {
      var message = Drupal.t("An error occurred. \n@uri\n@text", {'@uri': uri, '@text': xmlhttp.responseText });
    }
    else {
      var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri, '@text': xmlhttp.responseText });
    }
  }
  else {
    var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
  }
  return message;
}

// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
  // Global Killswitch on the <html> element
  $(document.documentElement).addClass('js');
  // 'js enabled' cookie
  document.cookie = 'has_js=1; path=/';
  // Attach all behaviors.
  $(document).ready(function() {
    Drupal.attachBehaviors(this);
  });
}

/**
 * The default themes.
 */
Drupal.theme.prototype = {

  /**
   * Formats text for emphasized display in a placeholder inside a sentence.
   *
   * @param str
   *   The text to format (plain-text).
   * @return
   *   The formatted text (html).
   */
  placeholder: function(str) {
    return '<em>' + Drupal.checkPlain(str) + '</em>';
  }
};
;Drupal.locale = { 'pluralFormula': function($n) { return Number(($n!=1)); }, 'strings': { "Drag to re-order": "Átrendezés húzással", "Changes made in this table will not be saved until the form is submitted.": "A táblázaton végrehajtott változtatások az űrlap beküldéséig nem lesznek elmentve.", "Join summary": "Összefoglaló beolvasztása", "Split summary at cursor": "Összefoglaló elválasztása a kurzornál", "file": "fájl", "Deselect all rows in this table": "A kiválasztás megszüntetése a táblázat minden sorában", "Search": "Keresés", "Cancel": "Mégsem", "Unspecified error": "Meghatározatlan hiba", "Reset": "Alaphelyzet", "Name": "Név", "language": "nyelv", "Testing clean URLs...": "Rövid webcímek ellenőrzése...", "Your server has been successfully tested to support this feature.": "A lefutott ellenőrzés szerint a webszerver támogatja ezt a funkciót.", "Your system configuration does not currently support this feature. The \x3ca href=\"http://drupal.org/node/15365\"\x3ehandbook page on Clean URLs\x3c/a\x3e has additional troubleshooting information.": "A rendszer jelenlegi beállítása nem támogatja ezt a funkciót. A \x3ca href=\"http://drupal.org/node/15365\"\x3erövid webcímek kézikönyv lapja\x3c/a\x3e további információkkal szolgál (angolul).", "title": "cím", "The changes to these blocks will not be saved until the \x3cem\x3eSave blocks\x3c/em\x3e button is clicked.": "Változtatások ezekre a blokkokra nem lesznek elmentve mindaddig, amíg a \x3cem\x3eBlokk mentése\x3c/em\x3e gombra nincs kattintva.", "Select all rows in this table": "A táblázat minden sorának kiválasztása" } };;
// This function called by facebook's javascript when it is loaded.
// http://developers.facebook.com/docs/reference/javascript/
window.fbAsyncInit = function() {

  if (Drupal.settings.fb) {
    FB.init(Drupal.settings.fb.fb_init_settings);
  }

  if (FB._apiKey) {
    // Check the login status.  If offline_access granted, this
    // is the only whay to know if user has logged out of facebook.
    FB.getLoginStatus(function(response) {
      FB_JS.initFinal(response);
    });
  }
  else {
    // No application.  Not safe to call FB.getLoginStatus().
    // We still want to initialize XFBML, third-party modules, etc.
    FB_JS.initFinal({'session' : null});
  }
};

FB_JS = function(){};

/**
 * Finish initializing, whether there is an application or not.
 */
FB_JS.initFinal = function(response) {
  var status = {'session' : response.session, 'response': response};
  jQuery.event.trigger('fb_init', status);  // Trigger event for third-party modules.

  FB_JS.sessionChange(response); // This will act only if fbu changed.

  FB_JS.eventSubscribe();

  FB.XFBML.parse();
}

/**
 * Tell facebook to notify us of events we may need to act on.
 */
FB_JS.eventSubscribe = function() {
  // Use FB.Event to detect Connect login/logout.
  FB.Event.subscribe('auth.sessionChange', FB_JS.sessionChange);

  // Q: what the heck is "edge.create"? A: the like button was clicked.
  FB.Event.subscribe('edge.create', FB_JS.edgeCreate);

}

/**
 * Helper parses URL params.
 *
 * http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html
 */
FB_JS.getUrlVars = function(href) {
  var vars = [], hash;
  var hashes = href.slice(href.indexOf('?') + 1).split('&');
  for(var i = 0; i < hashes.length; i++)
  {
    hash = hashes[i].split('=');
    vars[hash[0]] = hash[1];
    if (hash[0] != 'fbu')
      vars.push(hashes[i]); // i.e. "foo=bar"
  }
  return vars;
}

/**
 * Reload the current page, whether on canvas page or facebook connect.
 */
FB_JS.reload = function(destination) {
  // Determine fbu.
  var session = FB.getSession();
  var fbu;
  if (session != null)
    fbu = session.uid;
  else
    fbu = 0;

  // Avoid infinite reloads
  ///@TODO - does not work on iframe because facebook does not pass url args to canvas frame when cookies not accepted.  http://forum.developers.facebook.net/viewtopic.php?id=77236
  var vars = FB_JS.getUrlVars(window.location.href);
  if (vars.fbu == fbu) {
    return; // Do not reload (again)
  }

  // Determine where to send user.
  if (typeof(destination) != 'undefined' && destination) {
    // Use destination passed in.
  }
  else if (typeof(Drupal.settings.fb.reload_url) != 'undefined') {
    destination = Drupal.settings.fb.reload_url;
  }
  else {
    destination = window.location.href;
  }

  // Split and parse destination
  var path;
  if (destination.indexOf('?') == -1) {
    vars = [];
    path = destination;
  }
  else {
    vars = FB_JS.getUrlVars(destination);
    path = destination.substr(0, destination.indexOf('?'));
  }

  // Add fbu to params before reload.
  vars.push('fbu=' + fbu);

  // Use window.top for iframe canvas pages.
  destination = path + '?' + vars.join('&');

  if(Drupal.settings.fb.reload_url_fragment) {
    destination = destination + "#" + Drupal.settings.fb.reload_url_fragment;
  }

  // Feedback that entire page may be reloading.
  // @TODO improve the appearance of this, make it customizable.
  jQuery('body').prepend('<div id="fb_js_pb" class="progress"><div class="bar"><div class="filled"></div></div></div>');

  window.top.location = destination;
  //alert(destination);
};

// Facebook pseudo-event handlers.
FB_JS.sessionChange = function(response) {
  if (response.status == 'unknown') {
    // @TODO can we test if third-party cookies are disabled?
  }

  var status = {'changed': false, 'fbu': null, 'session': response.session, 'response' : response};

  if (response.session) {
    status.fbu = response.session.uid;
    if (Drupal.settings.fb.fbu != status.fbu) {
      // A user has logged in.
      status.changed = true;
    }
  }
  else if (Drupal.settings.fb && Drupal.settings.fb.fbu) {
    // A user has logged out.
    status.changed = true;

    // Sometimes Facebook's invalid cookies are left around.  Let's try to clean up their crap.
    // Can get left behind when third-party cookies disabled.
    FB_JS.deleteCookie('fbs_' + FB._apiKey, '/', '');
    FB_JS.deleteCookie('fbs_' + Drupal.settings.fb.apikey, '/', '');
  }

  if (status.changed) {
    // fbu has changed since server built the page.
    jQuery.event.trigger('fb_session_change', status);

    // Remember the fbu.
    Drupal.settings.fb.fbu = status.fbu;
  }

};

// edgeCreate is handler for Like button.
FB_JS.edgeCreate = function(href, widget) {
  var status = {'href': href};
  FB_JS.ajaxEvent('edge.create', status);
};

// JQuery pseudo-event handler.
FB_JS.sessionChangeHandler = function(context, status) {
  // Pass data to ajax event.
  var data = {
    'event_type': 'session_change'
  };

  if (status.session) {
    data.fbu = status.session.uid;
    // Suppress facebook-controlled session.
    data.fb_session_handoff = true;
  }

  FB_JS.ajaxEvent(data.event_type, data);
  // No need to call window.location.reload().  It will be called from ajaxEvent, if needed.
};


// Helper to pass events via AJAX.
// A list of javascript functions to be evaluated is returned.
FB_JS.ajaxEvent = function(event_type, request_data) {
  if (Drupal.settings.fb.ajax_event_url) {

    // Session data helpful in ajax callbacks.  See fb_settings.inc.
    request_data.fb_js_session = JSON.stringify(FB.getSession());
    if (typeof(Drupal.settings.fb_page_type) != 'undefined') {
      request_data.fb_js_page_type = Drupal.settings.fb_page_type;
    }

    // FB._apikey might be an apikey or might be an appid!
    if (FB._apiKey == Drupal.settings.fb.fb_init_settings.appId ||
        FB._apiKey == Drupal.settings.fb.fb_init_settings.apiKey) {
      request_data.apikey = Drupal.settings.fb.fb_init_settings.apiKey;
    }

    // Other values to pass to ajax handler.
    if (Drupal.settings.fb.controls) {
      request_data.fb_controls = Drupal.settings.fb.controls;
    }

    jQuery.ajax({
      url: Drupal.settings.fb.ajax_event_url + '/' + event_type,
      data : request_data,
      type: 'POST',
      dataType: 'json',
      success: function(js_array, textStatus, XMLHttpRequest) {
        if (js_array.length > 0) {
          for (var i = 0; i < js_array.length; i++) {
            eval(js_array[i]);
          }
        }
        else {
          if (event_type == 'session_change') {
            // No instructions from ajax, reload entire page.
            FB_JS.reload();
          }
        }
      },
      error: function(jqXHR, textStatus, errorThrown) {
        var header = jqXHR.getResponseHeader();
        var headers = jqXHR.getAllResponseHeaders();
        debugger;
        // @TODO: handle error, but how?
        FB_JS.reload();
        //alert('FB_JS.ajaxEvent error handler called.');
      }
    });
  }
};

// Delete a cookie.
// Facebook's JS SDK attempts to delete, but I'm not convinced it always works.
FB_JS.deleteCookie = function( name, path, domain ) {
  document.cookie = name + "=" +
    ( ( path ) ? ";path=" + path : "") +
    ( ( domain ) ? ";domain=" + domain : "" ) +
    ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
};

/**
 * Drupal behaviors hook.
 *
 * Called when page is loaded, or content added via javascript.
 */
Drupal.behaviors.fb = function(context) {
  // Respond to our jquery pseudo-events
  var events = jQuery(document).data('events');
  if (!events || !events.fb_session_change) {
    jQuery(document).bind('fb_session_change', FB_JS.sessionChangeHandler);
  }

  // Once upon a time, we initialized facebook's JS SDK here, but now that is done in fb_footer().

  if (typeof(FB) != 'undefined') {
    // Render any XFBML markup that may have been added by AJAX.
    $(context).each(function() {
      var elem = $(this).get(0);
      FB.XFBML.parse(elem);
    });
  }

  // Markup with class .fb_show should be visible if javascript is enabled.  .fb_hide should be hidden.
  jQuery('.fb_hide', context).hide();
  jQuery('.fb_show', context).show();

};
;/* $Id: lightbox.js,v 1.5.2.6.2.114 2009/01/05 14:21:52 snpower Exp $ */

/**
 * jQuery Lightbox
 * @author
 *   Stella Power, <http://drupal.org/user/66894>
 *
 * Based on Lightbox v2.03.3 by Lokesh Dhakar
 * <http://www.huddletogether.com/projects/lightbox2/>
 * Also partially based on the jQuery Lightbox by Warren Krewenki
 *   <http://warren.mesozen.com>
 *
 * Permission has been granted to Mark Ashmead & other Drupal Lightbox2 module
 * maintainers to distribute this file via Drupal.org
 * Under GPL license.
 *
 * Slideshow, iframe and video functionality added by Stella Power.
 */

var Lightbox = {
  overlayOpacity : 0.8, // Controls transparency of shadow overlay.
  overlayColor : '000', // Controls colour of shadow overlay.
  disableCloseClick : true,
  // Controls the order of the lightbox resizing animation sequence.
  resizeSequence: 0, // 0: simultaneous, 1: width then height, 2: height then width.
  resizeSpeed: 'normal', // Controls the speed of the lightbox resizing animation.
  fadeInSpeed: 'normal', // Controls the speed of the image appearance.
  slideDownSpeed: 'slow', // Controls the speed of the image details appearance.
  minWidth: 240,
  borderSize : 10,
  boxColor : 'fff',
  fontColor : '000',
  topPosition : '',
  infoHeight: 20,
  alternative_layout : false,
  imageArray : [],
  imageNum : null,
  total : 0,
  activeImage : null,
  inprogress : false,
  disableResize : false,
  disableZoom : false,
  isZoomedIn : false,
  rtl : false,
  loopItems : false,
  keysClose : ['c', 'x', 27],
  keysPrevious : ['p', 37],
  keysNext : ['n', 39],
  keysZoom : ['z'],
  keysPlayPause : [32],

  // Slideshow options.
  slideInterval : 5000, // In milliseconds.
  showPlayPause : true,
  autoStart : true,
  autoExit : true,
  pauseOnNextClick : false, // True to pause the slideshow when the "Next" button is clicked.
  pauseOnPrevClick : true, // True to pause the slideshow when the "Prev" button is clicked.
  slideIdArray : [],
  slideIdCount : 0,
  isSlideshow : false,
  isPaused : false,
  loopSlides : false,

  // Iframe options.
  isLightframe : false,
  iframe_width : 600,
  iframe_height : 400,
  iframe_border : 1,

  // Video and modal options.
  enableVideo : false,
  flvPlayer : '/flvplayer.swf',
  flvFlashvars : '',
  isModal : false,
  isVideo : false,
  videoId : false,
  modalWidth : 400,
  modalHeight : 400,
  modalHTML : null,


  // initialize()
  // Constructor runs on completion of the DOM loading.
  // The function inserts html at the bottom of the page which is used
  // to display the shadow overlay and the image container.
  initialize: function() {

    var s = Drupal.settings.lightbox2;
    Lightbox.overlayOpacity = s.overlay_opacity;
    Lightbox.overlayColor = s.overlay_color;
    Lightbox.disableCloseClick = s.disable_close_click;
    Lightbox.resizeSequence = s.resize_sequence;
    Lightbox.resizeSpeed = s.resize_speed;
    Lightbox.fadeInSpeed = s.fade_in_speed;
    Lightbox.slideDownSpeed = s.slide_down_speed;
    Lightbox.borderSize = s.border_size;
    Lightbox.boxColor = s.box_color;
    Lightbox.fontColor = s.font_color;
    Lightbox.topPosition = s.top_position;
    Lightbox.rtl = s.rtl;
    Lightbox.loopItems = s.loop_items;
    Lightbox.keysClose = s.keys_close.split(" ");
    Lightbox.keysPrevious = s.keys_previous.split(" ");
    Lightbox.keysNext = s.keys_next.split(" ");
    Lightbox.keysZoom = s.keys_zoom.split(" ");
    Lightbox.keysPlayPause = s.keys_play_pause.split(" ");
    Lightbox.disableResize = s.disable_resize;
    Lightbox.disableZoom = s.disable_zoom;
    Lightbox.slideInterval = s.slideshow_interval;
    Lightbox.showPlayPause = s.show_play_pause;
    Lightbox.autoStart = s.slideshow_automatic_start;
    Lightbox.autoExit = s.slideshow_automatic_exit;
    Lightbox.pauseOnNextClick = s.pause_on_next_click;
    Lightbox.pauseOnPrevClick = s.pause_on_previous_click;
    Lightbox.loopSlides = s.loop_slides;
    Lightbox.alternative_layout = s.use_alt_layout;
    Lightbox.iframe_width = s.iframe_width;
    Lightbox.iframe_height = s.iframe_height;
    Lightbox.iframe_border = s.iframe_border;
    Lightbox.enableVideo = s.enable_video;
    if (s.enable_video) {
      Lightbox.flvPlayer = s.flvPlayer;
      Lightbox.flvFlashvars = s.flvFlashvars;
    }

    // Make the lightbox divs.
    var output = '<div id="overlay" style="display: none;"></div>\
      <div id="lightbox" style="display: none;">\
        <div id="outerImageContainer"></div>\
        <div id="imageDataContainer" class="clearfix">\
          <div id="imageData"></div>\
        </div>\
      </div>';
    var loading = '<div id="loading"><a href="#" id="loadingLink"></a></div>';
    var modal = '<div id="modalContainer" style="display: none;"></div>';
    var frame = '<div id="frameContainer" style="display: none;"></div>';
    var imageContainer = '<div id="imageContainer" style="display: none;"></div>';
    var details = '<div id="imageDetails"></div>';
    var bottomNav = '<div id="bottomNav"></div>';
    var image = '<img id="lightboxImage" />';
    var hoverNav = '<div id="hoverNav"><a id="prevLink" href="#"></a><a id="nextLink" href="#"></a></div>';
    var frameNav = '<div id="frameHoverNav"><a id="framePrevLink" href="#"></a><a id="frameNextLink" href="#"></a></div>';
    var caption = '<span id="caption"></span>';
    var numberDisplay = '<span id="numberDisplay"></span>';
    var close = '<a id="bottomNavClose" href="#"></a>';
    var zoom = '<a id="bottomNavZoom" href="#"></a>';
    var zoomOut = '<a id="bottomNavZoomOut" href="#"></a>';
    var pause = '<a id="lightshowPause" href="#" style="display: none;"></a>';
    var play = '<a id="lightshowPlay" href="#" style="display: none;"></a>';

    $("body").append(output);
    $('#outerImageContainer').append(modal + frame + imageContainer + loading);
    if (!s.use_alt_layout) {
      $('#imageContainer').append(image + hoverNav);
      $('#imageData').append(frameNav + details + bottomNav);
      $('#imageDetails').append(caption + numberDisplay);
      $('#bottomNav').append(close + zoom + zoomOut + pause + play);
    }
    else {
      $('#outerImageContainer').append(bottomNav);
      $('#imageContainer').append(image);
      $('#bottomNav').append(close + zoom + zoomOut);
      $('#imageData').append(hoverNav + details);
      $('#imageDetails').append(caption + numberDisplay + pause + play);
    }

    // Setup onclick handlers.
    if (Lightbox.disableCloseClick) {
      $('#overlay').click(function() { Lightbox.end(); return false; } ).hide();
    }
    $('#loadingLink, #bottomNavClose').click(function() { Lightbox.end('forceClose'); return false; } );
    $('#prevLink, #framePrevLink').click(function() { Lightbox.changeData(Lightbox.activeImage - 1); return false; } );
    $('#nextLink, #frameNextLink').click(function() { Lightbox.changeData(Lightbox.activeImage + 1); return false; } );
    $('#bottomNavZoom').click(function() { Lightbox.changeData(Lightbox.activeImage, true); return false; } );
    $('#bottomNavZoomOut').click(function() { Lightbox.changeData(Lightbox.activeImage, false); return false; } );
    $('#lightshowPause').click(function() { Lightbox.togglePlayPause("lightshowPause", "lightshowPlay"); return false; } );
    $('#lightshowPlay').click(function() { Lightbox.togglePlayPause("lightshowPlay", "lightshowPause"); return false; } );

    // Fix positioning.
    $('#prevLink, #nextLink, #framePrevLink, #frameNextLink').css({ 'paddingTop': Lightbox.borderSize + 'px'});
    $('#imageContainer, #frameContainer, #modalContainer').css({ 'padding': Lightbox.borderSize + 'px'});
    $('#outerImageContainer, #imageDataContainer, #bottomNavClose').css({'backgroundColor': '#' + Lightbox.boxColor, 'color': '#'+Lightbox.fontColor});
    if (Lightbox.alternative_layout) {
      $('#bottomNavZoom, #bottomNavZoomOut').css({'bottom': Lightbox.borderSize + 'px', 'right': Lightbox.borderSize + 'px'});
    }
    else if (Lightbox.rtl == 1 && $.browser.msie) {
      $('#bottomNavZoom, #bottomNavZoomOut').css({'left': '0px'});
    }

    // Force navigation links to always be displayed
    if (s.force_show_nav) {
      $('#prevLink, #nextLink').addClass("force_show_nav");
    }

  },

  // initList()
  // Loops through anchor tags looking for 'lightbox', 'lightshow' and
  // 'lightframe', etc, references and applies onclick events to appropriate
  // links. You can rerun after dynamically adding images w/ajax.
  initList : function() {

    // Attach lightbox to any links with rel 'lightbox', 'lightshow' or
    // 'lightframe', etc.
    $("a[@rel^='lightbox']:not(.lightbox-processed), area[@rel^='lightbox']:not(.lightbox-processed)").addClass('lightbox-processed').click(function(e) {
      if (Lightbox.disableCloseClick) {
        $('#lightbox').unbind('click');
        $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
      }
      Lightbox.start(this, false, false, false, false);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    $("a[@rel^='lightshow']:not(.lightbox-processed), area[@rel^='lightshow']:not(.lightbox-processed)").addClass('lightbox-processed').click(function(e) {
      if (Lightbox.disableCloseClick) {
        $('#lightbox').unbind('click');
        $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
      }
      Lightbox.start(this, true, false, false, false);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    $("a[@rel^='lightframe']:not(.lightbox-processed), area[@rel^='lightframe']:not(.lightbox-processed)").addClass('lightbox-processed').click(function(e) {
      if (Lightbox.disableCloseClick) {
        $('#lightbox').unbind('click');
        $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
      }
      Lightbox.start(this, false, true, false, false);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    if (Lightbox.enableVideo) {
      $("a[@rel^='lightvideo']:not(.lightbox-processed), area[@rel^='lightvideo']:not(.lightbox-processed)").addClass('lightbox-processed').click(function(e) {
        if (Lightbox.disableCloseClick) {
          $('#lightbox').unbind('click');
          $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
        }
        Lightbox.start(this, false, false, true, false);
        if (e.preventDefault) { e.preventDefault(); }
        return false;
      });
    }
    $("a[@rel^='lightmodal']:not(.lightbox-processed), area[@rel^='lightmodal']:not(.lightbox-processed)").addClass('lightbox-processed').click(function(e) {
      $('#lightbox').unbind('click');
      Lightbox.start(this, false, false, false, true);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
  },

  // start()
  // Display overlay and lightbox. If image is part of a set, add siblings to
  // imageArray.
  start: function(imageLink, slideshow, lightframe, lightvideo, lightmodal) {

    Lightbox.isPaused = !Lightbox.autoStart;

    // Replaces hideSelectBoxes() and hideFlash() calls in original lightbox2.
    Lightbox.toggleSelectsFlash('hide');

    // Stretch overlay to fill page and fade in.
    var arrayPageSize = Lightbox.getPageSize();
    $("#overlay").hide().css({
      'width': '100%',
      'zIndex': '10090',
      'height': arrayPageSize[1] + 'px',
      'backgroundColor' : '#' + Lightbox.overlayColor
    });
    // Detect OS X FF2 opacity + flash issue.
    if (lightvideo && this.detectMacFF2()) {
      $("#overlay").removeClass("overlay_default");
      $("#overlay").addClass("overlay_macff2");
      $("#overlay").css({'opacity' : null});
    }
    else {
      $("#overlay").removeClass("overlay_macff2");
      $("#overlay").addClass("overlay_default");
      $("#overlay").css({'opacity' : Lightbox.overlayOpacity});
    }
    $("#overlay").fadeIn(Lightbox.fadeInSpeed);


    Lightbox.isSlideshow = slideshow;
    Lightbox.isLightframe = lightframe;
    Lightbox.isVideo = lightvideo;
    Lightbox.isModal = lightmodal;
    Lightbox.imageArray = [];
    Lightbox.imageNum = 0;

    var anchors = $(imageLink.tagName);
    var anchor = null;
    var rel_parts = Lightbox.parseRel(imageLink);
    var rel = rel_parts["rel"];
    var rel_group = rel_parts["group"];
    var title = (rel_parts["title"] ? rel_parts["title"] : imageLink.title);
    var rel_style = null;
    var i = 0;


    // Set the title for image alternative text.
    var alt = imageLink.title;
    if (!alt) {
      var img = $(imageLink).find("img");
      if (img && $(img).attr("alt")) {
        alt = $(img).attr("alt");
      }
      else {
        alt = title;
      }
    }

    if ($(imageLink).attr('id') == 'lightboxAutoModal') {
      rel_style = rel_parts["style"];
      Lightbox.imageArray.push(['#lightboxAutoModal > *', title, alt, rel_style, 1]);
    }
    else {
      // Handle lightbox images with no grouping.
      if ((rel == 'lightbox' || rel == 'lightshow') && !rel_group) {
        Lightbox.imageArray.push([imageLink.href, title, alt]);
      }

      // Handle other items with no grouping.
      else if (!rel_group) {
        rel_style = rel_parts["style"];
        Lightbox.imageArray.push([imageLink.href, title, alt, rel_style]);
      }

      // Handle grouped items.
      else {

        // Loop through anchors and add them to imageArray.
        for (i = 0; i < anchors.length; i++) {
          anchor = anchors[i];
          if (anchor.href && $(anchor).attr('rel')) {
            var rel_data = Lightbox.parseRel(anchor);
            var anchor_title = (rel_data["title"] ? rel_data["title"] : anchor.title);
            if (rel_data["rel"] == rel) {
              if (rel_data["group"] == rel_group) {
                if (Lightbox.isLightframe || Lightbox.isModal) {
                  rel_style = rel_data["style"];
                }
                Lightbox.imageArray.push([anchor.href, anchor_title, alt, rel_style]);
              }
            }
          }
        }

        // Remove duplicates.
        for (i = 0; i < Lightbox.imageArray.length; i++) {
          for (j = Lightbox.imageArray.length-1; j > i; j--) {
            if (Lightbox.imageArray[i][0] == Lightbox.imageArray[j][0]) {
              Lightbox.imageArray.splice(j,1);
            }
          }
        }
        while (Lightbox.imageArray[Lightbox.imageNum][0] != imageLink.href) {
          Lightbox.imageNum++;
        }
      }
    }

    if (Lightbox.isSlideshow && Lightbox.showPlayPause && Lightbox.isPaused) {
      $('#lightshowPlay').show();
      $('#lightshowPause').hide();
    }

    // Calculate top and left offset for the lightbox.
    var arrayPageScroll = Lightbox.getPageScroll();
    var lightboxTop = arrayPageScroll[1] + (Lightbox.topPosition == '' ? (arrayPageSize[3] / 10) : Lightbox.topPosition) * 1;
    var lightboxLeft = arrayPageScroll[0];
    $('#frameContainer, #modalContainer, #lightboxImage').hide();
    $('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();
    $('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();
    $('#outerImageContainer').css({'width': '250px', 'height': '250px'});
    $('#lightbox').css({
      'zIndex': '10500',
      'top': lightboxTop + 'px',
      'left': lightboxLeft + 'px'
    }).show();

    Lightbox.total = Lightbox.imageArray.length;
    Lightbox.changeData(Lightbox.imageNum);
  },

  // changeData()
  // Hide most elements and preload image in preparation for resizing image
  // container.
  changeData: function(imageNum, zoomIn) {

    if (Lightbox.inprogress === false) {
      if (Lightbox.total > 1 && ((Lightbox.isSlideshow && Lightbox.loopSlides) || (!Lightbox.isSlideshow && Lightbox.loopItems))) {
        if (imageNum >= Lightbox.total) imageNum = 0;
        if (imageNum < 0) imageNum = Lightbox.total - 1;
      }

      if (Lightbox.isSlideshow) {
        for (var i = 0; i < Lightbox.slideIdCount; i++) {
          window.clearTimeout(Lightbox.slideIdArray[i]);
        }
      }
      Lightbox.inprogress = true;
      Lightbox.activeImage = imageNum;

      if (Lightbox.disableResize && !Lightbox.isSlideshow) {
        zoomIn = true;
      }
      Lightbox.isZoomedIn = zoomIn;


      // Hide elements during transition.
      $('#loading').css({'zIndex': '10500'}).show();
      if (!Lightbox.alternative_layout) {
        $('#imageContainer').hide();
      }
      $('#frameContainer, #modalContainer, #lightboxImage').hide();
      $('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();
      $('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();

      // Preload image content, but not iframe pages.
      if (!Lightbox.isLightframe && !Lightbox.isVideo && !Lightbox.isModal) {
        imgPreloader = new Image();
        imgPreloader.onerror = function() { Lightbox.imgNodeLoadingError(this); };

        imgPreloader.onload = function() {
          var photo = document.getElementById('lightboxImage');
          photo.src = Lightbox.imageArray[Lightbox.activeImage][0];
          photo.alt = Lightbox.imageArray[Lightbox.activeImage][2];

          var imageWidth = imgPreloader.width;
          var imageHeight = imgPreloader.height;

          // Resize code.
          var arrayPageSize = Lightbox.getPageSize();
          var targ = { w:arrayPageSize[2] - (Lightbox.borderSize * 2), h:arrayPageSize[3] - (Lightbox.borderSize * 6) - (Lightbox.infoHeight * 4) - (arrayPageSize[3] / 10) };
          var orig = { w:imgPreloader.width, h:imgPreloader.height };

          // Image is very large, so show a smaller version of the larger image
          // with zoom button.
          if (zoomIn !== true) {
            var ratio = 1.0; // Shrink image with the same aspect.
            $('#bottomNavZoomOut, #bottomNavZoom').hide();
            if ((orig.w >= targ.w || orig.h >= targ.h) && orig.h && orig.w) {
              ratio = ((targ.w / orig.w) < (targ.h / orig.h)) ? targ.w / orig.w : targ.h / orig.h;
              if (!Lightbox.disableZoom && !Lightbox.isSlideshow) {
                $('#bottomNavZoom').css({'zIndex': '10500'}).show();
              }
            }

            imageWidth  = Math.floor(orig.w * ratio);
            imageHeight = Math.floor(orig.h * ratio);
          }

          else {
            $('#bottomNavZoom').hide();
            // Only display zoom out button if the image is zoomed in already.
            if ((orig.w >= targ.w || orig.h >= targ.h) && orig.h && orig.w) {
              // Only display zoom out button if not a slideshow and if the
              // buttons aren't disabled.
              if (!Lightbox.disableResize && Lightbox.isSlideshow === false && !Lightbox.disableZoom) {
                $('#bottomNavZoomOut').css({'zIndex': '10500'}).show();
              }
            }
          }

          photo.style.width = (imageWidth) + 'px';
          photo.style.height = (imageHeight) + 'px';
          Lightbox.resizeContainer(imageWidth, imageHeight);

          // Clear onLoad, IE behaves irratically with animated gifs otherwise.
          imgPreloader.onload = function() {};
        };

        imgPreloader.src = Lightbox.imageArray[Lightbox.activeImage][0];
        imgPreloader.alt = Lightbox.imageArray[Lightbox.activeImage][2];
      }

      // Set up frame size, etc.
      else if (Lightbox.isLightframe) {
        var src = Lightbox.imageArray[Lightbox.activeImage][0];
        $('#frameContainer').html('<iframe id="lightboxFrame" style="display: none;" src="'+src+'"></iframe>');

        // Enable swf support in Gecko browsers.
        if ($.browser.mozilla && src.indexOf('.swf') != -1) {
          setTimeout(function () {
            document.getElementById("lightboxFrame").src = Lightbox.imageArray[Lightbox.activeImage][0];
          }, 1000);
        }

        if (!Lightbox.iframe_border) {
          $('#lightboxFrame').css({'border': 'none'});
          $('#lightboxFrame').attr('frameborder', '0');
        }
        var iframe = document.getElementById('lightboxFrame');
        var iframeStyles = Lightbox.imageArray[Lightbox.activeImage][3];
        iframe = Lightbox.setStyles(iframe, iframeStyles);
        Lightbox.resizeContainer(parseInt(iframe.width, 10), parseInt(iframe.height, 10));
      }
      else if (Lightbox.isVideo || Lightbox.isModal) {
        var container = document.getElementById('modalContainer');
        var modalStyles = Lightbox.imageArray[Lightbox.activeImage][3];
        container = Lightbox.setStyles(container, modalStyles);
        if (Lightbox.isVideo) {
          Lightbox.modalHeight =  parseInt(container.height, 10);
          Lightbox.modalWidth =  parseInt(container.width, 10);
          Lightvideo.startVideo(Lightbox.imageArray[Lightbox.activeImage][0]);
        }
        Lightbox.resizeContainer(parseInt(container.width, 10), parseInt(container.height, 10));
      }
    }
  },

  // imgNodeLoadingError()
  imgNodeLoadingError: function(image) {
    var s = Drupal.settings.lightbox2;
    var original_image = Lightbox.imageArray[Lightbox.activeImage][0];
    if (s.display_image_size !== "") {
      original_image = original_image.replace(new RegExp("."+s.display_image_size), "");
    }
    Lightbox.imageArray[Lightbox.activeImage][0] = original_image;
    image.onerror = function() { Lightbox.imgLoadingError(image); };
    image.src = original_image;
  },

  // imgLoadingError()
  imgLoadingError: function(image) {
    var s = Drupal.settings.lightbox2;
    Lightbox.imageArray[Lightbox.activeImage][0] = s.default_image;
    image.src = s.default_image;
  },

  // resizeContainer()
  resizeContainer: function(imgWidth, imgHeight) {

    imgWidth = (imgWidth < Lightbox.minWidth ? Lightbox.minWidth : imgWidth);

    this.widthCurrent = $('#outerImageContainer').width();
    this.heightCurrent = $('#outerImageContainer').height();

    var widthNew = (imgWidth  + (Lightbox.borderSize * 2));
    var heightNew = (imgHeight  + (Lightbox.borderSize * 2));

    // Scalars based on change from old to new.
    this.xScale = ( widthNew / this.widthCurrent) * 100;
    this.yScale = ( heightNew / this.heightCurrent) * 100;

    // Calculate size difference between new and old image, and resize if
    // necessary.
    wDiff = this.widthCurrent - widthNew;
    hDiff = this.heightCurrent - heightNew;

    $('#modalContainer').css({'width': imgWidth, 'height': imgHeight});
    // Detect animation sequence.
    if (Lightbox.resizeSequence) {
      var animate1 = {width: widthNew};
      var animate2 = {height: heightNew};
      if (Lightbox.resizeSequence == 2) {
        animate1 = {height: heightNew};
        animate2 = {width: widthNew};
      }
      $('#outerImageContainer').animate(animate1, Lightbox.resizeSpeed).animate(animate2, Lightbox.resizeSpeed, 'linear', function() { Lightbox.showData(); });
    }
    // Simultaneous.
    else {
      $('#outerImageContainer').animate({'width': widthNew, 'height': heightNew}, Lightbox.resizeSpeed, 'linear', function() { Lightbox.showData(); });
    }

    // If new and old image are same size and no scaling transition is necessary
    // do a quick pause to prevent image flicker.
    if ((hDiff === 0) && (wDiff === 0)) {
      if ($.browser.msie) {
        Lightbox.pause(250);
      }
      else {
        Lightbox.pause(100);
      }
    }

    var s = Drupal.settings.lightbox2;
    if (!s.use_alt_layout) {
      $('#prevLink, #nextLink').css({'height': imgHeight + 'px'});
    }
    $('#imageDataContainer').css({'width': widthNew + 'px'});
  },

  // showData()
  // Display image and begin preloading neighbors.
  showData: function() {
    $('#loading').hide();

    if (Lightbox.isLightframe || Lightbox.isVideo || Lightbox.isModal) {
      Lightbox.updateDetails();
      if (Lightbox.isLightframe) {
        $('#frameContainer').show();
        if ($.browser.safari) {
          $('#lightboxFrame').css({'zIndex': '10500'}).show();
        }
        else {
          $('#lightboxFrame').css({'zIndex': '10500'}).fadeIn(Lightbox.fadeInSpeed);
        }
      }
      else {
        if (Lightbox.isVideo) {
          $("#modalContainer").html(Lightbox.modalHTML);
          $("#modalContainer").click(function() { return false; } );
        }
        else {
          var src = unescape(Lightbox.imageArray[Lightbox.activeImage][0]);
          if (Lightbox.imageArray[Lightbox.activeImage][4]) {
            $(src).appendTo("#modalContainer");
          }
          else {
            $("#modalContainer").load(src);
          }
          $('#modalContainer').unbind('click');
        }
        $('#modalContainer').css({'zIndex': '10500'}).show();
      }
    }

    // Handle display of image content.
    else {
      $('#imageContainer').show();
      if($.browser.safari) {
        $('#lightboxImage').css({'zIndex': '10500'}).show();
      }
      else {
        $('#lightboxImage').css({'zIndex': '10500'}).fadeIn(Lightbox.fadeInSpeed);
      }
      Lightbox.updateDetails();
      this.preloadNeighborImages();
    }
    Lightbox.inprogress = false;

    // Slideshow specific stuff.
    if (Lightbox.isSlideshow) {
      if (!Lightbox.loopSlides && Lightbox.activeImage == (Lightbox.total - 1)) {
        if (Lightbox.autoExit) {
          Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.end('slideshow');}, Lightbox.slideInterval);
        }
      }
      else {
        if (!Lightbox.isPaused && Lightbox.total > 1) {
          Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.changeData(Lightbox.activeImage + 1);}, Lightbox.slideInterval);
        }
      }
      if (Lightbox.showPlayPause && Lightbox.total > 1 && !Lightbox.isPaused) {
        $('#lightshowPause').show();
        $('#lightshowPlay').hide();
      }
      else if (Lightbox.showPlayPause && Lightbox.total > 1) {
        $('#lightshowPause').hide();
        $('#lightshowPlay').show();
      }
    }

    // Adjust the page overlay size.
    var arrayPageSize = Lightbox.getPageSize();
    var arrayPageScroll = Lightbox.getPageScroll();
    var pageHeight = arrayPageSize[1];
    if (Lightbox.isZoomedIn && arrayPageSize[1] > arrayPageSize[3]) {
      var lightboxTop = (Lightbox.topPosition == '' ? (arrayPageSize[3] / 10) : Lightbox.topPosition) * 1;
      pageHeight = pageHeight + arrayPageScroll[1] + lightboxTop;
    }
    $('#overlay').css({'height': pageHeight + 'px', 'width': arrayPageSize[0] + 'px'});

    // Gecko browsers (e.g. Firefox, SeaMonkey, etc) don't handle pdfs as
    // expected.
    if ($.browser.mozilla) {
      if (Lightbox.imageArray[Lightbox.activeImage][0].indexOf(".pdf") != -1) {
        setTimeout(function () {
          document.getElementById("lightboxFrame").src = Lightbox.imageArray[Lightbox.activeImage][0];
        }, 1000);
      }
    }
  },

  // updateDetails()
  // Display caption, image number, and bottom nav.
  updateDetails: function() {

    $("#imageDataContainer").hide();

    var caption = Lightbox.imageArray[Lightbox.activeImage][1];
    if (!caption) caption = '&nbsp;';
    $('#caption').html(caption).css({'zIndex': '10500'}).show();

    // If image is part of set display 'Image x of x'.
    var s = Drupal.settings.lightbox2;
    var numberDisplay = null;
    if (Lightbox.total > 1) {
      var currentImage = Lightbox.activeImage + 1;
      if (!Lightbox.isLightframe && !Lightbox.isModal && !Lightbox.isVideo) {
        numberDisplay = s.image_count.replace(/\!current/, currentImage).replace(/\!total/, Lightbox.total);
      }
      else if (Lightbox.isVideo) {
        numberDisplay = s.video_count.replace(/\!current/, currentImage).replace(/\!total/, Lightbox.total);
      }
      else {
        numberDisplay = s.page_count.replace(/\!current/, currentImage).replace(/\!total/, Lightbox.total);
      }
      $('#numberDisplay').html(numberDisplay).css({'zIndex': '10500'}).show();
    }

    $("#imageDataContainer").hide().slideDown(Lightbox.slideDownSpeed, function() {
      $("#bottomNav").show();
    });
    if (Lightbox.rtl == 1) {
      $("#bottomNav").css({'float': 'left'});
    }
    Lightbox.updateNav();
  },

  // updateNav()
  // Display appropriate previous and next hover navigation.
  updateNav: function() {

    $('#hoverNav').css({'zIndex': '10500'}).show();
    var prevLink = '#prevLink';
    var nextLink = '#nextLink';

    // Slideshow is separated as we need to show play / pause button.
    if (Lightbox.isSlideshow) {
      if ((Lightbox.total > 1 && Lightbox.loopSlides) || Lightbox.activeImage !== 0) {
        $(prevLink).css({'zIndex': '10500'}).show().click(function() {
          if (Lightbox.pauseOnPrevClick) {
            Lightbox.togglePlayPause("lightshowPause", "lightshowPlay");
          }
          Lightbox.changeData(Lightbox.activeImage - 1); return false;
        });
      }
      else {
        $(prevLink).hide();
      }

      // If not last image in set, display next image button.
      if ((Lightbox.total > 1 && Lightbox.loopSlides) || Lightbox.activeImage != (Lightbox.total - 1)) {
        $(nextLink).css({'zIndex': '10500'}).show().click(function() {
          if (Lightbox.pauseOnNextClick) {
            Lightbox.togglePlayPause("lightshowPause", "lightshowPlay");
          }
          Lightbox.changeData(Lightbox.activeImage + 1); return false;
        });
      }
      // Safari browsers need to have hide() called again.
      else {
        $(nextLink).hide();
      }
    }

    // All other types of content.
    else {

      if ((Lightbox.isLightframe || Lightbox.isModal || Lightbox.isVideo) && !Lightbox.alternative_layout) {
        $('#frameHoverNav').css({'zIndex': '10500'}).show();
        $('#hoverNav').css({'zIndex': '10500'}).hide();
        prevLink = '#framePrevLink';
        nextLink = '#frameNextLink';
      }

      // If not first image in set, display prev image button.
      if ((Lightbox.total > 1 && Lightbox.loopItems) || Lightbox.activeImage !== 0) {
        $(prevLink).css({'zIndex': '10500'}).show().click(function() {
          Lightbox.changeData(Lightbox.activeImage - 1); return false;
        });
      }
      // Safari browsers need to have hide() called again.
      else {
        $(prevLink).hide();
      }

      // If not last image in set, display next image button.
      if ((Lightbox.total > 1 && Lightbox.loopItems) || Lightbox.activeImage != (Lightbox.total - 1)) {
        $(nextLink).css({'zIndex': '10500'}).show().click(function() {
          Lightbox.changeData(Lightbox.activeImage + 1); return false;
        });
      }
      // Safari browsers need to have hide() called again.
      else {
        $(nextLink).hide();
      }
    }

    // Don't enable keyboard shortcuts so forms will work.
    if (!Lightbox.isModal) {
      this.enableKeyboardNav();
    }
  },


  // enableKeyboardNav()
  enableKeyboardNav: function() {
    $(document).bind("keydown", this.keyboardAction);
  },

  // disableKeyboardNav()
  disableKeyboardNav: function() {
    $(document).unbind("keydown", this.keyboardAction);
  },

  // keyboardAction()
  keyboardAction: function(e) {
    if (e === null) { // IE.
      keycode = event.keyCode;
      escapeKey = 27;
    }
    else { // Mozilla.
      keycode = e.keyCode;
      escapeKey = e.DOM_VK_ESCAPE;
    }

    key = String.fromCharCode(keycode).toLowerCase();

    // Close lightbox.
    if (Lightbox.checkKey(Lightbox.keysClose, key, keycode)) {
      Lightbox.end('forceClose');
    }
    // Display previous image (p, <-).
    else if (Lightbox.checkKey(Lightbox.keysPrevious, key, keycode)) {
      if ((Lightbox.total > 1 && ((Lightbox.isSlideshow && Lightbox.loopSlides) || (!Lightbox.isSlideshow && Lightbox.loopItems))) || Lightbox.activeImage !== 0) {
        Lightbox.changeData(Lightbox.activeImage - 1);
      }

    }
    // Display next image (n, ->).
    else if (Lightbox.checkKey(Lightbox.keysNext, key, keycode)) {
      if ((Lightbox.total > 1 && ((Lightbox.isSlideshow && Lightbox.loopSlides) || (!Lightbox.isSlideshow && Lightbox.loopItems))) || Lightbox.activeImage != (Lightbox.total - 1)) {
        Lightbox.changeData(Lightbox.activeImage + 1);
      }
    }
    // Zoom in.
    else if (Lightbox.checkKey(Lightbox.keysZoom, key, keycode) && !Lightbox.disableResize && !Lightbox.disableZoom && !Lightbox.isSlideshow && !Lightbox.isLightframe) {
      if (Lightbox.isZoomedIn) {
        Lightbox.changeData(Lightbox.activeImage, false);
      }
      else if (!Lightbox.isZoomedIn) {
        Lightbox.changeData(Lightbox.activeImage, true);
      }
      return false;
    }
    // Toggle play / pause (space).
    else if (Lightbox.checkKey(Lightbox.keysPlayPause, key, keycode) && Lightbox.isSlideshow) {

      if (Lightbox.isPaused) {
        Lightbox.togglePlayPause("lightshowPlay", "lightshowPause");
      }
      else {
        Lightbox.togglePlayPause("lightshowPause", "lightshowPlay");
      }
      return false;
    }
  },

  preloadNeighborImages: function() {

    if ((Lightbox.total - 1) > Lightbox.activeImage) {
      preloadNextImage = new Image();
      preloadNextImage.src = Lightbox.imageArray[Lightbox.activeImage + 1][0];
    }
    if (Lightbox.activeImage > 0) {
      preloadPrevImage = new Image();
      preloadPrevImage.src = Lightbox.imageArray[Lightbox.activeImage - 1][0];
    }

  },

  end: function(caller) {
    var closeClick = (caller == 'slideshow' ? false : true);
    if (Lightbox.isSlideshow && Lightbox.isPaused && !closeClick) {
      return;
    }
    // To prevent double clicks on navigation links.
    if (Lightbox.inprogress === true && caller != 'forceClose') {
      return;
    }
    Lightbox.disableKeyboardNav();
    $('#lightbox').hide();
    $("#overlay").fadeOut();
    Lightbox.isPaused = true;
    Lightbox.inprogress = false;
    // Replaces calls to showSelectBoxes() and showFlash() in original
    // lightbox2.
    Lightbox.toggleSelectsFlash('visible');
    if (Lightbox.isSlideshow) {
      for (var i = 0; i < Lightbox.slideIdCount; i++) {
        window.clearTimeout(Lightbox.slideIdArray[i]);
      }
      $('#lightshowPause, #lightshowPlay').hide();
    }
    else if (Lightbox.isLightframe) {
      $('#frameContainer').empty().hide();
    }
    else if (Lightbox.isVideo || Lightbox.isModal) {
      $('#modalContainer').hide().html("");
    }
  },


  // getPageScroll()
  // Returns array with x,y page scroll values.
  // Core code from - quirksmode.com.
  getPageScroll : function() {

    var xScroll, yScroll;

    if (self.pageYOffset) {
      yScroll = self.pageYOffset;
      xScroll = self.pageXOffset;
    }
    else if (document.documentElement && document.documentElement.scrollTop) {  // Explorer 6 Strict.
      yScroll = document.documentElement.scrollTop;
      xScroll = document.documentElement.scrollLeft;
    }
    else if (document.body) {// All other Explorers.
      yScroll = document.body.scrollTop;
      xScroll = document.body.scrollLeft;
    }

    arrayPageScroll = [xScroll,yScroll];
    return arrayPageScroll;
  },

  // getPageSize()
  // Returns array with page width, height and window width, height.
  // Core code from - quirksmode.com.
  // Edit for Firefox by pHaez.
  getPageSize : function() {

    var xScroll, yScroll;

    if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
      xScroll = document.body.scrollWidth;
      yScroll = document.body.scrollHeight;
    }
    else if (window.innerHeight && window.scrollMaxY) {
      xScroll = window.innerWidth + window.scrollMaxX;
      yScroll = window.innerHeight + window.scrollMaxY;
    }
    // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari.
    else {
      xScroll = document.body.offsetWidth;
      yScroll = document.body.offsetHeight;
    }

    var windowWidth, windowHeight;

    if (self.innerHeight) { // All except Explorer.
      if (document.documentElement.clientWidth) {
        windowWidth = document.documentElement.clientWidth;
      }
      else {
        windowWidth = self.innerWidth;
      }
      windowHeight = self.innerHeight;
    }
    // Explorer 6 Strict Mode.
    else if (document.documentElement && document.documentElement.clientHeight) {
      windowWidth = document.documentElement.clientWidth;
      windowHeight = document.documentElement.clientHeight;
    }
    else if (document.body) { // Other Explorers.
      windowWidth = document.body.clientWidth;
      windowHeight = document.body.clientHeight;
    }


    // For small pages with total height less then height of the viewport.
    if (yScroll < windowHeight) {
      pageHeight = windowHeight;
    }
    else {
      pageHeight = yScroll;
    }


    // For small pages with total width less then width of the viewport.
    if (xScroll < windowWidth) {
      pageWidth = windowWidth;
    }
    else {
      pageWidth = xScroll;
    }

    arrayPageSize = [pageWidth, pageHeight, windowWidth, windowHeight];
    return arrayPageSize;
  },


  // pause(numberMillis)
  pause : function(ms) {
    var date = new Date();
    var curDate = null;
    do { curDate = new Date(); }
    while (curDate - date < ms);
  },


  // toggleSelectsFlash()
  // Hide / unhide select lists and flash objects as they appear above the
  // lightbox in some browsers.
  toggleSelectsFlash: function (state) {
    if (state == 'visible') {
      $("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").show();
    }
    else if (state == 'hide') {
      $("select:visible, embed:visible, object:visible").addClass("lightbox_hidden");
      $("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").hide();
    }
  },


  // parseRel()
  parseRel: function (link) {
    var parts = [];
    parts["rel"] = parts["title"] = parts["group"] = parts["style"] = null;
    if (!$(link).attr('rel')) return parts;
    parts["rel"] = $(link).attr('rel').match(/\w+/)[0];

    if ($(link).attr('rel').match(/\[(.*)\]/)) {
      var info = $(link).attr('rel').match(/\[(.*?)\]/)[1].split('|');
      parts["group"] = info[0];
      parts["style"] = info[1];
    }
    if ($(link).attr('rel').match(/\[.*\]\[(.*)\]/)) {
      parts["title"] = $(link).attr('rel').match(/\[.*\]\[(.*)\]/)[1];
    }
    return parts;
  },

  // setStyles()
  setStyles: function(item, styles) {
    item.width = Lightbox.iframe_width;
    item.height = Lightbox.iframe_height;
    item.scrolling = "auto";

    if (!styles) return item;
    var stylesArray = styles.split(';');
    for (var i = 0; i< stylesArray.length; i++) {
      if (stylesArray[i].indexOf('width:') >= 0) {
        var w = stylesArray[i].replace('width:', '');
        item.width = jQuery.trim(w);
      }
      else if (stylesArray[i].indexOf('height:') >= 0) {
        var h = stylesArray[i].replace('height:', '');
        item.height = jQuery.trim(h);
      }
      else if (stylesArray[i].indexOf('scrolling:') >= 0) {
        var scrolling = stylesArray[i].replace('scrolling:', '');
        item.scrolling = jQuery.trim(scrolling);
      }
      else if (stylesArray[i].indexOf('overflow:') >= 0) {
        var overflow = stylesArray[i].replace('overflow:', '');
        item.overflow = jQuery.trim(overflow);
      }
    }
    return item;
  },


  // togglePlayPause()
  // Hide the pause / play button as appropriate.  If pausing the slideshow also
  // clear the timers, otherwise move onto the next image.
  togglePlayPause: function(hideId, showId) {
    if (Lightbox.isSlideshow && hideId == "lightshowPause") {
      for (var i = 0; i < Lightbox.slideIdCount; i++) {
        window.clearTimeout(Lightbox.slideIdArray[i]);
      }
    }
    $('#' + hideId).hide();
    $('#' + showId).show();

    if (hideId == "lightshowPlay") {
      Lightbox.isPaused = false;
      if (!Lightbox.loopSlides && Lightbox.activeImage == (Lightbox.total - 1)) {
        Lightbox.end();
      }
      else if (Lightbox.total > 1) {
        Lightbox.changeData(Lightbox.activeImage + 1);
      }
    }
    else {
      Lightbox.isPaused = true;
    }
  },

  triggerLightbox: function (rel_type, rel_group) {
    if (rel_type.length) {
      if (rel_group && rel_group.length) {
        $("a[@rel^='" + rel_type +"\[" + rel_group + "\]'], area[@rel^='" + rel_type +"\[" + rel_group + "\]']").eq(0).trigger("click");
      }
      else {
        $("a[@rel^='" + rel_type +"'], area[@rel^='" + rel_type +"']").eq(0).trigger("click");
      }
    }
  },

  detectMacFF2: function() {
    var ua = navigator.userAgent.toLowerCase();
    if (/firefox[\/\s](\d+\.\d+)/.test(ua)) {
      var ffversion = new Number(RegExp.$1);
      if (ffversion < 3 && ua.indexOf('mac') != -1) {
        return true;
      }
    }
    return false;
  },

  checkKey: function(keys, key, code) {
    return (jQuery.inArray(key, keys) != -1 || jQuery.inArray(String(code), keys) != -1);
  }


};

// Initialize the lightbox.
Drupal.behaviors.initLightbox = function (context) {
  $('body:not(.lightbox-processed)', context).addClass('lightbox-processed').each(function() {
    Lightbox.initialize();
    $('#lightboxAutoModal').triggerHandler('click');
    return false; // Break the each loop.
  });

  // Attach lightbox to any links with lightbox rels.
  Lightbox.initList();
};

;// $Id: panels.js,v 1.2.4.1 2009/10/05 22:40:35 merlinofchaos Exp $

(function ($) {
  Drupal.Panels = {};

  Drupal.Panels.autoAttach = function() {
    if ($.browser.msie) {
      // If IE, attach a hover event so we can see our admin links.
      $("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);
})(jQuery);
;Drupal.behaviors.spamspan=function(_1){$("span."+Drupal.settings.spamspan.m,_1).each(function(_2){var _3=($("span."+Drupal.settings.spamspan.u,this).text()+"@"+$("span."+Drupal.settings.spamspan.d,this).text()).replace(/\s+/g,"").replace(/\[dot\]/g,".");var _4=$("span."+Drupal.settings.spamspan.h,this).text().replace(/^ ?\((.*)\) ?$/,"$1");var _5=$.map(_4.split(/, /),function(n,i){return (n.replace(/: /,"="));});var _6=$("span."+Drupal.settings.spamspan.t,this).text().replace(/^ \((.*)\)$/,"$1");var _7="mailto:"+_3;var _8=_5.join("&");_7+=_8?("?"+_8):"";$(this).after($("<a></a>").attr("href",_7).html(_6?_6:_3).addClass("spamspan")).remove();});};;// $Id: swftools_flowplayer3.js,v 1.1.2.6 2010/04/07 21:33:36 stuartgreenfield Exp $

/**
 * Ensure swftools namespace is established.
 */
var swftools = swftools || {};

/**
* Define Flowplayer functions here.
*/
swftools.flowplayer3 = function() {
  var instances = [];
  var activePlayerID = null;
  var flowplayer_api = false;
    
  function getPlayer (playerID) {
    if (flowplayer_api) {
      return swftools.getObject(playerID + '_api');
    }
    return swftools.getObject(playerID);
  };
  
  return {
    flowplayer3_api_present: function() {
      flowplayer_api = true;
    },
    pushInstance: function(playerID) {
      instances.push(playerID);
    },
    activate: function(playerID) {
      if (activePlayerID && activePlayerID != playerID) {
        getPlayer(activePlayerID).fp_pause();
      };
      activePlayerID = playerID;
    },
    play: function(playerID) {
      getPlayer(playerID).fp_play();
    },
    pause: function(playerID) {
      getPlayer(playerID).fp_pause();
    },
    stop: function(playerID) {
      getPlayer(playerID).fp_stop();
    },
    mute: function(playerID) {
      getPlayer(playerID).fp_mute();
    },
    unmute: function(playerID) {
      getPlayer(playerID).fp_unmute();
    }
  }
}();

Drupal.behaviors.swftools_flowplayer3 = function (context) {
  $('.swftools-flowplayer3:not(.swftools-flowplayer3-processed)', context).addClass('swftools-flowplayer3-processed').each(function () {
    var playerID = $(this).attr('id').substring(9);
    console.log($(this).attr('class'));
    swftools.flowplayer3.pushInstance(playerID);
    if (typeof $f != 'undefined') {
      $f(playerID).onStart(function() {
        swftools.flowplayer3.activate(playerID); 
      });
      $f(playerID).onResume(function() {
        swftools.flowplayer3.activate(playerID); 
      });
    };
  });
  $('[class^=flowplayer3-accessible]:not(.swftools-flowplayer3-processed)', context).addClass('swftools-flowplayer3-processed').each(function () {
    $(this).click(function(){
      var classes = $(this).attr('class');
      var classes = classes.split(' ');
      var parts = classes[0].split('-');
      var idStarts = 24 + parts[2].length;
      var action = "swftools.flowplayer3." + parts[2] + "('" + classes[0].substring(idStarts) + "')";
      eval(action);
      return false;
    });
  });
  if (typeof $f != 'undefined') {
    swftools.flowplayer3.flowplayer3_api_present();
  };
};

// If flowplayer not yet created we create our own version to handle auto-pause. It will be over-written by flowplayer.js if it is called.
if (typeof flowplayer == 'undefined') {
  var flowplayer = {};
  flowplayer.fireEvent = function() {
      var a = [].slice.call(arguments);
//      console.log(a[1] + ' : ' + a[0]);
      if (a[1] == 'onStart' || a[1] == 'onResume') {
        swftools.flowplayer3.activate(a[0]);
      };
  };
};
;/* 
 * flowplayer.js 3.1.4. The Flowplayer API
 * 
 * Copyright 2009 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2009-02-25 21:24:29 +0000 (Wed, 25 Feb 2009)
 * Revision: 166 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.substring(0,q)||"*";var o=s.substring(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).substring(2,10)}var h=function(t,r,s){var q=this;var p={};var u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.substring(0,v.length-1);var w="onBefore"+v.substring(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var s={};var o=this;var u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var y=q._api().fp_getPlugin(p);if(!y){return}i(o,y);delete o.methods;if(!u){m(y.methods,function(){var A=""+this;o[A]=function(){var B=[].slice.call(arguments);var C=q._api().fp_invoke(p,A,B);return C==="undefined"||C===undefined?o:C}});u=true}}var z=s[w];if(z){z.apply(o,v);if(w.substring(0,1)=="_"){delete s[w]}}}})};function b(o,t,z){var E=this,y=null,x,u,p=[],s={},B={},r,v,w,D,A,q;i(E,{id:function(){return r},isLoaded:function(){return(y!==null)},getParent:function(){return o},hide:function(F){if(F){o.style.height="0px"}if(y){y.style.height="0px"}return E},show:function(){o.style.height=q+"px";if(y){y.style.height=A+"px"}return E},isHidden:function(){return y&&parseInt(y.style.height,10)===0},load:function(F){if(!y&&E._fireEvent("onBeforeLoad")!==false){m(a,function(){this.unload()});x=o.innerHTML;if(x&&!flashembed.isSupported(t.version)){o.innerHTML=""}flashembed(o,t,{config:z});if(F){F.cached=true;j(B,"onLoad",F)}}return E},unload:function(){if(x.replace(/\s/g,"")!==""){if(E._fireEvent("onBeforeUnload")===false){return E}try{if(y){y.fp_close();E._fireEvent("onUnload")}}catch(F){}y=null;o.innerHTML=x}return E},getClip:function(F){if(F===undefined){F=D}return p[F]},getCommonClip:function(){return u},getPlaylist:function(){return p},getPlugin:function(F){var H=s[F];if(!H&&E.isLoaded()){var G=E._api().fp_getPlugin(F);if(G){H=new l(F,G,E);s[F]=H}}return H},getScreen:function(){return E.getPlugin("screen")},getControls:function(){return E.getPlugin("controls")},getConfig:function(F){return F?k(z):z},getFlashParams:function(){return t},loadPlugin:function(I,H,K,J){if(typeof K=="function"){J=K;K={}}var G=J?e():"_";E._api().fp_loadPlugin(I,H,K,G);var F={};F[G]=J;var L=new l(I,null,E,F);s[I]=L;return L},getState:function(){return y?y.fp_getState():-1},play:function(G,F){function H(){if(G!==undefined){E._api().fp_play(G,F)}else{E._api().fp_play()}}if(y){H()}else{E.load(function(){H()})}return E},getVersion:function(){var G="flowplayer.js 3.1.4";if(y){var F=y.fp_getVersion();F.push(G);return F}return G},_api:function(){if(!y){throw"Flowplayer "+E.id()+" not loaded when calling an API method"}return y},setClip:function(F){E.setPlaylist([F]);return E},getIndex:function(){return w}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var F="on"+this;if(F.indexOf("*")!=-1){F=F.substring(0,F.length-1);var G="onBefore"+F.substring(2);E[G]=function(H){j(B,G,H);return E}}E[F]=function(H){j(B,F,H);return E}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed").split(","),function(){var F=this;E[F]=function(H,G){if(!y){return E}var I=null;if(H!==undefined&&G!==undefined){I=y["fp_"+F](H,G)}else{I=(H===undefined)?y["fp_"+F]():y["fp_"+F](H)}return I==="undefined"||I===undefined?E:I}});E._fireEvent=function(O){if(typeof O=="string"){O=[O]}var P=O[0],M=O[1],K=O[2],J=O[3],I=0;if(z.debug){g(O)}if(!y&&P=="onLoad"&&M=="player"){y=y||c(v);A=y.clientHeight;m(p,function(){this._fireEvent("onLoad")});m(s,function(Q,R){R._fireEvent("onUpdate")});u._fireEvent("onLoad")}if(P=="onLoad"&&M!="player"){return}if(P=="onError"){if(typeof M=="string"||(typeof M=="number"&&typeof K=="number")){M=K;K=J}}if(P=="onContextMenu"){m(z.contextMenu[M],function(Q,R){R.call(E)});return}if(P=="onPluginEvent"){var F=M.name||M;var G=s[F];if(G){G._fireEvent("onUpdate",M);G._fireEvent(K,O.slice(3))}return}if(P=="onPlaylistReplace"){p=[];var L=0;m(M,function(){p.push(new h(this,L++,E))})}if(P=="onClipAdd"){if(M.isInStream){return}M=new h(M,K,E);p.splice(K,0,M);for(I=K+1;I<p.length;I++){p[I].index++}}var N=true;if(typeof M=="number"&&M<p.length){D=M;var H=p[M];if(H){N=H._fireEvent(P,K,J)}if(!H||N!==false){N=u._fireEvent(P,K,J,H)}}m(B[P],function(){N=this.call(E,M,K);if(this.cached){B[P].splice(I,1)}if(N===false){return false}I++});return N};function C(){if($f(o)){$f(o).getParent().innerHTML="";w=$f(o).getIndex();a[w]=E}else{a.push(E);w=a.length-1}q=parseInt(o.style.height,10)||o.clientHeight;if(typeof t=="string"){t={src:t}}r=o.id||"fp"+e();v=t.id||r+"_api";t.id=v;z.playerId=r;if(typeof z=="string"){z={clip:{url:z}}}if(typeof z.clip=="string"){z.clip={url:z.clip}}z.clip=z.clip||{};if(o.getAttribute("href",2)&&!z.clip.url){z.clip.url=o.getAttribute("href",2)}u=new h(z.clip,-1,E);z.playlist=z.playlist||[z.clip];var F=0;m(z.playlist,function(){var H=this;if(typeof H=="object"&&H.length){H={url:""+H}}m(z.clip,function(I,J){if(J!==undefined&&H[I]===undefined&&typeof J!="function"){H[I]=J}});z.playlist[F]=H;H=new h(H,F,E);p.push(H);F++});m(z,function(H,I){if(typeof I=="function"){if(u[H]){u[H](I)}else{j(B,H,I)}delete z[H]}});m(z.plugins,function(H,I){if(I){s[H]=new l(H,I,E)}});if(!z.plugins||z.plugins.controls===undefined){s.controls=new l("controls",null,E)}s.canvas=new l("canvas",null,E);t.bgcolor=t.bgcolor||"#000000";t.version=t.version||[9,0];t.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function G(H){if(!E.isLoaded()&&E._fireEvent("onBeforeClick")!==false){E.load()}return f(H)}x=o.innerHTML;if(x.replace(/\s/g,"")!==""){if(o.addEventListener){o.addEventListener("click",G,false)}else{if(o.attachEvent){o.attachEvent("onclick",G)}}}else{if(o.addEventListener){o.addEventListener("click",f,false)}E.load()}}if(typeof o=="string"){flashembed.domReady(function(){var F=c(o);if(!F){throw"Flowplayer cannot access element: "+o}else{o=F;C()}})}else{C()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var r=arguments[1];var q=(arguments.length==3)?arguments[2]:{};if(typeof o=="string"){if(o.indexOf(".")!=-1){var t=[];m(n(o),function(){t.push(new b(this,k(r),k(q)))});return new d(t)}else{var s=c(o);return new b(s!==null?s:o,r,q)}}else{if(o){return new b(o,r,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();;// $Id: swftools.js,v 1.1.2.5 2010/03/31 22:23:37 stuartgreenfield Exp $

/**
 * Ensure swftools namespace is established.
 */
var swftools = swftools || {};

/**
 * Returns a DOM object that points to the flash content with the supplied id. 
 */
swftools.getObject = function(objectID) {
  
  // Get the base object
  swftoolsObject = document.getElementById(objectID);
  
  // See if we can get the object like this (IE/Chrome)
  if (typeof swftoolsObject == 'object') {
    return swftoolsObject;
  }
  // See if we can get the object like this (FF with swfobject embedding)
  if (typeof swftoolsObject.attributes.type != 'undefined' && swftoolsObject.attributes.type.value == 'application/x-shockwave-flash') {
    return swftoolsObject;
  }
  // Otherwise try this (FF with direct embedding)
  return swftoolsObject.getElementsByTagName('object')[0];
}

;/* (c) 2008, 2009, 2010 Add This, LLC */
if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,bamp:0.25,camp:1,csmp:0.0001,damp:1,famp:0.02,pamp:0.2,tamp:1,lamp:1,vamp:1,vrmp:0.0001,ltj:1,xamp:1,abf:!!window.addthis_do_ab};(function(){var l;try{l=window.location;if(l.protocol.indexOf("file")===0||l.protocol.indexOf("safari-extension")===0||l.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr;}if(l.hostname.indexOf("localhost")!=-1){_atc.loc=1;}}catch(e){}var ua=navigator.userAgent.toLowerCase(),d=document,w=window,dl=d.location,b={win:/windows/.test(ua),xp:(/windows nt 5.1/.test(ua))||(/windows nt 5.2/.test(ua)),osx:/os x/.test(ua),chr:/chrome/.test(ua),chb:/chrome\/(1[456789])/.test(ua),iph:/iphone/.test(ua),dro:/android/.test(ua),ipa:/ipad/.test(ua),saf:/safari/.test(ua)&&!(/chrome/.test(ua)),opr:/opera/.test(ua),msi:(/msie/.test(ua))&&!(/opera/.test(ua)),ffx:/firefox/.test(ua),ff2:/firefox\/2/.test(ua),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(ua),ie6:/msie 6.0/.test(ua),ie7:/msie 7.0/.test(ua),ie8:/msie 8.0/.test(ua),ie9:/msie 9.0/.test(ua),mod:-1},_7={rev:"109333",bro:b,wlp:(l||{}).protocol,dl:dl,upm:!!w.postMessage&&(""+w.postMessage).toLowerCase().indexOf("[native code]")!==-1,bamp:_atc.bamp-Math.random(),camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"//s7.addthis.com/static/r07/widget40.png",api:{},imgz:[],hash:window.location.hash};d.ce=d.createElement;d.gn=d.getElementsByTagName;window._ate=_7;_7.evl=function(_8,_9){if(_9){var _a;eval("evl = "+_8);return _a;}else{return eval(_8);}};function reduce(o,fn,_d,_e){if(!o){return _d;}if(o instanceof Array||(o.length&&(typeof o!=="function"))){for(var i=0,len=o.length,v=o[0];i<len;v=o[++i]){_d=fn.call(_e||o,_d,v,i,o);}}else{for(var _12 in o){_d=fn.call(_e||o,_d,o[_12],_12,o);}}return _d;}var _13=function(_14,_15){reduce(_14,function(acc,v,k){_15(k,v);},[]);},_19=function(a,b){var _1c={};for(var i=0;i<a.length;i++){_1c[a[i]]=1;}for(var i=0;i<b.length;i++){if(!_1c[b[i]]){a.push(b[i]);_1c[b[i]]=1;}}return a;},_1e=Array.prototype.slice,_1f=function(a){return _1e.apply(a,_1e.call(arguments,1));},_21=function(s){return(""+s).replace(/(^\s+|\s+$)/g,"");},_23=function(A,B){return reduce(_1f(arguments,1),function(A,_27){return reduce(_27,function(o,v,k){if(o){o[k]=v;}return o;},A);},A);},_2b=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21((typeof(v)=="object"?_2b(v,(del||"&")):(v)))));}return acc;},[]).join(del||"&");},_31=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21(v)));}return acc;},[]).join(del||"&");},_37=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_3b){try{var kv=_3b.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(v.indexOf(del||"&")>-1||v.indexOf("=")>-1){v=_37(v,del||"&");}if(k){acc[k]=v;}}catch(e){}return acc;},{});},_3f=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_43){try{var kv=_43.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(k){acc[k]=v;}}catch(e){}return acc;},{});},_47=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var s="";for(var _4a in obj){if(obj.hasOwnProperty(_4a)){s+=((s.length>0)?",":"")+obj[_4a];}}return s;}return null;},_4b=function(){var _4c=_1f(arguments,0),fn=_4c.shift(),_4e=_4c.shift();return function(){return fn.apply(_4e,_4c.concat(_1f(arguments,0)));};},_4f=function(un,obj,evt,fn){if(!obj){return;}if(we){obj[(un?"detach":"attach")+"Event"]("on"+evt,fn);}else{obj[(un?"remove":"add")+"EventListener"](evt,fn,false);}},_54=function(obj,evt,fn){_4f(0,obj,evt,fn);},_58=function(obj,evt,fn){_4f(1,obj,evt,fn);},_5c=function(s){return(s.match(/(([^\/\/]*)\/\/|\/\/)?([^\/\?\&\#]+)/i))[0];},_5e=function(s){return s.replace(_5c(s),"");},_60=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var _62={};for(var _63 in obj){if(obj.hasOwnProperty(_63)){_62[_63]=_60(obj[_63]);}}return _62;}return null;},_64={unqconcat:_19,reduce:reduce,slice:_1f,strip:_21,extend:_23,toKV:_31,rtoKV:_2b,fromKV:_3f,rfromKV:_37,otoCSV:_47,bind:_4b,listen:_54,unlisten:_58,gUD:_5c,gUQS:_5e,clone:_60};_7.util=_64;_23(_7,_64);(function(i,k,l){var g,n=i.util;function j(q,p,s,o,r){this.type=q;this.triggerType=p||q;this.target=s||o;this.triggerTarget=o||s;this.data=r||{};}n.extend(j.prototype,{constructor:j,bubbles:false,preventDefault:n.noop,stopPropagation:n.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,n.extend({},this.data));}});function e(o,p){this.target=o;this.queues={};this.defaultEventType=p||j;}function a(o){var p=this.queues;if(!p[o]){p[o]=[];}return p[o];}function h(o,p){this.getQueue(o).push(p);}function d(p,r){var s=this.getQueue(p),o=s.indexOf(r);if(o!==-1){s.splice(o,1);}}function b(o,s,r,q){var p=this;if(!q){setTimeout(function(){p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));},10);}else{p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));}}function m(p){for(var r=0,t=p.target,s=this.getQueue(p.type),o=s.length;r<o;r++){s[r].call(t,p.clone());}}function c(p){if(!p){return;}for(var o in f){p[o]=n.bind(f[o],this);}return p;}var f={constructor:e,getQueue:a,addEventListener:h,removeEventListener:d,dispatchEvent:m,fire:b,decorate:c};n.extend(e.prototype,f);i.event={PolyEvent:j,EventDispatcher:e};})(_7,_7.api,_7);_7.ed=new _7.event.EventDispatcher(_7);var _87={isBound:0,isReady:0,readyList:[],onReady:function(){if(!_87.isReady){_87.isReady=1;var l=_87.readyList.concat(window.addthis_onload||[]);for(var fn=0;fn<l.length;fn++){l[fn].call(window);}_87.readyList=[];}},addLoad:function(_8a){var o=w.onload;if(typeof w.onload!="function"){w.onload=_8a;}else{w.onload=function(){if(o){o();}_8a();};}},bindReady:function(){if(r.isBound||_atc.xol){return;}r.isBound=1;if(d.addEventListener&&!b.opr){d.addEventListener("DOMContentLoaded",r.onReady,false);}var apc=window.addthis_product;if(apc&&apc.indexOf("f")>-1){r.onReady();return;}if(b.msi&&!b.ie9&&window==top){(function(){if(r.isReady){return;}try{d.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}r.onReady();})();}if(b.opr){d.addEventListener("DOMContentLoaded",function(){if(r.isReady){return;}for(var i=0;i<d.styleSheets.length;i++){if(d.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}}r.onReady();},false);}if(b.saf){var _8e;(function(){if(r.isReady){return;}if(d.readyState!="loaded"&&d.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(_8e===undefined){var _90=d.gn("link");for(var i=0;i<_90.length;i++){if(_90[i].getAttribute("rel")=="stylesheet"){_8e++;}}var _92=d.gn("style");_8e+=_92.length;}if(d.styleSheets.length!=_8e){setTimeout(arguments.callee,0);return;}r.onReady();})();}r.addLoad(r.onReady);},append:function(fn,_94){r.bindReady();if(r.isReady){fn.call(window,[]);}else{r.readyList.push(function(){return fn.call(window,[]);});}}},r=_87,a=_7;_23(_7,{plo:[],lad:function(x){_7.plo.push(x);}});(function(c,e,d){var a=window;c.pub=function(){return _euc((window.addthis_config||{}).pubid||(window.addthis_config||{}).username||window.addthis_pub||"");};c.usu=function(g,h){if(!a.addthis_share){a.addthis_share={};}if(h||g!=addthis_share.url){addthis_share.imp_url=0;}};c.rsu=function(){var h=document,g=h.title,f=h.location?h.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&f&&f!=a.addthis_share.url&&!(_7.util.ivc((h.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=f;a.addthis_share.title=a.addthis_title=g;return 1;}return 0;};c.igv=function(f,g){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub};}else{if(addthis_config.data_use_cookies===false){_atc.xck=1;}}if(!a.addthis_share){a.addthis_share={};}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1;}addthis_share.url=(a.addthis_url||f||"").split("#{").shift();}if(!addthis_share.title){addthis_share.title=(a.addthis_title||g||"").split("#{").shift();}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={};}for(var b in addthis_conf){_atc[b]=addthis_conf[b];}_atc.ost=1;}})(_7,_7.api,_7);(function(b,f,c){var h,g=document,a=b.util;b.ckv=a.fromKV(g.cookie,";");function e(d){return a.fromKV(g.cookie,";")[d];}if(!b.cookie){b.cookie={};}b.cookie.rck=e;})(_7,_7.api,_7);(function(b,c,e){var a,h=document,g=0,m=b.util;function j(){if(g){return 1;}k("xtc",1);if(1==b.cookie.rck("xtc")){g=1;}f("xtc",1);return g;}function l(o){if(_atc.xck){return;}var n=o||_7.dh||_7.du||(_7.dl?_7.dl.hostname:"");if(n.indexOf(".gov")>-1||n.indexOf(".mil")>-1){_atc.xck=1;}var q=typeof(b.pub)==="function"?b.pub():b.pub,d=["usarmymedia","govdelivery"];for(i in d){if(q==d[i]){_atc.xck=1;break;}}}function f(n,d){if(h.cookie){h.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"+(d?"; domain="+(b.bro.msi?"":".")+"addthis.com":"");}}function k(o,n,p,q,d){if(!window.at_sub){l();}if(!_atc.xck){if(!d){var d=new Date();d.setYear(d.getFullYear()+2);}document.cookie=o+"="+n+(!p?"; expires="+d.toUTCString():"")+"; path=/;"+(!q?" domain="+(b.bro.msi?"":".")+"addthis.com":"");}}if(!b.cookie){b.cookie={};}b.cookie.sck=k;b.cookie.kck=f;b.cookie.cww=j;b.cookie.gov=l;})(_7,_7.api,_7);(function(c,f,d){var b=c.util,a={};timeouts={};if(!c.cbs){c.cbs={};}function e(j,i,m,k,g){i=(_euc(i)).replace(/[0-3][A-Z]|[^a-zA-Z0-9]/g,"");a[i]=a[i]||0;var h=a[i]++,l=j+"_"+i+(!g?h:"");if(!_7.cbs[l]){_7.cbs[l]=function(){if(timeouts[l]){clearTimeout(timeouts[l]);}m.apply(this,arguments);};}_7.cbs["time_"+l]=(new Date()).getTime();if(k){clearTimeout(timeouts[l]);timeouts[l]=setTimeout(k,10000);}return"_ate.cbs."+_euc(l);}b.scb=e;})(_7,_7.api,_7);(function(b,d,c){function e(){var k=a(navigator.userAgent,16),f=((new Date()).getTimezoneOffset())+""+navigator.javaEnabled()+(navigator.userLanguage||navigator.language),h=window.screen.colorDepth+""+window.screen.width+window.screen.height+window.screen.availWidth+window.screen.availHeight,g=navigator.plugins,l=g.length;if(l>0){for(var j=0;j<Math.min(10,l);j++){if(j<5){f+=g[j].name+g[j].description;}else{h+=g[j].name+g[j].description;}}}return k.substr(0,2)+a(f,16).substr(0,3)+a(h,16).substr(0,3);}function a(h,j){var f=291;if(h){for(var g=0;g<h.length;g++){f=(f*(h.charCodeAt(g)+g)+3)&1048575;}}return(f&16777215).toString(j||32);}b.mun=a;b.gub=e;})(_7,_7.api,_7);(function(d,e,g){var c,l=d.util,j=4294967295,b=new Date().getTime();function h(){return((b/1000)&j).toString(16)+("00000000"+(Math.floor(Math.random()*(j+1))).toString(16)).slice(-8);}function a(m){return k(m)?(new Date((parseInt(m.substr(0,8),16)*1000))):new Date();}function i(m){var n=a();return((n.getTime()-1000*86400)>(new Date()).getTime());}function f(m,o){var n=a(m);return(((new Date()).getTime()-n.getTime())>o*1000);}function k(m){return m&&m.match(/^[0-9a-f]{16}$/)&&!i(m);}l.cuid=h;l.ivc=k;l.ioc=f;})(_7,_7.api,_7);(function(c,f,e){function b(g){if(!g){return"";}else{if(g.indexOf("%")>-1){g=_duc(g);}}var g=_7.util.atob(g.split(",")[1]);return g;}function d(h){var j={},g,i;j.zip=h.substring(0,5);j.continent=h.substring(5,7);j.country=h.substring(7,9);j.region=h.substring(9,11);g=h.substring(11,15);if(g!="0000"){j.lat=(parseInt(g)/10-180).toFixed(1);}lonstr=h.substring(15,19);if(lonstr!="0000"){j.lon=(parseInt(lonstr)/10-180).toFixed(1);}j.dma=h.substring(19,22);j.msa=h.substring(22,26);j.network_type=h.substring(26,27);j.throughput=h.substring(27,28);return j;}function a(j,k){j=j.split(",");for(var h=0;h<j.length;h++){var g=j[h].replace(/ /g,"");if(k.zip==g||k.continent==g||k.country==g||k.region==g){return 1;}}return 0;}c.util=c.util||{};c.util.geo={dec:b,parse:d,isin:a};})(_7,_7.api,_7);(function(a,c,b){function d(e){return e.split("//").pop().split("/").shift().split("#").shift().split("?").shift().split(".").slice(-2).join(".");}a.util=a.util||{};a.util.host=d;})(_7,_7.api,_7);(function(a,d,c){function e(g,f){var h=g.indexOf("#")>-1&&!f?g.replace(/^[^\#]+\#?|^\#?/,""):g.replace(/^[^\?]+\??|^\??/,""),i=a.util.fromKV(h);return i;}function b(k){var g=document.gn("script"),l=g.length,h=g[l-1],j=e(h.src);if(k||(h.src&&h.src.indexOf("addthis")==-1)){for(var f=0;f<l;f++){if((g[f].src||"").indexOf(k||"addthis.com")>-1){j=e(g[f].src);break;}}}return j;}if(!a.util){a.util={};}a.util.gsp=b;a.util.ghp=e;})(_7,_7.api,_7);(function(e,g,f){var d=e.util,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function a(k){var j="",n,l,h,p,o,m=0;if(/[0-9a-fA-F]+/.test(k)){while(m<k.length){n=parseInt(k.charAt(m++),16);l=parseInt(k.charAt(m++),16);h=parseInt(k.charAt(m++),16);p=(n<<2)|(isNaN(h)?l&3:(l>>2));o=((l&3)<<4)|h;j+=b.charAt(p)+(isNaN(h)?"":b.charAt(o));}}return j;}function c(k){var j="",n,l,h,p,o,m=0;while(m<k.length){p=b.indexOf(k.charAt(m++));o=m>=k.length?NaN:b.indexOf(k.charAt(m++));n=p>>2;l=isNaN(o)?(p&3):(((p&3)<<2)|(o>>4));h=o&15;j+=n.toString(16)+l.toString(16)+(isNaN(o)?"":h.toString(16));}return j;}d.hbtoa=a;d.atohb=c;})(_7,_7.api,_7);(function(f,s,u){var v=f,j=new Date().getTime(),r=function(){return Math.floor(Math.random()*4294967295).toString(36);},w=function(){return Math.floor((new Date().getTime()-j)/100).toString(16);},g=0,i=function(a){if(g===0){v.sid=g=(a||v.util.cuid());}return g;},d=null,c=function(a,x){if(d!==null){clearTimeout(d);}if(a){d=setTimeout(function(){x(false);},_7.wait);}},o=function(x,a){return _euc(x)+"="+_euc(a)+";"+w();},n=1,h=function(x,z){if(typeof x=="object"){x=_7.util.toKV(x);}var a=(x||"").split("?"),x=a.shift(),y=(a.pop()||"").split("&");return z(x,y);},k=function(a,x,z,y){if(!x){x={};}if(!x.remove){x.remove=[];}if(x.remove.push){x.remove.push("sms_ss");x.remove.push("at_xt");x.remove.push("fb_ref");x.remove.push("fb_source");}if(x.remove){a=t(a,x.remove);}if(x.clean){a=l(a);}if(x.defrag){a=e(a);}if(x.add){a=m(a,x.add,z,y);}return a;},m=function(z,B,A,x){var a={};if(B){for(var y in B){if(z.indexOf(y+"=")>-1){continue;}a[y]=p(B[y],z,A,x);}B=_7.util.toKV(a);}return z+(B.length?((z.indexOf("?")>-1?"&":"?")+B):"");},p=function(y,x,z,a){var z=z||addthis_share;return y.replace(/\{\{service\}\}/g,_euc(a||"")).replace(/\{\{code\}\}/g,_euc(a||"")).replace(/\{\{title\}\}/g,_euc(z.title)).replace(/\{\{url\}\}/g,_euc(x));},t=function(x,z){var a={},z=z||[];for(var y=0;y<z.length;y++){a[z[y]]=1;}return h(x,function(A,D){var E=[];if(D){for(var B in D){if(typeof(D[B])=="string"){var C=(D[B]||"").split("=");if(C.length!=2&&D[B]){E.push(D[B]);}else{if(a[C[0]]){continue;}else{if(D[B]){E.push(D[B]);}}}}}A+=(E.length?("?"+E.join("&")):"");}return A;});},q=function(a){var x=a.split("#").pop().split(",").shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").pop().split(",");}return[""];},e=function(a){var x=q(a).shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").shift();}else{x=a.split("#").slice(1).join("#").split(";").shift();if(x.split(".").length==3){x=x.split(".").slice(0,-1).join(".");}if(x.length==12&&x.substr(0,1)=="."&&(/[a-zA-Z0-9\-_]{11}/).test(x.substr(1))){return a.split("#").shift();}}return a;},l=function(a){return h(a,function(y,B){var x=y.indexOf(";jsessionid"),C=[];if(x>-1){y=y.substr(0,x);}if(B){for(var z in B){if(typeof(B[z])=="string"){var A=(B[z]||"").split("=");if(A.length==2){if(A[0].indexOf("utm_")===0||A[0]=="gclid"||A[0]=="sms_ss"||A[0]=="at_xt"||A[0]=="fb_ref"||A[0]=="fb_source"){continue;}}if(B[z]){C.push(B[z]);}}}y+=(C.length?("?"+C.join("&")):"");}return y;});},b=function(){var a=(typeof(v.pub||"")=="function"?v.pub():v.pub)||"unknown";return"AT-"+a+"/-/"+v.ab+"/"+i()+"/"+(n++)+(v.uid!==null?"/"+v.uid:"");};if(!_7.track){_7.track={};}f.util.extend(_7.track,{fcv:o,ran:r,rup:t,aup:m,cof:e,gof:q,clu:l,mgu:k,ssid:i,sta:b,sxm:c});})(_7,_7.api,_7);(function(c,e,i){var n=".",h=";",s=".",l=n.length,k=0,q={wpp:1,blg:1};function b(t){var u=t.split(";").shift();if(u.split(".").length==3){u=u.split(".").slice(0,-1).join(".");}if(u.length==12&&u.substr(0,1)=="."&&(/[a-zA-Z0-9\-_]{11}/).test(u.substr(1))){return 1;}return 0;}function r(t){return(t.length==(11+l)&&(t.substr(0,l)==n)&&(/[a-zA-Z0-9\-_]{11}/).test(t.substr(l)));}function o(u){var t=_7.util.atohb(u.substr(l));return{id:(t.substr(0,8)+"00000000,"+parseInt(t.substr(16),10)),fuid:t.substr(8,8)};}function g(K,I){if(!K){K=document.location;}if(!I){I=d.referer||d.referrer||"";}var J,P,A,N,v,E,x=0,y=0,G=K?K.href:"",C=(G||"").split("#").shift(),u=K.hash.substr(1),F=_7.util.ghp(K.search,1),H=_7.util.ghp(K.hash);y=0,at_st=H.at_st,at_pco=H.at_pco,v=F.sms_ss,fb_ref=F.fb_ref,at_xt=F.at_xt,q_at_st=F.at_st;if(!at_st){if(r(u)){var Q=_7.util.atohb(u.substr(l));E=Q.substr(8,8);at_st=Q.substr(0,8)+"00000000,";at_st+=parseInt(Q.substr(16),10);}}if(fb_ref&&!at_st){var M=s,B=fb_ref.split(M);if(B.length<2&&fb_ref.indexOf("_")>-1){M="_";B=fb_ref.split(M);}var w=B.length>1?B.pop():"",t=B.join(M);if(!r(t)){t=fb_ref;w="";}if(r(t)){var Q=_7.util.atohb(t.substr(l));at_xt=Q.substr(0,16)+","+parseInt(Q.substr(16),10);v="facebook_"+(w||"like");}else{var O=fb_ref.split("=").pop().split(s);if(O.length==2&&_7.util.ivc(O[0])){at_xt=O.join(",");v="facebook_"+(w||"like");}}}at_st=(at_st&&_7.util.ivc(at_st.split(",").shift()))?at_st:"";if(!at_xt){var M=(u.indexOf(h)>-1)?h:s,z=u.substr(l).split(M);if(z.length==2&&r(u.substr(0,1)+z[0])){var Q=_7.util.atohb(z[0]);at_xt=Q.substr(0,16)+","+parseInt(Q.substr(16),10);v=z[1];x=1;}}if(at_pco){A=1;}if(at_st){y=parseInt(at_st.split(",").pop())+1;P=at_st.split(",").shift();}else{if(G.indexOf(_atd+"book")==-1&&C!=I){var D=[],L;if(at_xt){L=at_xt.split(",");J=_duc(L.shift());if(J.indexOf(",")>-1){L=J.split(",");J=L.shift();}}else{if(q_at_st){L=q_at_st.split(",");N=_duc(L.shift());if(N.indexOf(",")>-1){L=N.split(",");N=L.shift();}}}if(L&&L.length){y=Math.min(3,parseInt(L.pop())+1);}}}if(!_7.util.ivc(P)){P=null;}if(!_7.util.ivc(N)){N=null;}v=(v||"").split("#").shift().split("?").shift();return{rsi:P,cfc:A,hash:x,rsiq:N,fuid:E,rxi:J,rsc:v,gen:y};}function f(v,t){if(!t||(t.data_track_clickback!==false&&t.data_track_linkback!==false)){if(k){return true;}if(_atc.ver>=250){return(k=true);}v=(v||window.addthis_product||"").split(",");for(var u=0;u<v.length;u++){if(q[v[u].split("-").shift()]){return(k=true);}}}return false;}function j(t,u){t=t||a.util.cuid();return n+_7.util.hbtoa(t+Math.min(3,u||0));}function p(u,v,t){t=t||a.util.cuid();return u.indexOf("#")>-1?u:u+"#"+j((v?t:t.substr(0,8)+_7.gub()),(a.smd||{}).gen)+(v?s+v:"");}function m(v){var u,x,z,A;if(v.indexOf("#")>-1){var y=v.split("#").slice(1).join("#");if(b(y)){var t=y.substr(1).split("."),w=(t.length)?t.shift():"";x=(t.length)?t.pop():"";if(w){w=_7.util.atohb(w);u=w.substr(0,16);z=parseInt(w.substr(16),10);if(!isNaN(z)){A=A||{};A.gen=z;}}if(_7.util.ivc(u)){A=A||{};A.xid=u;}if(x.search(/^[a-zA-Z0-9_]+$/)!=-1){A=A||{};A.rsc=x;}}}return A;}_7.extend(_7.track,{cur:p,dcu:m,gcc:j,cpf:n,ctp:f,eop:g,ich:b});})(_7,_7.api,_7);(function(b,d,c){function f(g){if(g=="t.co"){return"twitter";}for(var h in b.services.map){var i=b.services.map[h];if(i===""){i=h+".com";}if(g.indexOf(i)!=-1){return h;}}return;}function e(h){h=_duc(h);h=h.toLowerCase();h=h.replace(/[,;:\+\|]/g," ");h=h.replace(/[^a-z0-9. '\-]/g,"");h=h.replace(/\s+/g," ");h=h.replace(/\s+$/g,"");var k=[];var j=h.split(" ");for(var g=0;g<j.length;g++){var i=j[g];if(i.charAt(0)=="-"){continue;}else{if(/'s$/.test(i)){k.push(i.substring(0,i.length-2).replace(/[-']/g,"")+"'s");}else{k=k.concat(i.replace(/'/g,"").split("-"));}}}return k;}function a(){var h=b.dr;var l=b.ad.clr(h);var i={};if(typeof(h)=="undefined"||h===""){i.type="direct";return i;}var j=b.util.host(h);var k=f(j);if(typeof(k)!="undefined"){i.type="social";i.service=k;}else{if(b.ad.iss(h)){i.type="search";i.domain=b.util.host(h);var g=b.ad.fst(h);i.terms=e(g);}else{if(l&b.ad.ref.r_ondomain){i.type="internal";i.domain=document.location.hostname;}else{if(l&b.ad.ref.r_offdomain){i.type="referred";i.domain=b.util.host(h);}else{i.type="direct";}}}}return i;}if(!b.track){b.track={};}b.track.ts={get:a,gst:e};})(_7,_7.api,_7);(function(){var d=document,a=_7,_18c=0,cvt=[],avt=null,_18f={ftho:1,aqe3:1,d99r:1,neud:1,"8elu":1,bqfn:1},_190=Math.random()<_atc.csmp,_191=Math.random()<1000*_atc.csmp,_192=new RegExp(/\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})/g),_193=new RegExp(/^((([a-z]|[0-9]|\-)+)\.)+([a-z])+$/ig),qtp=[],xtp=function(){var p;while(p=qtp.pop()){trk(p);}},atf=null,pcs=[],spc=null;function apc(c){c=c.split("-").shift();for(var i=0;i<pcs.length;i++){if(pcs[i]==c){return;}}pcs.push(c);}function get_atssh(){var div=d.getElementById("_atssh");if(!div){div=d.ce("div");div.style.visibility="hidden";div.id="_atssh";a.opp(div.style);d.body.insertBefore(div,d.body.firstChild);}return div;}function ctf(url){var ifr,r=Math.floor(Math.random()*1000),div=get_atssh();if(!a.bro.msi){ifr=d.ce("iframe");ifr.id="_atssh"+r;ifr.title="AddThis utility frame";}else{if(a.bro.ie6&&!url&&d.location.protocol.indexOf("https")==0){url="javascript:''";}div.innerHTML="<iframe id=\"_atssh"+r+"\" width=\"1\" height=\"1\" title=\"AddThis utility frame\" name=\"_atssh"+r+"\" "+(url?"src=\""+url+"\"":"")+">";ifr=d.getElementById("_atssh"+r);}a.opp(ifr.style);ifr.frameborder=ifr.style.border=0;ifr.style.top=ifr.style.left=0;return ifr;}function jsl(){var w=window;return((((w.jQuery||{}).fn||{}).jquery&&1)|((w.Prototype||{}).Version&&2)|((w.YUI||{}).version||(w.YAHOO||{}).VERSION&&4)|((w.Ext||{}).version&&8)|((w.dojo||{}).version&&16)|((w._gaq||w._gat)&&32)|(w.google_ad_client&&64)|((w.FB||w.fbAsyncInit)&&128)|(w.$BTB&&256)|(w.meebo&&512)|(w.gigya&&1024)|(w.SHARETHIS&&2048)|(w._qevents&&4096)|(w.twttr&&8192));}function onMenuShare(e){var _1a2=300;if(e&&e.data&&e.data.service){if(a.dcp>=_1a2){return;}trk({gen:e.data.service.indexOf("facebook")>-1||e.data.service=="more"?-1:_1a2,pix:"dest="+e.data.service,svc:e.data.service,url:(e.data.url||null)});a.dcp=_1a2;}}var _1a3,_1a4=[];function onApiUsage(evt){if(evt.data.call){_1a4.push(evt.data.call);}if(!_1a3){_1a3=setTimeout(function(){img("ap","3","calls="+_euc(_1a4.join(",")),{});},10000);}}function onMenuPop(evt){var t={},data=evt.data||{},svc=data.svc,pco=data.pco,_1ab=data.cmo,_1ac=data.crs,_1ad=data.cso;if(svc){t.sh=svc;}if(_1ab){t.cm=_1ab;}if(_1ad){t.cs=1;}if(_1ac){t.cr=1;}if(pco){t.spc=pco;}img("sh","3",null,t);}function trk(t,_1af){var dr=a.dr,rev=(a.rev||"");if(!t){return;}t.xck=_atc.xck?1:0;t.xxl=1;t.sid=a.track.ssid();t.pub=a.pub();t.ssl=a.ssl||0;t.srl=_atc.lamp;t.du=a.tru(t.url||a.du||a.dl.href);t.xtr=_1af!==undefined?0:_atc.xtr;if(a.dt){t.dt=a.dt;}if(a.cb){t.cb=a.cb;}if(a.kw){t.kw=a.kw;}t.lng=a.lng();t.ver=_atc.ver;t.jsl=a.track.jsl();if(!a.upm&&a.uid){t.uid=a.uid;}t.pc=t.spc||pcs.join(",");if(dr){t.dr=a.tru(dr);}if(a.dh){t.dh=a.dh;}if(rev){t.rev=rev;}if(a.xfr){if(a.upm){if(atf){atf.contentWindow.postMessage(_31(t),"*");}}else{var div=get_atssh(),base="static/r07/sh75.html"+(false?"?t="+new Date().getTime():"");if(atf){div.removeChild(div.firstChild);}atf=ctf();atf.src=_atr+base+"#"+_31(t);div.appendChild(atf);}}else{qtp.push(t);}}function img(i,c,x,obj,_1b8){if(!window.at_sub&&!_atc.xtr){var t=obj||{};t.evt=i;if(x){t.ext=x;}avt=t;if(_1b8===1){xmi(true);}else{a.track.sxm(true,xmi);}}}function cev(k,v){cvt.push(a.track.fcv(k,v));a.track.sxm(true,xmi);}function xmi(_1bc){var h=a.dl?a.dl.hostname:"";if(cvt.length>0||avt){a.track.sxm(false,xmi);if(_atc.xtr){return;}var t=avt||{};t.ce=cvt.join(",");cvt=[];avt=null;trk(t);if(_1bc){var i=d.ce("iframe");i.id="_atf";_7.opp(i.style);d.body.appendChild(i);i=d.getElementById("_atf");}}}function onCopy(){text="",p_copy=250;if(window.getSelection){text=_7.trim((window.getSelection().toString()||"")).replace(_192," ").replace(/[\b]+/g," ").split(" ");if(text.length){if(_190&&_18c<3){cev("cbc",text.length);}_18c++;if(!_191){return;}var _1c0=[];for(var i=0;i<text.length;i++){if(text[i]&&text[i].length<=50&&text[i].indexOf("@")==-1&&text[i].indexOf("://")==-1&&(!(_193.test(text[i])))){_1c0.push(text[i]);}}if(_1c0.length&&_1c0.length<=5&&(!a.dcp||a.dcp<p_copy)){setTimeout(function(){trk({gen:p_copy,pix:"tt="+_euc(_1c0.join(" "))});a.dcp=p_copy;},Math.random()*10000);}}}}_7.ed.addEventListener("addthis-internal.params.loaded",function(){_191=_191||((!_7.sub&&((dl||{}).href||"").indexOf(".addthis.com")>-1)||_18f[_7.mun(_7.pub())])||(w.addthis_config||{}).data_track_textcopy;try{if(_190||_191){if(a.bro.msi){document.body.attachEvent("oncopy",onCopy,true);}else{document.addEventListener("copy",onCopy,true);}}}catch(e){}});a.ed.addEventListener("addthis-internal.api",onApiUsage);a.ed.addEventListener("addthis-internal.compact",onMenuPop);a.ed.addEventListener("addthis.menu.share",onMenuShare);if(!a.track){a.track={};}a.util.extend(a.track,{pcs:pcs,apc:apc,cev:cev,ctf:ctf,jsl:jsl,gtf:get_atssh,qtp:function(p){qtp.push(p);},stf:function(f){atf=f;},trk:trk,xtp:xtp});})();_23(_7,{_rec:[],xfr:!_7.upm,pmh:function(e){if(e.origin.slice(-12)==".addthis.com"){if(!e.data){return;}var data=_7.util.rfromKV(e.data),r=_7._rec;for(var n=0;n<r.length;n++){r[n](data);}}}});_23(_7,{lng:function(){return window.addthis_language||(window.addthis_config||{}).ui_language||(_7.bro.msi?navigator.userLanguage:navigator.language)||"en";},iwb:function(l){var wd={th:1,pl:1,sl:1,gl:1,hu:1,is:1,nb:1,se:1,su:1,sw:1};return!!wd[l];},gfl:function(l){var map={ca:"es",cs:"CZ",cy:"GB",da:"DK",de:"DE",eu:"ES",ck:"US",en:"US",es:"LA",fb:"FI",gl:"ES",ja:"JP",ko:"KR",nb:"NO",nn:"NO",sv:"SE",ku:"TR",zh:"CN","zh-tr":"CN","zh-hk":"HK","zh-tw":"TW",fo:"FO",fb:"LT",af:"ZA",sq:"AL",hy:"AM",be:"BY",bn:"IN",bs:"BA",nl:"NL",et:"EE",fr:"FR",ka:"GE",el:"GR",gu:"IN",hi:"IN",ga:"IE",jv:"ID",kn:"IN",kk:"KZ",la:"VA",li:"NL",ms:"MY",mr:"IN",ne:"NP",pa:"IN",pt:"PT",rm:"CH",sa:"IN",sr:"RS",sw:"KE",tl:"PH",ta:"IN",pl:"PL",tt:"RU",te:"IN",ml:"IN",uk:"UA",vi:"VN",tr:"TR",xh:"ZA",zu:"ZA",km:"KH",tg:"TJ",he:"IL",ur:"PK",fa:"IR",yi:"DE",gn:"PY",qu:"PE",ay:"BO",se:"NO",ps:"AF",tl:"ST"},rv=map[l]||map[l.split("-").shift()];if(rv){return l.split("-").shift()+"_"+rv;}else{return"en_US";}},ivl:function(l){var lg={af:1,afr:"af",ar:1,ara:"ar",az:1,aze:"az",be:1,bye:"be",bg:1,bul:"bg",bn:1,ben:"bn",bs:1,bos:"bs",ca:1,cat:"ca",cs:1,ces:"cs",cze:"cs",cy:1,cym:"cy",da:1,dan:"da",de:1,deu:"de",ger:"de",el:1,gre:"el",ell:"ell",en:1,eo:1,es:1,esl:"es",spa:"spa",et:1,est:"et",eu:1,fa:1,fas:"fa",per:"fa",fi:1,fin:"fi",fo:1,fao:"fo",fr:1,fra:"fr",fre:"fr",ga:1,gae:"ga",gdh:"ga",gl:1,glg:"gl",gu:1,he:1,heb:"he",hi:1,hin:"hin",hr:1,ht:1,hy:1,cro:"hr",hu:1,hun:"hu",id:1,ind:"id",is:1,ice:"is",it:1,ita:"it",ja:1,jpn:"ja",km:1,ko:1,kor:"ko",ku:1,lb:1,ltz:"lb",lt:1,lit:"lt",lv:1,lav:"lv",mk:1,mac:"mk",mak:"mk",ml:1,mn:1,ms:1,msa:"ms",may:"ms",nb:1,nl:1,nla:"nl",dut:"nl",no:1,nds:1,nn:1,nno:"no",oc:1,oci:"oc",pl:1,pol:"pl",ps:1,pt:1,por:"pt",ro:1,ron:"ro",rum:"ro",ru:1,rus:"ru",sk:1,slk:"sk",slo:"sk",sl:1,slv:"sl",sq:1,alb:"sq",sr:1,se:1,si:1,ser:"sr",su:1,sv:1,sve:"sv",sw:1,swe:"sv",ta:1,tam:"ta",te:1,teg:"te",th:1,tha:"th",tl:1,tgl:"tl",tn:1,tr:1,tur:"tr",tpi:1,tt:1,uk:1,ukr:"uk",ur:1,urd:"ur",vi:1,vec:1,vie:"vi","zh-cn":1,"zh-hk":1,"chi-hk":"zh-hk","zho-hk":"zh-hk","zh-tr":1,"chi-tr":"zh-tr","zho-tr":"zh-tr","zh-tw":1,"chi-tw":"zh-tw","zho-tw":"zh-tw",zh:1,chi:"zh",zho:"zh"};if(lg[l]){return lg[l];}l=l.split("-").shift();if(lg[l]){if(lg[l]===1){return l;}else{return lg[l];}}return 0;},ggl:function(l){var map={en:"en-US",ar:"ar",ca:"ca",zh:"zh-CN",hr:"hr",cs:"cs",da:"da",nl:"nl",et:"et",fi:"fi",fr:"fr",de:"de",el:"el",he:"iw",hi:"hi",hu:"hu",id:"id",it:"it",ja:"ja",ko:"ko",lv:"lv",lt:"lt",ms:"ms",no:"no",fa:"fa",pl:"pl",pt:"pt-BR",ro:"ro",ru:"ru",sr:"sr",sk:"sk",sl:"sl",es:"es",sv:"sv",th:"th",tr:"tr",uk:"uk",vi:"vi"};return map[l]||null;},gvl:function(l){var rv=_7.ivl(l)||"en";if(rv===1){rv=l;}return rv;},alg:function(al,f){var l=_7.gvl((al||_7.lng()).toLowerCase());if(l.indexOf("en")!==0&&(!_7.pll||f)){_7.pll=_7.ajs("static/r07/lang16/"+l+".js");}}});_23(_7,{trim:function(s,e){if(s&&s.trim&&typeof(s.trim)=="function"){s=s.trim();}try{s=s.replace(/^[\s\u3000]+/,"").replace(/[\s\u3000]+$/,"");}catch(exc){}if(s&&e){s=_euc(s);}return s||"";},trl:[],tru:function(u,k){var rv="",_1da=0,_1db=-1;if(u){rv=u.substr(0,300);if(rv!==u){if((_1db=rv.lastIndexOf("%"))>=rv.length-4){rv=rv.substr(0,_1db);}if(rv!=u){for(var i in _7.trl){if(_7.trl[i]==k){_1da=1;}}if(!_1da){_7.trl.push(k);}}}}return rv;},opp:function(st){st.width=st.height="1px";st.position="absolute";st.zIndex=100000;},jlr:{},ajs:function(name,_1df,_1e0,id,el,_1e3){if(!_7.jlr[name]||_1e3){var o=d.ce("script"),head=(el)?el:d.gn("head")[0]||d.documentElement;o.setAttribute("type","text/javascript");if(_1e0){o.setAttribute("async","true");}if(id){o.setAttribute("id",id);}o.src=(_1df?"":_atr)+name;head.insertBefore(o,head.firstChild);_7.jlr[name]=1;return o;}return 1;},jlo:function(){try{var a=_7,al=a.lng(),aig=function(src){var img=new Image();_7.imgz.push(img);img.src=src;};a.alg(al);if(!a.pld){if(a.bro.ie6){aig(_atr+a.spt);aig(_atr+"static/t00/logo1414.gif");aig(_atr+"static/t00/logo88.gif");if(window.addthis_feed){aig("static/r05/feed00.gif",1);}}if(a.pll&&!window.addthis_translations){setTimeout(function(){a.pld=a.ajs("static/r07/menu97.js");},10);}else{a.pld=a.ajs("static/r07/menu97.js");}}}catch(e){}},ao:function(elt,pane,iurl,_1ee,_1ef,_1f0){_7.lad(["open",elt,pane,iurl,_1ee,_1ef,_1f0]);_7.jlo();return false;},ac:function(){},as:function(s,cf,sh){_7.lad(["send",s,cf,sh]);_7.jlo();}});(function(e,f,k){var p=document,n=1,a=["cbea","cbeab","kkk","zvys","phz","gvgf","shpxf","chfflyvcf","pernzcvr","svfgvat","wvmm","fcybbtr","flovna"],g=a.length,j=[],c={};function b(d){return d.replace(/[a-zA-Z]/g,function(i){return String.fromCharCode((i<="Z"?90:122)>=(i=i.charCodeAt(0)+13)?i:i-26);});}while(g--){c[b(a[g])]=1;}function h(d){var i=0;if(!d||typeof(d)!="string"){return i;}d=((d||"").toLowerCase()+"").replace(/ /g,"");if(d=="mature"||d=="adult"||d=="rta-5042-1996-1400-1577-rta"){i|=n;}return i;}function o(t){var v=0;if(!t||typeof(t)!="string"){return v;}t=((t||"").toLowerCase()+"").replace(/[^a-zA-Z]/g," ").split(" ");for(var d=0,u=t.length;d<u;d++){if(c[t[d]]){v|=n;return v;}}return v;}function q(){var v=(w.addthis_title||p.title),i=o(v),u=p.all?p.all.tags("META"):p.getElementsByTagName?p.getElementsByTagName("META"):new Array(),t=(u||"").length;if(u&&t){while(t--){var d=u[t]||{},y=(d.name||(d.getAttribute?d.getAttribute("property"):"")||"").toLowerCase(),x=d.content;if(y=="description"||y=="keywords"){i|=o(x);}if(y=="rating"){i|=h(x);}if(y=="keywords"&&x&&x.length){m(x);}}}return i;}function m(y){var x=y.split(","),t,d=200;for(var u=0;u<x.length;u++){t=_7.trim(x[u]);if((d-=(t.length+1))>0){j.push(t);}else{break;}}}function l(){var x=[],v=p.all?p.all.tags("META"):p.getElementsByTagName?p.getElementsByTagName("META"):new Array(),i=(v||"").length;if(v&&i){while(i--){var d=v[i]||{},z=((d.getAttribute?d.getAttribute("property"):"")||d.name||"").toLowerCase(),y=d.content,u;if(z.indexOf("og:")===0){u=z.split(":").pop();if(x.length<7){x.push(u=="type"?u+"="+y:u);}}}}return x;}function s(){var v={},t="",u=p.all?p.all.tags("META"):p.getElementsByTagName?p.getElementsByTagName("META"):new Array();if(!u||u.length==0){return v;}for(var d=0;d<u.length;d++){t=u[d].getAttribute("property")||"";if(t.search(/^og:/i)!=-1){v[t.replace("og:","")]=u[d].content;}}return _31(v);}function r(){return j.join(",");}if(!e.ad){e.ad={};}_7.extend(e.ad,{cla:q,gog:l,og:s,kw:r});})(_7,_7.api,_7);(function(e,g,j){var l=document,h=0,b=1,a=2,i=4;function c(n,m,d){d=(d===undefined||d)||(window.location.protocol=="https:");m=_7.util.host(m===undefined?window.location.href:m);var p=h,q=0;if(n){var o=_7.util.host(n);if(m==o){p|=a;}else{p|=i;}}if(!d&&k(n)){p|=b;}return p;}function k(d){var n=".com/";var m=0;if(d&&d.match(/ws\/results\/(Web|Images|Video|News)/)){m=1;}else{if(d&&d.indexOf("addthis"==-1)&&(d.match(/google.*\/(search|url|m\?)/)||d.indexOf(n+"url")>-1||d.indexOf("/search?")>-1||d.indexOf(n+"search")>-1||d.indexOf(n+"s?bs")>-1||d.indexOf(n+"s?wd")>-1||d.indexOf(n+"web")>-1||d.match(/aol.*\/aol/)||d.indexOf("hotbot"+n)>-1)){if(f(d)!=false){m=1;}}}if(m){return true;}else{return false;}}function f(d){var n=d.split("?").pop().toLowerCase().split("&");var o=/^(?:q|search|bs|wd|p|query|qry|text)=(.*)/;for(var m=0;m<n.length;m++){if(matches=o.exec(n[m])){return matches[1];}}return false;}if(!e.ad){e.ad={};}e.ad.clr=c;e.ad.iss=k;e.ad.fst=f;e.ad.ref={r_direct:h,r_search:b,r_ondomain:a,r_offdomain:i};})(_7,_7.api,_7);(function(d,e,g){var i=d,f=[],h=_atc.xfr;if(!i.du){i.du=document.location.href;}if(!i.dh){i.dh=document.location.hostname;}if(!i.dr){i.dr=document.referrer;}function c(a){if(h||!_7.upm){_7.track.trk(a,true);}else{f.push(a);}}function b(l){var n={pco:"cnv-100"},a={pxid:1,ev:1};if(l){for(var m in l){if(a[m]){n[m]=l[m];}}}c({gen:2000,fcp:1,pix:i.util.toKV(n)});}function j(a){c({pixu:a});}if(!d.ad){d.ad={};}_7.extend(d.ad,{event:b,getPixels:j});_7.ed.addEventListener("addthis-internal.data.rdy",function(){h=1;for(var a=0;a<f.length;a++){c(f[a]);}});})(_7,_7.api,_7);(function(f,g,h){var c,j=document,m=f.util,b=f.event.EventDispatcher,k=25,e=[];function i(p,r,o){var d=[];function d(){d.push(arguments);}function q(){o[p]=r;while(d.length){r.apply(o,d.shift());}}d.ready=q;return d;}function l(p){if(p&&p instanceof a){e.push(p);}for(var d=0;d<e.length;){var o=e[d];if(o&&o.test()){e.splice(d,1);a.fire("load",o,{resource:o});}else{d++;}}if(e.length){setTimeout(l,k);}}function a(r,o,q){var d=this,p=new b(d);p.decorate(p).decorate(d);this.ready=false;this.loading=false;this.id=r;this.url=o;if(typeof(q)==="function"){this.test=q;}else{this.test=function(){return(!!_window[q]);};}a.addEventListener("load",function(s){var t=s.resource;if(!t||t.id!==d.id){return;}d.loading=false;d.ready=true;p.fire(s.type,t,{resource:t});});}m.extend(a.prototype,{load:function(){if(!this.loading){var d;if(this.url.substr(this.url.length-4)==".css"){var o=(j.gn("head")[0]||j.documentElement);d=j.ce("link");d.rel="stylesheet";d.type="text/css";d.href=this.url;d.media="all";o.insertBefore(d,o.firstChild);}else{d=_7.ajs(this.url,1);}this.loading=true;a.monitor(this);return d;}else{return 1;}}});var n=new b(a);n.decorate(n).decorate(a);m.extend(a,{known:{},loading:e,monitor:l});f.resource={Resource:a,ApiQueueFactory:i};})(_7,_7.api,_7);(function(e,v,x){var z=document,l=z.gn("body").item(0),h={},g={},o,y=[],c=0,t=0,u=0,j=true,m=[],B=0,w=0,i=z.domain.search(/\.addthis\.com$/i)!=-1?1:0;function q(){return((_atc.ltj&&k()&&n())||(r()&&FB.XFBML&&FB.XFBML.parse));}function n(){if(o===undefined){try{var C=(document.getElementsByTagName("html"))[0];if(C){if(C.getAttribute&&C.getAttribute("xmlns:fb")){o=true;}else{if(_7.bro.msi){var d=C.outerHTML.substr(0,C.outerHTML.indexOf(">"));if(d.indexOf("xmlns:fb")>-1){o=true;}}}}}catch(D){o=false;}}return o;}function r(){return(typeof(window.FB)=="object"&&FB.Event&&typeof(FB.Event.subscribe)=="function");}function k(){return!window.FB_RequireFeatures&&(!window.FB||(!FB.Share&&!FB.Bootstrap));}function f(){if(z.location.href.indexOf(_atr)==-1&&!_7.sub&&!c){if(r()){var d=(addthis_config.data_ga_tracker||addthis_config.data_ga_property);c=1;FB.Event.subscribe("message.send",function(E){var C={},F=g[E];for(var D in addthis_share){C[D]=addthis_share[D];}if(F){for(var D in F){C[D]=F[D];}}C.url=E;_7.share.track("facebook_send",0,C,addthis_config);if(d){_7.gat("facebook_send",E,addthis_config,C);}});FB.Event.subscribe("edge.create",function(E){if(!h[E]){var C={},F=g[E];for(var D in addthis_share){C[D]=addthis_share[D];}if(F){for(var D in F){C[D]=F[D];}}C.url=E;_7.share.track("facebook_like",0,C,addthis_config);if(d){_7.gat("facebook_like",E,addthis_config,C);}h[E]=1;}});FB.Event.subscribe("edge.remove",function(E){if(h[E]){var C={},F=g[E];for(var D in addthis_share){C[D]=addthis_share[D];}if(F){for(var D in F){C[D]=F[D];}}C.url=E;_7.share.track("facebook_unlike",0,C,addthis_config);h[E]=0;}});FB.Event.subscribe("comment.create",function(E){var C={},F=g[E.href];for(var D in addthis_share){C[D]=addthis_share[D];}if(F){for(var D in F){C[D]=F[D];}}C.url=E.href;_7.share.track("facebook_comment",0,C,addthis_config);if(d){_7.gat("facebook_comment",E.href,addthis_config,C);}});FB.Event.subscribe("comment.remove",function(E){var C={},F=g[E.href];for(var D in addthis_share){C[D]=addthis_share[D];}if(F){for(var D in F){C[D]=F[D];}}C.url=E.href;_7.share.track("facebook_uncomment",0,C,addthis_config);});}else{if(window.fbAsyncInit&&!u){if(t<3){setTimeout(f,3000+1000*2*(t++));}u=1;}}}}function s(d,F){var E="fb-root",D=z.getElementById(E),C=window.fbAsyncInit;y.push(d);if(r()&&FB.XFBML&&FB.XFBML.parse){FB.XFBML.parse(d);f();}else{if(!C){if(!D){D=z.ce("div");D.id=E;document.body.appendChild(D);}if(!C){var G=z.createElement("script");G.src=z.location.protocol+"//connect.facebook.net/"+(F||_7.gfl(_7.lng()))+"/all.js";G.async=true;D.appendChild(G);C=function(){FB.init({appId:i?"140586622674265":"172525162793917",status:true,cookie:true});};}}if(j){j=false;window.__orig__fbAsyncInit=C;window.fbAsyncInit=function(){window.__orig__fbAsyncInit();for(var H=0;H<y.length;H++){FB.XFBML.parse(y[H]);}f();};}}}function p(J,H){if(J.ost){return;}var F,I=_7.api.ptpa(J,"fb:subscribe"),D="",G=I.layout||"button_count",K=I.locale||_7.gfl(_7.lng()),d={standard:[450,I.show_faces?80:35],button_count:[90,25],box_count:[55,65]},L=I.width||(d[G]?d[G][0]:100),E=I.height||(d[G]?d[G][1]:25);passthrough=_7.util.toKV(I);_7.ufbl=1;if(q()){if(I.layout===undefined){I.layout="button_count";}if(I.show_faces===undefined){I.show_faces="false";}if(I.action===undefined){I.action="subscribe";}if(I.width===undefined){I.width=L;}if(I.font===undefined){I.font="arial";}if(I.href===undefined){I.href=_7.track.mgu(H.share.url,{defrag:1});}for(var C in I){D+=" "+C+"=\""+I[C]+"\"";}if(!H.share.xid){H.share.xid=_7.util.cuid();}g[I.href]={};for(var C in H.share){g[I.href][C]=H.share[C];}J.innerHTML="<fb:subscribe ref=\""+_7.share.gcp(H.share,H.conf,".sub").replace(",","_")+"\" "+D+"></fb:subscribe>";s(J);}else{if(!_7.bro.msi){F=z.ce("iframe");}else{J.innerHTML="<iframe frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\" scrollbars=\"no\""+(_7.bro.ie6?" src=\"javascript:''\"":"")+"></iframe>";F=J.firstChild;}F.style.overflow="hidden";F.style.scrolling="no";F.style.scrollbars="no";F.style.border="none";F.style.borderWidth="0px";F.style.width=L+"px";F.style.height=E+"px";F.src="//www.facebook.com/plugins/subscribe.php?href="+_euc(_7.track.mgu(H.share.url,{defrag:1}))+"&layout=button_count&show_faces=false&width=100&action=subscribe&font=arial&"+passthrough;if(!_7.bro.msi){J.appendChild(F);}}J.noh=J.ost=1;}function A(J,H){if(J.ost){return;}var K,I=_7.api.ptpa(J,"fb:like"),E="",G=I.layout||"button_count",L=I.locale||_7.gfl(_7.lng()),C={standard:[450,I.show_faces?80:35],button_count:[90,25],box_count:[55,65]},M=I.width||(C[G]?C[G][0]:100),F=I.height||(C[G]?C[G][1]:25);passthrough=_7.util.toKV(I);_7.ufbl=1;if(q()){if(I.layout===undefined){I.layout="button_count";}if(I.show_faces===undefined){I.show_faces="false";}if(I.action===undefined){I.action="like";}if(I.width===undefined){I.width=M;}if(I.font===undefined){I.font="arial";}if(I.href===undefined){var d=_7.util.clone(H.share.url_transforms||{});d.defrag=1;I.href=_7.track.mgu(H.share.url,d);}for(var D in I){E+=" "+D+"=\""+I[D]+"\"";}if(!H.share.xid){H.share.xid=_7.util.cuid();}g[I.href]={};for(var D in H.share){g[I.href][D]=H.share[D];}J.innerHTML="<fb:like ref=\""+_7.share.gcp(H.share,H.conf,".like").replace(",","_")+"\" "+E+"></fb:like>";s(J);}else{if(!_7.bro.msi){K=z.ce("iframe");}else{J.innerHTML="<iframe frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\" scrollbars=\"no\""+(_7.bro.ie6?" src=\"javascript:''\"":"")+"></iframe>";K=J.firstChild;}K.style.overflow="hidden";K.style.scrolling="no";K.style.scrollbars="no";K.style.border="none";K.style.borderWidth="0px";K.style.width=M+"px";K.style.height=F+"px";K.src="//www.facebook.com/plugins/like.php?href="+_euc(_7.track.mgu(H.share.url,{defrag:1}))+"&layout=button_count&show_faces=false&width=100&action=like&font=arial&"+passthrough;if(!_7.bro.msi){J.appendChild(K);}}J.noh=J.ost=1;}function b(H,D,I,F){var E=H.share_url_transforms||H.url_transforms||{},d=(H.passthrough||{}).facebook||{},J={},C=a.track.cof(a.track.mgu(H.url,E,H,"facebook"));C=B?("http://www.facebook.com/sharer.php?&t="+_euc(H.title)+"&u="+_euc(_7.share.acb("facebook",H,D))):(w?("http://www.facebook.com/connect/prompt_feed.php?message="+_euc(H.title)+"%0A%0D"+_euc(_7.share.acb("facebook",H,D))):i?"http://www.facebook.com/dialog/feed?redirect_uri="+_euc("http://s7.addthis.com/static/postshare/c00.html")+"&app_id=140586622674265&link="+_euc(_7.share.acb("facebook",H,D))+"&name="+_euc(H.title)+"&description="+_euc(H.description||""):_7.share.genurl("facebook",0,H,D));if(B||w||i){for(var G in D){J[G]=D[G];}J.hdl=1;_7.share.track("facebook",0,H,J,1);}if(D.ui_use_same_window||F){window.location.href=C;}else{window.open(C,"_blank");}return false;}e.share=e.share||{};e.share.fb={like:A,subs:p,has:r,ns:n,ready:q,compat:k,share:b,sub:f,load:s};})(_7,_7.api,_7);(function(e,o,r){var t=document,x=e,i=[],b=n();function n(){var d=t.gn("link"),B={};for(var A=0;A<d.length;A++){var a=d[A];if(a.href&&a.rel){B[a.rel]=a.href;}}return B;}function v(){var a=t.location.protocol;if(a=="file:"){a="http:";}return a+"//"+_atd;}function l(B,C,A,a){if(B=="more"&&_atc.ver>=300){var d=_7.util.clone(A||_atw.share);d.url=_euc(d.url);return _atr+"static/r07/bookmark03.html#ats="+_euc(_7.util.rtoKV(d))+"&atc="+_euc(_7.util.rtoKV(_atw.config||a));}return v()+(C?"feed.php":(B=="email"&&_atc.ver>=300?"tellfriend.php":"bookmark.php"))+"?v="+(_atc.ver)+"&winname=addthis&"+z(B,C,A,a)+(x.dr?"&pre="+_euc(x.track.cof(x.dr)):"")+"&tt=0"+(B==="more"&&x.bro.ipa?"&imore=1":"")+(x.bro.msi?"&captcha_provider=recaptcha":"");}function z(R,G,U,Z){var N=x.trim,W=window,S=x.pub(),L=window._atw||{},M=(U&&U.url?U.url:(L.share&&L.share.url?L.share.url:(W.addthis_url||W.location.href))),Y,F=function(ac){if(M&&M!=""){var d=M.indexOf("#at"+ac);if(d>-1){M=M.substr(0,d);}}};if(!Z){Z=L.conf||{};}else{for(var T in L.conf){if(!(Z[T])){Z[T]=L.conf[T];}}}if(!U){U=L.share||{};}else{for(var T in L.share){if(!(U[T])){U[T]=L.share[T];}}}if(x.rsu()){U.url=window.addthis_url;U.title=window.addthis_title;M=U.url;}if(!S||S=="undefined"){S="unknown";}Y=Z.services_custom;F("pro");F("opp");F("cle");F("clb");F("abc");if(M.indexOf("addthis.com/static/r07/ab")>-1){M=M.split("&");for(var V=0;V<M.length;V++){var P=M[V].split("=");if(P.length==2){if(P[0]=="url"){M=P[1];break;}}}}if(Y instanceof Array){for(var V=0;V<Y.length;V++){if(Y[V].code==R){Y=Y[V];break;}}}var X=((U.templates&&U.templates[R])?U.templates[R]:""),A=((U.modules&&U.modules[R])?U.modules[R]:""),D=U.share_url_transforms||U.url_transforms||{},J=U.track_url_transforms||U.url_transforms,ab=((D&&D.shorten&&U.shorteners)?(typeof(D.shorten)=="string"?D.shorten:(D.shorten[R]||D.shorten["default"]||"")):""),H="",Q=(Z.product||W.addthis_product||("men-"+_atc.ver)),B=L.crs,I="",O=x.track.gof(M),aa=O.length==2?O.shift().split("=").pop():"",a=O.length==2?O.pop():"",K=(Z.data_track_clickback||Z.data_track_linkback||!S||S=="AddThis")||(Z.data_track_clickback!==false&&_atc.ver>=250);if(U.email_vars){for(var T in U.email_vars){I+=(I==""?"":"&")+_euc(T)+"="+_euc(U.email_vars[T]);}}if(x.track.spc&&Q.indexOf(x.track.spc)==-1){Q+=","+x.track.spc;}if(D&&D.shorten&&U.shorteners){for(var T in U.shorteners){for(var C in U.shorteners[T]){H+=(H.length?"&":"")+_euc(T+"."+C)+"="+_euc(U.shorteners[T][C]);}}}M=x.track.cof(M);M=x.track.mgu(M,D,U,R);if(J){U.trackurl=x.track.mgu(U.trackurl||M,J,U,R);}var E="pub="+S+"&source="+Q+"&lng="+(x.lng()||"xx")+"&s="+R+(Z.ui_508_compliant?"&u508=1":"")+(G?"&h1="+N((U.feed||U.url).replace("feed://",""),1)+"&t1=":"&url="+N(M,1)+"&title=")+N(U.title||W.addthis_title,1)+(_atc.ver<200?"&logo="+N(W.addthis_logo,1)+"&logobg="+N(W.addthis_logo_background,1)+"&logocolor="+N(W.addthis_logo_color,1):"")+"&ate="+x.track.sta()+((R!="email"||_atc.ver<300)?"&frommenu=1":"")+((window.addthis_ssh&&(!B||addthis_ssh!=B)&&(addthis_ssh==R||addthis_ssh.search(new RegExp("(?:^|,)("+R+")(?:$|,)"))>-1))?"&ips=1":"")+(B?"&cr="+(R==B?1:0):"")+"&uid="+_euc(x.uid&&x.uid!="x"?x.uid:x.util.cuid())+(U.email_template?"&email_template="+_euc(U.email_template):"")+(I?"&email_vars="+_euc(I):"")+(ab?"&shortener="+_euc(typeof(ab)=="array"?ab.join(","):ab):"")+(ab&&H?"&"+H:"")+((U.passthrough||{})[R]?"&passthrough="+N((typeof(U.passthrough[R])=="object"?x.util.toKV(U.passthrough[R]):U.passthrough[R]),1):"")+(U.description?"&description="+N(U.description,1):"")+(U.html?"&html="+N(U.html,1):(U.content?"&html="+N(U.content,1):""))+(U.trackurl&&U.trackurl!=M?"&trackurl="+N(U.trackurl,1):"")+(U.screenshot?"&screenshot="+N(U.screenshot,1):"")+(U.screenshot_secure?"&screenshot_secure="+N(U.screenshot_secure,1):"")+(U.swfurl?"&swfurl="+N(U.swfurl,1):"")+(U.swfurl_secure?"&swfurl_secure="+N(U.swfurl_secure,1):"")+(Z.hdl?"&hdl=1":"")+(x.cb?"&cb="+x.cb:"")+(x.ufbl?"&ufbl=1":"")+(x.uud?"&uud=1":"")+(U.iframeurl?"&iframeurl="+N(U.iframeurl,1):"")+(U.width?"&width="+U.width:"")+(U.height?"&height="+U.height:"")+(Z.data_track_p32?"&p32="+Z.data_track_p32:"")+(K||_7.track.ctp(Z.product,Z)?"&ct=1":"")+((K||_7.track.ctp(Z.product,Z))&&M.indexOf("#")>-1?"&uct=1":"")+((Y&&Y.url)?"&acn="+_euc(Y.name)+"&acc="+_euc(Y.code)+"&acu="+_euc(Y.url):"")+(x.smd?(x.smd.rxi?"&rxi="+x.smd.rxi:"")+(x.smd.rsi?"&rsi="+x.smd.rsi:"")+(x.smd.gen?"&gen="+x.smd.gen:""):((aa?"&rsi="+aa:"")+(a?"&gen="+a:"")))+(U.xid?"&xid="+N(U.xid,1):"")+(X?"&template="+N(X,1):"")+(A?"&module="+N(A,1):"")+(Z.ui_cobrand?"&ui_cobrand="+N(Z.ui_cobrand,1):"")+(R=="email"&&_atc.ver>=300?"&ui_email_from="+N(Z.ui_email_from,1)+"&ui_email_note="+N(Z.ui_email_note,1):"")+(_atc.ver<300?((Z.ui_header_color?"&ui_header_color="+N(Z.ui_header_color,1):"")+(Z.ui_header_background?"&ui_header_background="+N(Z.ui_header_background,1):"")):"");return E;}function y(A,d,B){var a=A.xid;if(d.data_track_clickback||d.data_track_linkback||_7.track.ctp(d.product,d)){return x.track.gcc(a,(x.smd||{}).gen||0)+(B||"");}else{return"";}}function q(G,I,C,H,d,J){var F=x.pub(),a=H||I.url||"",B=I.xid||x.util.cuid(),D=(C.data_track_clickback||C.data_track_linkback||!F||F=="AddThis")||(C.data_track_clickback!==false&&_atc.ver>=250);if(a.toLowerCase().indexOf("http%3a%2f%2f")===0){a=_duc(a);}if(d){var A={};for(var E in I){A[E]=I[E];}A.xid=B;setTimeout(function(){(new Image()).src=l(G=="twitter"&&J?"tweet":G,0,A,C);},100);}return(D?x.track.cur(a,G,B):a);}function g(C,A,a){var A=A||{},B=C.share_url_transforms||C.url_transforms||{},d=x.track.cof(x.track.mgu(C.url,B,C,"mailto"));return"mailto:?subject="+_euc(C.title?C.title:d)+"&body="+_euc(q("mailto",C,A,d,a));}function h(a){return((!a.templates||!a.templates.twitter)&&(!x.wlp||x.wlp=="http:"));}function f(d,B,I,A){var G=B||550,C=I||450,H=screen.width,E=screen.height,F=Math.round((H/2)-(G/2)),a=0,D;if(E>C){F=Math.round((E/2)-(C/2));}w.open(d,(_7.bro.msi?"":(A||"addthis_share")),"left="+F+",top="+a+",width="+G+",height="+C+",personalbar=no,toolbar=no,scrollbars=yes,location=yes,resizable=yes");return false;}function u(d,A,a){w.open(l(d,0,A,a),"addthis_share");return false;}function j(d){var a={twitter:1,wordpress:1,email:_atc.ver>=300,more:_atc.ver>=300,raiseyourvoice:1,vk:1};return a[d];}function p(F,E,B,D,a,A){var C={wordpress:{width:720,height:570},linkedin:{width:600,height:400},email:_atc.ver>=300?{width:660,height:660}:{width:735,height:450},more:_atc.ver>=300?{width:660,height:716}:{width:735,height:450},vk:{width:720,height:290},raiseyourvoice:{width:480,height:635},"default":{width:550,height:450}},d=l(F,0,E,B);if(B.ui_use_same_window){window.location.href=d;}else{f(d,D||(C[F]||C["default"]).width,a||(C[F]||C["default"]).height,A);}return false;}function c(F,B,G,D){var C=F.share_url_transforms||F.url_transforms||{},A,d=(F.passthrough||{}).twitter||{},a=x.track.cof(x.track.mgu(F.url,C,F,"twitter")),E=((F.passthrough||{}).twitter==undefined)?{}:d;if(!F.templates){F.templates={};}if(!F.templates.twitter){F.templates.twitter=(F.text||((F.title==t.title)?E.text:F.title)||"{{title}}:")+" {{url}} via @"+(F.via||E.via||"AddThis");}a=l("twitter",0,F,B);if(A){F.title=A;}if(B.ui_use_same_window||D){window.location.href=a;}else{f(a,550,450,"twitter_tweet");}return false;}function k(B,A,a,d){_7.ed.fire("addthis.menu.share",window.addthis||{},{element:d||{},service:B||"unknown",url:A.trackurl||A.url});}function m(C,D,B,d,A){var a=l(C,D,B,d);i.push(x.ajs(a,1));if(!A){k(C,B,d);}}function s(A,d,a){return v()+"tellfriend.php?&fromname=aaa&fromemail="+_euc(d.from)+"&frommenu=1&tofriend="+_euc(d.to)+(A.email_template?"&template="+_euc(A.email_template):"")+(d.vars?"&vars="+_euc(d.vars):"")+"&lng="+(x.lng()||"xx")+"&captcha_provider=nucaptcha&note="+_euc(d.note)+"&"+z("email",null,null,a);}e.share=e.share||{};e.util.extend(e.share,{auw:j,ocw:f,stw:p,siw:u,pts:c,unt:h,uadd:z,genurl:l,geneurl:s,genieu:g,acb:q,gcp:y,svcurl:v,track:m,notify:k,links:b});})(_7,_7.api,_7);(function(a,b,c){if(!a.services){a.services={};}a.services.map={facebook:"",twitter:"",reddit:"",stumbleupon:"",gmail:"mail.google.com",blogger:"",linkedin:"",tumblr:"",delicious:"",yahoomail:"compose.mail.yahoo.com",hotmail:"hotmail.msn.com","100zakladok":"100zakladok.ru","2tag":"2tag.nl","2linkme":"","7live7":"",a1webmarks:"a1-webmarks.com",a97abi:"",addio:"add.io",menu:"api.addthis.com",adfty:"",adifni:"",aerosocial:"",allmyfaves:"",amazonwishlist:"amazon.com",amenme:"",aim:"lifestream.aol.com",aolmail:"webmail.aol.com",armenix:"",arto:"",aviary:"",baang:"baang.ir",baidu:"cang.baidu.com",bebo:"",bentio:"",biggerpockets:"",bitly:"bit.ly",bizsugar:"",bleetbox:"",blinklist:"",blip:"blip.pl",bloggy:"bloggy.se",blogmarks:"blogmarks.net",blogtrottr:"",blurpalicious:"",bobrdobr:"bobrdobr.ru",bonzobox:"",socialbookmarkingnet:"social-bookmarking.net",bookmarkycz:"bookmarky.cz",bookmerkende:"bookmerken.de",bordom:"bordom.net",box:"box.net",brainify:"",bryderi:"bryderi.se",buddymarks:"",buzzzy:"",camyoo:"",cardthis:"partner.cardthis.com",care2:"",chiq:"",cirip:"cirip.ro",citeulike:"citeulike.org",classicalplace:"",cndig:"cndig.org",colivia:"colivia.de",technerd:"",connotea:"connotea.org",cootopia:"",cosmiq:"cosmiq.de",curateus:"curate.us",designbump:"",designmoo:"",digthiswebhost:"",digaculturanet:"digacultura.net",digg:"",diggita:"diggita.it",diglog:"",digo:"digo.it",digzign:"",diigo:"",dipdive:"",domelhor:"domelhor.net",dosti:"dosti.webdunia.com",dotnetkicks:"",dotnetshoutout:"",woscc:"wos.cc",douban:"",draugiem:"draugiem.lv",drimio:"",dropjack:"",dwellicious:"",dzone:"",edelight:"edelight.de",efactor:"",ekudos:"ekudos.nl",elefantapl:"elefanta.pl",embarkons:"",eucliquei:"eucliquei.com.br",evernote:"",extraplay:"",ezyspot:"",stylishhome:"",fabulously40:"",informazione:"fai.informazione.it",fark:"",farkinda:"",fashiolista:"",fashionburner:"",favable:"",faves:"",favlogde:"favlog.de",favoritende:"favoriten.de",favoritus:"",flaker:"flaker.pl",flosspro:"floss.pro",folkd:"",formspring:"formspring.me",thefreedictionary:"",fresqui:"",friendfeed:"",friendster:"",funp:"",fwisp:"",gabbr:"",gamekicker:"",givealink:"givealink.org",globalgrind:"",govn:"my.go.vn",goodnoows:"",googletranslate:"translate.google.com",gravee:"",greaterdebater:"",grono:"grono.net",habergentr:"haber.gen.tr",hackernews:"news.ycombinator.com",hadashhot:"hadash-hot.co.il",hatena:"b.hatena.ne.jp",gluvsnap:"healthimize.com",hedgehogs:"hedgehogs.net",hellotxt:"",historious:"historio.us",hitmarks:"",hotbookmark:"hotbmark.com",hotklix:"",w3validator:"validator.w3.org",hyves:"hyves.net",idearef:"",identica:"identi.ca",ihavegot:"",index4:"index4.in",indexor:"indexor.co.uk",instapaper:"",investorlinks:"",iorbix:"",isociety:"isociety.be",iwiw:"iwiw.hu",jamespot:"",jappy:"jappy.de",joliprint:"api.joliprint.com",jumptags:"",zooloo:"kablog.com",kaboodle:"",kaevur:"",kaixin:"kaixin001.com",kindleit:"fivefilters.org",kipup:"",kirtsy:"",kledy:"kledy.de",kommenting:"",latafaneracat:"latafanera.cat",laaikit:"laaik.it",ladenzeile:"ladenzeile.de",librerio:"",linkninja:"linkninja.com.br",linkagogo:"",linksgutter:"",linkshares:"linkshares.net",linkuj:"linkuj.cz",livejournal:"",lockerblogger:"",logger24:"",mymailru:"connect.mail.ru",markme:"markme.me",mashbord:"",mawindo:"",meinvz:"meinvz.net",mekusharim:"mekusharim.walla.co.il",memonic:"",memori:"memori.ru",meneame:"meneame.net",live:"profile.live.com",mindbodygreen:"",misterwong:"mister-wong.com",misterwong_de:"mister-wong.de",moemesto:"moemesto.ru",moikrug:"moikrug.ru",mototagz:"",mrcnetworkit:"mrcnetwork.it",multiply:"",myaol:"favorites.my.aol.com",myhayastan:"myhayastan.am",mylinkvault:"",myspace:"",n4g:"",naszaklasa:"nk.pl",netlog:"",netvibes:"",netvouz:"",newsmeback:"",newstrust:"newstrust.net",newsvine:"",nujij:"nujij.nl",odnoklassniki_ru:"odnoklassniki.ru",oknotizie:"oknotizie.virgilio.it",oneview:"oneview.de",ongobee:"",orkut:"promote.orkut.com",dashboard:"api.addthis.com",oyyla:"",packg:"",pafnetde:"pafnet.de",pdfonline:"savepageaspdf.pdfonline.com",pdfmyurl:"",phonefavs:"",pingfm:"ping.fm",planypus:"planyp.us",plaxo:"",plurk:"",pochvalcz:"pochval.cz",popedition:"",posteezy:"",posterous:"",pratiba:"prati.ba",printfriendly:"",pusha:"pusha.se",qrfin:"qrf.in",quantcast:"",qzone:"sns.qzone.qq.com",readitlater:"readitlaterlist.com",rediff:"share.rediff.com",redkum:"",ridefix:"",scoopat:"scoop.at",scoopit:"scoop.it",sekoman:"sekoman.lv",select2gether:"www2.select2gether.com",shaveh:"shaveh.co.il",shetoldme:"",shirintar:"shir.intar.in",simpy:"",sinaweibo:"v.t.sina.com.cn",slashdot:"slashdot.org",smiru:"smi2.ru",sodahead:"",sonico:"",speedtile:"speedtile.net",sphinn:"",spinsnap:"",spokentoyou:"",sportpost:"",yiid:"spread.ly",springpad:"springpadit.com",squidoo:"",startaid:"",startlap:"startlap.hu",storyfollower:"",studivz:"studivz.net",stuffpit:"",stumpedia:"",stylehive:"",svejo:"svejo.net",symbaloo:"",taaza:"",tagmarksde:"tagmarks.de",tagvn:"",tagza:"",tarpipe:"",tellmypolitician:"",thewebblend:"",thinkfinity:"community.thinkfinity.org",thisnext:"",throwpile:"",tipd:"",topsitelernet:"ekle.topsiteler.net",transferr:"",tuenti:"",tulinq:"",tusul:"",tvinx:"",tweetmeme:"api.tweetmeme.com",twitthis:"",typepad:"",upnews:"upnews.it",urlaubswerkde:"urlaubswerk.de",urlcapt:"",viadeo:"",virb:"",visitezmonsite:"",vk:"vkontakte.ru",vkrugudruzei:"vkrugudruzei.ru",voxopolis:"",vybralisme:"vybrali.sme.sk",vyoom:"",webnews:"webnews.de",domaintoolswhois:"domaintools.com",windows:"api.addthis.com",windycitizen:"",wirefan:"",wordpress:"",worio:"",wykop:"wykop.pl",xanga:"",xing:"",yahoobkm:"bookmarks.yahoo.com",yammer:"",yardbarker:"",yemle:"",yigg:"yigg.de",yoolink:"go.yoolink.to",yorumcuyum:"",youblr:"",youbookmarks:"",youmob:"",yuuby:"",zakladoknet:"zakladok.net",zanatic:"",ziczac:"ziczac.it",zingme:"link.apps.zing.vn",zootool:""};})(_7,_7.api,_7);var w=window,ac=w.addthis_config||{},css=new _7.resource.Resource("widgetcss",_atr+"static/r07/widget76.css",function(){return true;}),_30e=new _7.resource.Resource("widget32css",_atr+"static/r07/widgetbig40.css",function(){return true;});function main(){try{if(_atc.xol&&!_atc.xcs&&ac.ui_use_css!==false){css.load();if(_7.bro.ipa){_30e.load();}}var a=_7,msi=a.bro.msi,hp=0,_312=window.addthis_config||{},dt=d.title,dr=(typeof(a.rdr)!=="undefined")?a.rdr:(d.referer||d.referrer||""),du=dl?dl.href:null,dh=dl.hostname,_317=du,_318=0,al=(_7.lng().split("-")).shift(),_31a=_7.track.eop(dl,dr),cvt=[],nabc=!!a.cookie.rck("nabc"),cfc=_31a.cfc,rsiq=_31a.rsiq,rsi=_31a.rsi,rxi=_31a.rxi,rsc=_31a.rsc.split("&").shift().split("%").shift().replace(/[^a-z0-9_]/g,""),gen=_31a.gen,fuid=_31a.fuid,ifr,_325=_atr+"static/r07/sh75.html#",data,_327=function(){if(!_7.track.pcs.length){_7.track.apc(window.addthis_product||("men-"+_atc.ver));}data.pc=_7.track.pcs.join(",");};if(rsc=="tweet"){rsc="twitter";}if(window.addthis_product){_7.track.apc(addthis_product);if(addthis_product.indexOf("fxe")==-1&&addthis_product.indexOf("bkm")==-1){_7.track.spc=addthis_product;}}var l=_7.share.links.canonical;if(l){if(l.indexOf("http")!==0){_317=(du||"").split("//").pop().split("/");if(l.indexOf("/")===0){_317=_317.shift()+l;}else{_317.pop();_317=_317.join("/")+"/"+l;}_317=dl.protocol+"//"+_317;}else{_317=l;}_7.usu(0,1);}_317=_317.split("#{").shift();a.igv(_317,d.title||"");var _329=addthis_share.view_url_transforms||addthis_share.track_url_transforms||addthis_share.url_transforms;if(_329){_317=_7.track.mgu(_317,_329);}if(rsi){rsi=rsi.substr(0,8)+fuid;}if(a.bro.mod==-1){var m=document.compatMode;if(m){var md=1;if(m=="BackCompat"){md=2;}else{if(m=="CSS1Compat"){md=0;}}a.bro.mode=md;if(a.bro.msi){a.bro.mod=md;}}}a.smd={rsi:rsi,rxi:rxi,gen:gen,rsc:rsc};a.dr=a.tru(dr,"fr");a.du=a.tru(_317,"fp");a.dt=dt=w.addthis_share.title;a.cb=a.ad.cla();a.kw=(a.cb!==1?a.ad.kw():"");a.dh=dl.hostname;a.ssl=du&&du.indexOf("https")===0?1:0;data={iit:(new Date()).getTime(),cb:a.cb,kw:a.kw,ab:a.ab,dh:a.dh,dr:a.dr,du:a.du,dt:dt,md:a.bro.mode,inst:a.inst,jsl:a.track.jsl(),lng:a.lng(),ogt:_7.ad.gog().join(","),pc:w.addthis_product||"men",pub:a.pub(),ssl:a.ssl,sid:_7.track.ssid(),srd:_atc.damp,srf:_atc.famp,srp:_atc.pamp,srl:_atc.lamp,srx:_atc.xamp,ver:_atc.ver,xck:_atc.xck||0,xtr:_atc.xtr||0,og:_7.ad.og()};if(a.dcp==Number.MAX_VALUE){data.dnp=1;}if(a.pixu){data.pixu=a.pixu;}if(a.trl.length){data.trl=a.trl.join(",");}if(a.rev){data.rev=a.rev;}if(_312.data_track_clickback||_312.data_track_linkback||_7.track.ctp(data.pc,_312)){data.ct=a.ct=1;}if(a.prv){data.prv=_31(a.prv);}if(rsc){data.sr=rsc;}if(a.vamp>=0&&!a.sub){if(cfc){cvt.push(a.track.fcv("plv",Math.round(1/_atc.vamp)));cvt.push(a.track.fcv("cfc",1));cvt.push(a.track.fcv("rcf",dl.hash));data.ce=cvt.join(",");}else{if(rsi&&(fuid!=a.gub())){cvt.push(a.track.fcv("plv",Math.round(1/_atc.vamp)));cvt.push(a.track.fcv("rsi",rsi));cvt.push(a.track.fcv("gen",gen));cvt.push(a.track.fcv("abc",1));cvt.push(a.track.fcv("fcu",a.gub()));cvt.push(a.track.fcv("rcf",dl.hash));data.ce=cvt.join(",");_318="addressbar";}else{if(rxi||rsiq||rsc){cvt.push(a.track.fcv("plv",Math.round(1/_atc.vamp)));if(rsc){cvt.push(a.track.fcv("rsc",rsc));}if(rxi){cvt.push(a.track.fcv("rxi",rxi));}else{if(rsiq){cvt.push(a.track.fcv("rsi",rsiq));}}if(rsiq||rxi){cvt.push(a.track.fcv("gen",gen));}data.ce=cvt.join(",");_318=rsc||"unknown";}}}}if(_318&&a.bamp>=0){data.clk=1;if(a.dcp!=Number.MAX_VALUE){a.dcp=data.gen=50;}_7.ed.fire("addthis.user.clickback",window.addthis||{},{service:_318});}if(!window.at_noxld){data.xld=1;}if(a.upm){data.xd=1;}if(!nabc&&window.history&&typeof(history.replaceState)=="function"&&(!_7.bro.chr||_7.bro.chb)&&(_312.data_track_addressbar||_312.data_track_addressbar_paths)&&((du||"").split("#").shift()!=dr)&&(du.indexOf("#")==-1||rsi||(_31a.hash&&rxi))){var path=dl.pathname||"",_32d,_32e=path!="/";if(_312.data_track_addressbar_paths){_32e=0;for(var i=0;i<_312.data_track_addressbar_paths.length;i++){_32d=new RegExp(_312.data_track_addressbar_paths[i].replace(/\*/g,".*")+"$");if(_32d.test(path)){_32e=1;break;}}}if(_32e&&(!rsi||a.util.ioc(rsi,5))){var _330=function(){history.replaceState({d:(new Date()),g:gen},d.title,_7.track.cur(dl.href.split("#").shift(),null,_7.track.ssid()));};_330();}}if(dl.href.indexOf(_atr)==-1&&!a.sub){if(a.upm){if(msi){setTimeout(function(){_327();ifr=a.track.ctf(_325+_31(data));a.track.stf(ifr);},_7.wait);w.attachEvent("onmessage",a.pmh);}else{ifr=a.track.ctf();w.addEventListener("message",a.pmh,false);}if(_7.bro.ffx){ifr.src=_325;_7.track.qtp(data);}else{if(!msi){setTimeout(function(){_327();ifr.src=_325+_31(data);},_7.wait);}}}else{ifr=a.track.ctf();setTimeout(function(){_327();ifr.src=_325+_31(data);},_7.wait);}if(ifr){ifr=a.track.gtf().appendChild(ifr);a.track.stf(ifr);}}if(w.addthis_language||ac.ui_language){a.alg();}if(a.plo.length>0){a.jlo();}}catch(e){window.console&&console.log("lod",e);}}w._ate=a;w._adr=r;a._ssc=a._ssh=[];a.dat={};a._rec.push(function(data){_13(data,function(k,v){a.dat[k]=v;});if(data.ssc){a._ssc=data.ssc;}if(data.sshs){var s=window.addthis_ssh=_duc(data.sshs);a.gssh=1;a._ssh=s.split(",");}if(data.uss){var u=a._uss=_duc(data.uss).split(",");if(window.addthis_ssh){var seen={},u=u.concat(a._ssh),_337=[];for(var i=0;i<u.length;i++){var s=u[i];if(!seen[s]){_337.push(s);}seen[s]=1;}u=_337;}a._ssh=u;window.addthis_ssh=u.join(",");}if(data.ups){var s=data.ups.split(",");a.ups={};for(var i=0;i<s.length;i++){if(s[i]){var o=_3f(_duc(s[i]));a.ups[o.name]=o;}}a._ups=a.ups;}if(data.uid){a.uid=data.uid;_7.ed.fire("addthis-internal.data.uid",{},{uid:data.uid});}if(data.bti){a.bti=data.bti;_7.ed.fire("addthis-internal.data.bti",{},{bti:data.bti});}if(data.bts){a.bts=parseInt(data.bts);_7.ed.fire("addthis-internal.data.bts",{},{bts:data.bts});}if(data.vts){a.vts=parseInt(data.vts);_7.ed.fire("addthis-internal.data.vts",{},{vts:data.vts});}if(data.geo){a.geo=(data.geo.constructor=="string")?_7.util.geo.parse(data.geo):data.geo;_7.ed.fire("addthis-internal.data.geo",{},{geo:a.geo});}if(data.dbm){a.dbm=data.dbm;}if(data.atgotcode){a.sau=data.atgotcode;}if(data.rdy){_7.ed.fire("addthis-internal.data.rdy");a.xfr=1;a.track.xtp();return;}});try{if(dl.href.indexOf(_atr)>-1){var ckv=_3f(d.cookie,";");a._rec[a._rec.length-1](ckv);}var _33b={},_33c=_7.util.gsp("addthis_widget.js");if(typeof(_33c)=="object"){if(_33c.provider){_33b={provider:_7.mun(_33c.provider_code||_33c.provider),auth:_33c.auth||_33c.provider_auth||""};if(_33c.uid||_33c.provider_uid){_33b.uid=_7.mun(_33c.uid||_33c.provider_uid);}if(_33c.logout){_33b.logout=1;}_7.prv=_33b;}if(_33c.dnp){_7.dcp=Number.MAX_VALUE;}if(_33c.dnt){_atc.xtr=1;}if(_33c.adurl&&typeof(_33c.adurl)=="string"){_7.pixu=_33c.adurl;}if(_33c.adev&&typeof(_33c.adev)=="string"){var ad=_duc(_33c.adev).split(";");_7.ed.addEventListener("addthis-internal.data.uid",function(){for(var i=0;i<ad.length;i++){var cmds=ad[i].split(","),cmd={};for(var j=0;j<cmds.length;j++){var c=cmds[j].split("=");cmd[c[0]]=c[1];}if(window.addthis){addthis.ad.event(cmd);}}});}if(_33c.pubid||_33c.pub||_33c.username){w.addthis_pub=_duc(_33c.pubid||_33c.pub||_33c.username);}if(w.addthis_pub&&w.addthis_config){w.addthis_config.username=w.addthis_pub;}if(_33c.domready){_atc.dr=1;}if(_33c.onready&&_33c.onready.match(/[a-zA-Z0-9_\.\$]+/)){try{_7.onr=_7.evl(_33c.onready);}catch(e){window.console&&console.log("addthis: onready function ("+_33c.onready+") not defined",e);}}if(_33c.async){_atc.xol=1;}}_7.ed.fire("addthis-internal.params.loaded",{},{geo:a.geo});if((window.addthis_conf||{}).xol){_atc.xol=1;}if(_atc.ver===120){var rc="atb"+_7.util.cuid();d.write("<span id=\""+rc+"\"></span>");_7.igv();_7.lad(["span",rc,addthis_share.url||"[url]",addthis_share.title||"[title]"]);}if(w.addthis_clickout){_7.lad(["cout"]);}if(!_atc.xol&&!_atc.xcs&&ac.ui_use_css!==false){css.load();if(_7.bro.ipa){_30e.load();}}}catch(e){if(window.console){console.log("main",e);}}_87.bindReady();_87.append(main);})();function addthis_open(){if(typeof iconf=="string"){iconf=null;}return _ate.ao.apply(_ate,arguments);}function addthis_close(){_ate.ac();}function addthis_sendto(){_ate.as.apply(_ate,arguments);return false;}if(_atc.dr){_adr.onReady();}}else{_ate.inst++;}if(_atc.abf){addthis_open(document.getElementById("ab"),"emailab",window.addthis_url||"[URL]",window.addthis_title||"[TITLE]");}if(!window.addthis||window.addthis.nodeType!==undefined){window.addthis=(function(){var e={a1webmarks:"A1&#8209;Webmarks",aim:"AOL Lifestream",amazonwishlist:"Amazon",aolmail:"AOL Mail",aviary:"Aviary Capture",domaintoolswhois:"Whois Lookup",googlebuzz:"Google Buzz",googlereader:"Google Reader",googletranslate:"Google Translate",linkagogo:"Link-a-Gogo",meneame:"Men&eacute;ame",misterwong:"Mister Wong",mailto:"Email App",myaol:"myAOL",myspace:"MySpace",readitlater:"Read It Later",rss:"RSS",stumbleupon:"StumbleUpon",typepad:"TypePad",wordpress:"WordPress",yahoobkm:"Y! Bookmarks",yahoomail:"Y! Mail",youtube:"YouTube"},g=document,c=g.gn("body").item(0),f=_ate.util.bind;function b(d,l){var m;if(window._atw&&_atw.list&&_atw.list[d]){m=_atw.list[d]}else{if(e[d]){m=e[d]}else{m=(l?d:(d.substr(0,1).toUpperCase()+d.substr(1)))}}return(m||"").replace(/&nbsp;/g," ")}function i(d,u,s,r,t){u=u.toUpperCase();var p=(d==c&&addthis.cache[u]?addthis.cache[u]:(d||c||g.body).getElementsByTagName(u)),n=[],q,m;if(d==c){addthis.cache[u]=p}if(t){for(q=0;q<p.length;q++){m=p[q];if((m.className||"").indexOf(s)>-1){n.push(m)}}}else{s=s.replace(/\-/g,"\\-");var l=new RegExp("(^|\\s)"+s+(r?"\\w*":"")+"(\\s|$)");for(q=0;q<p.length;q++){m=p[q];if(l.test(m.className)){n.push(m)}}}return(n)}var k=g.getElementsByClassname||i;function j(d){if(typeof d=="string"){var l=d.substr(0,1);if(l=="#"){d=g.getElementById(d.substr(1))}else{if(l=="."){d=k(c,"*",d.substr(1))}else{}}}if(!d){d=[]}else{if(!(d instanceof Array)){d=[d]}}return d}function a(l,d){return function(){addthis.plo.push({call:l,args:arguments,ns:d})}}function h(m){var l=this,d=this.queue=[];this.name=m;this.call=function(){d.push(arguments)};this.call.queuer=this;this.flush=function(p,o){for(var n=0;n<d.length;n++){p.apply(o||l,d[n])}return p}}return{ost:0,cache:{},plo:[],links:[],ems:[],init:_adr.onReady,_Queuer:h,_queueFor:a,_select:j,_gebcn:i,data:{getShareCount:a("getShareCount","data")},bar:a("bar"),button:a("button"),counter:a("counter"),count:a("counter"),toolbox:a("toolbox"),update:a("update"),ad:{event:a("event","ad"),getPixels:a("getPixels","ad")},util:{getServiceName:b},addEventListener:f(_ate.ed.addEventListener,_ate.ed),removeEventListener:f(_ate.ed.removeEventListener,_ate.ed)}})()}_adr.append((function(){if(!window.addthis.ost){_ate.extend(B,_ate.api);var Z=document,N=undefined,M=window,J=0,e={},ac={compact:1,expanded:1,facebook:1,email:1,twitter:1,print:1,google:1,live:1,stumbleupon:1,vk:1,myspace:1,favorites:1,digg:1,delicious:1,orkut:1,blogger:1,mailto:1,linkedin:1,mymailru:1,gmail:1,yahoomail:1,reddit:1,tumblr:1,live:1},F=new _ate.resource.Resource("widget32css",_atr+"static/r07/widgetbig40.css",function(){return true}),T=false,t=M.addthis_config,Q=M.addthis_share,G={},z={},r=Z.gn("body").item(0),B=window.addthis,b=B._select,x=B._gebcn(r,"A","addthis_button_",true,true),X={rss:"Subscribe via RSS"},W={tweet:"Tweet",email:"Email",mailto:"Email",print:"Print",favorites:"Save to Favorites",twitter:"Tweet This",digg:"Digg This",more:"View more services"},P={email_vars:1,passthrough:1,modules:1,templates:1,services_custom:1},ab={feed:1,more:_atc.ver<300,email:_atc.ver<300,mailto:1},I={feed:1,email:_atc.ver<300,mailto:1,print:1,more:!_ate.bro.ipa&&_atc.ver<300,favorites:1},y={print:1,favorites:1,mailto:1},S={email:_atc.ver>=300,more:_atc.ver>=300},K=0,k=0,O=0,E=0,V=0;function j(d){if(d.indexOf("&")>-1){d=d.replace(/&([aeiou]).+;/g,"$1")}return d}function c(u,w){if(w&&u!==w){for(var d in w){if(u[d]===N){u[d]=w[d]}}}}function m(ae,u,af){var w=ae.onclick||function(){},d=y[u]?function(){_ate.share.track(u,0,ae.share,ae.conf)}:function(){_ate.share.notify(u,ae.share,ae.conf,ae)};if(ae.conf.data_ga_tracker||addthis_config.data_ga_tracker||ae.conf.data_ga_property||addthis_config.data_ga_property){ae.onclick=function(){_ate.gat(u,af,ae.conf,ae.share);d();return w()}}else{ae.onclick=function(ag){d();return w(ag)}}}function s(u,d){var w={googlebuzz:"http://www.google.com/profiles/%s",google_follow:"https://plus.google.com/%s",youtube:"http://www.youtube.com/user/%s",facebook:"http://www.facebook.com/profile.php?id=%s",facebook_url:"http://www.facebook.com/%s",rss:"%s",flickr:"http://www.flickr.com/photos/%s",twitter:"http://twitter.com/%s",linkedin:"http://www.linkedin.com/in/%s",vimeo:"http://www.vimeo.com/%s"};if(u=="facebook"&&isNaN(parseInt(d))){u="facebook_url"}return(w[u]||"").replace("%s",d)||""}function n(u,d){if(T&&!d){return true}var w=(u.parentNode||{}).className||"";T=(w.indexOf("32x32")>-1||u.className.indexOf("32x32")>-1);return T}function C(u){var w=(u.parentNode||{}).className||"",d=u.conf&&u.conf.product&&w.indexOf("toolbox")==-1?u.conf.product:"tbx"+(u.className.indexOf("32x32")>-1||w.indexOf("32x32")>-1?"32":"")+"-"+_atc.ver;if(d.indexOf(32)>-1){T=true}_ate.track.apc(d);return d}function g(w,ae){var u={};for(var d in w){if(ae[d]){u[d]=ae[d]}else{u[d]=w[d]}}return u}function Y(d,af,ag,ae){var u=Z.ce("img");u.width=d;u.height=af;u.border=0;u.alt=ag;u.src=ae;return u}function h(ae,af){var w,d=[],ag={};for(var u=0;u<ae.attributes.length;u++){w=ae.attributes[u];d=w.name.split(af+":");if(d.length==2){ag[d.pop()]=w.value}}return ag}_ate.api.ptpa=h;function D(u,ai,d,ae){var ai=ai||{},w={},ag=h(u,"addthis");for(var af in ai){w[af]=ai[af]}if(ae){for(var af in u[d]){w[af]=u[d][af]}}for(var af in ag){if(ai[af]&&!ae){w[af]=ai[af]}else{var aj=ag[af];if(aj){w[af]=aj}else{if(ai[af]){w[af]=ai[af]}}if(w[af]==="true"){w[af]=true}else{if(w[af]==="false"){w[af]=false}}}if(w[af]!==N&&P[af]&&(typeof w[af]=="string")){try{w[af]=JSON.parse(w[af].replace(/'/g,'"'))}catch(ah){w[af]=_ate.evl("("+w[af]+");",true)}}}return w}function L(w){var u=(w||{}).services_custom;if(!u){return}if(!(u instanceof Array)){u=[u]}for(var ae=0;ae<u.length;ae++){var d=u[ae];if(d.name&&d.icon&&d.url){if(typeof d.url=="object"){d.url=_ate.util.toKV(d.url)}d.code=d.url=d.url.replace(/ /g,"");d.code=d.code.split("//").pop().split("?").shift().split("/").shift().toLowerCase();e[d.code]=d}}}function p(u,d){return e[u]||{}}function a(u,d,w,ae){var af={conf:d||{},share:w||{}};af.conf=D(u,d,"conf",ae);af.share=D(u,w,"share",ae);return af}function R(aw,ai,ao,ag){_ate.igv();if(aw){ai=ai||{};ao=ao||{};var ax=ai.conf||t,au=ai.share||Q,af=ao.onmouseover,w=ao.onmouseout,az=ao.onclick,al=ao.internal,aq=ao.singleservice;if(aq){if(az===N){az=ab[aq]?function(aC,aA,aD){var aB=g(aD,z);return addthis_open(aC,aq,aB.url,aB.title,g(aA,G),aB)}:I[aq]?function(aC,aA,aD){var aB=g(aD,z);return addthis_sendto(aq,g(aA,G),aB)}:S[aq]?function(aC,aA,aD){var aB=g(aD,z);return _ate.share.stw(aq,aB,aA,735)}:null}}else{if(!ao.noevents){if(!ao.nohover){if(af===N){af=function(aB,aA,aC){return addthis_open(aB,"",null,null,g(aA,G),g(aC,z))}}if(w===N){w=function(aA){return addthis_close()}}if(az===N){az=function(aB,aA,aC){return addthis_sendto("more",g(aA,G),g(aC,z))}}}else{if(az===N){az=function(aB,aA,aC){return addthis_open(aB,"more",null,null,g(aA,G),g(aC,z))}}}}}aw=b(aw);for(var av=0;av<aw.length;av++){var an=aw[av],ar=an.parentNode,u=a(an,ax,au,!ag)||{};c(u.conf,t);c(u.share,Q);an.conf=u.conf;an.share=u.share;if(an.conf.ui_language){_ate.alg(an.conf.ui_language)}L(an.conf);if(ar&&ar.className.indexOf("toolbox")>-1&&(an.conf.product||"").indexOf("men")===0){an.conf.product="tbx"+(ar.className.indexOf("32x32")>-1?"32":"")+"-"+_atc.ver;_ate.track.apc(an.conf.product)}if(aq&&aq!=="more"){an.conf.product=C(an)}if((!an.conf||(!an.conf.ui_click&&!an.conf.ui_window_panes))&&!_ate.bro.ipa){_ate.maf=_ate.maf||{};_ate.maf.key=null;if(af){an.onfocus=an.onmouseover=function(){_ate.maf.sib=this.nextSibling;while(_ate.maf.sib&&_ate.maf.sib.nodeType==3&&_ate.maf.sib.nextSibling){_ate.maf.sib=_ate.maf.sib.nextSibling}if(!_ate.maf.sib||_ate.maf.sib.nodeType==3){var aA=this.parentNode;if(!aA){aA=document.body.firstChild||document.body;while(aA.nodeType==3&&aA.nextSibling){aA=aA.nextSibling}}else{while(aA.nextSibling&&aA.nodeType==3){aA=aA.nextSibling}}_ate.maf.sib=aA}_ate.maf.sib.onfocus=function(){_ate.maf.sib.tabIndex=""};return af(this,this.conf,this.share)}}if(w){an.onmouseout=function(){return w(this)}}if(az){an.onclick=function(){return az(an,an.conf,an.share)}}if(w||az){an.onkeypress=an.onkeydown=function(aA){if(!aA){var aA=window.event}if(aA.keyCode){_ate.maf.key=aA.keyCode}else{if(aA.which){_ate.maf.key=aA.which}}if(_ate.maf.key==13){_ate.maf.pre=this}else{_ate.maf.pre=null}};an.onblur=function(aA){if(_ate.maf.key==9){_ate.maf.key=null}else{_ate.maf.key=null;if(w){return w(this)}}}}}else{if(az){if(aq){an.onclick=function(){return az(this,this.conf,this.share)}}else{if(!an.conf.ui_window_panes){an.onclick=function(){if(_ate.bro.iph||_ate.bro.dro){return addthis_sendto("more",this.conf,this.share)}else{return addthis_open(this,"",null,null,this.conf,this.share)}}}else{an.onclick=function(){return addthis_sendto("more",this.conf,this.share)}}}}}if(an.tagName.toLowerCase()=="a"){var ae=an.share.url||addthis_share.url;_ate.usu(ae);if(aq){var ak=p(aq,an.conf),d=an.firstChild;if(ak&&ak.code&&ak.icon){if(d&&d.className.indexOf("at300bs")>-1){var am="16";if(n(an,1)){d.className=d.className.split("at15nc").join("");am="32"}d.style.background="url("+ak.icon+") no-repeat top left transparent";if(!d.style.cssText){d.style.cssText=""}d.style.cssText="line-height:"+am+"px!important;width:"+am+"px!important;height:"+am+"px!important;background:"+d.style.background+"!important"}}if(!I[aq]){if(ao.follow){an.href=ae;an.onclick=function(){_ate.share.track(aq,1,an.share,an.conf)};if(an.children&&an.children.length==1&&an.parentNode&&an.parentNode.className.indexOf("toolbox")>-1){var at=Z.ce("span");at.className="addthis_follow_label";at.innerHTML=aq=="google_follow"?"Google":B.util.getServiceName(aq).replace("_follow","");an.appendChild(at)}}else{if(aq=="twitter"){an.onclick=function(aA){return _ate.share.pts(an.share,an.conf)};an.noh=1}else{if(aq=="facebook"){an.onclick=function(aA){return _ate.share.fb.share(an.share,an.conf)};an.noh=1}else{if(aq=="google_plusone"){an.onclick=function(aA){return false}}else{if(aq=="foursquare"){an.onclick=function(aA){_ate.share.track(aq,1,an.share,an.conf);return false}}else{if(aq=="link"){an.onclick=function(aB){var aA=_euc(an.share.url);if(_atc.ver>=300){_ate.share.ocw(_atr+"static/r07/link.html#url="+_euc(aA)+"&ats="+_euc(_ate.util.rtoKV(an.share))+"&atc="+_euc(_ate.util.rtoKV(an.config)),"500px","480px")}else{addthis_open(document.body,"link",aA);if(Z.getElementById("at16p")){Z.getElementById("at16p").style.display="block"}if(Z.getElementById("at15s")){Z.getElementById("at15s").style.display="none"}}return false}}else{if(!an.noh){if(an.conf.ui_open_windows||_ate.share.auw(aq)){an.onclick=function(aA){return _ate.share.stw(aq,an.share,an.conf)}}else{an.onclick=function(aA){return _ate.share.siw(aq,an.share,an.conf)};an.href=_ate.share.genurl(aq,0,an.share,an.conf)}}}}}}}}m(an,aq,ae);if(!an.noh&&!an.target){an.target="_blank"}B.links.push(an)}else{if(aq=="mailto"||(aq=="email"&&(an.conf.ui_use_mailto||_ate.bro.iph||_ate.bro.ipa||_ate.bro.dro))){an.onclick=function(){an.share.xid=_ate.util.cuid();(new Image()).src=_ate.share.genurl("mailto",0,an.share,an.config);_ate.gat(aq,ae,an.conf,an.share)};an.href=_ate.share.genieu(an.share,an.config||an.conf);B.ems.push(an)}}if(!an.title||an.at_titled){var aj=B.util.getServiceName(aq,!ak);an.title=j(ao.follow?(X[aq]?X[aq]:"Follow on "+aj):(W[aq]?W[aq]:"Send to "+aj));an.at_titled=1}if(!an.href){an.href="#"}}else{if(an.conf.product&&an.parentNode.className.indexOf("toolbox")==-1){C(an)}}}var ah;switch(al){case"img":if(!an.hasChildNodes()){var ay=(an.conf.ui_language||_ate.lng()).split("-").shift(),ap=_ate.ivl(ay);if(!ap){ay="en"}else{if(ap!==1){ay=ap}}ah=Y(_ate.iwb(ay)?150:125,16,"Share",_atr+"static/btn/v2/lg-share-"+ay.substr(0,2)+".gif")}break}if(ah){an.appendChild(ah)}}}}function f(){if(window.gapi&&window.gapi.plusone){gapi.plusone.go();return}else{if(!E){var d=_ate.ajs("//apis.google.com/js/plusone.js",1,1);E=1}}if(K<3){setTimeout(f,3000+1000*2*(K++))}}function q(d){var w=d?d.share:addthis_share,u=d?d.conf:addthis_config;window._at_plusonecallback=window._at_plusonecallback||function(ag){var ae={};for(var af in w){ae[af]=w[af]}ae.url=ag.href;_ate.share.track("google_"+(ag.state=="off"?"un":"")+"plusone",0,ae,u)}}function A(d){var ae=d?d.share:addthis_share,w=d?d.conf:addthis_config;if(window.DISQUS){var u=function(ah){var af=_ate.util.clone(addthis_share);for(var ag in ah){af[ag]=ah[ag]}if(typeof af.url==="undefined"){af.url=window.location.href}_ate.share.track("disqus_comment",0,af,w)};DISQUS.reset({reload:true,config:function(){this.callbacks.onNewComment=[function(af){u(af)}]}})}else{if(O<5){setTimeout(A,100*(O++))}}}function U(){if(window.twttr&&!J&&twttr.events){J=1;twttr.events.bind("click",function(ag){if(ag.region=="tweetcount"){return}var af=(ag.target.parentNode&&ag.target.parentNode.share)?ag.target.parentNode.share:{},w=af.url||ag.target.baseURI,ah=af.title||addthis_share.title,d={};for(var u in addthis_share){d[u]=addthis_share[u]}for(var u in af){d[u]=af[u]}d.url=w;if(ah){d.title=ah}var ae=(ag.region!="follow")?true:false;_ate.share.track(((ae)?"tweet":"twitter_follow_native"),((ae)?0:1),d,addthis_config)})}}function v(d){if(window.twttr&&window.twttr.events&&V==1){U();V=k=0;return}else{if(!V){_ate.ajs("//platform.twitter.com/widgets.js",1,null,null,null,true);V=1}}if(k<3){setTimeout(v,3000+1000*2*(k++))}}function ad(bc,a4,bw,a8,bq){for(var aL=0;aL<bc.length;aL++){var aR=bc[aL];if(aR==null){continue}if(a8!==false||!aR.ost){var aO=a(aR,a4,bw,!bq),a3=0,aS="at300",aP=aR.className||"",ag="",aD=aP.match(/addthis_button_([\w\.]+)(?:\s|$)/),aY={},bb=aD&&aD.length?aD[1]:0;c(aO.conf,t);c(aO.share,Q);if(bb){if(bb.indexOf("amazonwishlist_native")>-1){}else{if(bb==="link"){if(_ate.bro.ie9&&_atc.ver<300){continue}aR.title="Permalink"}else{if(bb==="tweetmeme"&&aR.className.indexOf("chiclet_style")==-1){if(aR.ost){continue}var bj=h(aR,"tm"),ae=50,ai=61;ag=_ate.util.toKV(bj);if(bj.style==="compact"){ae=95;ai=25}aR.innerHTML='<iframe frameborder="0" width="'+ae+'" height="'+ai+'" scrolling="no" allowTransparency="true" scrollbars="no"'+(_ate.bro.ie6?" src=\"javascript:''\"":"")+"></iframe>";var a0=aR.firstChild;a0.src="//api.tweetmeme.com/button.js?url="+_euc(aO.share.url)+"&"+ag;aR.noh=aR.ost=1}else{if(bb==="google_plusone"){if(aR.ost){continue}var a7=h(aR,"g:plusone"),aV=Z.ce("g:plusone"),bs="";_ate.gpl=_ate.gpl||{},_ate.gpl.lang=_ate.gpl.lang||null;a7.lang=_ate.gpl.lang=_ate.gpl.lang||((typeof a7.lang=="undefined")?null:a7.lang);window.___gcfg=window.___gcfg||{};window.___gcfg.lang=_ate.gpl.lang||a7.lang||_ate.ggl((aO.conf||{}).ui_language||window.addthis_language)||"en-US";a7.href=a7.href||_ate.track.mgu(aO.share.url,{defrag:1});a7.size=a7.size||(n(aR,true)?"standard":"small");a7.callback=a7.callback||"_at_plusonecallback";q(aO);for(var aJ in a7){if(a7.hasOwnProperty(aJ)){aV.setAttribute(aJ,a7[aJ])}}aR.appendChild(aV);aR.noh=aR.ost=1;f()}else{if(bb==="google_plusone_badge"){if(aR.ost){continue}aR.title="Follow on Google+";var aW=h(aR,"g:plusone");aW.size=(aW.size||"").toLowerCase();if(Z.head){var ah=Z.createElement("link");ah.setAttribute("href",aW.href);ah.setAttribute("rel","publisher");Z.head.appendChild(ah)}aW.url=aW.href=aW.href||"";if(aW.size=="badge"||aW.size=="smallbadge"){var be=Z.ce("g:plus"),bp="";_ate.gpl=_ate.gpl||{},_ate.gpl.lang=_ate.gpl.lang||null;aW.lang=_ate.gpl.lang=_ate.gpl.lang||((typeof aW.lang=="undefined")?null:aW.lang);window.___gcfg=window.___gcfg||{};window.___gcfg.lang=_ate.gpl.lang||aW.lang||_ate.ggl((aO.conf||{}).ui_language||window.addthis_language)||"en-US";for(var aJ in aW){if(aW.hasOwnProperty(aJ)){be.setAttribute(aJ,aW[aJ])}}aR.appendChild(be);aR.noh=aR.ost=1;f()}else{var aC="32";if(aW.size=="small"){aC="16"}else{if(aW.size=="large"){aC="64"}}var aU=txt=txt2=ieQ="";if(aW.name){if(_ate.bro.compatMode=="BackCompat"&&_ate.bro.msi){ieQ='onclick="window.open('+aW.href+'?prsrc=3)"'}aU="cursor:default;display:inline-block;text-decoration:none;color:#333;font:13px/16px arial,sans-serif;"+((aW.size=="large")?"text-align:center;white-space:nowrap;":"");if(aW.size=="large"){txt2='<br/><span style="font-weight:bold;">'+aW.name+"</span><br/><span> on Google+ </span>"}else{txt='<span style="display:inline-block;font-weight:bold;vertical-align:top;margin-right:5px;'+((aW.size=="medium")?"margin-top:8px;":"")+'">'+aW.name+'</span><span style="display:inline-block;vertical-align:top; margin-right:'+((aW.size=="medium")?"15px;margin-top:8px;":"13px;")+'">on</span>'}}aR.setAttribute("target","_blank");aR.style.textDecoration="none";aR.style.cursor="default";aR.innerHTML='<span style="'+aU+'">'+txt+"<img "+ieQ+' src="https://ssl.gstatic.com/images/icons/gplus-'+aC+'.png" alt="'+aR.title+'" style="border:0;width:'+aC+"px;height:"+aC+'px;cursor:pointer;" onmouseover="this.style.opacity=0.8;this.style.filter=\'alpha(opacity=80)\';" onmouseout="this.style.opacity=1.0;this.style.filter=\'alpha(opacity=100)\';">'+txt2+"</span>";aR.noh=aR.ost=1;aR.onclick=function(bz){if(!bz){var bz=window.event}var bB=bz.originalTarget||bz.relatedTarget||bz.toElement||bz.srcElement,bA="";if(!bB){return}while(bB.nodeName!="A"){bB=bB.parentNode}bA=((bB.attributes||{})["g:plusone:href"]||{}).value||window.location.href;M.open(bA+"?prsrc=3");_ate.share.track("google_plusone_badge",1,aW,a4);return false}}aR.onmouseover=function(){this.className=(this.className.indexOf("at300bo")>-1)?this.className:this.className.replace(/at300b/i,"at300bo")};aR.noh=aR.ost=1}else{if(bb==="pinterest"){if(aR.ost){continue}var bx=h(aR,"pi:pinit"),am=_ate.util.clone(aO.share);bx.url=am.url=bx.url||_ate.track.mgu(am.url,{defrag:1});bx.url=am.url=_euc(_ate.share.acb("pinterest",am,addthis_config));if(_ate.bro.ie6||_ate.bro.ie7||(_ate.bro.msi&&document.compatMode=="BackCompat")){bx.layout=""}if(bx.layout=="horizontal"){bx.layout="&layout=horizontal";bx.width="110px";bx.height="26px"}else{if(bx.layout=="vertical"){bx.layout="&layout=vertical";bx.width="49px";bx.height="59px"}else{bx.layout="";bx.width="49px";bx.height="26px"}}aR.innerHTML='<iframe frameborder="0" role="presentation" scrolling="no" allowTransparency="true" scrollbars="no"'+(_ate.bro.ie6?" src=\"javascript:''\"":"")+' style="width:'+bx.width+"; height:"+bx.height+';"></iframe>';pinitButton=aR.firstChild;if(!aO.conf.pubid){aO.conf.pubid=addthis_config.pubid||_ate.pub()}pinitButton.src=_atr+"static/r07/pinit01.html?url="+_euc(bx.url)+"&media="+_euc(bx.media||"")+bx.layout+"&ats="+_euc(_ate.util.rtoKV(am))+"&atc="+_euc(_ate.util.rtoKV(addthis_config));aR.noh=aR.ost=1}else{if(bb==="foursquare"){if(aR.ost){continue}var by=h(aR,"4sq"),bd=Z.createElement("a");bd.href="https://foursquare.com/intent/venue.html";bd.className="fourSq-widget";if(by["data-variant"]){bd.setAttribute("data-variant",by["data-variant"])}aR.appendChild(bd);_ate.ajs("//platform.foursquare.com/js/widgets.js",1);aR.noh=aR.ost=1}else{if(bb==="linkedin_counter"){if(aR.ost){continue}var a6=h(aR,"li"),bw=aO.share,bt=a6.width||100,u=a6.height||18,ag,aq="",aX;if(!a6.counter){a6.counter="horizontal"}if(!bw.passthrough){bw.passthrough={}}bw.passthrough.linkedin=_ate.util.toKV(a6);aq=_ate.util.rtoKV(bw);if(a6.counter==="top"){u=55;bt=57;if(!a6.height){a6.height=u}if(!a6.width){a6.width=bt}}else{if(a6.counter==="right"){bt=100;if(!a6.width){a6.width=aE}}}if(a6.width){bt=a6.width}if(a6.height){u=a6.height}ag=_ate.util.toKV(a6),aR.innerHTML='<iframe frameborder="0" role="presentation" scrolling="no" allowTransparency="true" scrollbars="no"'+(_ate.bro.ie6?" src=\"javascript:''\"":"")+' style="width:'+bt+"px; height:"+u+'px;"></iframe>';aX=aR.firstChild;if(!aO.conf.pubid){aO.conf.pubid=addthis_config.pubid||_ate.pub()}aX.src=_atr+"static/r07/linkedin14.html"+((_ate.bro.ie6||_ate.bro.ie7)?"?":"#")+"href="+_euc(aO.share.url)+"&dr="+_euc(_ate.dr)+"&conf="+_euc(_ate.util.toKV(aO.conf))+"&share="+_euc(aq)+"&li="+_euc(ag);aR.noh=aR.ost=1}else{if(bb==="twitter_follow_native"){var bh=h(aR,"tf"),aH=h(aR,"tw"),aK=Z.ce("a");bh.screen_name=aH.screen_name||bh.screen_name||"addthis";aK.href="http://twitter.com/"+bh.screen_name;aK.className="twitter-follow-button";aK.innerHTML="Follow @"+bh.screen_name;for(var bg in bh){if(bh.hasOwnProperty(bg)){aK.setAttribute("data-"+bg,bh[bg])}}for(var bg in aH){if(aH.hasOwnProperty(bg)){aK.setAttribute("data-"+bg,aH[bg])}}aR.appendChild(aK);if(!aO.conf.pubid){aO.conf.pubid=addthis_config.pubid||_ate.pub()}v(aR)}else{if(bb==="tweet"){if(aR.ost){continue}var aH=h(aR,"tw"),bw=aO.share,aE=aH.width||55,aT=aH.height||20,ag,aq="",a5;aO.share.url_transforms=aO.share.url_transforms||{};aO.share.url_transforms.defrag=1;var bk=_ate.util.clone(aO.share),bo=((_ate.bro.msi&&Z.compatMode=="BackCompat")||aO.conf.ui_use_tweet_iframe||(aO.share.url_transforms.shorten||{}).twitter=="bitly")?true:false;if(typeof aH.url!="undefined"){bk.url=aH.url}else{bk.url=aH.url=_ate.track.mgu((bk.url||(addthis_share||{}).url),bk.url_transforms,bk,"twitter")}if(!aH.counturl){aH.counturl=(bo)?aH.url.replace(/=/g,"%253D"):aH.url}if(bk.url.search(/\.+.*(\/|\?)/)==-1){bk.url+="/"}aH.url=_ate.share.acb("twitter",bk,addthis_config);aH.count=aH.count||"horizontal";bw.passthrough=bw.passthrough||{};var a2=bw.passthrough.twitter||{};aO.text=aH.text=aH.text||((aO.share.title==Z.title)?a2.text:aO.share.title)||"";aO.related=aH.related=aH.related||a2.related||"";aO.via=aH.via=aH.via||a2.via||(aO.text.match(/via\s+@[a-zA-Z0-9_\.]+/)?aO.text.match(/via\s+@[a-zA-Z0-9_\.]+/).split("@")[1]:"AddThis");aq=_ate.util.rtoKV(bw,"#@!");if(aH.count==="vertical"){aT=62;aH.height=aH.height||aT}else{if(aH.count==="horizontal"){aE=110;aH.width=aH.width||aE}}if(aH.width){aE=aH.width}if(aH.height){aT=aH.height}ag=_ate.util.toKV(aH,"#@!");if(bo){aR.innerHTML='<iframe frameborder="0" role="presentation" scrolling="no" allowTransparency="true" scrollbars="no"'+(_ate.bro.ie6?" src=\"javascript:''\"":"")+' style="width:'+aE+"px; height:"+aT+'px;"></iframe>';a5=aR.firstChild;if(!aO.conf.pubid){aO.conf.pubid=addthis_config.pubid||_ate.pub()}a5.src=_atr+"static/r07/tweet14.html"+((_ate.bro.ie6||_ate.bro.ie7)?"?":"#")+"href="+_euc(aH.url)+"&dr="+_euc(_ate.dr)+"&conf="+_euc(_ate.util.toKV(aO.conf))+"&share="+_euc(aq)+"&tw="+_euc(ag)}else{var aG=(bw.templates||{}).twitter||"";if(!aH.text){aH.text=bw.title==""?"":bw.title+":"}var an=Z.ce("a");an.href="http://twitter.com/share";an.className="twitter-share-button";an.innerHTML="Tweet";for(var bg in aH){if(aH.hasOwnProperty(bg)){an.setAttribute("data-"+bg,aH[bg])}}aR.appendChild(an);if(!aO.conf.pubid){aO.conf.pubid=addthis_config.pubid||_ate.pub()}v(aR)}aR.noh=aR.ost=1}else{if(bb==="facebook_send"){if(aR.ost||_ate.bro.ie6){continue}var bn,ba=h(aR,"fb:send"),aF="",au=ba.width||55,az=ba.height||20;ag=_ate.util.toKV(ba);_ate.ufbl=1;if(_ate.share.fb.ready()){ba.href=ba.href||_ate.track.mgu(aO.share.url,{defrag:1});for(var aJ in ba){aF+=" "+aJ+'="'+ba[aJ]+'"'}aR.innerHTML='<fb:send ref="'+_ate.share.gcp(aO.share,aO.conf,".send").replace(",","_")+'" '+aF+"></fb:send>";_ate.share.fb.load(aR)}else{aR.className="";aR.innerHTML="<span></span>";aR.style.width=aR.style.height="0px"}aR.noh=aR.ost=1}else{if(bb==="facebook_share"){aO.conf=aO.conf||{};aO.conf.data_track_clickback=aO.conf.data_track_linkback=false;function aw(bA,bz){if(!bA){return}bA.setAttribute("style",bz);bA.style.cssText=bz;return}var aI="AT"+_ate.util.cuid(),ba=h(aR,"fb:share"),ay=Z.ce("span"),br=Z.ce("div"),w=Z.ce("div"),a1=Z.ce("div"),aN=Z.ce("div"),bu=Z.ce("div"),at=aO.share.url=ba.href||_ate.track.mgu(aO.share.url,{defrag:1}),d=typeof(d)!="undefined"?d:{};d[aI]=at.replace(/\#.*/,"");aw(ay,"text-decoration:none;color:#000000;display:inline-block;cursor:pointer;");aw(a1,"text-decoration:none;margin-top:10px;");aw(w,"display:block;z-index:-1;background:none repeat scroll 0 0 #ECEEF5; border:1px solid #CAD4E7; filter:none; border-radius: 4px; color:#000000; font-family:Verdana,Helvetica,sans-serif; font-size:18px; line-height:16px; height:39px; text-align:center; width:58px;");aw(aN,"display:block;margin:-1px 0 0px 10px;height:4px;width:10px;font-size:1px;line-height:4px;background:url('"+_atr+"static/t00/fb_arrow.png') no-repeat ;");aw(bu,"background-image:url('"+_atr+"static/t00/fb_btn.png');background-repeat:no-repeat; display:inline-block;font-family:Verdana,Helvetica,sans-serif; font-size:1px; height:22px; line-height:16px; white-space:nowrap; width:60px;");a1.innerHTML="0";a1.id=aI;aN.innerHTML="&nbsp;";aO.share.passthrough=aO.share.passthrough||{};aO.share.passthrough.facebook_share=_ate.util.toKV({src:"sp"});bu.onmouseover=function(){this.style.opacity="0.75"};bu.onmouseout=function(){this.style.opacity="1.0"};bu.onclick=function(){var bz=this.parentNode.firstChild.firstChild;if(bz&&isNaN(bz.innerHTML)!=true){var bA=parseInt(bz.innerHTML)+1;bz.removeChild(bz.firstChild);bz.appendChild(document.createTextNode(bA))}};w.appendChild(a1);br.appendChild(w);br.appendChild(aN);br.appendChild(bu);ay.appendChild(br);aR.appendChild(ay);aR.style.textDecoration="none";var aM=_ate.util.scb("fbsc",at,function(bB){if(bB.length>0){for(var bz in d){if(d[bz]==bB[0].url){var bC=bB[0].share_count,bA=document.getElementById(bz);if(bC>10000){bC=parseInt(bC/1000)+"K"}if(bA.firstChild){bA.removeChild(bA.firstChild)}bA.appendChild(document.createTextNode(bC))}}}},function(){});_ate.ajs("//api.facebook.com/restserver.php?method=links.getStats&format=json&callback="+aM+"&urls="+at,1)}else{if(bb==="facebook_like"){_ate.share.fb.like(aR,aO)}else{if(bb==="facebook_subscribe"){_ate.share.fb.subs(aR,aO)}else{if(bb.indexOf("stumbleupon_badge")>-1){if(_ate.bro.ie6){continue}var ap=h(aR,"su:badge"),af=ap.style||"1",a9=aO.share.url=ap.href||_ate.track.mgu(aO.share.url,{defrag:1}),bi=ap.height||"20px",aB=ap.width||"75px";if(af=="5"){bi=ap.height||"60px"}else{if(af=="6"){bi=ap.height||"31px"}}aR.innerHTML='<iframe src="http'+(_ate.ssl?"s":"")+'://www.stumbleupon.com/badge/embed/{{STYLE}}/?url={{URL}}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:{{WIDTH}}; height:{{HEIGHT}};" allowtransparency="true"></iframe>'.replace("{{STYLE}}",af).replace("{{URL}}",_euc(a9)).replace("{{HEIGHT}}",bi).replace("{{WIDTH}}",aB);aR.noh=aR.ost=1}else{if(bb.indexOf("hyves_respect")>-1){var bm=h(aR,"hy:respect"),ak=aO.share.url=bm.url||_ate.track.mgu(aO.share.url,{defrag:1}),aZ=bm.width||"140px",aQ='<iframe src="http'+(_ate.ssl?"s":"")+'://www.hyves.nl/respect/button?url={{URL}}" style="border: medium none; overflow:hidden; width:{{WIDTH}}; height:22px;" scrolling="no" frameborder="0" allowTransparency="true" ></iframe>'.replace("{{URL}}",_ate.share.acb("hyves",aO.share,addthis_config)).replace("{{WIDTH}}",aZ);aR.innerHTML=aQ;aR.noh=aR.ost=1}else{if(bb.indexOf("preferred")>-1){if(aR._iss){continue}aD=aP.match(/addthis_button_preferred_([0-9]+)(?:\s|$)/);var ar=((aD&&aD.length)?Math.min(16,Math.max(1,parseInt(aD[1]))):1)-1;if(!aR.conf){aR.conf={}}aR.conf.product="tbx-"+_atc.ver;C(aR);if(window._atw){if(!aR.parentNode.services){aR.parentNode.services={}}var ao=_atw.conf.services_exclude||"",ax=_atw.loc,bl=aR.parentNode.services,bv=_ate.util.unqconcat(addthis_options.replace(",more","").split(","),ax.split(","));do{bb=bv[ar++]}while(ar<bv.length&&(ao.indexOf(bb)>-1||bl[bb])||(_ate.bro.ie9&&bb=="link"));if(bl[bb]){for(var aJ in _atw.list){if(!bl[aJ]&&ao.indexOf(aJ)==-1){bb=aJ;break}}}aR._ips=1;if(aR.className.indexOf(bb)==-1){aR.className+=" addthis_button_"+bb;aR._iss=1}aR.parentNode.services[bb]=1}else{_ate.alg(aO.conf.ui_language||window.addthis_language);_ate.plo.unshift(["deco",ad,[aR],a4,bw,true]);if(_ate.gssh){_ate.pld=_ate.ajs("static/r07/menu97.js")}else{if(!_ate.pld){_ate.pld=1;var aj=function(){_ate.pld=_ate.ajs("static/r07/menu97.js")};if(_ate.upm){_ate._rec.push(function(bz){if(bz.ssh){aj()}});setTimeout(aj,500)}else{aj()}}}continue}}else{if(bb.indexOf("follow")>-1){if(bb=="google_follow"){aR.title="Follow on Google"}else{bb=bb.split("_follow").shift()}aY.follow=true;aO.share.url=s(bb,aO.share.userid)}}}}}}}}}}}}}}}}}}if(_ate.bro.msi&&!document.getElementById("at300bhoveriefilter")){var av=document.getElementsByTagName("head")[0],aU=document.createElement("style"),al=document.createTextNode(".at300b:hover,.at300bs:hover {filter:alpha(opacity=80);}");aU.id="at300bhoveriefilter";aU.type="text/css";if(aU.styleSheet){aU.styleSheet.cssText=al.nodeValue}else{aU.appendChild(al)}av.appendChild(aU)}if(!ac[bb]&&(T||n(aR))){F.load()}if(!aR.childNodes.length){var bf=Z.ce("span");aR.appendChild(bf);bf.className=aS+"bs at15nc at15t_"+bb}else{if(aR.childNodes.length==1){var aA=aR.childNodes[0];if(aA.nodeType==3){var bf=Z.ce("span");aR.insertBefore(bf,aA);bf.className=aS+"bs at15nc at15t_"+bb}}else{if(aR.firstChild&&aR.firstChild.nodeType==3&&aR.firstChild.textContent=="\n"){}else{a3=1}}}if(bb==="compact"||bb==="expanded"){if(!a3&&aP.indexOf(aS)==-1){aR.className+=" "+aS+"m"}if(aO.conf.product&&aO.conf.product.indexOf("men-")==-1){aO.conf.product+=",men-"+_atc.ver}if(!aR.href){aR.href="#"}if(aR.parentNode&&aR.parentNode.services){aO.conf.parentServices=aR.parentNode.services}if(bb==="expanded"){aY.nohover=true;aY.singleservice="more"}}else{if((aR.parentNode.className||"").indexOf("toolbox")>-1){if(!aR.parentNode.services){aR.parentNode.services={}}aR.parentNode.services[bb]=1}if(!a3&&aP.indexOf(aS)==-1){aR.className+=" "+aS+"b"}aY.singleservice=bb}if(aR._ips){aY.issh=true}R([aR],aO,aY,bq);aR.ost=1;C(aR)}}}}function i(ak,d,ah,aj){if(ak=="facebook_unlike"||ak=="google_unplusone"){return}var w=ah.data_ga_tracker,af=ah.data_ga_property;if(af){if(typeof(window._gat)=="object"&&_gat._getTracker){w=_gat._getTracker(af)}else{if(typeof(window._gaq)=="object"&&_gaq._getAsyncTracker){w=_gaq._getAsyncTracker(af)}else{if(typeof(window._gaq)=="array"){_gaq.push([function(){_ate.gat(ak,d,ah,aj)}])}}}}if(w&&typeof(w)=="string"){w=window[w]}if(w&&typeof(w)=="object"){if(ak=="more"||ak=="settings"){return}var ai=d||(aj||{}).url||location.href,u=ak,ae="share";if(u.indexOf("_")>-1){u=u.split("_");ae=u.pop();if(ae.length<=2){ae="share"}u=u.shift()}if(ai.toLowerCase().replace("https","http").indexOf("http%3a%2f%2f")==0){ai=_duc(ai)}try{if(ah.data_ga_social&&w._trackSocial&&ak!="google_plusone"){w._trackSocial(u,ae,aj.url)}else{w._trackEvent("addthis",ak,ai)}}catch(ag){try{w._initData();if(ah.data_ga_social&&w._trackSocial&&ak!="google_plusone"){w._trackSocial(u,ae,aj.url)}else{w._trackEvent("addthis",ak,ai)}}catch(ag){}}}}_ate.gat=i;B.update=function(ah,af,w){if(ah=="share"){if(af=="url"){_ate.usu(0,1)}if(!window.addthis_share){window.addthis_share={}}window.addthis_share[af]=w;z[af]=w;for(var d in B.links){var ag=B.links[d],ae=new RegExp("&"+af+"=(.*)&"),u="&"+af+"="+_euc(w)+"&";if(ag.share){ag.share[af]=w}if(!ag.noh){ag.href=ag.href.replace(ae,u);if(ag.href.indexOf(af)==-1){ag.href+=u}}}for(var d in B.ems){var ag=B.ems[d];ag.href=_ate.share.genieu(addthis_share)}}else{if(ah=="config"){if(!window.addthis_config){window.addthis_config={}}window.addthis_config[af]=w;G[af]=w}}};B._render=R;var l=[new _ate.resource.Resource("countercss",_atr+"static/r07/counter76.css",function(){return true}),new _ate.resource.Resource("counter",_atr+"js/250/plugin.sharecounter.js",function(){return window.addthis.counter.ost})];if(!M.JSON||!M.JSON.stringify){l.unshift(new _ate.resource.Resource("json2",_atr+"static/r07/json2.js",function(){return M.JSON&&M.JSON.stringify}))}B.counter=function(ae,u,w){if(ae){ae=B._select(ae);if(ae.length){if(!B.counter.selects){B.counter.selects=[]}B.counter.selects=B.counter.selects.concat({counter:ae,config:u,share:w});for(var d in l){if((l[d]||{}).load){l[d].load()}}}}};B.count=function(ae,u,w){if(ae){ae=B._select(ae);if(ae.length){if(!B.count.selects){B.count.selects=[]}B.count.selects=B.count.selects.concat({counter:ae,config:u,share:w});for(var d in l){if((l[d]||{}).load){l[d].load()}}}}};B.data.getShareCount=function(w,u){if(!B.counter.reqs){B.counter.reqs=[]}B.counter.reqs.push({share:u,callback:w});for(var d in l){if((l[d]||{}).load){l[d].load()}}};if(document.compatMode=="BackCompat"&&_ate.bro.msi&&false){var o=[new _ate.resource.Resource("barcss",_atr+"bannerQuirks.css",function(){return true}),new _ate.resource.Resource("barjs",_atr+"static/r07/banner01.js",function(){return true})]}else{var o=[new _ate.resource.Resource("barcss",_atr+"static/r07/banner01.css",function(){return true}),new _ate.resource.Resource("barjs",_atr+"static/r07/banner01.js",function(){return true})]}B.bar=function(ai,w,ag,d){if(ai){ai=B._select(ai);if(ai.length){if(!B.bar.selects){B.bar.selects=[]}B.bar.selects=B.bar.selects.concat(ai);for(var ae=0;ae<ai.length;ae++){var af=ai[ae],ah="bar"+(af.className.indexOf("vertical")>-1?"vt":"hz")+"-"+_atc.ver;_ate.track.apc(ah)}for(var u in o){if((o[u]||{}).load){o[u].load()}}}}};var H=new _ate.resource.Resource("overlayjs",_atr+"static/r07/overlay02.js",function(){return true});B.overlay=function(ae,u,w,d){if(ae){ae=B._select(ae);if(ae.length){if(!B.overlay.selects){B.overlay.selects=[]}B.overlay.selects=B.overlay.selects.concat(ae);_ate.track.apc("ovr-"+_atc.ver);if((H||{}).load){H.load()}}}};B.button=function(w,d,u){d=d||{};if(!d.product){d.product="men-"+_atc.ver}R(w,{conf:d,share:u},{internal:"img"})};B.toolbox=function(ah,u,ai,aj){var ak=b(ah);for(var ae=0;ae<ak.length;ae++){var w=ak[ae],af=a(w,u,ai,aj),d=Z.ce("div"),ag;w.services={};if(!af.conf.product){af.conf.product="tbx"+(w.className.indexOf("32x32")>-1?"32":"")+"-"+_atc.ver}if(w){ag=w.getElementsByTagName("a");if(ag){ad(ag,af.conf,af.share,!aj,!aj)}w.appendChild(d)}d.className="atclear"}};function aa(d){if(!d||d.length<5||d.length>30){throw new Error("Service code must be between 5 and 30 characters.")}else{if(d.search(/^[a-zA-Z0-9_]+$/)==-1){throw new Error("Service code must consist entirely of letters, numbers and underscores.")}}return true}B.logShare=function(w,d,ag,u){var ah=u||addthis_config,af=ag||addthis_share;ah.product="hdl-"+_atc.ver;af.imp_url=0;var w=w||(ag&&ag.url)||addthis_share.url,ae=_ate.track.dcu(w);if(ae.rsc&&!d){d=ae.rsc}if(aa(d)){af.url=w;_ate.share.track(d,0,af,ah)}};B.addClickTag=function(w,d,ae,u){var w=w||ae&&ae.url||addthis_share.url;if(aa(d)){w=_ate.track.cur(_ate.track.cof(w),d)}return w};B.ready=function(){var d=B,u=".addthis_";if(d.ost){return}d.ost=1;B.toolbox(u+"toolbox",null,null,true);B.button(u+"button");B.counter(u+"counter");B.count(u+"count");B.bar(u+"bar");B.overlay(u+"shareable");ad(x,null,null,false);_ate.ed.fire("addthis.ready",B);if(_ate.onr){_ate.onr(B)}for(var w=0,af=d.plo,ae;w<af.length;w++){ae=af[w];(ae.ns?d[ae.ns]:d)[ae.call].apply(this,ae.args)}_ate.share.fb.sub();U();q();if(typeof addthis_config.data_track_disqus!=="undefined"){A()}};B.util.getAttributes=a;B.ad=_ate.ad;window.addthis=B;window.addthis.ready()}}));if(!window.addthis){window.addthis={}}addthis.user=(function(){var G=_ate,w=addthis,m=1000,q={},k=0,e=0,j=0,i={},o;addthis.HIGH=3;addthis.MED=2;addthis.LOW=1;addthis.ASC=1;addthis.DSC=addthis.DESC=0;function C(a,u){return G.reduce(["getID","getGeolocation","getServiceShareHistory"],a,u)}function r(a,u){return function(I){setTimeout(function(){I(G[a]||u)},0)}}function y(a){if(k){return}if(!a||!a.uid){return}if(o!==null){clearTimeout(o)}o=null;k=1;C(function(J,u,I){q[u]=q[u].queuer.flush(r.apply(w,J[I]),w);return J},[["uid",""],["geo",""],["_ssh",[]]])}function g(){if(!_ate.pld){_ate.pld=(new _ate.resource.Resource("menujs",_atr+"static/r07/menu97.js",function(){return true})).load()}}function d(a){if(e&&(a.uid||a.ssh!==undefined)){g();e=0}}function D(){var a={uid:"x",geo:{},ssh:"",ups:""};j=1;y(a);d(a)}o=setTimeout(D,m);G._rec.push(y);function f(I){var u={};for(var a=0;a<I.length;a++){u[I[a]]=I[a]}return u}function F(I,J){if(typeof(J)=="array"){J=f(J)}I=I.split(",");for(var u=0;u<I.length;u++){var a=I[u].replace(/ /g,"");if(J[a]){return 1}}return 0}function v(K,L,J){if(typeof(L)=="array"){return 0}K=K.split(",");for(var I=0;I<K.length;I++){var a=K[I].replace(/ /g,"");for(var u=0;u<J.length;J++){if(L[J[u]]==a){return 1}}}return 0}function h(a){return G.util.geo.isin(a,G.geo)}function n(a){return F(a,i.interests)}function p(a){if(!_ate.uud){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"rdy"})}_ate.uud=1;if(window._atw){_atw.gps(function(){if(c()){a(i);return}i.interests=[];for(var I in _ate.bti){i.interests.push(_ate.bti[I])}var L=[],u={};if(G._uss){for(var K=0;K<G._uss.length;K++){if(!u[G._uss[K]]){L.push({name:G._uss[K],score:addthis.HIGH})}}}if(G._ups){for(var K=0;K<G._ups.length;K++){if(!u[G._ups[K]]){L.push({name:G._ups[K],score:addthis.HIGH})}}}if(G._ssc){for(var J in G._ssc){if(!u[J]){L.push({name:J,score:G._ssc[J]})}}}i.services=L;i.activity={};i.activity.social=_ate.bts;i.activity.view=_ate.vts;i.source=x();if(_ate.geo&&typeof(_ate.geo)=="object"&&_ate.geo[0]&&_ate.geo[1]){var M="";for(var K in _ate.geo){if(typeof(_ate.geo[K])=="string"){M+=_ate.geo[K]}}_ate.geo=_ate.util.geo.parse(M)}for(var I in _ate.geo){if(!isNaN(parseInt(_ate.geo[I]))){_ate.geo[I]=parseInt(_ate.geo[I])}}s.location=i.location=_ate.geo||{};i.location.contains=h;if(a){a(i)}_ate.ed.fire("addthis.user.data",window.addthis||{},{})})}else{_ate.ed.addEventListener("addthis.menu.ready",function(){p(a)});_ate.alg();if(G.gssh||j){g()}else{if(!G.pld&&!e){_ate._rec.push(d)}}e=1}}function l(a){p(a)}q.getData=l;q.getPreferredServices=function(a){if(window._atw){_atw.gps(a)}else{_ate.ed.addEventListener("addthis.menu.ready",function(){_atw.gps(a)});_ate.alg();if(G.gssh||j){g()}else{if(!G.pld&&!e){_ate._rec.push(d)}}e=1}};function c(){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"ioo"});return G.uid=="0000000000000000"}function B(a){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"iuf"});return(G._ssh&&G._ssh.indexOf(a)>-1)||(G._ssc&&G._ssc[a])}function A(a){if(!a){a=[]}a._sortasc=function(u){a.sort(function(J,I){return a._isort(J,I,addthis.ASC,u)})};a._sortdsc=function(u){a.sort(function(J,I){return a._isort(J,I,addthis.DSC,u)})};a._isort=function(J,u,L,M){var K=J[M],I=u[M];if(typeof(K)=="string"&&!isNaN(parseInt(K))){K=parseInt(K,10);I=parseInt(I,10);if(L){return K-K}return K-I}if(K>I){return L?1:-1}else{if(K==I){return 0}}return L?-1:1};a.map=function(I){if(!I){I="name"}var J={};for(var u=0;u<a.length;u++){J[a[u][I]]=a[u]}return J};a.keys=function(J,I,K){if(!I){I="name"}if(!K){K="score"}var L=[];if(J==addthis.ASC){a._sortasc(K)}else{a._sortdsc(K)}for(var u=0;u<a.length;u++){L.push(typeof(a[u])=="object"?a[u].name:a[u])}return L};a.top=function(I,J){if(!J){J="score"}a._sortdsc(J);var K=[];for(var u=0;u<Math.min(I||1,a.length);u++){K.push(a[u].name)}return K};a.filter=function(K){var J=[];for(var I=0;I<a.length;I++){for(var u in K){if(typeof(K[u])!="function"){if(a[I][u]==K[u]){J.push(a[I])}}}}return A(J)};return a}function t(){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"gti"});return A(i.interests)}function b(){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"gts"});return A(i.services)}function x(){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"gtt"});return G.track.ts.get()}function H(){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"gtl"});return i.location}function z(J){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"isl"});var I=x();if(I.type=="social"){if(typeof(J)=="string"){J=J.split(",");var a={};for(var u=0;u<J.length;u++){a[J[u]]=1}if(!a[I.service]){return false}}return true}return false}function E(u){_ate.ed.fire("addthis-internal.api",window.addthis||{},{call:"ish"});var J=x();if(J.type=="search"){if(typeof(u)=="string"){u=u.split(",");var I={};for(var a=0;a<u.length;a++){I[u[a]]=1}if(J.terms&&J.terms.length){for(var a=0;a<J.terms.length;a++){if(!I[J.terms[a]]){return false}}}}return true}return false}var s={ready:p,isReturning:function(a){},isOptedOut:c,isUserOf:B,hasInterest:n,isLocatedIn:h,interests:t,services:b,location:H};addthis.session={source:x,isSocial:z,isSearch:E};_ate.extend(q,s);return C(function(u,a){u[a]=(new w._Queuer(a)).call;return u},q)})();;/* begin Page */

/* Generated with Artisteer version 2.3.0.21098, file checksum is 3C3A4AD3. */

cssFix = function(){
var u = navigator.userAgent.toLowerCase(),
addClass = function(el, val){
	if(! el.className) {
		el.className = val;
	} else {
		var newCl = el.className;
		newCl+=(' '+val);
		el.className = newCl;
	}
},
is = function(t){return (u.indexOf(t)!=-1)};
addClass(document.getElementsByTagName('html')[0],[
(!(/opera|webtv/i.test(u))&&/msie (\d)/.test(u))?('ie ie'+RegExp.$1)
: is('firefox/2')?'gecko firefox2'
: is('firefox/3')?'gecko firefox3'
: is('gecko/')?'gecko'
: is('chrome/')?'chrome'
: is('opera/9')?'opera opera9':/opera (\d)/.test(u)?'opera opera'+RegExp.$1
: is('konqueror')?'konqueror'
: is('applewebkit/')?'webkit safari'
: is('mozilla/')?'gecko':'',
(is('x11')||is('linux'))?' linux'
: is('mac')?' mac'
: is('win')?' win':''
].join(' '));
}();

var artEventHelper = {
	'bind': function(obj, evt, fn) {
		if (obj.addEventListener)
			obj.addEventListener(evt, fn, false);
		else if (obj.attachEvent)
			obj.attachEvent('on' + evt, fn);
		else
			obj['on' + evt] = fn;
	}
};

var userAgent = navigator.userAgent.toLowerCase();
var browser = {
	version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
	safari: /webkit/.test(userAgent) && !/chrome/.test(userAgent),
	chrome: /chrome/.test(userAgent),
	opera: /opera/.test(userAgent),
	msie: /msie/.test(userAgent) && !/opera/.test(userAgent),
	mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent)
};

var artLoadEvent = (function() {
	

	var list = [];

	var done = false;
	var ready = function() {
		if (done) return;
		done = true;
		for (var i = 0; i < list.length; i++)
			list[i]();
	};

	if (document.addEventListener && !browser.opera)
		document.addEventListener('DOMContentLoaded', ready, false);

	if (browser.msie && window == top) {
		(function() {
			try {
				document.documentElement.doScroll('left');
			} catch (e) {
				setTimeout(arguments.callee, 10);
				return;
			}
			ready();
		})();
	}

	if (browser.opera) {
		document.addEventListener('DOMContentLoaded', function() {
			for (var i = 0; i < document.styleSheets.length; i++) {
				if (document.styleSheets[i].disabled) {
					setTimeout(arguments.callee, 10);
					return;
				}
			}
			ready();
		}, false);
	}

	if (browser.safari || browser.chrome) {
		var numStyles;
		(function() {
			if (document.readyState != 'loaded' && document.readyState != 'complete') {
				setTimeout(arguments.callee, 10);
				return;
			}
			if ('undefined' == typeof numStyles) {
				numStyles = document.getElementsByTagName('style').length;
				var links = document.getElementsByTagName('link');
				for (var i = 0; i < links.length; i++) {
					numStyles += (links[i].getAttribute('rel') == 'stylesheet') ? 1 : 0;
				}
				if (document.styleSheets.length != numStyles) {
					setTimeout(arguments.callee, 0);
					return;
				}
			}
			ready();
		})();
	}
	artEventHelper.bind(window, 'load', ready);
	return ({
		add: function(f) {
			list.push(f);
		}
	})
})();

(function() {
	// fix ie blinking
	var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand;
	try { if (!!m) { m('BackgroundImageCache', false, true); } }
	catch (oh) { };
})();

function xGetElementsByClassName(clsName, parentEle, tagName) {
	var elements = null;
	var found = [];
	var s = String.fromCharCode(92);
	var re = new RegExp('(?:^|' + s + 's+)' + clsName + '(?:$|' + s + 's+)');
	if (!parentEle) parentEle = document;
	if (!tagName) tagName = '*';
	elements = parentEle.getElementsByTagName(tagName);
	if (elements) {
		for (var i = 0; i < elements.length; ++i) {
			if (elements[i].className.search(re) != -1) {
				found[found.length] = elements[i];
			}
		}
	}
	return found;
}

var styleUrlCached = null;
function GetStyleUrl() {
    if (null == styleUrlCached) {
        var ns;
        styleUrlCached = '';
        ns = document.getElementsByTagName('link');
        for (var i = 0; i < ns.length; i++) {
            var l = ns[i];
            if (l.href && /style\.ie6\.css(\?.*)?$/.test(l.href)) {
                return styleUrlCached = l.href.replace(/style\.ie6\.css(\?.*)?$/, '');
            }
        }

        ns = document.getElementsByTagName('style');
        for (var i = 0; i < ns.length; i++) {
            var matches = new RegExp('import\\s+"([^"]+\\/)style\\.ie6\\.css"').exec(ns[i].innerHTML);
            if (null != matches && matches.length > 0)
                return styleUrlCached = matches[1];
        }
    }
    return styleUrlCached;
}

function fixPNG(element) {
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent)) {
		var src;
		if (element.tagName == 'IMG') {
			if (/\.png$/.test(element.src)) {
				src = element.src;
				element.src = GetStyleUrl() + 'images/spacer.gif';
			}
		}
		else {
			src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
			if (src) {
				src = src[1];
				element.runtimeStyle.backgroundImage = 'none';
			}
		}
		if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')";
	}
}

function artHasClass(el, cls) {
	return (el && el.className && (' ' + el.className + ' ').indexOf(' ' + cls + ' ') != -1);
}
/* end Page */

/* begin Menu */
function gTranslateFix() {
	var menus = xGetElementsByClassName("art-menu", document);
	for (var i = 0; i < menus.length; i++) {
		var menu = menus[i];
		var childs = menu.childNodes;
		var listItems = [];
		for (var j = 0; j < childs.length; j++) {
			var el = childs[j];
			if (String(el.tagName).toLowerCase() == "li") listItems.push(el);
		}
		for (var j = 0; j < listItems.length; j++) {
			var item = listItems[j];
			var a = null;
			var gspan = null;
			for (var p = 0; p < item.childNodes.length; p++) {
				var l = item.childNodes[p];
				if (!(l && l.tagName)) continue;
				if (String(l.tagName).toLowerCase() == "a") a = l;
				if (String(l.tagName).toLowerCase() == "span") gspan = l;
			}
			if (gspan && a) {
				var t = null;
				for (var k = 0; k < gspan.childNodes.length; k++) {
					var e = gspan.childNodes[k];
					if (!(e && e.tagName)) continue;
					if (String(e.tagName).toLowerCase() == "a" && e.firstChild) e = e.firstChild;
					if (e && e.className && e.className == 't') {
						t = e;
						if (t.firstChild && t.firstChild.tagName && String(t.firstChild.tagName).toLowerCase() == "a") {
							while (t.firstChild.firstChild) t.appendChild(t.firstChild.firstChild);
							t.removeChild(t.firstChild);
						}
						a.appendChild(t);
						break;
					}
				}
				gspan.parentNode.removeChild(gspan);
			}
		}
	}
}
artLoadEvent.add(gTranslateFix);

function Insert_Separators() {
	var menus = xGetElementsByClassName("art-menu", document);
	for (var i = 0; i < menus.length; i++) {
		var menu = menus[i];
		var childs = menu.childNodes;
		var listItems = [];
		for (var j = 0; j < childs.length; j++) {
			var el = childs[j];
			if (String(el.tagName).toLowerCase() == "li") listItems.push(el);
		}
		for (var j = 0; j < listItems.length - 1; j++) {
			var item = listItems[j];
			var span = document.createElement('span');
			span.className = 'art-menu-separator';
			var li = document.createElement('li');
			li.appendChild(span);
			item.parentNode.insertBefore(li, item.nextSibling);
		}
	}
}
artLoadEvent.add(Insert_Separators);

function Menu_IE6Setup() {
	var isIE6 = navigator.userAgent.toLowerCase().indexOf("msie") != -1
    && navigator.userAgent.toLowerCase().indexOf("msie 7") == -1;
	if (!isIE6) return;
	var aTmp2, i, j, oLI, aUL, aA;
	var aTmp = xGetElementsByClassName("art-menu", document, "ul");
	for (i = 0; i < aTmp.length; i++) {
		aTmp2 = aTmp[i].getElementsByTagName("li");
		for (j = 0; j < aTmp2.length; j++) {
			oLI = aTmp2[j];
			aUL = oLI.getElementsByTagName("ul");
			if (aUL && aUL.length) {
				oLI.UL = aUL[0];
				aA = oLI.getElementsByTagName("a");
				if (aA && aA.length)
					oLI.A = aA[0];
				oLI.onmouseenter = function() {
					this.className += " art-menuhover";
					this.UL.className += " art-menuhoverUL";
					if (this.A) this.A.className += " art-menuhoverA";
				};
				oLI.onmouseleave = function() {
					this.className = this.className.replace(/art-menuhover/, "");
					this.UL.className = this.UL.className.replace(/art-menuhoverUL/, "");
					if (this.A) this.A.className = this.A.className.replace(/art-menuhoverA/, "");
				};
			}
		}
	}
}
artLoadEvent.add(Menu_IE6Setup);
/* end Menu */

/* begin Button */


function artButtonsSetupJsHover(className) {
	var tags = ["input", "a", "button"];
	for (var j = 0; j < tags.length; j++){
		var buttons = xGetElementsByClassName(className, document, tags[j]);
		for (var i = 0; i < buttons.length; i++) {
			var button = buttons[i];
			if (!button.tagName || !button.parentNode) return;
			if (!artHasClass(button.parentNode, 'art-button-wrapper')) {
				if (!artHasClass(button, 'art-button')) button.className += ' art-button';
				var wrapper = document.createElement('span');
				wrapper.className = "art-button-wrapper";
				if (artHasClass(button, 'active')) wrapper.className += ' active';
				var spanL = document.createElement('span');
				spanL.className = "l";
				spanL.innerHTML = " ";
				wrapper.appendChild(spanL);
				var spanR = document.createElement('span');
				spanR.className = "r";
				spanR.innerHTML = " ";
				wrapper.appendChild(spanR);
				button.parentNode.insertBefore(wrapper, button);
				wrapper.appendChild(button);
			}
			artEventHelper.bind(button, 'mouseover', function(e) {
				e = e || window.event;
				wrapper = (e.target || e.srcElement).parentNode;
				wrapper.className += " hover";
			});
			artEventHelper.bind(button, 'mouseout', function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				wrapper.className = wrapper.className.replace(/hover/, "");
				if (!artHasClass(button, 'active')) wrapper.className = wrapper.className.replace(/active/, "");
			});
			artEventHelper.bind(button, 'mousedown', function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				if (!artHasClass(button, 'active')) wrapper.className += " active";
			});
			artEventHelper.bind(button, 'mouseup', function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				if (!artHasClass(button, 'active')) wrapper.className = wrapper.className.replace(/active/, "");
			});
		}
	}
}

artLoadEvent.add(function() { artButtonsSetupJsHover("art-button"); });
/* end Button */



artLoadEvent.add(function() {
    // select all tables with table class
    var formButtons = document.getElementsByTagName('button');
    for (var i = 0; i < formButtons.length; i++) {
        var button = formButtons[i];

        button.buttonName = button.getAttribute('name');
        button.buttonValue = button.getAttribute('value');
        button.prevOnClick = button.onclick;

        if (button.outerHTML) {
            var re = /\bvalue="([^"]+)"/i;
            button.buttonValue = re.test(button.outerHTML) ? re.exec(button.outerHTML)[1] : button.buttonValue;
        }

        button.setAttribute("name", "_" + button.buttonName);

        button.onclick = function() {
            if (this.prevOnClick) this.prevOnClick.apply(this);
            var f = this;
            while (f.tagName.toLowerCase() != "body") {
                if (f.tagName.toLowerCase() == "form") {
                    var subButton = document.createElement("input");
                    subButton.setAttribute("type", "hidden");
                    subButton.setAttribute("name", this.buttonName);
                    subButton.setAttribute("value", this.buttonValue);
                    f.appendChild(subButton);
                    return true;
                }
                f = f.parentNode;
            }
            return false;
        };
    }
});

/* Image Assis module support */
artLoadEvent.add(function() {
    var imgAssistElem = parent.document.getElementsByName("img_assist_header");
    if (null != imgAssistElem && imgAssistElem.length > 0) {
        imgAssistElem[0].scrolling = "no";
        imgAssistElem[0].style.height = "150px";
    }
});

function artNoStyleAdding(parent) {
    var iframes = parent.getElementsByTagName('iframe');
    if (iframes == null) {
        return;
    }
    var iframeLength = iframes.length;
    for (var i = 0; i < iframeLength; i++) {
        var iframe = iframes[i];
        var body = iframe.contentWindow.document.body;
        if (body == null) {
            window.setTimeout("artNoStyleAdding()", 2000);
            return;
        }
        else {
            body.className = "art-body-nostyle";
            artNoStyleAdding(body);
        }
    }
}
;
