eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([oqvBCFGI-RT-WY]|\\d\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('B MooTools={version:\'1.11\'};q $55(a){v(a!=7y)};q $R(a){C(!$55(a))v K;C(a.3R)v\'J\';B b=56 a;C(b==\'2b\'&&a.nodeName){1x(a.64){P 1:v\'J\';P 3:v(/\\S/).2m(a.7z)?\'textnode\':\'whitespace\'}}C(b==\'2b\'||b==\'q\'){1x(a.7A){P 1O:v\'3p\';P 65:v\'66\';P U:v\'3S\'}C(56 a.Q==\'3q\'){C(a.item)v\'collection\';C(a.67)v\'W\'}}v b};q $1B(){B a={};I(B b=0;b<W.Q;b++){I(B c Y W[b]){B d=W[b][c];B f=a[c];C(f&&$R(d)==\'2b\'&&$R(f)==\'2b\')a[c]=$1B(f,d);T a[c]=d}}v a};B $N=q(){B a=W;C(!a[1])a=[o,a[0]];I(B b Y a[1])a[0][b]=a[1][b];v a[0]};B $3T=q(){I(B c=0,d=W.Q;c<d;c++){W[c].N=q(a){I(B b Y a){C(!o.1k[b])o.1k[b]=a[b];C(!o[b])o[b]=$3T.57(b)}}}};$3T.57=q(b){v q(a){v o.1k[b].33(a,1O.1k.7B.1s(W,1))}};$3T(68,1O,58,7C);q $1P(a){v!!(a||a===0)};q $3U(a,b){v $55(a)?a:b};q $69(a,b){v 12.7D(12.69()*(b-a+1)+a)};q $3V(){v G 7E().7F()};q $3W(a){clearTimeout(a);clearInterval(a);v 1d};B 2K=q(a){a=a||{};a.N=$N;v a};B Window=G 2K(O);B Document=G 2K(M);M.59=M.2n(\'59\')[0];O.4n=!!(M.4o);C(O.7G)O.ie=O[O.5a?\'ie7\':\'7H\']=14;T C(M.7I&&!M.all&&!navigator.taintEnabled)O.3r=O[O.4n?\'webkit420\':\'4p\']=14;T C(M.getBoxObjectFor!=1d)O.6a=14;O.khtml=O.3r;6b.N=$N;C(56 4q==\'7y\'){B 4q=q(){};C(O.3r)M.7J("iframe");4q.1k=(O.3r)?O["[[DOMElement.1k]]"]:{}}4q.1k.3R=q(){};C(O.7H)3X{M.execCommand("BackgroundImageCache",K,14)}3Y(e){};B U=q(a){B b=q(){v(W[0]!==1d&&o.17&&$R(o.17)==\'q\')?o.17.33(o,W):o};$N(b,o);b.1k=a;b.7A=U;v b};U.1c=q(){};U.1k={N:q(a){B b=G o(1d);I(B c Y a){B d=b[c];b[c]=U.7K(d,a[c])}v G U(b)},2x:q(){I(B a=0,b=W.Q;a<b;a++)$N(o.1k,W[a])}};U.7K=q(a,b){C(a&&a!=b){B c=$R(b);C(c!=$R(a))v b;1x(c){P\'q\':B d=q(){o.1m=W.67.1m;v b.33(o,W)};d.1m=a;v d;P\'2b\':v $1B(a,b)}}v b};B 6c=G U({chain:q(a){o.3s=o.3s||[];o.3s.19(a);v o},6d:q(){C(o.3s&&o.3s.Q)o.3s.7L().2o(10,o)},clearChain:q(){o.3s=[]}});B 1J=G U({1h:q(a,b){C(b!=U.1c){o.$V=o.$V||{};o.$V[a]=o.$V[a]||[];o.$V[a].4r(b)}v o},18:q(b,c,d){C(o.$V&&o.$V[b]){o.$V[b].1e(q(a){a.2p({\'1g\':o,\'2o\':d,\'W\':c})()},o)}v o},3t:q(a,b){C(o.$V&&o.$V[a])o.$V[a].23(b);v o}});B 34=G U({2c:q(){o.F=$1B.33(1d,[o.F].N(W));C(o.1h){I(B a Y o.F){C($R(o.F[a]==\'q\')&&(/^on[A-Z]/).2m(a))o.1h(a,o.F[a])}}v o}});1O.N({5b:q(a,b){I(B c=0,d=o.Q;c<d;c++)a.1s(b,o[c],c,o)},3u:q(a,b){B c=[];I(B d=0,f=o.Q;d<f;d++){C(a.1s(b,o[d],d,o))c.19(o[d])}v c},1U:q(a,b){B c=[];I(B d=0,f=o.Q;d<f;d++)c[d]=a.1s(b,o[d],d,o);v c},6e:q(a,b){I(B c=0,d=o.Q;c<d;c++){C(!a.1s(b,o[c],c,o))v K}v 14},some:q(a,b){I(B c=0,d=o.Q;c<d;c++){C(a.1s(b,o[c],c,o))v 14}v K},2y:q(a,b){B c=o.Q;I(B d=(b<0)?12.2z(0,c+b):b||0;d<c;d++){C(o[d]===a)v d}v-1},6f:q(a,b){a=a||0;C(a<0)a=o.Q+a;b=b||(o.Q-a);B c=[];I(B d=0;d<b;d++)c[d]=o[a++];v c},23:q(a){B b=0;B c=o.Q;5c(b<c){C(o[b]===a){o.5d(b,1);c--}T{b++}}v o},1a:q(a,b){v o.2y(a,b)!=-1},associate:q(a){B b={},c=12.6g(o.Q,a.Q);I(B d=0;d<c;d++)b[a[d]]=o[d];v b},N:q(a){I(B b=0,c=a.Q;b<c;b++)o.19(a[b]);v o},1B:q(a){I(B b=0,c=a.Q;b<c;b++)o.4r(a[b]);v o},4r:q(a){C(!o.1a(a))o.19(a);v o},getRandom:q(){v o[$69(0,o.Q-1)]||1d},6h:q(){v o[o.Q-1]||1d}});1O.1k.1e=1O.1k.5b;1O.1e=1O.5b;q $A(a){v 1O.6f(a)};q $1e(a,b,c){C(a&&56 a.Q==\'3q\'&&$R(a)!=\'2b\'){1O.5b(a,b,c)}T{I(B d Y a)b.1s(c||a,a[d],d)}};1O.1k.2m=1O.1k.1a;58.N({2m:q(a,b){v(($R(a)==\'2L\')?G 65(a,b):a).2m(o)},2q:q(){v 4t(o,10)},7M:q(){v 4u(o)},6i:q(){v o.2A(/-\\D/g,q(a){v a.6j(1).6k()})},7N:q(){v o.2A(/\\w[A-Z]/g,q(a){v(a.6j(0)+\'-\'+a.6j(1).4v())})},6l:q(){v o.2A(/\\b[a-z]/g,q(a){v a.6k()})},4w:q(){v o.2A(/^\\s+|\\s+$/g,\'\')},6m:q(){v o.2A(/\\s{2,}/g,\' \').4w()},4x:q(a){B b=o.4y(/\\d{1,3}/g);v(b)?b.4x(a):K},4z:q(a){B b=o.4y(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);v(b)?b.7B(1).4z(a):K},1a:q(a,b){v(b)?(b+o+b).2y(b+a+b)>-1:o.2y(a)>-1},7O:q(){v o.2A(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});1O.N({4x:q(a){C(o.Q<3)v K;C(o.Q==4&&o[3]==0&&!a)v\'transparent\';B b=[];I(B c=0;c<3;c++){B d=(o[c]-0).3v(16);b.19((d.Q==1)?\'0\'+d:d)}v a?b:\'#\'+b.1C(\'\')},4z:q(a){C(o.Q!=3)v K;B b=[];I(B c=0;c<3;c++){b.19(4t((o[c].Q==1)?o[c]+o[c]:o[c],16))}v a?b:\'2M(\'+b.1C(\',\')+\')\'}});68.N({2p:q(d){B f=o;d=$1B({\'1g\':f,\'1K\':K,\'W\':1d,\'2o\':K,\'35\':K,\'5e\':K},d);C($1P(d.W)&&$R(d.W)!=\'3p\')d.W=[d.W];v q(a){B b;C(d.1K){a=a||O.1K;b=[(d.1K===14)?a:G d.1K(a)];C(d.W)b.N(d.W)}T b=d.W||W;B c=q(){v f.33($3U(d.1g,f),b)};C(d.2o)v 7P(c,d.2o);C(d.35)v setInterval(c,d.35);C(d.5e)3X{v c()}3Y(err){v K};v c()}},pass:q(a,b){v o.2p({\'W\':a,\'1g\':b})},5e:q(a,b){v o.2p({\'W\':a,\'1g\':b,\'5e\':14})()},1g:q(a,b){v o.2p({\'1g\':a,\'W\':b})},bindAsEventListener:q(a,b){v o.2p({\'1g\':a,\'1K\':14,\'W\':b})},2o:q(a,b,c){v o.2p({\'2o\':a,\'1g\':b,\'W\':c})()},35:q(a,b,c){v o.2p({\'35\':a,\'1g\':b,\'W\':c})()}});7C.N({2q:q(){v 4t(o)},7M:q(){v 4u(o)},1y:q(a,b){v 12.6g(b,12.2z(a,o))},1L:q(a){a=12.2N(10,a||0);v 12.1L(o*a)/a},times:q(a){I(B b=0;b<o;b++)a(b)}});B L=G U({17:q(a,b){C($R(a)==\'2L\'){C(O.ie&&b&&(b.2B||b.R)){B c=(b.2B)?\' 2B="\'+b.2B+\'"\':\'\';B d=(b.R)?\' R="\'+b.R+\'"\':\'\';3Z b.2B;3Z b.R;a=\'<\'+a+c+d+\'>\'}a=M.7J(a)}a=$(a);v(!b||!a)?a:a.1E(b)}});B 1z=G U({17:q(a){v(a)?$N(a,o):o}});1z.N=q(a){I(B b Y a){o.1k[b]=a[b];o[b]=$3T.57(b)}};q $(a){C(!a)v 1d;C(a.3R)v 1V.41(a);C([O,M].1a(a))v a;B b=$R(a);C(b==\'2L\'){a=M.5f(a);b=(a)?\'J\':K}C(b!=\'J\')v 1d;C(a.3R)v 1V.41(a);C([\'2b\',\'embed\'].1a(a.7Q.4v()))v a;$N(a,L.1k);a.3R=q(){};v 1V.41(a)};M.5g=M.2n;q $$(){B a=[];I(B b=0,c=W.Q;b<c;b++){B d=W[b];1x($R(d)){P\'J\':a.19(d);P\'boolean\':1i;P K:1i;P\'2L\':d=M.5g(d,14);4A:a.N(d)}}v $$.4B(a)};$$.4B=q(a){B b=[];I(B c=0,d=a.Q;c<d;c++){C(a[c].$5h)5i;B f=$(a[c]);C(f&&!f.$5h){f.$5h=14;b.19(f)}}I(B g=0,h=b.Q;g<h;g++)b[g].$5h=1d;v G 1z(b)};1z.5j=q(h){v q(){B a=W;B b=[];B c=14;I(B d=0,f=o.Q,g;d<f;d++){g=o[d][h].33(o[d],a);C($R(g)!=\'J\')c=K;b.19(g)};v(c)?$$.4B(b):b}};L.N=q(a){I(B b Y a){4q.1k[b]=a[b];L.1k[b]=a[b];L[b]=$3T.57(b);B c=(1O.1k[b])?b+\'1z\':b;1z.1k[c]=1z.5j(b)}};L.N({1E:q(a){I(B b Y a){B c=a[b];1x(b){P\'6n\':o.3w(c);1i;P\'V\':C(o.5k)o.5k(c);1i;P\'properties\':o.5l(c);1i;4A:o.5m(b,c)}}v o},1A:q(a,b){a=$(a);1x(b){P\'7R\':a.2C.6o(o,a);1i;P\'7S\':B c=a.6p();C(!c)a.2C.6q(o);T a.2C.6o(o,c);1i;P\'1n\':B d=a.6r;C(d){a.6o(o,d);1i}4A:a.6q(o)}v o},6s:q(a){v o.1A(a,\'7R\')},5n:q(a){v o.1A(a,\'7S\')},injectInside:q(a){v o.1A(a,\'2O\')},injectTop:q(a){v o.1A(a,\'1n\')},7T:q(){B b=[];$1e(W,q(a){b=b.6t(a)});$$(b).1A(o);v o},23:q(){v o.2C.7U(o)},7V:q(a){B b=$(o.cloneNode(a!==K));C(!b.$V)v b;b.$V={};I(B c Y o.$V)b.$V[c]={\'1W\':$A(o.$V[c].1W),\'42\':$A(o.$V[c].42)};v b.5o()},replaceWith:q(a){a=$(a);o.2C.replaceChild(a,o);v a},7W:q(a){o.6q(M.createTextNode(a));v o},6u:q(a){v o.2d.1a(a,\' \')},7X:q(a){C(!o.6u(a))o.2d=(o.2d+\' \'+a).6m();v o},7Y:q(a){o.2d=o.2d.2A(G 65(\'(^|\\\\s)\'+a+\'(?:\\\\s|$)\'),\'$1\').6m();v o},toggleClass:q(a){v o.6u(a)?o.7Y(a):o.7X(a)},1o:q(a,b){1x(a){P\'1Q\':v o.7Z(4u(b));P\'float\':a=(O.ie)?\'styleFloat\':\'cssFloat\'}a=a.6i();1x($R(b)){P\'3q\':C(![\'zIndex\',\'80\'].1a(a))b+=\'px\';1i;P\'3p\':b=\'2M(\'+b.1C(\',\')+\')\'}o.1X[a]=b;v o},3w:q(a){1x($R(a)){P\'2b\':L.5p(o,\'1o\',a);1i;P\'2L\':o.1X.6v=a}v o},7Z:q(a){C(a==0){C(o.1X.3x!="3y")o.1X.3x="3y"}T{C(o.1X.3x!="6w")o.1X.3x="6w"}C(!o.5q||!o.5q.hasLayout)o.1X.80=1;C(O.ie)o.1X.3u=(a==1)?\'\':"alpha(1Q="+a*2r+")";o.1X.1Q=o.$1t.1Q=a;v o},1F:q(c){c=c.6i();B d=o.1X[c];C(!$1P(d)){C(c==\'1Q\')v o.$1t.1Q;d=[];I(B f Y L.36){C(c==f){L.36[f].1e(q(a){B b=o.1F(a);d.19(4t(b)?b:\'81\')},o);C(c==\'2e\'){B g=d.6e(q(a){v(a==d[0])});v(g)?d[0]:K}v d.1C(\' \')}}C(c.1a(\'2e\')){C(L.36.2e.1a(c)){v[\'82\',\'6x\',\'25\'].1U(q(a){v o.1F(c+a)},o).1C(\' \')}T C(L.83.1a(c)){v[\'84\',\'85\',\'86\',\'87\'].1U(q(a){v o.1F(\'2e\'+a+c.2A(\'2e\',\'\'))},o).1C(\' \')}}C(M.88)d=M.88.getComputedStyle(o,1d).getPropertyValue(c.7N());T C(o.5q)d=o.5q[c]}C(O.ie)d=L.89(c,d,o);C(d&&c.2m(/8a/i)&&d.1a(\'2M\')){v d.4C(\'2M\').5d(1,4).1U(q(a){v a.4x()}).1C(\' \')}v d},8b:q(){v L.6y(o,\'1F\',W)},4D:q(a,b){a+=\'Sibling\';B c=(b)?o[b]:o[a];5c(c&&$R(c)!=\'J\')c=c[a];v $(c)},8c:q(){v o.4D(\'2s\')},6p:q(){v o.4D(\'8d\')},getFirst:q(){v o.4D(\'8d\',\'6r\')},6h:q(){v o.4D(\'2s\',\'lastChild\')},getParent:q(){v $(o.2C)},6z:q(){v $$(o.7I)},6A:q(a){v!!$A(o.2n(\'*\')).1a(a)},4E:q(a){B b=L.5r[a];C(b)v o[b];B c=L.8e[a]||0;C(!O.ie||c)v o.getAttribute(a,c);B d=o.attributes[a];v(d)?d.7z:1d},removeProperty:q(a){B b=L.5r[a];C(b)o[b]=\'\';T o.8f(a);v o},getProperties:q(){v L.6y(o,\'4E\',W)},5m:q(a,b){B c=L.5r[a];C(c)o[c]=b;T o.setAttribute(a,b);v o},5l:q(a){v L.5p(o,\'5m\',a)},4F:q(){o.8g=$A(W).1C(\'\');v o},setText:q(a){B b=o.3z();C([\'1X\',\'2D\'].1a(b)){C(O.ie){C(b==\'1X\')o.8h.6v=a;T C(b==\'2D\')o.5m(\'1G\',a);v o}T{o.7U(o.6r);v o.7W(a)}}o[$55(o.6B)?\'6B\':\'8i\']=a;v o},getText:q(){B a=o.3z();C([\'1X\',\'2D\'].1a(a)){C(O.ie){C(a==\'1X\')v o.8h.6v;T C(a==\'2D\')v o.4E(\'1G\')}T{v o.8g}}v($3U(o.6B,o.8i))},3z:q(){v o.7Q.4v()},1c:q(){1V.3a(o.2n(\'*\'));v o.4F(\'\')}});L.89=q(b,c,d){C($1P(4t(c)))v c;C([\'26\',\'1R\'].1a(b)){B f=(b==\'1R\')?[\'1D\',\'3A\']:[\'1n\',\'2O\'];B g=0;f.1e(q(a){g+=d.1F(\'2e-\'+a+\'-1R\').2q()+d.1F(\'3B-\'+a).2q()});v d[\'1u\'+b.6l()]-g+\'px\'}T C(b.2m(/2e(.+)82|2t|3B/)){v\'81\'}v c};L.36={\'2e\':[],\'3B\':[],\'2t\':[]};[\'84\',\'85\',\'86\',\'87\'].1e(q(a){I(B b Y L.36)L.36[b].19(b+a)});L.83=[\'borderWidth\',\'borderStyle\',\'borderColor\'];L.6y=q(b,c,d){B f={};$1e(d,q(a){f[a]=b[c](a)});v f};L.5p=q(a,b,c){I(B d Y c)a[b](d,c[d]);v a};L.5r=G 2K({\'3S\':\'2d\',\'I\':\'htmlFor\',\'colspan\':\'colSpan\',\'rowspan\':\'rowSpan\',\'accesskey\':\'accessKey\',\'tabindex\':\'tabIndex\',\'maxlength\':\'maxLength\',\'readonly\':\'readOnly\',\'frameborder\':\'frameBorder\',\'1H\':\'1H\',\'6C\':\'6C\',\'6D\':\'6D\',\'6E\':\'6E\',\'6F\':\'6F\'});L.8e={\'3C\':2,\'4G\':2};L.1Y={5s:{1Z:q(a,b){C(o.6G)o.6G(a,b,K);T o.attachEvent(\'on\'+a,b);v o},2E:q(a,b){C(o.8j)o.8j(a,b,K);T o.detachEvent(\'on\'+a,b);v o}}};O.N(L.1Y.5s);M.N(L.1Y.5s);L.N(L.1Y.5s);B 1V={1v:[],41:q(a){C(!a.$1t){1V.1v.19(a);a.$1t={\'1Q\':1}}v a},3a:q(a){I(B b=0,c=a.Q,d;b<c;b++){C(!(d=a[b])||!d.$1t)5i;C(d.$V)d.18(\'3a\').5o();I(B f Y d.$1t)d.$1t[f]=1d;I(B g Y L.1k)d[g]=1d;1V.1v[1V.1v.2y(d)]=1d;d.3R=d.$1t=d=1d}1V.1v.23(1d)},1c:q(){1V.41(O);1V.41(M);1V.3a(1V.1v)}};O.1Z(\'8k\',q(){O.1Z(\'6H\',1V.1c);C(O.ie)O.1Z(\'6H\',CollectGarbage)});B 2f=G U({17:q(a){C(a&&a.$8l)v a;o.$8l=14;a=a||O.1K;o.1K=a;o.R=a.R;o.44=a.44||a.srcElement;C(o.44.64==3)o.44=o.44.2C;o.7L=a.shiftKey;o.control=a.ctrlKey;o.alt=a.altKey;o.meta=a.metaKey;C([\'6I\',\'45\'].1a(o.R)){o.wheel=(a.8m)?a.8m/120:-(a.detail||0)/3}T C(o.R.1a(\'3D\')){o.5t=a.8n||a.keyCode;I(B b Y 2f.1W){C(2f.1W[b]==o.5t){o.3D=b;1i}}C(o.R==\'8o\'){B c=o.5t-111;C(c>0&&c<13)o.3D=\'f\'+c}o.3D=o.3D||58.fromCharCode(o.5t).4v()}T C(o.R.2m(/(5u|2F|menu)/)){o.1w={\'x\':a.6J||a.8p+M.2g.4H,\'y\':a.6K||a.8q+M.2g.4I};o.8r={\'x\':a.6J?a.6J-O.8s:a.8p,\'y\':a.6K?a.6K-O.8t:a.8q};o.rightClick=(a.8n==3)||(a.button==2);1x(o.R){P\'6L\':o.1M=a.1M||a.fromElement;1i;P\'6M\':o.1M=a.1M||a.6N}o.8u()}v o},1p:q(){v o.5v().5w()},5v:q(){C(o.1K.5v)o.1K.5v();T o.1K.cancelBubble=14;v o},5w:q(){C(o.1K.5w)o.1K.5w();T o.1K.returnValue=K;v o}});2f.5x={1M:q(){C(o.1M&&o.1M.64==3)o.1M=o.1M.2C},8v:q(){3X{2f.5x.1M.1s(o)}3Y(e){o.1M=o.44}}};2f.1k.8u=(O.6a)?2f.5x.8v:2f.5x.1M;2f.1W=G 2K({\'enter\':13,\'up\':38,\'down\':40,\'1D\':37,\'3A\':39,\'esc\':27,\'space\':32,\'backspace\':8,\'tab\':9,\'3Z\':46});L.1Y.1J={1h:q(a,b){o.$V=o.$V||{};o.$V[a]=o.$V[a]||{\'1W\':[],\'42\':[]};C(o.$V[a].1W.1a(b))v o;o.$V[a].1W.19(b);B c=a;B d=L.1J[a];C(d){C(d.6O)d.6O.1s(o,b);C(d.1U)b=d.1U;C(d.R)c=d.R}C(!o.6G)b=b.2p({\'1g\':o,\'1K\':14});o.$V[a].42.19(b);v(L.6P.1a(c))?o.1Z(c,b):o},3t:q(a,b){C(!o.$V||!o.$V[a])v o;B c=o.$V[a].1W.2y(b);C(c==-1)v o;B d=o.$V[a].1W.5d(c,1)[0];B f=o.$V[a].42.5d(c,1)[0];B g=L.1J[a];C(g){C(g.23)g.23.1s(o,b);C(g.R)a=g.R}v(L.6P.1a(a))?o.2E(a,f):o},5k:q(a){v L.5p(o,\'1h\',a)},5o:q(b){C(!o.$V)v o;C(!b){I(B c Y o.$V)o.5o(c);o.$V=1d}T C(o.$V[b]){o.$V[b].1W.1e(q(a){o.3t(b,a)},o);o.$V[b]=1d}v o},18:q(b,c,d){C(o.$V&&o.$V[b]){o.$V[b].1W.1e(q(a){a.2p({\'1g\':o,\'2o\':d,\'W\':c})()},o)}v o},8w:q(b,c){C(!b.$V)v o;C(!c){I(B d Y b.$V)o.8w(b,d)}T C(b.$V[c]){b.$V[c].1W.1e(q(a){o.1h(c,a)},o)}v o}};O.N(L.1Y.1J);M.N(L.1Y.1J);L.N(L.1Y.1J);L.1J=G 2K({\'6Q\':{R:\'6L\',1U:q(a){a=G 2f(a);C(a.1M!=o&&!o.6A(a.1M))o.18(\'6Q\',a)}},\'6R\':{R:\'6M\',1U:q(a){a=G 2f(a);C(a.1M!=o&&!o.6A(a.1M))o.18(\'6R\',a)}},\'45\':{R:(O.6a)?\'6I\':\'45\'}});L.6P=[\'5u\',\'dblclick\',\'4J\',\'47\',\'45\',\'6I\',\'6L\',\'6M\',\'28\',\'8o\',\'keypress\',\'keyup\',\'3b\',\'6H\',\'8k\',\'resize\',\'48\',\'focus\',\'blur\',\'8x\',\'submit\',\'reset\',\'3c\',\'8y\',\'6S\',\'contextmenu\',\'2h\'];68.N({2u:q(a,b){v o.2p({\'1g\':a,\'W\':b,\'1K\':2f})}});1z.N({filterByTag:q(b){v G 1z(o.3u(q(a){v(L.3z(a)==b)}))},8z:q(b,c){B d=o.3u(q(a){v(a.2d&&a.2d.1a(b,\' \'))});v(c)?d:G 1z(d)},8A:q(b,c){B d=o.3u(q(a){v(a.id==b)});v(c)?d:G 1z(d)},8B:q(c,d,f,g){B h=o.3u(q(a){B b=L.4E(a,c);C(!b)v K;C(!d)v 14;1x(d){P\'=\':v(b==f);P\'*=\':v(b.1a(f));P\'^=\':v(b.5y(0,f.Q)==f);P\'$=\':v(b.5y(b.Q-f.Q)==f);P\'!=\':v(b!=f);P\'~=\':v b.1a(f,\' \')}v K});v(g)?h:G 1z(h)}});q $E(a,b){v($(b)||M).8C(a)};q $ES(a,b){v($(b)||M).5g(a)};$$.2P={\'66\':/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,\'4n\':{6U:q(a,b,c,d){B f=[b.namespaceURI?\'6V:\':\'\',c[1]];C(c[2])f.19(\'[@id="\',c[2],\'"]\');C(c[3])f.19(\'[1a(6t(" ", @3S, " "), " \',c[3],\' ")]\');C(c[4]){C(c[5]&&c[6]){1x(c[5]){P\'*=\':f.19(\'[1a(@\',c[4],\', "\',c[6],\'")]\');1i;P\'^=\':f.19(\'[starts-with(@\',c[4],\', "\',c[6],\'")]\');1i;P\'$=\':f.19(\'[substring(@\',c[4],\', 2L-Q(@\',c[4],\') - \',c[6].Q,\' + 1) = "\',c[6],\'"]\');1i;P\'=\':f.19(\'[@\',c[4],\'="\',c[6],\'"]\');1i;P\'!=\':f.19(\'[@\',c[4],\'!="\',c[6],\'"]\')}}T{f.19(\'[@\',c[4],\']\')}}a.19(f.1C(\'\'));v a},6W:q(a,b,c){B d=[];B f=M.4o(\'.//\'+a.1C(\'//\'),b,$$.2P.8D,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,1d);I(B g=0,h=f.snapshotLength;g<h;g++)d.19(f.snapshotItem(g));v(c)?d:G 1z(d.1U($))}},\'8E\':{6U:q(a,b,c,d){C(d==0){C(c[2]){B f=b.5f(c[2]);C(!f||((c[1]!=\'*\')&&(L.3z(f)!=c[1])))v K;a=[f]}T{a=$A(b.2n(c[1]))}}T{a=$$.2P.2n(a,c[1]);C(c[2])a=1z.8A(a,c[2],14)}C(c[3])a=1z.8z(a,c[3],14);C(c[4])a=1z.8B(a,c[4],c[5],c[6],14);v a},6W:q(a,b,c){v(c)?a:$$.4B(a)}},8D:q(a){v(a==\'6V\')?\'8F://8G.w3.org/1999/6V\':K},2n:q(a,b){B c=[];I(B d=0,f=a.Q;d<f;d++)c.N(a[d].2n(b));v c}};$$.2P.2i=(O.4n)?\'4n\':\'8E\';L.1Y.6X={5z:q(a,b){B c=[];a=a.4w().4C(\' \');I(B d=0,f=a.Q;d<f;d++){B g=a[d];B h=g.4y($$.2P.66);C(!h)1i;h[1]=h[1]||\'*\';B j=$$.2P[$$.2P.2i].6U(c,o,h,d);C(!j)1i;c=j}v $$.2P[$$.2P.2i].6W(c,o,b)},8C:q(a){v $(o.5z(a,14)[0]||K)},5g:q(a,b){B c=[];a=a.4C(\',\');I(B d=0,f=a.Q;d<f;d++)c=c.6t(o.5z(a[d],14));v(b)?c:$$.4B(c)}};L.N({5f:q(a){B b=M.5f(a);C(!b)v K;I(B c=b.2C;c!=o;c=c.2C){C(!c)v K}v b},getElementsByClassName:q(a){v o.5z(\'.\'+a)}});M.N(L.1Y.6X);L.N(L.1Y.6X);L.N({3d:q(){1x(o.3z()){P\'3c\':B b=[];$1e(o.F,q(a){C(a.6F)b.19($3U(a.1H,a.1G))});v(o.6E)?b:b[0];P\'8H\':C(!(o.6D&&[\'checkbox\',\'radio\'].1a(o.R))&&![\'3y\',\'1G\',\'password\'].1a(o.R))1i;P\'8I\':v o.1H}v K},8J:q(){v $$(o.2n(\'8H\'),o.2n(\'3c\'),o.2n(\'8I\'))},4K:q(){B g=[];o.8J().1e(q(b){B c=b.2B;B d=b.3d();C(d===K||!c||b.6C)v;B f=q(a){g.19(c+\'=\'+5A(a))};C($R(d)==\'3p\')d.1e(f);T f(d)});v g.1C(\'&\')}});L.N({2Q:q(a,b){o.4H=a;o.4I=b},5B:q(){v{\'2h\':{\'x\':o.4H,\'y\':o.4I},\'3E\':{\'x\':o.3e,\'y\':o.2R},\'5C\':{\'x\':o.5D,\'y\':o.4L}}},2G:q(b){b=b||[];B c=o,d=0,f=0;do{d+=c.offsetLeft||0;f+=c.offsetTop||0;c=c.offsetParent}5c(c);b.1e(q(a){d-=a.4H||0;f-=a.4I||0});v{\'x\':d,\'y\':f}},8K:q(a){v o.2G(a).y},8L:q(a){v o.2G(a).x},3F:q(a){B b=o.2G(a);B c={\'1R\':o.3e,\'26\':o.2R,\'1D\':b.x,\'1n\':b.y};c.3A=c.1D+c.1R;c.2O=c.1n+c.26;v c}});L.1J.6Y={6O:q(a){C(O.5E){a.1s(o);v}B b=q(){C(O.5E)v;O.5E=14;O.1q=$3W(O.1q);o.18(\'6Y\')}.1g(o);C(M.49&&O.3r){O.1q=q(){C([\'5E\',\'6Z\'].1a(M.49))b()}.35(50)}T C(M.49&&O.ie){C(!$(\'70\')){B c=(O.71.protocol==\'https:\')?\'://0\':\'72:void(0)\';M.write(\'<2D id="70" defer 4G="\'+c+\'"><\\/2D>\');$(\'70\').5F=q(){C(o.49==\'6Z\')b()}}}T{O.1Z("3b",b);M.1Z("DOMContentLoaded",b)}}};O.onDomReady=q(a){v o.1h(\'6Y\',a)};O.N({73:q(){C(o.4p)v o.innerWidth;C(o.8M)v M.3G.8N;v M.2g.8N},74:q(){C(o.4p)v o.innerHeight;C(o.8M)v M.3G.8O;v M.2g.8O},8P:q(){C(o.ie)v 12.2z(M.2g.3e,M.2g.5D);C(o.3r)v M.3G.5D;v M.2g.5D},8Q:q(){C(o.ie)v 12.2z(M.2g.2R,M.2g.4L);C(o.3r)v M.3G.4L;v M.2g.4L},75:q(){v o.8s||M.2g.4H},76:q(){v o.8t||M.2g.4I},5B:q(){v{\'3E\':{\'x\':o.73(),\'y\':o.74()},\'5C\':{\'x\':o.8P(),\'y\':o.8Q()},\'2h\':{\'x\':o.75(),\'y\':o.76()}}},2G:q(){v{\'x\':0,\'y\':0}}});B Fx={};Fx.2j=G U({F:{3f:U.1c,1r:U.1c,77:U.1c,8R:q(a){v-(12.8S(12.PI*a)-1)/2},3g:500,3h:\'px\',2S:14,8T:50},17:q(a){o.J=o.J||1d;o.2c(a);C(o.F.17)o.F.17.1s(o)},29:q(){B a=$3V();C(a<o.3V+o.F.3g){o.8U=o.F.8R((a-o.3V)/o.F.3g);o.3H();o.3I()}T{o.1p(14);o.1E(o.to);o.18(\'1r\',o.J,10);o.6d()}},1E:q(a){o.1b=a;o.3I();v o},3H:q(){o.1b=o.3J(o.21,o.to)},3J:q(a,b){v(b-a)*o.8U+a},1f:q(a,b){C(!o.F.2S)o.1p();T C(o.1q)v o;o.21=a;o.to=b;o.8x=o.to-o.21;o.3V=$3V();o.1q=o.29.35(12.1L(8V/o.F.8T),o);o.18(\'3f\',o.J);v o},1p:q(a){C(!o.1q)v o;o.1q=$3W(o.1q);C(!a)o.18(\'77\',o.J);v o},custom:q(a,b){v o.1f(a,b)},clearTimer:q(a){v o.1p(a)}});Fx.2j.2x(G 6c,G 1J,G 34);Fx.2H={3c:q(a,b){C(a.2m(/8a/i))v o.25;B c=$R(b);C((c==\'3p\')||(c==\'2L\'&&b.1a(\' \')))v o.5j;v o.8W},2k:q(a,b,c){C(!c.19)c=[c];B d=c[0],f=c[1];C(!$1P(f)){f=d;d=a.1F(b)}B g=o.3c(b,f);v{\'21\':g.2k(d),\'to\':g.2k(f),\'1l\':g}}};Fx.2H.8W={2k:q(a){v 4u(a)},4a:q(a,b,c){v c.3J(a,b)},3d:q(a,b,c){C(b==\'px\'&&c!=\'1Q\')a=12.1L(a);v a+b}};Fx.2H.5j={2k:q(b){v b.19?b:b.4C(\' \').1U(q(a){v 4u(a)})},4a:q(a,b,c){B d=[];I(B f=0;f<a.Q;f++)d[f]=c.3J(a[f],b[f]);v d},3d:q(a,b,c){C(b==\'px\'&&c!=\'1Q\')a=a.1U(12.1L);v a.1C(b+\' \')+b}};Fx.2H.25={2k:q(a){v a.19?a:a.4z(14)},4a:q(a,b,c){B d=[];I(B f=0;f<a.Q;f++)d[f]=12.1L(c.3J(a[f],b[f]));v d},3d:q(a){v\'2M(\'+a.1C(\',\')+\')\'}};Fx.6x=Fx.2j.N({17:q(a,b,c){o.J=$(a);o.4M=b;o.1m(c)},4N:q(){v o.1E(0)},3H:q(){o.1b=o.1l.4a(o.21,o.to,o)},1E:q(a){o.1l=Fx.2H.3c(o.4M,a);v o.1m(o.1l.2k(a))},1f:q(a,b){C(o.1q&&o.F.2S)v o;B c=Fx.2H.2k(o.J,o.4M,[a,b]);o.1l=c.1l;v o.1m(c.21,c.to)},3I:q(){o.J.1o(o.4M,o.1l.3d(o.1b,o.F.3h,o.4M))}});L.N({effect:q(a,b){v G Fx.6x(o,a,b)}});Fx.36=Fx.2j.N({17:q(a,b){o.J=$(a);o.1m(b)},3H:q(){I(B a Y o.21)o.1b[a]=o.1l[a].4a(o.21[a],o.to[a],o)},1E:q(a){B b={};o.1l={};I(B c Y a){o.1l[c]=Fx.2H.3c(c,a[c]);b[c]=o.1l[c].2k(a[c])}v o.1m(b)},1f:q(a){C(o.1q&&o.F.2S)v o;o.1b={};o.1l={};B b={},c={};I(B d Y a){B f=Fx.2H.2k(o.J,d,a[d]);b[d]=f.21;c[d]=f.to;o.1l[d]=f.1l}v o.1m(b,c)},3I:q(){I(B a Y o.1b)o.J.1o(a,o.1l[a].3d(o.1b[a],o.F.3h,a))}});L.N({2T:q(a){v G Fx.36(o,a)}});Fx.1z=Fx.2j.N({17:q(a,b){o.1v=$$(a);o.1m(b)},3H:q(){I(B a Y o.21){B 79=o.21[a],8X=o.to[a],5G=o.1l[a],4O=o.1b[a]={};I(B p Y 79)4O[p]=5G[p].4a(79[p],8X[p],o)}},1E:q(a){B b={};o.1l={};I(B c Y a){B d=a[c],f=o.1l[c]={},g=b[c]={};I(B h Y d){f[h]=Fx.2H.3c(h,d[h]);g[h]=f[h].2k(d[h])}}v o.1m(b)},1f:q(a){C(o.1q&&o.F.2S)v o;o.1b={};o.1l={};B b={},c={};I(B d Y a){B f=a[d],g=b[d]={},h=c[d]={},j=o.1l[d]={};I(B i Y f){B k=Fx.2H.2k(o.1v[d],i,f[i]);g[i]=k.21;h[i]=k.to;j[i]=k.1l}}v o.1m(b,c)},3I:q(){I(B a Y o.1b){B 4O=o.1b[a],5G=o.1l[a];I(B p Y 4O)o.1v[a].1o(p,5G[p].3d(4O[p],o.F.3h,p))}}});Fx.8Y=Fx.2j.N({F:{3K:[],1u:{\'x\':0,\'y\':0},8Z:14},17:q(a,b){o.1b=[];o.J=$(a);o.1j={\'1p\':o.1p.1g(o,K)};o.1m(b);C(o.F.8Z){o.1h(\'3f\',q(){M.1h(\'45\',o.1j.1p)}.1g(o));o.1h(\'1r\',q(){M.3t(\'45\',o.1j.1p)}.1g(o))}},3H:q(){I(B a=0;a<2;a++)o.1b[a]=o.3J(o.21[a],o.to[a])},2Q:q(a,b){C(o.1q&&o.F.2S)v o;B c=o.J.5B();B d={\'x\':a,\'y\':b};I(B f Y c.3E){B g=c.5C[f]-c.3E[f];C($1P(d[f]))d[f]=($R(d[f])==\'3q\')?d[f].1y(0,g):g;T d[f]=c.2h[f];d[f]+=o.F.1u[f]}v o.1f([c.2h.x,c.2h.y],[d.x,d.y])},toTop:q(){v o.2Q(K,0)},toBottom:q(){v o.2Q(K,\'90\')},toLeft:q(){v o.2Q(0,K)},toRight:q(){v o.2Q(\'90\',K)},6N:q(a){B b=o.J.2G(o.F.3K);B c=$(a).2G(o.F.3K);v o.2Q(c.x-b.x,c.y-b.y)},3I:q(){o.J.2Q(o.1b[0],o.1b[1])}});Fx.Slide=Fx.2j.N({F:{3L:\'7a\'},17:q(a,b){o.J=$(a);o.2v=G L(\'4b\',{\'6n\':$N(o.J.8b(\'2t\'),{\'91\':\'3y\'})}).5n(o.J).7T(o.J);o.J.1o(\'2t\',0);o.2c(b);o.1b=[];o.1m(o.F);o.4c=14;o.1h(\'1r\',q(){o.4c=(o.1b[0]===0)});C(O.4p)o.1h(\'1r\',q(){C(o.4c)o.J.23().1A(o.2v)})},3H:q(){I(B a=0;a<2;a++)o.1b[a]=o.3J(o.21[a],o.to[a])},7a:q(){o.2t=\'2t-1n\';o.4P=\'26\';o.1u=o.J.2R},7b:q(){o.2t=\'2t-1D\';o.4P=\'1R\';o.1u=o.J.3e},92:q(a){o[a||o.F.3L]();v o.1f([o.J.1F(o.2t).2q(),o.2v.1F(o.4P).2q()],[0,o.1u])},93:q(a){o[a||o.F.3L]();v o.1f([o.J.1F(o.2t).2q(),o.2v.1F(o.4P).2q()],[-o.1u,0])},4N:q(a){o[a||o.F.3L]();o.4c=K;v o.1E([-o.1u,0])},3i:q(a){o[a||o.F.3L]();o.4c=14;v o.1E([0,o.1u])},toggle:q(a){C(o.2v.2R==0||o.2v.3e==0)v o.92(a);v o.93(a)},3I:q(){o.J.1o(o.2t,o.1b[0]+o.F.3h);o.2v.1o(o.4P,o.1b[1]+o.F.3h)}});Fx.7c=q(b,c){c=c||[];C($R(c)!=\'3p\')c=[c];v $N(b,{easeIn:q(a){v b(a,c)},easeOut:q(a){v 1-b(1-a,c)},easeInOut:q(a){v(a<=0.5)?b(2*a,c)/2:(2-b(2*(1-a),c))/2}})};Fx.2I=G 2K({linear:q(a){v a}});Fx.2I.N=q(a){I(B b Y a){Fx.2I[b]=G Fx.7c(a[b]);Fx.2I.7d(b)}};Fx.2I.7d=q(b){[\'In\',\'Out\',\'InOut\'].1e(q(a){Fx.2I[b.4v()+a]=Fx.2I[b][\'ease\'+a]})};Fx.2I.N({Pow:q(a,b){v 12.2N(a,b[0]||6)},Expo:q(a){v 12.2N(2,8*(a-1))},Circ:q(a){v 1-12.94(12.acos(a))},Sine:q(a){v 1-12.94((1-a)*12.PI/2)},Back:q(a,b){b=b[0]||1.618;v 12.2N(a,2)*((b+1)*a-b)},Bounce:q(a){B b;I(B c=0,d=1;1;c+=d,d/=2){C(a>=(7-4*c)/11){b=-12.2N((11-6*c-11*a)/4,2)+d*d;1i}}v b},Elastic:q(a,b){v 12.2N(2,10*--a)*12.8S(20*a*12.PI*(b[0]||1)/3)}});[\'Quad\',\'Cubic\',\'Quart\',\'Quint\'].1e(q(b,c){Fx.2I[b]=G Fx.7c(q(a){v 12.2N(a,[c+2])});Fx.2I.7d(b)});B 3j={};3j.2j=G U({F:{4Q:K,3h:\'px\',3f:U.1c,95:U.1c,1r:U.1c,96:U.1c,7e:U.1c,1y:K,2U:{x:\'1D\',y:\'1n\'},3M:K,5H:6},17:q(a,b){o.2c(b);o.J=$(a);o.4Q=$(o.F.4Q)||o.J;o.2F={\'1b\':{},\'7f\':{}};o.1H={\'1f\':{},\'1b\':{}};o.1j={\'1f\':o.1f.2u(o),\'3k\':o.3k.2u(o),\'2V\':o.2V.2u(o),\'1p\':o.1p.1g(o)};o.5I();C(o.F.17)o.F.17.1s(o)},5I:q(){o.4Q.1h(\'47\',o.1j.1f);v o},97:q(){o.4Q.3t(\'47\',o.1j.1f);v o},1f:q(a){o.18(\'95\',o.J);o.2F.1f=a.1w;B b=o.F.1y;o.1y={\'x\':[],\'y\':[]};I(B c Y o.F.2U){C(!o.F.2U[c])5i;o.1H.1b[c]=o.J.1F(o.F.2U[c]).2q();o.2F.7f[c]=a.1w[c]-o.1H.1b[c];C(b&&b[c]){I(B d=0;d<2;d++){C($1P(b[c][d]))o.1y[c][d]=($R(b[c][d])==\'q\')?b[c][d]():b[c][d]}}}C($R(o.F.3M)==\'3q\')o.F.3M={\'x\':o.F.3M,\'y\':o.F.3M};M.1Z(\'28\',o.1j.3k);M.1Z(\'4J\',o.1j.1p);o.18(\'3f\',o.J);a.1p()},3k:q(a){B b=12.1L(12.sqrt(12.2N(a.1w.x-o.2F.1f.x,2)+12.2N(a.1w.y-o.2F.1f.y,2)));C(b>o.F.5H){M.2E(\'28\',o.1j.3k);M.1Z(\'28\',o.1j.2V);o.2V(a);o.18(\'96\',o.J)}a.1p()},2V:q(a){o.4R=K;o.2F.1b=a.1w;I(B b Y o.F.2U){C(!o.F.2U[b])5i;o.1H.1b[b]=o.2F.1b[b]-o.2F.7f[b];C(o.1y[b]){C($1P(o.1y[b][1])&&(o.1H.1b[b]>o.1y[b][1])){o.1H.1b[b]=o.1y[b][1];o.4R=14}T C($1P(o.1y[b][0])&&(o.1H.1b[b]<o.1y[b][0])){o.1H.1b[b]=o.1y[b][0];o.4R=14}}C(o.F.3M[b])o.1H.1b[b]-=(o.1H.1b[b]%o.F.3M[b]);o.J.1o(o.F.2U[b],o.1H.1b[b]+o.F.3h)}o.18(\'7e\',o.J);a.1p()},1p:q(){M.2E(\'28\',o.1j.3k);M.2E(\'28\',o.1j.2V);M.2E(\'4J\',o.1j.1p);o.18(\'1r\',o.J)}});3j.2j.2x(G 1J,G 34);L.N({makeResizable:q(a){v G 3j.2j(o,$1B({2U:{x:\'1R\',y:\'26\'}},a))}});3j.98=3j.2j.N({F:{5J:[],1S:K,3K:[]},17:q(a,b){o.2c(b);o.J=$(a);o.5J=$$(o.F.5J);o.1S=$(o.F.1S);o.1I={\'J\':o.J.1F(\'1I\'),\'1S\':K};C(o.1S)o.1I.1S=o.1S.1F(\'1I\');C(![\'5K\',\'3l\',\'4d\'].1a(o.1I.J))o.1I.J=\'3l\';B c=o.J.1F(\'1n\').2q();B d=o.J.1F(\'1D\').2q();C(o.1I.J==\'3l\'&&![\'5K\',\'3l\',\'4d\'].1a(o.1I.1S)){c=$1P(c)?c:o.J.8K(o.F.3K);d=$1P(d)?d:o.J.8L(o.F.3K)}T{c=$1P(c)?c:0;d=$1P(d)?d:0}o.J.3w({\'1n\':c,\'1D\':d,\'1I\':o.1I.J});o.1m(o.J)},1f:q(a){o.3N=1d;C(o.1S){B b=o.1S.3F();B c=o.J.3F();C(o.1I.J==\'3l\'&&![\'5K\',\'3l\',\'4d\'].1a(o.1I.1S)){o.F.1y={\'x\':[b.1D,b.3A-c.1R],\'y\':[b.1n,b.2O-c.26]}}T{o.F.1y={\'y\':[0,b.26-c.26],\'x\':[0,b.1R-c.1R]}}}o.1m(a)},2V:q(a){o.1m(a);B b=o.4R?K:o.5J.3u(o.99,o).6h();C(o.3N!=b){C(o.3N)o.3N.18(\'leave\',[o.J,o]);o.3N=b?b.18(\'over\',[o.J,o]):1d}v o},99:q(a){a=a.3F(o.F.3K);B b=o.2F.1b;v(b.x>a.1D&&b.x<a.3A&&b.y<a.2O&&b.y>a.1n)},1p:q(){C(o.3N&&!o.4R)o.3N.18(\'drop\',[o.J,o]);T o.J.18(\'emptydrop\',o);o.1m();v o}});L.N({makeDraggable:q(a){v G 3j.98(o,a)}});B 5L=G U({F:{2i:\'4e\',9a:14,9b:U.1c,4f:U.1c,5M:U.1c,9c:14,7g:\'utf-8\',9d:K,3O:{}},7h:q(){o.1T=(O.5a)?G 5a():(O.ie?G 7G(\'Microsoft.XMLHTTP\'):K);v o},17:q(a){o.7h().2c(a);o.F.4S=o.F.4S||o.4S;o.3O={};C(o.F.9c&&o.F.2i==\'4e\'){B b=(o.F.7g)?\'; charset=\'+o.F.7g:\'\';o.4g(\'9e-R\',\'9f/x-8G-form-urlencoded\'+b)}C(o.F.17)o.F.17.1s(o)},9g:q(){C(o.1T.49!=4||!o.4h)v;o.4h=K;B a=0;3X{a=o.1T.status}3Y(e){};C(o.F.4S.1s(o,a))o.4f();T o.5M();o.1T.5F=U.1c},4S:q(a){v((a>=200)&&(a<300))},4f:q(){o.2W={\'1G\':o.1T.responseText,\'4T\':o.1T.responseXML};o.18(\'4f\',[o.2W.1G,o.2W.4T]);o.6d()},5M:q(){o.18(\'5M\',o.1T)},4g:q(a,b){o.3O[a]=b;v o},4U:q(a,b){C(o.F.9d)o.9h();T C(o.4h)v o;o.4h=14;C(b&&o.F.2i==\'4i\'){a=a+(a.1a(\'?\')?\'&\':\'?\')+b;b=1d}o.1T.4c(o.F.2i.6k(),a,o.F.9a);o.1T.5F=o.9g.1g(o);C((o.F.2i==\'4e\')&&o.1T.overrideMimeType)o.4g(\'Connection\',\'close\');$N(o.3O,o.F.3O);I(B c Y o.3O)3X{o.1T.setRequestHeader(c,o.3O[c])}3Y(e){};o.18(\'9b\');o.1T.4U($3U(b,1d));v o},9h:q(){C(!o.4h)v o;o.4h=K;o.1T.6S();o.1T.5F=U.1c;o.7h();o.18(\'77\');v o}});5L.2x(G 6c,G 1J,G 34);B 9i=5L.N({F:{4V:1d,7i:1d,1r:U.1c,5N:K,7j:K},17:q(a,b){o.1h(\'4f\',o.1r);o.2c(b);o.F.4V=o.F.4V||o.F.postBody;C(![\'4e\',\'4i\'].1a(o.F.2i)){o._0=\'_0=\'+o.F.2i;o.F.2i=\'4e\'}o.1m();o.4g(\'X-Requested-With\',\'5a\');o.4g(\'Accept\',\'1G/72, 1G/html, 9f/4T, 1G/4T, */*\');o.5O=a},1r:q(){C(o.F.7i)$(o.F.7i).1c().4F(o.2W.1G);C(o.F.5N||o.F.7j)o.5N();o.18(\'1r\',[o.2W.1G,o.2W.4T],20)},9j:q(a){a=a||o.F.4V;1x($R(a)){P\'J\':a=$(a).4K();1i;P\'2b\':a=6b.4K(a)}C(o._0)a=(a)?[o._0,a].1C(\'&\'):o._0;v o.4U(o.5O,a)},5N:q(){B a,b;C(o.F.7j||(/(ecma|java)2D/).2m(o.9k(\'9e-R\')))b=o.2W.1G;T{b=[];B c=/<2D[^>]*>([\\s\\S]*?)<\\/2D>/gi;5c((a=c.exec(o.2W.1G)))b.19(a[1]);b=b.1C(\'\\n\')}C(b)(O.9l)?O.9l(b):O.7P(b,0)},9k:q(a){3X{v o.1T.getResponseHeader(a)}3Y(e){};v 1d}});6b.4K=q(a){B b=[];I(B c Y a)b.19(5A(c)+\'=\'+5A(a[c]));v b.1C(\'&\')};L.N({4U:q(a){v G 9i(o.4E(\'action\'),$1B({4V:o.4K()},a,{2i:\'4e\'})).9j()}});B 2X=G 2K({F:{5P:K,5Q:K,3g:K,5R:K},1E:q(a,b,c){c=$1B(o.F,c);b=5A(b);C(c.5P)b+=\'; 5P=\'+c.5P;C(c.5Q)b+=\'; 5Q=\'+c.5Q;C(c.3g){B d=G 7E();d.setTime(d.7F()+c.3g*24*60*60*8V);b+=\'; expires=\'+d.toGMTString()}C(c.5R)b+=\'; 5R\';M.9m=a+\'=\'+b;v $N(c,{\'3D\':a,\'1H\':b})},4i:q(a){B b=M.9m.4y(\'(?:^|;)\\\\s*\'+a.7O()+\'=([^;]*)\');v b?decodeURIComponent(b[1]):K},23:q(a,b){C($R(a)==\'2b\')o.1E(a.3D,\'\',$1B(a,{3g:-1}));T o.1E(a,\'\',$1B(b,{3g:-1}))}});B 2Y={3v:q(a){1x($R(a)){P\'2L\':v\'"\'+a.2A(/(["\\\\])/g,\'\\\\$1\')+\'"\';P\'3p\':v\'[\'+a.1U(2Y.3v).1C(\',\')+\']\';P\'2b\':B b=[];I(B c Y a)b.19(2Y.3v(c)+\':\'+2Y.3v(a[c]));v\'{\'+b.1C(\',\')+\'}\';P\'3q\':C(isFinite(a))1i;P K:v\'1d\'}v 58(a)},4o:q(a,b){v(($R(a)!=\'2L\')||(b&&!a.2m(/^("(\\\\.|[^"\\\\\\n\\r])*?"|[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t])+?$/)))?1d:eval(\'(\'+a+\')\')}};2Y.Remote=5L.N({17:q(a,b){o.5O=a;o.1h(\'4f\',o.1r);o.1m(b);o.4g(\'X-Request\',\'JSON\')},4U:q(a){v o.1m(o.5O,\'json=\'+2Y.3v(a))},1r:q(){o.18(\'1r\',[2Y.4o(o.2W.1G,o.F.5R)])}});B 9n=G 2K({72:q(a,b){b=$1B({\'4X\':U.1c},b);B c=G L(\'2D\',{\'4G\':a}).5k({\'3b\':b.4X,\'readystatechange\':q(){C(o.49==\'6Z\')o.18(\'3b\')}});3Z b.4X;v c.5l(b).1A(M.59)},1l:q(a,b){v G L(\'link\',$1B({\'9o\':\'stylesheet\',\'media\':\'screen\',\'R\':\'1G/1l\',\'3C\':a},b)).1A(M.59)},9p:q(c,d){d=$1B({\'4X\':U.1c,\'onabort\':U.1c,\'onerror\':U.1c},d);B f=G Image();f.4G=c;B g=G L(\'img\',{\'4G\':c});[\'3b\',\'6S\',\'8y\'].1e(q(a){B b=d[\'on\'+a];3Z d[\'on\'+a];g.1h(a,q(){o.3t(a,W.67);b.1s(o)})});C(f.1R&&f.26)g.18(\'3b\',g,1);v g.5l(d)},images:q(c,d){d=$1B({1r:U.1c,9q:U.1c},d);C(!c.19)c=[c];B f=[];B g=0;c.1e(q(a){B b=G 9n.9p(a,{\'4X\':q(){d.9q.1s(o,g);g++;C(g==c.Q)d.1r()}});f.19(b)});v G 1z(f)}});B 2Z=G U({Q:0,17:q(a){o.1N=a||{};o.4Y()},4i:q(a){v(o.5S(a))?o.1N[a]:1d},5S:q(a){v(a Y o.1N)},1E:q(a,b){C(!o.5S(a))o.Q++;o.1N[a]=b;v o},4Y:q(){o.Q=0;I(B a Y o.1N)o.Q++;v o},23:q(a){C(o.5S(a)){3Z o.1N[a];o.Q--}v o},1e:q(a,b){$1e(o.1N,a,b)},N:q(a){$N(o.1N,a);v o.4Y()},1B:q(){o.1N=$1B.33(1d,[o.1N].N(W));v o.4Y()},1c:q(){o.1N={};o.Q=0;v o},1W:q(){B a=[];I(B b Y o.1N)a.19(b);v a},42:q(){B a=[];I(B b Y o.1N)a.19(o.1N[b]);v a}});q $H(a){v G 2Z(a)};2Z.2X=2Z.N({17:q(a,b){o.2B=a;o.F=$N({\'9r\':14},b||{});o.3b()},9s:q(){C(o.Q==0){2X.23(o.2B,o.F);v 14}B a=2Y.3v(o.1N);C(a.Q>4096)v K;2X.1E(o.2B,a,o.F);v 14},3b:q(){o.1N=2Y.4o(2X.4i(o.2B),14)||{};o.4Y()}});2Z.2X.1Y={};[\'N\',\'1E\',\'1B\',\'1c\',\'23\'].1e(q(a){2Z.2X.1Y[a]=q(){2Z.1k[a].33(o,W);C(o.F.9r)o.9s();v o}});2Z.2X.2x(2Z.2X.1Y);B 25=G U({17:q(a,b){b=b||(a.19?\'2M\':\'9t\');B c,d;1x(b){P\'2M\':c=a;d=c.7k();1i;P\'2l\':c=a.9u();d=a;1i;4A:c=a.4z(14);d=c.7k()}c.2l=d;c.9t=c.4x();v $N(c,25.1k)},mix:q(){B c=$A(W);B d=($R(c[c.Q-1])==\'3q\')?c.pop():50;B f=o.6f();c.1e(q(a){a=G 25(a);I(B b=0;b<3;b++)f[b]=12.1L((f[b]/2r*(2r-d))+(a[b]/2r*d))});v G 25(f,\'2M\')},invert:q(){v G 25(o.1U(q(a){v 4j-a}))},setHue:q(a){v G 25([a,o.2l[1],o.2l[2]],\'2l\')},setSaturation:q(a){v G 25([o.2l[0],a,o.2l[2]],\'2l\')},setBrightness:q(a){v G 25([o.2l[0],o.2l[1],a],\'2l\')}});q $RGB(a,b,c){v G 25([a,b,c],\'2M\')};q $HSB(a,b,c){v G 25([a,b,c],\'2l\')};1O.N({7k:q(){B a=o[0],b=o[1],c=o[2];B d,f,g;B h=12.2z(a,b,c),j=12.6g(a,b,c);B i=h-j;g=h/4j;f=(h!=0)?i/h:0;C(f==0){d=0}T{B k=(h-a)/i;B l=(h-b)/i;B m=(h-c)/i;C(a==h)d=m-l;T C(b==h)d=2+k-m;T d=4+l-k;d/=6;C(d<0)d++}v[12.1L(d*9v),12.1L(f*2r),12.1L(g*2r)]},9u:q(){B a=12.1L(o[2]/2r*4j);C(o[1]==0){v[a,a,a]}T{B b=o[0]%9v;B c=b%60;B d=12.1L((o[2]*(2r-o[1]))/10000*4j);B f=12.1L((o[2]*(9w-o[1]*c))/9x*4j);B g=12.1L((o[2]*(9w-o[1]*(60-c)))/9x*4j);1x(12.7D(b/60)){P 0:v[a,g,d];P 1:v[f,a,d];P 2:v[d,a,g];P 3:v[d,f,a];P 4:v[g,d,a];P 5:v[a,d,f]}}v K}});B 9y=G U({F:{4Z:20,7l:1,5T:q(a,b){o.J.2Q(a,b)}},17:q(a,b){o.2c(b);o.J=$(a);o.7m=([O,M].1a(a))?$(M.3G):o.J},1f:q(){o.7n=o.9z.2u(o);o.7m.1Z(\'28\',o.7n)},1p:q(){o.7m.2E(\'28\',o.7n);o.1q=$3W(o.1q)},9z:q(a){o.1w=(o.J==O)?a.8r:a.1w;C(!o.1q)o.1q=o.2h.35(50,o)},2h:q(){B a=o.J.5B();B b=o.J.2G();B c={\'x\':0,\'y\':0};I(B d Y o.1w){C(o.1w[d]<(o.F.4Z+b[d])&&a.2h[d]!=0)c[d]=(o.1w[d]-o.F.4Z-b[d])*o.F.7l;T C(o.1w[d]+o.F.4Z>(a.3E[d]+b[d])&&a.2h[d]+a.3E[d]!=a.5C[d])c[d]=(o.1w[d]-a.3E[d]+o.F.4Z-b[d])*o.F.7l}C(c.y||c.x)o.18(\'5T\',[a.2h.x+c.x,a.2h.y+c.y])}});9y.2x(G 1J,G 34);B 7o=G U({F:{5T:U.1c,1r:U.1c,7p:q(a){o.4k.1o(o.p,a)},3L:\'7b\',5U:2r,1u:0},17:q(a,b,c){o.J=$(a);o.4k=$(b);o.2c(c);o.7q=-1;o.7r=-1;o.29=-1;o.J.1h(\'47\',o.9A.2u(o));B d,f;1x(o.F.3L){P\'7b\':o.z=\'x\';o.p=\'1D\';d={\'x\':\'1D\',\'y\':K};f=\'3e\';1i;P\'7a\':o.z=\'y\';o.p=\'1n\';d={\'x\':K,\'y\':\'1n\'};f=\'2R\'}o.2z=o.J[f]-o.4k[f]+(o.F.1u*2);o.9B=o.4k[f]/2;o.9C=o.J[\'4i\'+o.p.6l()].1g(o.J);o.4k.1o(\'1I\',\'5K\').1o(o.p,-o.F.1u);B g={};g[o.z]=[-o.F.1u,o.2z-o.F.1u];o.2V=G 3j.2j(o.4k,{1y:g,2U:d,5H:0,3f:q(){o.5V()}.1g(o),7e:q(){o.5V()}.1g(o),1r:q(){o.5V();o.2w()}.1g(o)});C(o.F.17)o.F.17.1s(o)},1E:q(a){o.29=a.1y(0,o.F.5U);o.5W();o.2w();o.18(\'7p\',o.9D(o.29));v o},9A:q(a){B b=a.1w[o.z]-o.9C()-o.9B;b=b.1y(-o.F.1u,o.2z-o.F.1u);o.29=o.7s(b);o.5W();o.2w();o.18(\'7p\',b)},5V:q(){o.29=o.7s(o.2V.1H.1b[o.z]);o.5W()},5W:q(){C(o.7q!=o.29){o.7q=o.29;o.18(\'5T\',o.29)}},2w:q(){C(o.7r!==o.29){o.7r=o.29;o.18(\'1r\',o.29+\'\')}},7s:q(a){v 12.1L((a+o.F.1u)/o.2z*o.F.5U)},9D:q(a){v o.2z*a/o.F.5U}});7o.2x(G 1J);7o.2x(G 34);B SmoothScroll=Fx.8Y.N({17:q(c){o.1m(O,c);o.51=(o.F.51)?$$(o.F.51):$$(M.51);B d=O.71.3C.4y(/^[^#]*/)[0]+\'#\';o.51.1e(q(a){C(a.3C.2y(d)!=0)v;B b=a.3C.5y(d.Q);C(b&&$(b))o.9E(a,b)},o);C(!O.4p)o.1h(\'1r\',q(){O.71.hash=o.9F})},9E:q(b,c){b.1h(\'5u\',q(a){o.9F=c;o.6N(c);a.1p()}.2u(o))}});B 9G=G U({F:{3P:K,3f:U.1c,1r:U.1c,3m:14,5H:3,9H:q(a,b){b.1o(\'1Q\',0.7);a.1o(\'1Q\',0.7)},9I:q(a,b){a.1o(\'1Q\',1);b.23();o.3a.23()}},17:q(a,b){o.2c(b);o.5X=$(a);o.1v=o.5X.6z();o.3P=(o.F.3P)?$$(o.F.3P):o.1v;o.1j={\'1f\':[],\'52\':o.52.2u(o)};I(B c=0,d=o.3P.Q;c<d;c++){o.1j.1f[c]=o.1f.2u(o,o.1v[c])}o.5I();C(o.F.17)o.F.17.1s(o);o.1j.48=o.48.2u(o);o.1j.2w=o.2w.1g(o)},5I:q(){o.3P.1e(q(a,b){a.1h(\'47\',o.1j.1f[b])},o)},97:q(){o.3P.1e(q(a,b){a.3t(\'47\',o.1j.1f[b])},o)},1f:q(a,b){o.3Q=b;o.7t=o.5X.3F();C(o.F.3m){B c=b.2G();o.1u=a.1w.y-c.y;o.3a=G L(\'4b\').1A(M.3G);o.3m=b.7V().1A(o.3a).3w({\'1I\':\'3l\',\'1D\':c.x,\'1n\':a.1w.y-o.1u});M.1Z(\'28\',o.1j.52);o.18(\'9H\',[b,o.3m])}M.1Z(\'28\',o.1j.48);M.1Z(\'4J\',o.1j.2w);o.18(\'3f\',b);a.1p()},52:q(a){B b=a.1w.y-o.1u;b=b.1y(o.7t.1n,o.7t.2O-o.3m.2R);o.3m.1o(\'1n\',b);a.1p()},48:q(a){B b=a.1w.y;o.2s=o.2s||b;B c=((o.2s-b)>0);B d=o.3Q.8c();B f=o.3Q.6p();C(d&&c&&b<d.3F().2O)o.3Q.6s(d);C(f&&!c&&b>f.3F().1n)o.3Q.5n(f);o.2s=b},serialize:q(b){v o.5X.6z().1U(b||q(a){v o.1v.2y(a)},o)},2w:q(){o.2s=1d;M.2E(\'28\',o.1j.48);M.2E(\'4J\',o.1j.2w);C(o.F.3m){M.2E(\'28\',o.1j.52);o.18(\'9I\',[o.3Q,o.3m])}o.18(\'1r\',o.3Q)}});9G.2x(G 1J,G 34);B 9J=G U({F:{9K:q(a){a.1o(\'3x\',\'6w\')},9L:q(a){a.1o(\'3x\',\'3y\')},7u:30,9M:2r,9N:2r,2d:\'tool\',53:{\'x\':16,\'y\':16},4d:K},17:q(a,b){o.2c(b);o.3n=G L(\'4b\',{\'3S\':o.F.2d+\'-tip\',\'6n\':{\'1I\':\'3l\',\'1n\':\'0\',\'1D\':\'0\',\'3x\':\'3y\'}}).1A(M.3G);o.2v=G L(\'4b\').1A(o.3n);$$(a).1e(o.9O,o);C(o.F.17)o.F.17.1s(o)},9O:q(b){b.$1t.3o=(b.3C&&b.3z()==\'a\')?b.3C.2A(\'8F://\',\'\'):(b.9o||K);C(b.4l){B c=b.4l.4C(\'::\');C(c.Q>1){b.$1t.3o=c[0].4w();b.$1t.54=c[1].4w()}T{b.$1t.54=b.4l}b.8f(\'4l\')}T{b.$1t.54=K}C(b.$1t.3o&&b.$1t.3o.Q>o.F.7u)b.$1t.3o=b.$1t.3o.5y(0,o.F.7u-1)+"&hellip;";b.1h(\'6Q\',q(a){o.1f(b);C(!o.F.4d)o.7v(a);T o.1I(b)}.1g(o));C(!o.F.4d)b.1h(\'28\',o.7v.2u(o));B d=o.2w.1g(o);b.1h(\'6R\',d);b.1h(\'3a\',d)},1f:q(a){o.2v.1c();C(a.$1t.3o){o.4l=G L(\'9P\').1A(G L(\'4b\',{\'3S\':o.F.2d+\'-4l\'}).1A(o.2v)).4F(a.$1t.3o)}C(a.$1t.54){o.1G=G L(\'9P\').1A(G L(\'4b\',{\'3S\':o.F.2d+\'-1G\'}).1A(o.2v)).4F(a.$1t.54)}$3W(o.1q);o.1q=o.3i.2o(o.F.9M,o)},2w:q(a){$3W(o.1q);o.1q=o.4N.2o(o.F.9N,o)},1I:q(a){B b=a.2G();o.3n.3w({\'1D\':b.x+o.F.53.x,\'1n\':b.y+o.F.53.y})},7v:q(a){B b={\'x\':O.73(),\'y\':O.74()};B c={\'x\':O.75(),\'y\':O.76()};B d={\'x\':o.3n.3e,\'y\':o.3n.2R};B f={\'x\':\'1D\',\'y\':\'1n\'};I(B g Y f){B h=a.1w[g]+o.F.53[g];C((h+d[g]-c[g])>b[g])h=a.1w[g]-o.F.53[g]-d[g];o.3n.1o(f[g],h)}},3i:q(){C(o.F.9Q)o.1q=o.4N.2o(o.F.9Q,o);o.18(\'9K\',[o.3n])},4N:q(){o.18(\'9L\',[o.3n])}});9J.2x(G 1J,G 34);B Group=G U({17:q(){o.5Y=$A(W);o.V={};o.4m={}},1h:q(c,d){o.4m[c]=o.4m[c]||{};o.V[c]=o.V[c]||[];C(o.V[c].1a(d))v K;T o.V[c].19(d);o.5Y.1e(q(a,b){a.1h(c,o.3k.1g(o,[c,a,b]))},o);v o},3k:q(c,d,f){o.4m[c][f]=14;B g=o.5Y.6e(q(a,b){v o.4m[c][b]||K},o);C(!g)v;o.4m[c]={};o.V[c].1e(q(a){a.1s(o,o.5Y,d)},o)}});B 7w=Fx.1z.N({F:{7x:U.1c,9R:U.1c,31:0,3i:K,26:14,1R:K,1Q:14,5Z:K,61:K,2S:K,62:K},17:q(){B d,f,g,h;$1e(W,q(a,b){1x($R(a)){P\'2b\':d=a;1i;P\'J\':h=$(a);1i;4A:B c=$$(a);C(!f)f=c;T g=c}});o.2J=f||[];o.1v=g||[];o.1S=$(h);o.2c(d);o.2s=-1;C(o.F.62)o.F.2S=14;C($1P(o.F.3i)){o.F.31=K;o.2s=o.F.3i}C(o.F.1f){o.F.31=K;o.F.3i=K}o.2T={};C(o.F.1Q)o.2T.1Q=\'9S\';C(o.F.1R)o.2T.1R=o.F.61?\'9T\':\'3e\';C(o.F.26)o.2T.26=o.F.5Z?\'9U\':\'4L\';I(B j=0,i=o.2J.Q;j<i;j++)o.9V(o.2J[j],o.1v[j]);o.1v.1e(q(a,b){C(o.F.3i===b){o.18(\'7x\',[o.2J[b],a])}T{I(B c Y o.2T)a.1o(c,0)}},o);o.1m(o.1v);C($1P(o.F.31))o.31(o.F.31)},9V:q(a,b,c){a=$(a);b=$(b);B d=o.2J.1a(a);B f=o.2J.Q;o.2J.4r(a);o.1v.4r(b);C(f&&(!d||c)){c=$3U(c,f-1);a.6s(o.2J[c]);b.5n(a)}T C(o.1S&&!d){a.1A(o.1S);b.1A(o.1S)}B g=o.2J.2y(a);a.1h(\'5u\',o.31.1g(o,g));C(o.F.26)b.3w({\'3B-1n\':0,\'2e-1n\':\'63\',\'3B-2O\':0,\'2e-2O\':\'63\'});C(o.F.1R)b.3w({\'3B-1D\':0,\'2e-1D\':\'63\',\'3B-3A\':0,\'2e-3A\':\'63\'});b.9S=1;C(o.F.61)b.9T=o.F.61;C(o.F.5Z)b.9U=o.F.5Z;b.1o(\'91\',\'3y\');C(!d){I(B h Y o.2T)b.1o(h,0)}v o},31:q(f){f=($R(f)==\'J\')?o.1v.2y(f):f;C((o.1q&&o.F.2S)||(f===o.2s&&!o.F.62))v o;o.2s=f;B g={};o.1v.1e(q(a,b){g[b]={};B c=(b!=f)||(o.F.62&&(a.2R>0));o.18(c?\'9R\':\'7x\',[o.2J[b],a]);I(B d Y o.2T)g[b][d]=c?0:a[o.2T[d]]},o);v o.1f(g)},showThisHideOpen:q(a){v o.31(a)}});Fx.7w=7w;',[],616,'||||||||||||||||||||||||this||function|||||return||||||var|if|||options|new||for|element|false|Element|document|extend|window|case|length|type||else|Class|events|arguments||in||||Math||true|||initialize|fireEvent|push|contains|now|empty|null|each|start|bind|addEvent|break|bound|prototype|css|parent|top|setStyle|stop|timer|onComplete|call|tmp|offset|elements|page|switch|limit|Elements|inject|merge|join|left|set|getStyle|text|value|position|Events|event|round|relatedTarget|obj|Array|chk|opacity|width|container|transport|map|Garbage|keys|style|Methods|addListener||from||remove||Color|height||mousemove|step||object|setOptions|className|border|Event|documentElement|scroll|method|Base|parse|hsb|test|getElementsByTagName|delay|create|toInt|100|previous|margin|bindWithEvent|wrapper|end|implement|indexOf|max|replace|name|parentNode|script|removeListener|mouse|getPosition|CSS|Transitions|togglers|Abstract|string|rgb|pow|bottom|shared|scrollTo|offsetHeight|wait|effects|modifiers|drag|response|Cookie|Json|Hash||display||apply|Options|periodical|Styles||||trash|load|select|getValue|offsetWidth|onStart|duration|unit|show|Drag|check|absolute|ghost|toolTip|myTitle|array|number|webkit|chains|removeEvent|filter|toString|setStyles|visibility|hidden|getTag|right|padding|href|key|size|getCoordinates|body|setNow|increase|compute|overflown|mode|grid|overed|headers|handles|active|htmlElement|class|native|pick|time|clear|try|catch|delete||collect|values||target|mousewheel||mousedown|move|readyState|getNow|div|open|fixed|post|onSuccess|setHeader|running|get|255|knob|title|checker|xpath|evaluate|webkit419|HTMLElement|include||parseInt|parseFloat|toLowerCase|trim|rgbToHex|match|hexToRgb|default|unique|split|walk|getProperty|setHTML|src|scrollLeft|scrollTop|mouseup|toQueryString|scrollHeight|property|hide|iNow|layout|handle|out|isSuccess|xml|send|data||onload|setLength|area||links|moveGhost|offsets|myText|defined|typeof|generic|String|head|XMLHttpRequest|forEach|while|splice|attempt|getElementById|getElementsBySelector|included|continue|Multi|addEvents|setProperties|setProperty|injectAfter|removeEvents|setMany|currentStyle|Properties|Listeners|code|click|stopPropagation|preventDefault|fix|substr|getElements|encodeURIComponent|getSize|scrollSize|scrollWidth|loaded|onreadystatechange|iCss|snap|attach|droppables|relative|XHR|onFailure|evalScripts|url|domain|path|secure|hasKey|onChange|steps|draggedKnob|checkStep|list|instances|fixedHeight||fixedWidth|alwaysHide|none|nodeType|RegExp|regexp|callee|Function|random|gecko|Object|Chain|callChain|every|copy|min|getLast|camelCase|charAt|toUpperCase|capitalize|clean|styles|insertBefore|getNext|appendChild|firstChild|injectBefore|concat|hasClass|cssText|visible|Style|getMany|getChildren|hasChild|innerText|disabled|checked|multiple|selected|addEventListener|unload|DOMMouseScroll|pageX|pageY|mouseover|mouseout|toElement|add|NativeEvents|mouseenter|mouseleave|abort||getParam|xhtml|getItems|Dom|domready|complete|ie_ready|location|javascript|getWidth|getHeight|getScrollLeft|getScrollTop|onCancel||iFrom|vertical|horizontal|Transition|compat|onDrag|pos|encoding|setTransport|update|evalResponse|rgbToHsb|velocity|mousemover|coord|Slider|onTick|previousChange|previousEnd|toStep|coordinates|maxTitleChars|locate|Accordion|onActive|undefined|nodeValue|constructor|slice|Number|floor|Date|getTime|ActiveXObject|ie6|childNodes|createElement|Merge|shift|toFloat|hyphenate|escapeRegExp|setTimeout|tagName|before|after|adopt|removeChild|clone|appendText|addClass|removeClass|setOpacity|zoom|0px|Width|borderShort|Top|Right|Bottom|Left|defaultView|fixStyle|color|getStyles|getPrevious|next|PropertiesIFlag|removeAttribute|innerHTML|styleSheet|textContent|removeEventListener|beforeunload|extended|wheelDelta|which|keydown|clientX|clientY|client|pageXOffset|pageYOffset|fixRelatedTarget|relatedTargetGecko|cloneEvents|change|error|filterByClass|filterById|filterByAttribute|getElement|resolver|normal|http|www|input|textarea|getFormElements|getTop|getLeft|opera|clientWidth|clientHeight|getScrollWidth|getScrollHeight|transition|cos|fps|delta|1000|Single|iTo|Scroll|wheelStops|full|overflow|slideIn|slideOut|sin|onBeforeStart|onSnap|detach|Move|checkAgainst|async|onRequest|urlEncoded|autoCancel|Content|application|onStateChange|cancel|Ajax|request|getHeader|execScript|cookie|Asset|rel|image|onProgress|autoSave|save|hex|hsbToRgb|360|6000|600000|Scroller|getCoords|clickedElement|half|getPos|toPosition|useLink|anchor|Sortables|onDragStart|onDragComplete|Tips|onShow|onHide|showDelay|hideDelay|build|span|timeout|onBackground|fullOpacity|fullWidth|fullHeight|addSection'.split('|'),0,{}))//\/////
//\  overLIB 4.21 - You may not remove or change this notice.
//\  Copyright Erik Bosrup 1998-2004. All rights reserved.
//\
//\  Contributors are listed on the homepage.
//\  This file might be old, always check for the latest version at:
//\  http://www.bosrup.com/web/overlib/
//\
//\  Please read the license agreement (available through the link above)
//\  before using overLIB. Direct any licensing questions to erik@bosrup.com.
//\
//\  Do not sell this as your own work or remove this copyright notice.
//\  For full details on copying or changing this script please read the
//\  license agreement at the link above. Please give credit on sites that
//\  use overLIB and submit changes of the script so other people can use
//\  them as well.
//\/////
//\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!
var olLoaded=0,pmStart=10000000,pmUpper=10001000,pmCount=pmStart+1,pmt='',pms=new Array(),olInfo=new Info('4.21',1),FREPLACE=0,FBEFORE=1,FAFTER=2,FALTERNATE=3,FCHAIN=4,olHideForm=0,olHautoFlag=0,olVautoFlag=0,hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();
registerCommands('donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass');
if(typeof ol_fgcolor=='undefined')var ol_fgcolor="#F1E8E6";if(typeof ol_bgcolor=='undefined')var ol_bgcolor="#C64934";if(typeof ol_textcolor=='undefined')var ol_textcolor="#000000";if(typeof ol_capcolor=='undefined')var ol_capcolor="#FFFFFF";if(typeof ol_closecolor=='undefined')var ol_closecolor="#9999FF";if(typeof ol_textfont=='undefined')var ol_textfont="Verdana,Arial,Helvetica";if(typeof ol_captionfont=='undefined')var ol_captionfont="Verdana,Arial,Helvetica";if(typeof ol_closefont=='undefined')var ol_closefont="Verdana,Arial,Helvetica";if(typeof ol_textsize=='undefined')var ol_textsize="1";if(typeof ol_captionsize=='undefined')var ol_captionsize="1";if(typeof ol_closesize=='undefined')var ol_closesize="1";if(typeof ol_width=='undefined')var ol_width="200";if(typeof ol_border=='undefined')var ol_border="1";if(typeof ol_cellpad=='undefined')var ol_cellpad=2;if(typeof ol_offsetx=='undefined')var ol_offsetx=10;if(typeof ol_offsety=='undefined')var ol_offsety=10;if(typeof ol_text=='undefined')var ol_text="Default Text";if(typeof ol_cap=='undefined')var ol_cap="";if(typeof ol_sticky=='undefined')var ol_sticky=0;if(typeof ol_background=='undefined')var ol_background="";if(typeof ol_close=='undefined')var ol_close="Close";if(typeof ol_hpos=='undefined')var ol_hpos=RIGHT;if(typeof ol_status=='undefined')var ol_status="";if(typeof ol_autostatus=='undefined')var ol_autostatus=0;if(typeof ol_height=='undefined')var ol_height=-1;if(typeof ol_snapx=='undefined')var ol_snapx=0;if(typeof ol_snapy=='undefined')var ol_snapy=0;if(typeof ol_fixx=='undefined')var ol_fixx=-1;if(typeof ol_fixy=='undefined')var ol_fixy=-1;if(typeof ol_relx=='undefined')var ol_relx=null;if(typeof ol_rely=='undefined')var ol_rely=null;if(typeof ol_fgbackground=='undefined')var ol_fgbackground="";if(typeof ol_bgbackground=='undefined')var ol_bgbackground="";if(typeof ol_padxl=='undefined')var ol_padxl=1;if(typeof ol_padxr=='undefined')var ol_padxr=1;if(typeof ol_padyt=='undefined')var ol_padyt=1;if(typeof ol_padyb=='undefined')var ol_padyb=1;if(typeof ol_fullhtml=='undefined')var ol_fullhtml=0;if(typeof ol_vpos=='undefined')var ol_vpos=BELOW;if(typeof ol_aboveheight=='undefined')var ol_aboveheight=0;if(typeof ol_capicon=='undefined')var ol_capicon="";if(typeof ol_frame=='undefined')var ol_frame=self;if(typeof ol_timeout=='undefined')var ol_timeout=0;if(typeof ol_function=='undefined')var ol_function=null;if(typeof ol_delay=='undefined')var ol_delay=0;if(typeof ol_hauto=='undefined')var ol_hauto=0;if(typeof ol_vauto=='undefined')var ol_vauto=0;if(typeof ol_closeclick=='undefined')var ol_closeclick=0;if(typeof ol_wrap=='undefined')var ol_wrap=0;if(typeof ol_followmouse=='undefined')var ol_followmouse=1;if(typeof ol_mouseoff=='undefined')var ol_mouseoff=0;if(typeof ol_closetitle=='undefined')var ol_closetitle='Close';if(typeof ol_compatmode=='undefined')var ol_compatmode=0;if(typeof ol_css=='undefined')var ol_css=CSSOFF;if(typeof ol_fgclass=='undefined')var ol_fgclass="";if(typeof ol_bgclass=='undefined')var ol_bgclass="";if(typeof ol_textfontclass=='undefined')var ol_textfontclass="";if(typeof ol_captionfontclass=='undefined')var ol_captionfontclass="";if(typeof ol_closefontclass=='undefined')var ol_closefontclass="";
if(typeof ol_texts=='undefined')var ol_texts=new Array("Text 0","Text 1");if(typeof ol_caps=='undefined')var ol_caps=new Array("Caption 0","Caption 1");
var o3_text="",o3_cap="",o3_sticky=0,o3_background="",o3_close="Close",o3_hpos=RIGHT,o3_offsetx=2,o3_offsety=2,o3_fgcolor="",o3_bgcolor="",o3_textcolor="",o3_capcolor="",o3_closecolor="",o3_width=100,o3_border=1,o3_cellpad=2,o3_status="",o3_autostatus=0,o3_height=-1,o3_snapx=0,o3_snapy=0,o3_fixx=-1,o3_fixy=-1,o3_relx=null,o3_rely=null,o3_fgbackground="",o3_bgbackground="",o3_padxl=0,o3_padxr=0,o3_padyt=0,o3_padyb=0,o3_fullhtml=0,o3_vpos=BELOW,o3_aboveheight=0,o3_capicon="",o3_textfont="Verdana,Arial,Helvetica",o3_captionfont="Verdana,Arial,Helvetica",o3_closefont="Verdana,Arial,Helvetica",o3_textsize="1",o3_captionsize="1",o3_closesize="1",o3_frame=self,o3_timeout=0,o3_timerid=0,o3_allowmove=0,o3_function=null,o3_delay=0,o3_delayid=0,o3_hauto=0,o3_vauto=0,o3_closeclick=0,o3_wrap=0,o3_followmouse=1,o3_mouseoff=0,o3_closetitle='',o3_compatmode=0,o3_css=CSSOFF,o3_fgclass="",o3_bgclass="",o3_textfontclass="",o3_captionfontclass="",o3_closefontclass="";
var o3_x=0,o3_y=0,o3_showingsticky=0,o3_removecounter=0;
var over=null,fnRef,hoveringSwitch=false,olHideDelay;
var isMac=(navigator.userAgent.indexOf("Mac")!=-1),olOp=(navigator.userAgent.toLowerCase().indexOf('opera')>-1&&document.createTextNode),olNs4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4),olNs6=(document.getElementById)?true:false,olKq=(olNs6&&/konqueror/i.test(navigator.userAgent)),olIe4=(document.all)?true:false,olIe5=false,olIe55=false,docRoot='document.body';
if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight)location.reload();}}
if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6)olNs6=false;}}
if(olNs6)olIe4=false;}
if(document.compatMode&&document.compatMode=='CSS1Compat'){docRoot=((olIe4&&!olOp)?'document.documentElement':docRoot);}
if(window.addEventListener)window.addEventListener("load",OLonLoad_handler,false);else if(window.attachEvent)window.attachEvent("onload",OLonLoad_handler);
var capExtent;
function overlib(){if(!olLoaded||isExclusive(overlib.arguments))return true;if(olCheckMouseCapture)olMouseCapture();if(over){over=(typeof over.id!='string')?o3_frame.document.all['overDiv']:over;cClick();}
olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;
setRunTimeVariables();
fnRef='';
o3_frame=ol_frame;
if(!(over=createDivContainer()))return false;
parseTokens('o3_',overlib.arguments);if(!postParseChecks())return false;
if(o3_delay==0){return runHook("olMain",FREPLACE);}else{o3_delayid=setTimeout("runHook('olMain',FREPLACE)",o3_delay);return false;}}
function nd(time){if(olLoaded&&!isExclusive()){hideDelay(time);
if(o3_removecounter>=1){o3_showingsticky=0 };
if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0)runHook("hideObject",FREPLACE,over);}else{o3_removecounter++;}}
return true;}
function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0;}
return false;}
function overlib_pagedefaults(){parseTokens('ol_',overlib_pagedefaults.arguments);}
function olMain(){var layerhtml,styleType;runHook("olMain",FBEFORE);
if(o3_background!=""||o3_fullhtml){
layerhtml=runHook('ol_content_background',FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml);}else{
styleType=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");
if(o3_fgbackground!="")o3_fgbackground="background=\""+o3_fgbackground+"\"";if(o3_bgbackground!="")o3_bgbackground=(styleType?"background=\""+o3_bgbackground+"\"":o3_bgbackground);
if(o3_fgcolor!="")o3_fgcolor=(styleType?"bgcolor=\""+o3_fgcolor+"\"":o3_fgcolor);if(o3_bgcolor!="")o3_bgcolor=(styleType?"bgcolor=\""+o3_bgcolor+"\"":o3_bgcolor);
if(o3_height>0)o3_height=(styleType?"height=\""+o3_height+"\"":o3_height);else o3_height="";
if(o3_cap==""){
layerhtml=runHook('ol_content_simple',FALTERNATE,o3_css,o3_text);}else{
if(o3_sticky){
layerhtml=runHook('ol_content_caption',FALTERNATE,o3_css,o3_text,o3_cap,o3_close);}else{
layerhtml=runHook('ol_content_caption',FALTERNATE,o3_css,o3_text,o3_cap,"");}}}
if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}
o3_showingsticky=1;o3_removecounter=0;}
if(!runHook("createPopup",FREPLACE,layerhtml))return false;
if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1)o3_status=o3_cap;}
o3_allowmove=0;
if(o3_timeout>0){if(o3_timerid>0)clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",o3_timeout);}
runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);
return(olOp&&event&&event.type=='mouseover'&&!o3_status)?'':(o3_status!='');}
function ol_content_simple(text){var cpIsMultiple=/,/.test(o3_cellpad);var txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+' '+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':'')+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+' '+o3_fgbackground+' '+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':'>'))+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'</td></tr></table></td></tr></table>';
set_background("");return txt;}
function ol_content_caption(text,title,close){var nameId,txt,cpIsMultiple=/,/.test(o3_cellpad);var closing,closeevent;
closing="";closeevent="onmouseover";if(o3_closeclick==1)closeevent=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick";if(o3_capicon!=""){nameId=' hspace=\"5\"'+' align=\"middle\" alt=\"\"';if(typeof o3_dragimg!='undefined'&&o3_dragimg)nameId=' hspace=\"5\"'+' name=\"'+o3_dragimg+'\" id=\"'+o3_dragimg+'\" align=\"middle\" alt=\"Drag Enabled\" title=\"Drag Enabled\"';o3_capicon='<img src=\"'+o3_capicon+'\"'+nameId+' />';}
if(close!="")
closing='<td '+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':' ')+closeevent+'="return '+fnRef+'cClick();">'+(o3_closefontclass?'':wrapStr(0,o3_closesize,'close'))+close+(o3_closefontclass?'':wrapStr(1,o3_closesize,'close'))+'</a></td>';txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+' '+o3_bgbackground+' '+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':'>')+(o3_captionfontclass?'':'<b>'+wrapStr(0,o3_captionsize,'caption'))+o3_capicon+title+(o3_captionfontclass?'':wrapStr(1,o3_captionsize)+'</b>')+'</td>'+closing+'</tr></table><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':'')+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+' '+o3_fgbackground+' '+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">' :((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':'>'))+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'</td></tr></table></td></tr></table>';
set_background("");return txt;}
function ol_content_background(text,picture,hasfullhtml){if(hasfullhtml){txt=text;}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:'')+'">'+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>';}
set_background(picture);return txt;}
function set_background(pic){if(pic==""){if(olNs4){over.background.src=null;}else if(over.style){over.style.backgroundImage="none";}
}else{if(olNs4){over.background.src=pic;}else if(over.style){over.style.width=o3_width+'px';over.style.backgroundImage="url("+pic+")";}}}
var olShowId=-1;
function disp(statustext){runHook("disp",FBEFORE);
if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject',FREPLACE,over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1;}
runHook("disp",FAFTER);
if(statustext!="")self.status=statustext;}
function createPopup(lyrContent){runHook("createPopup",FBEFORE);
if(o3_wrap){var wd,ww,theObj=(olNs4?over:over.style);theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?'px':0);layerWrite(lyrContent);wd=(olNs4?over.clip.width:over.offsetWidth);if(wd>(ww=windowWidth())){lyrContent=lyrContent.replace(/\&nbsp;/g,' ');o3_width=ww;o3_wrap=0;}}
layerWrite(lyrContent);
if(o3_wrap)o3_width=(olNs4?over.clip.width:over.offsetWidth);
runHook("createPopup",FAFTER,lyrContent);
return true;}
function placeLayer(){var placeX,placeY,widthFix=0;
if(o3_frame.innerWidth)widthFix=18;iwidth=windowWidth();
winoffset=(olIe4)?eval('o3_frame.'+docRoot+'.scrollLeft'):o3_frame.pageXOffset;
placeX=runHook('horizontalPlacement',FCHAIN,iwidth,winoffset,widthFix);
if(o3_frame.innerHeight){iheight=o3_frame.innerHeight;}else if(eval('o3_frame.'+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval('o3_frame.'+docRoot+'.clientHeight')){iheight=eval('o3_frame.'+docRoot+'.clientHeight');}
scrolloffset=(olIe4)?eval('o3_frame.'+docRoot+'.scrollTop'):o3_frame.pageYOffset;placeY=runHook('verticalPlacement',FCHAIN,iheight,scrolloffset);
repositionTo(over,placeX,placeY);}
function olMouseMove(e){var e=(e)?e:event;
if(e.pageX){o3_x=e.pageX;o3_y=e.pageY;}else if(e.clientX){o3_x=eval('e.clientX+o3_frame.'+docRoot+'.scrollLeft');o3_y=eval('e.clientY+o3_frame.'+docRoot+'.scrollTop');}
if(o3_allowmove==1)runHook("placeLayer",FREPLACE);
if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch;}}
function no_overlib(){return ver3fix;}
function olMouseCapture(){capExtent=document;var fN,str='',l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;
wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv)capExtent=window;f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+'(e);';}else if(fN[1]=='anonymous'||fN[1]=='olMouseMove'||(wMv&&fN[1]=='onmousemove')){if(!olOp&&wMv){l=f.indexOf('{')+1;k=f.lastIndexOf('}');sS=f.substring(l,k);if((l=sS.indexOf('('))!=-1){sS=sS.substring(0,l).replace(/^\s+/,'').replace(/\s+$/,'');if(eval("typeof "+sS+"=='undefined'"))window.onmousemove=null;else str=sS+'(e);';}}
if(!str){olCheckMouseCapture=false;return;}
}else{if(fN[1])str=fN[1]+'(e);';else{l=f.indexOf('{')+1;k=f.lastIndexOf('}');str=f.substring(l,k)+'\n';}}
str+='olMouseMove(e);';mseHandler=new Function('e',str);}
capExtent.onmousemove=mseHandler;if(olNs4)capExtent.captureEvents(Event.MOUSEMOVE);}
function parseTokens(pf,ar){
var v,i,mode=-1,par=(pf!='ol_'),fnMark=(par&&!ar.length?1:0);
for(i=0;i<ar.length;i++){if(mode<0){
if(typeof ar[i]=='number'&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--;}else{switch(pf){case 'ol_':
ol_text=ar[i].toString();break;default:
o3_text=ar[i].toString();}}
mode=0;}else{
if(ar[i]>=pmCount||ar[i]==DONOTHING){continue;}
if(ar[i]==INARRAY){fnMark=0;eval(pf+'text=ol_texts['+ar[++i]+'].toString()');continue;}
if(ar[i]==CAPARRAY){eval(pf+'cap=ol_caps['+ar[++i]+'].toString()');continue;}
if(ar[i]==STICKY){if(pf!='ol_')eval(pf+'sticky=1');continue;}
if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue;}
if(ar[i]==NOCLOSE){if(pf!='ol_')opt_NOCLOSE();continue;}
if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+'hpos='+ar[i]);if(pf!='ol_')olHautoFlag=1;continue;}
if(ar[i]==OFFSETX){eval(pf+'offsetx='+ar[++i]);continue;}
if(ar[i]==OFFSETY){eval(pf+'offsety='+ar[++i]);continue;}
if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue;}
if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue;}
if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue;}
if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue;}
if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue;}
if(ar[i]==WIDTH){eval(pf+'width='+ar[++i]);continue;}
if(ar[i]==BORDER){eval(pf+'border='+ar[++i]);continue;}
if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+'cellpad'));continue;}
if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==AUTOSTATUS){eval(pf+'autostatus=('+pf+'autostatus==1)?0:1');continue;}
if(ar[i]==AUTOSTATUSCAP){eval(pf+'autostatus=('+pf+'autostatus==2)?0:2');continue;}
if(ar[i]==HEIGHT){eval(pf+'height='+pf+'aboveheight='+ar[++i]);continue;}
if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==SNAPX){eval(pf+'snapx='+ar[++i]);continue;}
if(ar[i]==SNAPY){eval(pf+'snapy='+ar[++i]);continue;}
if(ar[i]==FIXX){eval(pf+'fixx='+ar[++i]);continue;}
if(ar[i]==FIXY){eval(pf+'fixy='+ar[++i]);continue;}
if(ar[i]==RELX){eval(pf+'relx='+ar[++i]);continue;}
if(ar[i]==RELY){eval(pf+'rely='+ar[++i]);continue;}
if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue;}
if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue;}
if(ar[i]==PADX){eval(pf+'padxl='+ar[++i]);eval(pf+'padxr='+ar[++i]);continue;}
if(ar[i]==PADY){eval(pf+'padyt='+ar[++i]);eval(pf+'padyb='+ar[++i]);continue;}
if(ar[i]==FULLHTML){if(pf!='ol_')eval(pf+'fullhtml=1');continue;}
if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+'vpos='+ar[i]);if(pf!='ol_')olVautoFlag=1;continue;}
if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue;}
if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue;}
if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue;}
if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue;}
if(ar[i]==TIMEOUT){eval(pf+'timeout='+ar[++i]);continue;}
if(ar[i]==FUNCTION){if(pf=='ol_'){if(typeof ar[i+1]!='number'){v=ar[++i];ol_function=(typeof v=='function'?v:null);}}else{fnMark=0;v=null;if(typeof ar[i+1]!='number')v=ar[++i]; opt_FUNCTION(v);} continue;}
if(ar[i]==DELAY){eval(pf+'delay='+ar[++i]);continue;}
if(ar[i]==HAUTO){eval(pf+'hauto=('+pf+'hauto==0)?1:0');continue;}
if(ar[i]==VAUTO){eval(pf+'vauto=('+pf+'vauto==0)?1:0');continue;}
if(ar[i]==CLOSECLICK){eval(pf+'closeclick=('+pf+'closeclick==0)?1:0');continue;}
if(ar[i]==WRAP){eval(pf+'wrap=('+pf+'wrap==0)?1:0');continue;}
if(ar[i]==FOLLOWMOUSE){eval(pf+'followmouse=('+pf+'followmouse==1)?0:1');continue;}
if(ar[i]==MOUSEOFF){eval(pf+'mouseoff=('+pf+'mouseoff==0)?1:0');v=ar[i+1];if(pf!='ol_'&&eval(pf+'mouseoff')&&typeof v=='number'&&(v<pmStart||v>pmUpper))olHideDelay=ar[++i];continue;}
if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+'css='+ar[i]);continue;}
if(ar[i]==COMPATMODE){eval(pf+'compatmode=('+pf+'compatmode==0)?1:0');continue;}
if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue;}
if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue;}
if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue;}
if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue;}
if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue;}
i=parseCmdLine(pf,i,ar);}}
if(fnMark&&o3_function)o3_text=o3_function();
if((pf=='o3_')&&o3_wrap){o3_width=0;
var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text))o3_text=o3_text.replace(/[ ]+/g,'&nbsp;');if(!tReg.test(o3_cap))o3_cap=o3_cap.replace(/[ ]+/g,'&nbsp;');}
if((pf=='o3_')&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame))o3_close=ol_close;if(o3_mouseoff&&(o3_frame==ol_frame))opt_NOCLOSE(' ');}}
function layerWrite(txt){txt+="\n";if(olNs4){var lyr=o3_frame.document.layers['overDiv'].document
lyr.write(txt)
lyr.close()
}else if(typeof over.innerHTML!='undefined'){if(olIe5&&isMac)over.innerHTML='';over.innerHTML=txt;}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(txt);
while(over.hasChildNodes()){over.removeChild(over.lastChild);}
over.appendChild(domfrag);}}
function showObject(obj){runHook("showObject",FBEFORE);
var theObj=(olNs4?obj:obj.style);theObj.visibility='visible';
runHook("showObject",FAFTER);}
function hideObject(obj){runHook("hideObject",FBEFORE);
var theObj=(olNs4?obj:obj.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0;}
theObj.visibility='hidden';theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?'px':0);
if(o3_timerid>0)clearTimeout(o3_timerid);if(o3_delayid>0)clearTimeout(o3_delayid);
o3_timerid=0;o3_delayid=0;self.status="";
if(obj.onmouseout||obj.onmouseover){if(olNs4)obj.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER);obj.onmouseout=obj.onmouseover=null;}
runHook("hideObject",FAFTER);}
function repositionTo(obj,xL,yL){var theObj=(olNs4?obj:obj.style);theObj.left=xL+(!olNs4?'px':0);theObj.top=yL+(!olNs4?'px':0);}
function cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var bottom=top+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);
if(o3_x<left||o3_x>right||o3_y<top||o3_y>bottom)return true;
return false;}
function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=='string'?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():'No Function'));
return 0;}
function opt_NOCLOSE(unused){if(!unused)o3_close="";
if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;} }
over.onmouseout=function(e){if(olHideDelay)hideDelay(olHideDelay);else cClick(e);}
}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;} }}
return 0;}
function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str='';
for(k=i;k<args.length;k++){if(typeof args[k]=='number'&&args[k]>pmStart)break;str+=args[k]+',';}
if(str)str=str.substring(0,--str.length);
k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(',')[0]:str;eval(parameter+'="'+pV+'"');
return k;}
function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g,' ');o3_cap=o3_cap.replace(/\&nbsp;/g,' ');}}
function escSglQuote(str){return str.toString().replace(/'/g,"\\'");}
function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;
if(!olLoaded)olLoaded=1;
if(window.removeEventListener&&e.eventPhase==3)window.removeEventListener("load",OLonLoad_handler,false);else if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute('onload');if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i]))continue;while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn))eval(fn);}}}}}}
function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=='close')?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:'1'):fontSizeStr;if(endWrap)return(hasDims&&!olNs4)?(isClose?'</span>':'</div>'):'</font>';else{fontStr='o3_'+whichString+'font';fontColor='o3_'+((whichString=='caption')? 'cap':whichString)+'color';return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+';color: '+eval(fontColor)+';font-size: '+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+';color: '+eval(fontColor)+';font-size: '+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?'7':fontSizeStr)+'">';}}
function quoteMultiNameFonts(theFont){var v,pM=theFont.split(',');for(var i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,'').replace(/\s+$/,'');if(/\s/.test(v)&&!/['"]/.test(v)){v="\'"+v+"\'";pM[i]=v;}}
return pM.join();}
function isExclusive(args){return false;}
function setCellPadStr(parameter){var Str='',j=0,ary=new Array(),top,bottom,left,right;
Str+='padding: ';ary=parameter.replace(/\s+/g,'').split(',');
switch(ary.length){case 2:
top=bottom=ary[j];left=right=ary[++j];break;case 3:
top=ary[j];left=right=ary[++j];bottom=ary[++j];break;case 4:
top=ary[j];right=ary[++j];bottom=ary[++j];left=ary[++j];break;}
Str+=((ary.length==1)?ary[0]+'px;':top+'px '+right+'px '+bottom+'px '+left+'px;');
return Str;}
function hideDelay(time){if(time&&!o3_delay){if(o3_timerid>0)clearTimeout(o3_timerid);
o3_timerid=setTimeout("cClick()",(o3_timeout=time));}}
function horizontalPlacement(browserWidth,horizontalScrollAmount,widthFix){var placeX,iwidth=browserWidth,winoffset=horizontalScrollAmount;var parsedWidth=parseInt(o3_width);
if(o3_fixx>-1||o3_relx!=null){
placeX=(o3_relx!=null?( o3_relx<0?winoffset+o3_relx+iwidth-parsedWidth-widthFix:winoffset+o3_relx):o3_fixx);}else{
if(o3_hauto==1){if((o3_x-winoffset)>(iwidth/2)){o3_hpos=LEFT;}else{o3_hpos=RIGHT;}}
if(o3_hpos==CENTER){placeX=o3_x+o3_offsetx-(parsedWidth/2);
if(placeX<winoffset)placeX=winoffset;}
if(o3_hpos==RIGHT){placeX=o3_x+o3_offsetx;
if((placeX+parsedWidth)>(winoffset+iwidth-widthFix)){placeX=iwidth+winoffset-parsedWidth-widthFix;if(placeX<0)placeX=0;}}
if(o3_hpos==LEFT){placeX=o3_x-o3_offsetx-parsedWidth;if(placeX<winoffset)placeX=winoffset;}
if(o3_snapx>1){var snapping=placeX % o3_snapx;
if(o3_hpos==LEFT){placeX=placeX-(o3_snapx+snapping);}else{
placeX=placeX+(o3_snapx-snapping);}
if(placeX<winoffset)placeX=winoffset;}}
return placeX;}
function verticalPlacement(browserHeight,verticalScrollAmount){var placeY,iheight=browserHeight,scrolloffset=verticalScrollAmount;var parsedHeight=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));
if(o3_fixy>-1||o3_rely!=null){
placeY=(o3_rely!=null?(o3_rely<0?scrolloffset+o3_rely+iheight-parsedHeight:scrolloffset+o3_rely):o3_fixy);}else{
if(o3_vauto==1){if((o3_y-scrolloffset)>(iheight/2)&&o3_vpos==BELOW&&(o3_y+parsedHeight+o3_offsety-(scrolloffset+iheight)>0)){o3_vpos=ABOVE;}else if(o3_vpos==ABOVE&&(o3_y-(parsedHeight+o3_offsety)-scrolloffset<0)){o3_vpos=BELOW;}}
if(o3_vpos==ABOVE){if(o3_aboveheight==0)o3_aboveheight=parsedHeight;
placeY=o3_y-(o3_aboveheight+o3_offsety);if(placeY<scrolloffset)placeY=scrolloffset;}else{
placeY=o3_y+o3_offsety;}
if(o3_snapy>1){var snapping=placeY % o3_snapy;
if(o3_aboveheight>0&&o3_vpos==ABOVE){placeY=placeY-(o3_snapy+snapping);}else{placeY=placeY+(o3_snapy-snapping);}
if(placeY<scrolloffset)placeY=scrolloffset;}}
return placeY;}
function checkPositionFlags(){if(olHautoFlag)olHautoFlag=o3_hauto=0;if(olVautoFlag)olVautoFlag=o3_vauto=0;return true;}
function windowWidth(){var w;if(o3_frame.innerWidth)w=o3_frame.innerWidth;else if(eval('o3_frame.'+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval('o3_frame.'+docRoot+'.clientWidth'))
w=eval('o3_frame.'+docRoot+'.clientWidth');return w;}
function createDivContainer(id,frm,zValue){id=(id||'overDiv'),frm=(frm||o3_frame),zValue=(zValue||1000);var objRef,divContainer=layerReference(id);
if(divContainer==null){if(olNs4){divContainer=frm.document.layers[id]=new Layer(window.innerWidth,frm);objRef=divContainer;}else{var body=(olIe4?frm.document.all.tags('BODY')[0]:frm.document.getElementsByTagName("BODY")[0]);if(olIe4&&!document.getElementById){body.insertAdjacentHTML("beforeEnd",'<div id="'+id+'"></div>');divContainer=layerReference(id);}else{divContainer=frm.document.createElement("DIV");divContainer.id=id;body.appendChild(divContainer);}
objRef=divContainer.style;}
objRef.position='absolute';objRef.visibility='hidden';objRef.zIndex=zValue;if(olIe4&&!olOp)objRef.left=objRef.top='0px';else objRef.left=objRef.top=-10000+(!olNs4?'px':0);}
return divContainer;}
function layerReference(id){return(olNs4?o3_frame.document.layers[id]:(document.all?o3_frame.document.all[id]:o3_frame.document.getElementById(id)));}
function isFunction(fnRef){var rtn=true;
if(typeof fnRef=='object'){for(var i=0;i<fnRef.length;i++){if(typeof fnRef[i]=='function')continue;rtn=false;break;}
}else if(typeof fnRef!='function'){rtn=false;}
return rtn;}
function argToString(array,strtInd,argName){var jS=strtInd,aS='',ar=array;argName=(argName?argName:'ar');
if(ar.length>jS){for(var k=jS;k<ar.length;k++)aS+=argName+'['+k+'], ';aS=aS.substring(0,aS.length-2);}
return aS;}
function reOrder(hookPt,fnRef,order){var newPt=new Array(),match,i,j;
if(!order||typeof order=='undefined'||typeof order=='number')return hookPt;
if(typeof order=='function'){if(typeof fnRef=='object'){newPt=newPt.concat(fnRef);}else{newPt[newPt.length++]=fnRef;}
for(i=0;i<hookPt.length;i++){match=false;if(typeof fnRef=='function'&&hookPt[i]==fnRef){continue;}else{for(j=0;j<fnRef.length;j++)if(hookPt[i]==fnRef[j]){match=true;break;}}
if(!match)newPt[newPt.length++]=hookPt[i];}
newPt[newPt.length++]=order;
}else if(typeof order=='object'){if(typeof fnRef=='object'){newPt=newPt.concat(fnRef);}else{newPt[newPt.length++]=fnRef;}
for(j=0;j<hookPt.length;j++){match=false;if(typeof fnRef=='function'&&hookPt[j]==fnRef){continue;}else{for(i=0;i<fnRef.length;i++)if(hookPt[j]==fnRef[i]){match=true;break;}}
if(!match)newPt[newPt.length++]=hookPt[j];}
for(i=0;i<newPt.length;i++)hookPt[i]=newPt[i];newPt.length=0;
for(j=0;j<hookPt.length;j++){match=false;for(i=0;i<order.length;i++){if(hookPt[j]==order[i]){match=true;break;}}
if(!match)newPt[newPt.length++]=hookPt[j];}
newPt=newPt.concat(order);}
hookPt=newPt;
return hookPt;}
function setRunTimeVariables(){if(typeof runTime!='undefined'&&runTime.length){for(var k=0;k<runTime.length;k++){runTime[k]();}}}
function parseCmdLine(pf,i,args){if(typeof cmdLine!='undefined'&&cmdLine.length){for(var k=0;k<cmdLine.length;k++){var j=cmdLine[k](pf,i,args);if(j >-1){i=j;break;}}}
return i;}
function postParseChecks(pf,args){if(typeof postParse!='undefined'&&postParse.length){for(var k=0;k<postParse.length;k++){if(postParse[k](pf,args))continue;return false;}}
return true;}
function registerCommands(cmdStr){if(typeof cmdStr!='string')return;
var pM=cmdStr.split(',');pms=pms.concat(pM);
for(var i=0;i< pM.length;i++){eval(pM[i].toUpperCase()+'='+pmCount++);}}
function registerNoParameterCommands(cmdStr){if(!cmdStr&&typeof cmdStr!='string')return;pmt=(!pmt)?cmdStr:pmt+','+cmdStr;}
function registerHook(fnHookTo,fnRef,hookType,optPm){var hookPt,last=typeof optPm;
if(fnHookTo=='plgIn'||fnHookTo=='postParse')return;if(typeof hookPts[fnHookTo]=='undefined')hookPts[fnHookTo]=new FunctionReference();
hookPt=hookPts[fnHookTo];
if(hookType!=null){if(hookType==FREPLACE){hookPt.ovload=fnRef;if(fnHookTo.indexOf('ol_content_')>-1)hookPt.alt[pms[CSSOFF-1-pmStart]]=fnRef;
}else if(hookType==FBEFORE||hookType==FAFTER){var hookPt=(hookType==1?hookPt.before:hookPt.after);
if(typeof fnRef=='object'){hookPt=hookPt.concat(fnRef);}else{hookPt[hookPt.length++]=fnRef;}
if(optPm)hookPt=reOrder(hookPt,fnRef,optPm);
}else if(hookType==FALTERNATE){if(last=='number')hookPt.alt[pms[optPm-1-pmStart]]=fnRef;}else if(hookType==FCHAIN){hookPt=hookPt.chain;if(typeof fnRef=='object')hookPt=hookPt.concat(fnRef);else hookPt[hookPt.length++]=fnRef;}
return;}}
function registerRunTimeFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){runTime=runTime.concat(fn);}else{runTime[runTime.length++]=fn;}}}
function registerCmdLineFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){cmdLine=cmdLine.concat(fn);}else{cmdLine[cmdLine.length++]=fn;}}}
function registerPostParseFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){postParse=postParse.concat(fn);}else{postParse[postParse.length++]=fn;}}}
function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;
if(hookType==FREPLACE){arS=argToString(ar,2);
if(typeof l=='undefined'||!(l=l.ovload))rtnVal=eval(fnHookTo+'('+arS+')');else rtnVal=eval('l('+arS+')');
}else if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!='undefined'){l=(hookType==1?l.before:l.after);
if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++)eval('l[k]('+arS+')');}}
}else if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);
if(typeof l=='undefined'||(l=l.alt[pms[optPm-1-pmStart]])=='undefined'){rtnVal=eval(fnHookTo+'('+arS+')');}else{rtnVal=eval('l('+arS+')');}
}else if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;
for(k=l.length;k>0;k--)if((rtnVal=eval('l[k-1]('+arS+')'))!=void(0))break;}
return rtnVal;}
function FunctionReference(){this.ovload=null;this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array();}
function Info(version,prerelease){this.version=version;this.prerelease=prerelease;
this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major * 10;this.revision=parseInt(this.simpleversion)-this.major * 100-this.minor * 10;this.meets=meets;}
function meets(reqdVersion){return(!reqdVersion)?false:this.simpleversion>=Math.round(100*parseFloat(reqdVersion));}
registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq)olLoaded=1;registerNoParameterCommands('sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode');
var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture();}else{overlib=no_overlib;nd=no_overlib;ver3fix=true;}
// $HeadURL: https://joomgallery.org/svn/joomgallery/JG-1.5/JG/trunk/components/com_joomgallery/assets/js/joomscript.js $
// $Id: joomscript.js 1980 2010-03-23 07:22:49Z aha $
/******************************************************************************\
**   JoomGallery  1.5.0.5                                                     **
**   By: JoomGallery::ProjectTeam                                             **
**   Copyright (C) 2008 - 2009  M. Andreas Boettcher                          **
**   Based on: JoomGallery 1.0.0 by JoomGallery::ProjectTeam                  **
**   Released under GNU GPL Public License                                    **
**   License: http://www.gnu.org/copyleft/gpl.html or have a look             **
**   at administrator/components/com_joomgallery/LICENSE.TXT                  **
\******************************************************************************/

//Javascript for SmilieInsert and Form Check

function joom_getcoordinates(){ 
  document.nameshieldform.xvalue.value=document.getElementById("u1").offsetTop; 
  document.nameshieldform.yvalue.value=document.getElementById("u1").offsetLeft;
  document.nameshieldform.submit();
}

function joom_validatecomment(){
  if (document.commentform.cmttext.value==''){
    alert(joomgallery_enter_comment);
  } else if(jg_use_code==1) {
    if (document.commentform.jgcode != null && document.commentform.jg_code.value==''){
      alert(joomgallery_enter_code);
    } else {
      document.commentform.submit();
    }
  } else {
    document.commentform.submit();
  }
}


function joom_smilie(thesmile) {
  document.commentform.cmttext.value += thesmile+' ';
  document.commentform.cmttext.focus();
}


function joom_validatesend2friend(){
  if ((document.send2friend.send2friendname.value=='') || (document.send2friend.send2friendemail.value=='')){
    alert(joomgallery_enter_name_email);
  } else {
    document.send2friend.submit();
  }
}


function joom_checkme() {
  var form = document.adminForm;
  form.imgtitle.style.backgroundColor = '';
  form.catid.style.backgroundColor = '';
  var doublefiles = false;
  // do field validation
  if (form.imgtitle.value == ''|| form.imgtitle.value == null) {
    alert(joomgallery_pic_must_have_title);
    form.imgtitle.style.backgroundColor = jg_ffwrong;
    form.imgtitle.focus();
    return false;
  } else if (form.catid.value == "0") {
    alert(joomgallery_select_category);
    form.catid.style.backgroundColor = jg_ffwrong;
    form.catid.focus();
    return false;
    //Prueft ob ueberhaupt Dateien angeben wurden.
  } else {
    var zaehl = 0;
    var arenofiles = true;
    var fullfields = new Array();
    var screenshotfieldname = new Array();
    var screenshotfieldvalue = new Array();
    for(i=0;i<jg_inputcounter;i++) {
      screenshotfieldname[i] = 'arrscreenshot['+i+']';
      screenshotfieldvalue[i] = document.getElementsByName(screenshotfieldname[i])[0].value;
      document.getElementsByName(screenshotfieldname[i])[0].style.backgroundColor='';
      if(screenshotfieldvalue[i] != "") {
        arenofiles = false;
        fullfields[zaehl] = i;
        zaehl++;
      }
    }
  }
  if(arenofiles) {
    alert(joomgallery_select_file);
    document.getElementsByName(screenshotfieldname[0])[0].focus();
    return false;
    //Prueft ob die Dateitypen auch .jpg,.gif und .png sind
  } else {
    var extensionsnotok = false;
    var searchextensiontest = new Array();
    var searchextension = new Array();
    //However you have to define this RegExp for each item.
    for (i=0;i<fullfields.length;i++) {
      searchextension[i] = new RegExp('\.jpg$|\.jpe$|\.jpeg$|\.gif$|\.png$','ig');
    }
    for(i=0;i<fullfields.length;i++) {
      searchextensiontest = searchextension[i].test(screenshotfieldvalue[fullfields[i]]);
      if(searchextensiontest!=true) {
        extensionsnotok = true;
        document.getElementsByName(screenshotfieldname[fullfields[i]])[0].style.backgroundColor = jg_ffwrong;
      }
    }
  }
  if(extensionsnotok) {
    alert(joomgallery_wrong_extension);
    document.getElementsByName(screenshotfieldname[0])[0].focus();
    return false;
    //Wenn eine Javascriptueberpruefung in den Configurations gewuenscht wurde wird der Dateinamen auf Sonderzeichen ueberprueft
  } else {
    var filenamesnotok = false;
    if(jg_filenamewithjs!=0) {
      var searchwrongchars = /[^ a-zA-Z0-9_-]/;
      var lastbackslash = new Array();
      var endoffilename = new Array();
      var filename = new Array();
      for(i=0;i<fullfields.length;i++) {
        lastbackslash[i] = screenshotfieldvalue[fullfields[i]].lastIndexOf('\\');
        endoffilename[i] = screenshotfieldvalue[fullfields[i]].lastIndexOf('\.')-screenshotfieldvalue[fullfields[i]].length;
        if(lastbackslash[i]<1) {
         lastbackslash[i] = screenshotfieldvalue[fullfields[i]].lastIndexOf('/');
        }
        filename[i] = screenshotfieldvalue[fullfields[i]].slice(lastbackslash[i]+1,endoffilename[i]);
        if(searchwrongchars.test(filename[i])) {
          filenamesnotok = true;
          document.getElementsByName(screenshotfieldname[fullfields[i]])[0].style.backgroundColor = jg_ffwrong;
        }
      }
    }
  }
  if(filenamesnotok) {
    alert(joomgallery_wrong_filename);
    document.getElementsByName(screenshotfieldname[0])[0].focus();
    return false;
  } else if(fullfields.length>1) {
    var feld1 = new Number();
    var feld2 = new Number();
    for(i=0;i<fullfields.length;i++) {
      for(j=fullfields.length-1;j>i;j--) {
        if(screenshotfieldvalue[fullfields[i]].indexOf(screenshotfieldvalue[fullfields[j]])==0) {
          doublefiles = true;
          document.getElementsByName(screenshotfieldname[fullfields[i]])[0].style.backgroundColor = jg_ffwrong;
          document.getElementsByName(screenshotfieldname[fullfields[j]])[0].style.backgroundColor = jg_ffwrong;
          feld1 = i+1;
          feld2 = j+1
          alert(joomgallery_filename_double1+' ' +feld1+' '+joomgallery_filename_double2+' '+feld2+'.');
        }
      }
    }
  }
  if(doublefiles) {
    document.getElementsByName(screenshotfieldname[0])[0].focus();
    return false;
  } else {
    form.submit();
    return true;
  }
}


function joom_checkme2() {
  var form = document.adminForm;
  form.imgtitle.style.backgroundColor = '';
  form.catid.style.backgroundColor = '';
  // do field validation
  if (form.imgtitle.value == '' || form.imgtitle.value == null) {
    alert(joomgallery_pic_must_have_title);
    form.imgtitle.style.backgroundColor = jg_ffwrong;
    form.imgtitle.focus();
    return false;
  } else if (form.catid.value == '0') {
    alert(joomgallery_select_category);
    form.catid.style.backgroundColor = jg_ffwrong;
    form.catid.focus();
    return false;
  } else {
    form.submit();
    return true;
  }
}


function joom_openjswindow(imgsource, imgtitle, imgwidth, imgheight) {
  var imgwidth = parseInt(imgwidth);
  var imgheight = parseInt(imgheight);
  var scrbar = (resizeJsImage>0) ? 0 : 1;
  pgwindow = window.open('', 'JoomGallery', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars='+scrbar+',width='+imgwidth+',height='+imgheight+'');
  with(pgwindow.document) {
    write("<html><head><title>" + imgtitle + "<\/title>\n");
    write("<meta http-equiv='imagetoolbar' content='no' />\n");
    write("<script language='javascript' type='text/javascript'>\n");
    write("<!--\n");
    write("var disableclick = "+jg_disableclick+";\n");
    write("if (disableclick>0) {document.oncontextmenu = function(){return false;} }\n");
    write("function resize() {\n");
    write(" if("+resizeJsImage+">0) {\n");
    write("  var windowWidth, windowHeight, padleft, padtop;\n" );
    write("  if (self.innerHeight) {  // all except Explorer\n" );
    write("   windowWidth = self.innerWidth;\n" );
    write("   windowHeight = self.innerHeight;\n" );
    write("   padleft = 6;\n" );
    write("   padtop = 55;\n" );
    write("  } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode\n" );
    write("   windowWidth = document.documentElement.clientWidth;\n" );
    write("   windowHeight = document.documentElement.clientHeight;\n" );
    write("   padleft = 10;\n" );
    write("   padtop = 35;\n" );
    write("  } else if (document.body) { // other Explorers\n" );
    write("   windowWidth = document.body.clientWidth;\n" );
    write("   windowHeight = document.body.clientHeight;\n" );
    write("   padleft = 10;\n" );
    write("   padtop = 35;\n" );
    write("  }\n" );
    write("  var imgwidth = "+imgwidth+"+padleft;\n");
    write("  var imgheight = "+imgheight+"+padtop;\n");
    write("  if(imgwidth>windowWidth) {\n");
    write("    imgheight = (imgheight * windowWidth)/imgwidth;\n");
    write("    imgwidth = windowWidth;\n");
    write("  }\n");
    write("  if(imgheight>windowHeight) {\n");
    write("    imgwidth = (imgwidth * windowHeight)/imgheight;\n");
    write("    imgheight = windowHeight;\n");
    write("  }\n");    
    write("  self.resizeTo(imgwidth, imgheight);\n");
    write("  self.document.getElementById('js_window_image').width = imgwidth-padleft;\n");
    write("  self.document.getElementById('js_window_image').style.width = imgwidth-padleft;\n");
    write("  self.document.getElementById('js_window_image').height = imgheight-padtop;\n");
    write("  self.document.getElementById('js_window_image').style.height = imgheight-padtop;\n");
    write("  self.document.body.style.overflow='hidden'\n");
    write(" } else {\n");
    write("  self.document.body.style.overflow=''\n");
    write(" }\n");
    write(" self.focus();\n");
    write("}\n");
    write("function clicker() { \n");
    write("if (disableclick>0) {self.close(); } \n");
    write("}\n");
    write("\/\/-->\n");
    write("<\/script>\n");
    write("<\/head>\n");
    write("<body topmargin='0' marginheight='0' leftmargin='0' marginwidth='0' onload='resize()' onclick='clicker()' onblur='self.focus()'>\n");
    write("<img src='" + imgsource + "' border='0' hspace='0' vspace='0' onclick='self.close()' alt='"+imgtitle+"'\ id=\"js_window_image\" class=\"pngfile\" />\n");
    write("<\/body><\/html>");
    close();
  }
  pgwindow.moveTo(0,0);
}


// This Script was written by Benjamin Meier, b2m@gmx.de
// The DHTML-function for creating a overlaying div-layer uses parts of the Dynamic Image Mambot, written by Manuel Hirsch
// and Lightbox => core code quirksmode.org
function joom_opendhtml(imgsource, imgtitle, imgtext, imgwidth, imgheight) {
  imgwidth = parseInt(imgwidth);
  imgheight = parseInt(imgheight);

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

  var yScroll, xScroll;

  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;
  }

  if(resizeJsImage==1) {
   if((imgwidth+3*jg_padding)>windowWidth) {
     imgheight = (imgheight * (windowWidth-2*jg_padding))/imgwidth;
     imgwidth = windowWidth-2*jg_padding;
   }
   if((imgheight+2*jg_padding+80)>windowHeight) {
     imgwidth = (imgwidth * (windowHeight-2*jg_padding-80))/imgheight;
     imgheight = windowHeight-2*jg_padding-80;
   }
  }
  var postop =(windowHeight/2)-(imgheight/2)+yScroll+document.body.style.padding-10;
  var posleft =(windowWidth/2)-(imgwidth/2)+xScroll+document.body.style.padding;
  if(postop >= 30) { 
   postop = postop-30;
  }
  var bodyObj = document.getElementsByTagName('BODY')[0];
  if(!document.getElementById("jg_photocontainer")) {
    divObjContainer = document.createElement("div");
    divObjContainer.setAttribute("id", "jg_photocontainer");
    bodyObj.appendChild(divObjContainer);
  } else {
    divObjContainer = document.getElementById("jg_photocontainer");
  }

  var closeimg = new Image();
  closeimg.src = "components/com_joomgallery/assets/images/close.png";

  var dhtmltext, dhtmltext2="";

  divObjContainer.style.display = "block";
  dhtmltext  = "<div class=\"jg_photocontainer\" style=\"top:"+postop+"px; left:"+posleft+"px; position: absolute; display:block;z-index:99999;\" onclick=\"joom_photocontainershut()\">";
  dhtmltext += "<div class=\"photoborder\" style=\"background-color: "+jg_openjs_background+"; padding: "+jg_padding+"px; border: solid 1px "+jg_dhtml_border+";\">";
  dhtmltext += "<img onclick=\"joom_photocontainershut()\" style=\"cursor:pointer;border: solid 1px #000;width:"+imgwidth+"px;height:"+imgheight+"px;\" src=\""+imgsource+"\" alt=\""+imgtitle+"\" width=\""+imgwidth+"px\" height=\""+imgheight+"px\" class=\"pngfile\" \/>";
  dhtmltext += "<img onclick=\"joom_photocontainershut()\" style=\"cursor:pointer;position:absolute;bottom:"+jg_padding+"px;right:"+jg_padding+"px;width:"+closeimg.width+"px;height:"+closeimg.height+"px;\" src=\""+closeimg.src+"\" alt=\"close\" id=\"dhtml_close\" class=\"pngfile\" />";  
  dhtmltext += "<br /><div id=\"joom_dhtml_imgtext\" style=\"margin-top:"+jg_padding+"px;text-align: justify; width:"+imgwidth+"px;\">&nbsp;<br />&nbsp;</div>";
  dhtmltext += "<\/div></div>";
  divObjContainer.innerHTML = dhtmltext;
     document.getElementById("joom_dhtml_imgtext").style.width2 = document.getElementById("joom_dhtml_imgtext").style.width-document.getElementById("dhtml_close").style.width;
  if (jg_show_title_in_dhtml==1) {
   dhtmltext2 += "<strong>"+imgtitle+"</strong><br />";
  }
  if (jg_show_description_in_dhtml==1) {
   dhtmltext2 += imgtext;
  }
  if (dhtmltext2!="") {
   document.getElementById("joom_dhtml_imgtext").innerHTML = dhtmltext2;
  }

  if (jg_disableclick==1) { 
    divObjContainer.oncontextmenu = function(){return false;}
  }
}

function joom_photocontainershut() {
  document.getElementById("jg_photocontainer").style.display = "none";
}


function joom_cursorchange(e) {
  active_slimbox=document.getElementById("lbImage");
  
  if (active_slimbox != undefined){
    return
  }
  
  if(jg_comment_active!=1) {
    if(navigator.appName == "Microsoft Internet Explorer") {
      taste = window.event.keyCode;
    } else {
      taste = e.which;
    }
    switch (taste) {
      case 37:
        if(document.form_jg_back_link) {
          window.location=document.form_jg_back_link.action;
        }
        break;
      case 39:
        if(document.form_jg_forward_link) {
          window.location=document.form_jg_forward_link.action;
        }
        break;
      default:
        break;
    }
  }
}

/*!
  Slimbox v1.53 - The ultimate lightweight Lightbox clone
  (c) 2007-2008 Christophe Beyls <http://www.digitalia.be>
  MIT-style license.
  modified by JoomGallery team January 2009
  - automatic resizing
  - use of language constants
  - dynamically ignore of doublets
*/

var Slimbox;

(function() {

  // Global variables, accessible to Slimbox only
  var state = 0, options, images, activeImage, prevImage, nextImage, top, eventKeyDown, fx, preload, preloadPrev = new Image(), preloadNext = new Image(),
  // State values: 0 (closed or closing), 1 (open and ready), 2+ (open and busy with animation)

  // DOM elements
  overlay, center, image, prevLink, nextLink, bottomContainer, bottom, caption, number;

  /*
    Initialization
  */

  window.addEvent("domready", function() {
    eventKeyDown = keyDown.bindWithEvent();

    // Append the Slimbox HTML code at the bottom of the document
    $(document.body).adopt(
      $$([
        overlay = new Element("div", {id: "lbOverlay"}),
        center = new Element("div", {id: "lbCenter"}),
        bottomContainer = new Element("div", {id: "lbBottomContainer"})
      ]).setStyle("display", "none")
    );

    image = new Element("div", {id: "lbImage"}).injectInside(center).adopt(
      prevLink = new Element("a", {id: "lbPrevLink", href: "#"}),
      nextLink = new Element("a", {id: "lbNextLink", href: "#"})
    );
    prevLink.onclick = previous;
    nextLink.onclick = next;

    var closeLink;
    bottom = new Element("div", {id: "lbBottom"}).injectInside(bottomContainer).adopt(
      closeLink = new Element("a", {id: "lbCloseLink", href: "#"}),
      caption = new Element("div", {id: "lbCaption"}),
      number = new Element("div", {id: "lbNumber"}),
      new Element("div", {styles: {clear: "both"}})
    );
    closeLink.onclick = overlay.onclick = close;

    //Edit b2m resize adopted from modified v1.41
    innerImage = new Element('div', {'id': 'innerImage'}).injectInside(image);
    //links = new Element('div', {'id': 'links', 'styles': {'display': 'block'}}).injectInside(image);
    //prevLink = new Element('a', {'id': 'lbPrevLink', 'href': '#', 'styles': {'display': 'none'}}).injectInside(links);
    //nextLink = prevLink.clone().setProperty('id', 'lbNextLink').injectInside(links);
    //prevLink.onclick = previous.bind();
    //nextLink.onclick = next.bind();
    // End Edit b2m resize

    fx = {
      overlay: overlay.effect("opacity", {duration: 500}).set(0),
      image: image.effect("opacity", {duration: 500, onComplete: nextEffect}),
      bottom: bottom.effect("margin-top", {duration: 400})
    };
  });


  /*
    API
  */

  Slimbox = {
    open: function(_images, startImage, _options) {

      //Edit JoomGallery team flexible resize duration
      if(resizeSpeed > 10){ resizeSpeed = 10;}
      if(resizeSpeed < 1){ resizeSpeed = 1;}
      resizeduration = (11 - resizeSpeed) * 150;
      //Edit JoomGallery team

      options = $extend({
        loop: false,        // Allows to navigate between first and last images
        overlayOpacity: 0.8,      // 1 is opaque, 0 is completely transparent (change the color in the CSS file)
        resizeDuration: resizeduration,     // Duration of each of the box resize animations (in milliseconds)
        resizeTransition: false,    // Default transition in mootools
        initialWidth: 250,      // Initial width of the box (in pixels)
        initialHeight: 250,     // Initial height of the box (in pixels)
        animateCaption: true,
        showCounter: true,      // If true, a counter will only be shown if there is more than 1 image to display

        //Edit b2m resize adopted from modified v1.41
        winWidth: (getWidth()>0) ? getWidth() : 1024,
        winHeight: (getHeight()>0) ? getHeight() : 800,
        //End Edit b2m

        //Edit JoomGallery team flexible language
        counterText: joomgallery_image+" {x} "+joomgallery_of+ "  {y}"    // Translate or change as you wish
        //Edit JoomGallery team
      }, _options || {});

      // The function is called for a single image, with URL and Title as first two arguments
      if (typeof _images == "string") {
        _images = [[_images,startImage]];
        startImage = 0;
      }

      images = _images;
      //remove double objects from image
      //images=images.unique();

      options.loop = options.loop && (images.length > 1);
      position();
      setup(true);
      top = window.getScrollTop() + (window.getHeight() / 15);
      fx.resize = center.effects($extend({duration: options.resizeDuration, onComplete: nextEffect}, options.resizeTransition ? {transition: options.resizeTransition} : {}));
      center.setStyles({top: top, width: options.initialWidth, height: options.initialHeight, marginLeft: -(options.initialWidth/2), display: ""});
      fx.overlay.start(options.overlayOpacity);
      state = 1;
      return changeImage(startImage);
    }
  };

  Element.extend({
    slimbox: function(_options, linkMapper) {
      // The processing of a single element is similar to the processing of a collection with a single element
      $$(this).slimbox(_options, linkMapper);

      return this;
    }
  });

  Elements.extend({
    /*
      options:  Optional options object, see Slimbox.open()
      linkMapper: Optional function taking a link DOM element and an index as arguments and returning an array containing 2 elements:
          the image URL and the image caption (may contain HTML)
      linksFilter:  Optional function taking a link DOM element and an index as arguments and returning true if the element is part of
          the image collection that will be shown on click, false if not. "this" refers to the element that was clicked.
          This function must always return true when the DOM element argument is "this".
    */
    slimbox: function(_options, linkMapper, linksFilter) {
      linkMapper = linkMapper || function(el) {
        return [el.href, el.title];
      };

      linksFilter = linksFilter || function() {
        return true;
      };

      var links = this;

      links.forEach(function(link) {
        link.onclick = function() {
          // Build the list of images that will be displayed
          var filteredLinks = links.filter(linksFilter, this);
          return Slimbox.open(filteredLinks.map(linkMapper), filteredLinks.indexOf(this), _options);
        };
      });

      return links;
    }
  });


  /*
    Internal functions
  */

  function position() {
    overlay.setStyles({top: window.getScrollTop(), height: window.getHeight()});
  }

  function setup(open) {
    ["object", window.ie ? "select" : "embed"].forEach(function(tag) {
      $each(document.getElementsByTagName(tag), function(el) {
        if (open) el._slimbox = el.style.visibility;
        el.style.visibility = open ? "hidden" : el._slimbox;
      });
    });

    overlay.style.display = open ? "" : "none";

    var fn = open ? "addEvent" : "removeEvent";
    window[fn]("scroll", position)[fn]("resize", position);
    document[fn]("keydown", eventKeyDown);
  }

  function keyDown(event) {
    switch(event.code) {
      case 27:  // Esc
      case 88:  // 'x'
      case 67:  // 'c'
        close();
        break;
      case 37:  // Left arrow
      case 80:  // 'p'
        previous();
        break;
      case 39:  // Right arrow
      case 78:  // 'n'
        next();
    }
    // Prevent default keyboard action (like navigating inside the page)
    event.preventDefault();
  }

  function previous() {
    return changeImage(prevImage);
  }

  function next() {
    return changeImage(nextImage);
  }

  function changeImage(imageIndex) {
    if ((state == 1) && (imageIndex >= 0)) {
      state = 2;
      activeImage = imageIndex;
      prevImage = ((activeImage || !options.loop) ? activeImage : images.length) - 1;
      nextImage = activeImage + 1;
      if (nextImage == images.length) nextImage = options.loop ? 0 : -1;

      $$(prevLink, nextLink, image, bottomContainer).setStyle("display", "none");
      fx.bottom.stop().set(0);
      fx.image.set(0);
      center.className = "lbLoading";

      preload = new Image();
      preload.onload = nextEffect;
      preload.src = images[imageIndex][0];
    }

    return false;
  }
  // internal functions for JoomGallery
  // needful to avoid displaying the same picture multiple
  // and the right counter in the slimbox
  // JoomGallery team January 2009

  // analyzes the images array and construct
  // an array with unique numbers
  function joomcheckmulti (images) {
    var o = {};
    for(var i = 0 ; i < images.length; i++) {
      //create an array with unique URL
      //and number of object in images
      o[images[i]["0"]] = i;
    }
    //create an array with the object numbers from o
    var p = new Array();
    for (var i in o) {
      p[o[i]] = true;
    }
    return p;
  }
  // returns the count of all unique pictures
  function joomuniquelength (uniarr) {
    var length=uniarr.length;

    for (var i=0;i<length;i++) {
      if(uniarr[i] != true) {
        length--;
      }
    }
    return length;
  }
  //returns the max. object id of picture in the array
  function joomidmax(uniarr,imlength) {
    var maxid=0;
    for (var i=0;i<=imlength;i++) {
      if(uniarr[i] == true) {
        maxid=Math.max(maxid,i);
      }
    }
    return maxid;
  }
  //returns the count of actual picture showing in the box
  function joomgetactcount (uniarr,imlength,aktcounter){
    var actcount=0;
    for (var i=0;i<=imlength;i++) {
      if(uniarr[i] == true) {
        actcount++;
        if (i==aktcounter) {
          break;
        }
      }
    }
    return actcount;
  }
  // end internal functions for JoomGallery

  function nextEffect() {
    switch (state++) {
      case 2:
        center.className = "";
        image.setStyles({backgroundImage: "url(" + images[activeImage][0] + ")", display: ""});

        //Edit b2m resize adopted from modified v1.41
        if(resizeJsImage==1) {
          if(preload.width>(options.winWidth-40)) {
            preload.height = (preload.height * (options.winWidth-40))/preload.width;
            preload.width = options.winWidth-40;
          }
          if(preload.height>(options.winHeight-150)) {
            preload.width = (preload.width * (options.winHeight-150))/preload.height;
            preload.height = options.winHeight-150;
          }
          var innerImageHtml = "<img src=\""+images[activeImage][0]+"\" width=\""+preload.width+"px\" height=\""+preload.height+"px\" />";
          innerImage.setHTML(innerImageHtml);
        } else {
          image.style.backgroundImage = 'url('+images[activeImage][0]+')';
        }
        //End Edit b2m resize

        $$(image, bottom).setStyle("width", preload.width);
        $$(image, prevLink, nextLink).setStyle("height", preload.height);

        caption.setHTML(images[activeImage][1] || "");

        //edit JoomGallery team
        //check multiple links for correction of the counter
        //return an array with unique object keys
        var uniquearr = new Array();
        uniquearr=joomcheckmulti(images);
        var uniquecount=joomuniquelength(uniquearr);
        var uniquemaxid=joomidmax(uniquearr,images.length);

        //check if a double deleted image and jump to the right one
        var changed =false;
        while(uniquearr[activeImage]!=true) {
          activeImage++;
          changed=true;
          prevImage--;
          nextImage++;
        }
        while(uniquearr[prevImage]!=true && prevImage >= 0) {
          prevImage--;
        }
        if (changed) {
          while(uniquearr[nextImage]!=true && nextImage <= uniquemaxid) {
            nextImage++;
          }
          if (nextImage > uniquemaxid){
            nextImage=-1;
          }
        }
        //get the right counter of actual image
        if (prevImage < 0) {
          imageactcounter=1;
        } else {
          var imageactcounter=joomgetactcount(uniquearr,images.length,activeImage);
        }

        number.setHTML((options.showCounter && (images.length > 1)) ? options.counterText.replace(/{x}/,imageactcounter).replace(/{y}/, uniquecount) : "");

        //no preloading of the neighbours to suppress increasing the image counter
        //if (prevImage >= 0) preloadPrev.src = images[prevImage][0];
        //if (nextImage >= 0) preloadNext.src = images[nextImage][0];

        // end edit JoomGalleryteam

        if (center.clientHeight != image.offsetHeight) {
          fx.resize.start({height: image.offsetHeight});
          break;
        }
        state++;
      case 3:
        if (center.clientWidth != image.offsetWidth) {
          fx.resize.start({width: image.offsetWidth, marginLeft: -image.offsetWidth/2});
          break;
        }
        state++;
      case 4:
        bottomContainer.setStyles({top: top + center.clientHeight, marginLeft: center.style.marginLeft, visibility: "hidden", display: ""});
        fx.image.start(1);
        break;
      case 5:
        if (prevImage >= 0) prevLink.style.display = "";
        if (nextImage >= 0) nextLink.style.display = "";
        if (options.animateCaption) {
          fx.bottom.set(-bottom.offsetHeight).start(0);
        }
        bottomContainer.style.visibility = "";
        state = 1;
    }
  }

  function close() {
    if (state) {
      state = 0;
      preload.onload = Class.empty;
      for (var f in fx) fx[f].stop();
      $$(center, bottomContainer).setStyle("display", "none");
      fx.overlay.chain(setup).start(0);
    }

    return false;
  }

})();



// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
Slimbox.scanPage = function() {
  var links = $$("a").filter(function(el) {
    return el.rel && el.rel.test(/^lightbox/i);
  });
  $$(links).slimbox({/* Put custom options here */}, null, function(el) {
    return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
  });
};
window.addEvent("domready", Slimbox.scanPage);

