/*!
* FooBar - The Unobtrusive Notification Bar That Doesn’t Suck!
* http://bit.ly/getfoobar
*
* Copyright 2011, Steven Usher & Brad Vincent
* http://themergency.com
* http://themergency.com/foobar-a-jquery-notification-plugin/
*
* Date: 3 Jan 2012
* Version : 2.0
*/

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){2X.x=2X.$x=$.x=9(){C k.35.3W(3A,3C)};$.45=9(){k.1j.1X.1v()};t j={"D":{"T":30,"v":30},"1b":{"L":"*","13":"50%","S":"*","v":"64"},"16":{"4C":y,"T":"I","v":"S","15":"L"},"A":{"1O":"26","1n":0,"1w":63,"1F":"#62","1c":"61 5W #5V","v":{"1O":"2W","1u":J,"1F":o,"1c":o},"1C":{"T":"5Q-5O","1N":o},"3b":"5L","Y":J,"2e":J,"2z":y},"V":{"1f":y,"2b":"x-E","3e":1,"1q":1},"17":[],"G":{"1n":5J,"4F":5G,"39":y,"1N":y,"2k":o,"2S":{"1f":J,"1w":50,"1n":5F},"1U":{"1K":"3y","1J":"3z","1A":"4x","1I":o,"Y":o,"1W":o},"2Y":{"1K":"3y","1J":"3z","1A":"5E","1I":"5D","Y":o,"1W":o,"3D":{"1K":o,"1J":o,"1A":o,"1I":o,"Y":o,"1W":o}}},"3K":o,"3o":o,"3J":o,"15":{"1E":"5C 5y","2k":o,"1U":{"1K":"3y","1J":"3z","1A":"4x","1I":o,"Y":o,"1W":o},"3H":[]},"1m":{"1f":y,"1M":o,"4a":5,"3G":"5x 5w","4B":"2r"},"1k":{"1f":y,"2q":o,"4G":5},"22":{"4K":o,"4L":o,"2G":o,"28":o,"3M":o,"3R":o}};t k={4:{},6:{H:{Z:o,Y:o,l:o,1Z:o},L:{l:o,U:o},13:{l:o,U:o},S:{l:o,U:o},G:o,F:{v:o,l:o},O:{v:o,l:o,1u:o},1d:o,Q:o},r:{E:{31:J,1z:y,F:y,I:y,1D:y},1p:0,2B:0,2A:5,2U:11},u:{1a:9(a){C(1h a==\'1R\'&&a!==o&&a!==\'\')},2N:9(a){7(1h a!=\'2j\'&&a!==o&&1h a.2N==\'9\'){a.2N()}},2h:9(a,b){t c={\'1K\':o,\'1J\':o,\'1A\':o,\'1I\':o,\'Y\':o};t f=$.2w({},c,b);7(k.u.1a(f.1K)){a.z(\'1U-1K\',f.1K)}7(k.u.1a(f.1J)){a.z(\'1U-1J\',f.1J)}7(k.u.1a(f.1A)){a.z(\'1A\',f.1A)}7(k.u.1a(f.1I)){a.z(\'1E-1I\',f.1I)}7(k.u.1a(f.Y)){a.z(\'1E-Y\',f.Y)}7(k.u.1a(f.1W)){a.z(\'1U-1W\',f.1W)}},2J:9(a){t b=\'\';7(k.4.V.3e){t c=2E 4c();c.4d(c.4f()+(k.4.V.3e*24*60*60*3t));b=\'; 4n=\'+c.4o()}3s.V=k.4.V.2b+\'=\'+a+\'|\'+k.4.V.1q+b+\'; 4w=/\'},3r:9(){t a=k.4.V.2b+\'=\';t b=3s.V.4y(\';\');2l(t i=0;i<b.R;i++){t c=b[i];4E(c.5v(0)==\' \')c=c.29(1,c.R);7(c.1P(a)===0)C k.u.1g.V(c.29(a.R,c.R))}C o},3q:9(){t a=2E 4c();a.4d(a.4f()+(-1*24*60*60*3t));3s.V=k.4.V.2b+\'=; 4n=\'+a.4o()+\'; 4w=/\'},4Q:9(g){t h=k.4.1k.2q+\': \';7(g.1P(h)===0){g=g.29(h.R)}g=\' \'+g;g=g.2F(/\\b(((65*\\:\\/\\/)|3Q\\.)[^\\"\\\']+?)(([!?,.\\)]+)?(\\s|$))/g,9(a,b,c,d,e){t f=c.3T(/w/)?\'2g://\':\'\';C\'<a 36="37-5t" 1Q="2r" 2i="\'+f+b+\'">\'+b+\'</a>\'+e});g=g.2F(/\\B[@＠]([a-46-47-48]{1,20})/g,9(m,a){C\'<a 1Q="2r" 36="37-4b" 2i="2g://1k.2H/5r/2q?4e=\'+a+\'">@\'+a+\'</a>\'});g=g.2F(/\\B[@＠]([a-46-47-48]{1,20}\\/\\w+)/g,9(m,a){C\'<a 1Q="2r" 36="37-4b" 2i="2g://1k.2H/\'+a+\'">@\'+a+\'</a>\'});g=g.2F(/(^|\\s+)#(\\w+)/5q,9(m,a,b){C a+\'<a 1Q="2r" 36="37-5p" 2i="2g://1k.2H/5m?q=%23\'+b+\'">#\'+b+\'</a>\'});C g},1S:9(a){33{7($.4q(a)){t b=4t.4u.5l.3l(3C);b.5k();a.3W(k,b)}}38(1L){1e.1t(1L)}},1g:{V:9(a){7(1h a===\'1R\'){7(a.1P(\'|\')==-1){C{26:k.u.1g.3j(a,y),1q:-1}}N{t b=a.4y(\'|\');7(b.R==2){C{26:k.u.1g.3j(b[0],y),1q:k.u.1g.2T(b[1],-1)}}}}C o},3j:9(a,b){b=b||y;2a(1h a){X\'1R\':{2a(a.5j()){X\'1\':X\'J\':C J;X\'0\':X\'y\':C y;2o:C b}}X\'4S\':{2a(a){X 1:C J;X 0:C y;2o:C b}}X\'5i\':C a;2o:C b}},2T:9(a,b){b=b||o;2a(1h a){X\'1R\':{t c=4U(a);C 5g(c)?b:c}X\'4S\':C a;2o:C b}},1l:9(a){7(!k.u.1a(a)){C a}7(a&&a.3T(\'{{3N:(.*?)}}\')){t b=2E 5f(\'{{3N:(.*?)}}\');t c=b.3P(a);4E(c!==o){t d=$(c[1]).1l();a=a.2F(c[0],d);c=b.3P(a)}}C a},1b:9(a){C(1h a!=\'2j\'&&a!=o&&a!="*"&&a!="2I%")?{\'1b\':a}:{\'1b\':\'32\'}},3h:9(a,b){t c=$(\'<14></14>\').z({\'1c\':a,\'16\':\'3S\',\'1Y\':\'2t\'}).3U(\'3V\');t w=k.u.1g.2T(c.z(\'1c-I-1b\'),b);c.2M();C w}},2u:{3u:9(a,b){C(1h a!=\'2j\'&&a!==o&&a.R>0&&a.1P(b)!=-1)},3Z:9(a){7(1h a!==\'40\'){C y}2l(t b 41 a){7(a.42(b)){C J}}C y},3f:9(a){C 5e.4u.5d.3l(a)==="[40 4t]"}},2c:{2P:9(a,b){33{7(k.u.2u.3u(b,\'.\')){t c=b.29(0,b.1P(\'.\'));t d=b.29(b.1P(\'.\')+1);a[c]=a[c]||{};C k.u.2c.2P(a[c],d)}C a[b]}38(1L){1e.1t(1L);C o}},2d:9(a,b,c){33{7(k.u.2u.3u(b,\'.\')){t d=b.29(0,b.1P(\'.\'));t e=b.29(b.1P(\'.\')+1);a[d]=a[d]||{};k.u.2c.2d(a[d],e,c)}N{a[b]=c}}38(1L){1e.1t(1L)}},3g:9(a,b){33{2l(t c 41 b){7(b.42(c)){7(k.u.2u.3Z(b[c])&&!k.u.2u.3f(b[c])){a[c]=a[c]||{};k.u.2c.3g(a[c],b[c])}N 7(k.u.2u.3f(b[c])){a[c]=[];$.2w(J,a[c],b[c])}N{a[c]=b[c]}}}}38(1L){1e.1t(1L)}}}},n:{1r:o,1H:y,2y:[],M:{18:-1,Q:0,3d:9(){7(k.4.17.R<=1){C 0}t a=0,4g=k.4.17.R-1;t b=3n.5c(3n.39()*(4g-a+1)+a);C(b==k.n.M.18)?k.n.M.3d():b},4j:9(){7(k.4.G.39&&k.n.M.18==-1&&k.4.17.R>1){k.n.M.18=k.n.M.3d()}N{k.n.M.18=k.n.M.Q}},4k:9(){7(k.4.G.39&&k.4.17.R>1){k.n.M.Q=k.n.M.3d()}N 7(k.n.M.Q>=(k.4.17.R-1)){k.n.M.Q=0}N{k.n.M.Q++}}},3c:9(){7($(\'.x-G-Z\').R!==k.4.17.R||k.n.2y.R!=k.4.17.R){k.6.G.3p();2l(t a=0;a<k.4.17.R;a++){t b=$(\'<14></14>\').25(\'1r\',\'x-G-\'+a).P(\'x-G-Z\').z({\'16\':\'3S\',\'A\':\'1B-4p\',\'1Y\':\'2t\'}).1l(k.u.1g.1l(k.4.17[a]));k.6.G.10(b);k.n.4r(b);k.n.2y[a]={\'1b\':b.1b(),\'D\':b.D()}}}k.6.G.4s().2f();k.6.13.l.21(\'3v 3w\');k.6.1d.19(k.6.Q).21(\'2n\');7(k.4.17.R>1){k.6.13.l.3D(k.n.4z,k.n.4A);k.6.1d.2n(k.n.1d);k.6.Q.2n(k.n.Q)}},1s:9(a){a=a||y;7(!k.r.E.F||k.4.17.R===0||k.n.M.18==k.n.M.Q){C}7(!a&&k.n.1H){k.n.1r=1G(k.n.1s,k.4.G.1n);C}k.n.W();k.n.M.4j();k.n.3c();t b=k.6.13.l.1b();t c=k.n.2y[k.n.M.18].1b;t d=k.n.2y[k.n.M.18].D;$(\'#x-G-\'+k.n.M.18).z({\'16\':\'5b\',\'A\':\'1B-4p\',\'1Y\':\'3B\',\'2D\':2I,\'K-L\':0,\'1b\':c,\'4H-D\':d,\'3E-D\':k.4.D.T});k.6.G.z({\'4H-D\':d,\'3E-D\':k.4.D.T});k.n.M.4k();7(c>b){k.n.4J((c-b),a)}N 7(k.n.M.Q!=k.n.M.18){k.n.1r=1G(9(){k.n.3a(a)},k.4.G.1n)}},W:9(){7(1h k.n.1r!=\'2j\'&&k.n.1r!==o){56(k.n.1r)}$(\'#x-G-\'+k.n.M.18).W(y,y).z(\'K-L\',0);k.n.1r=o},4z:9(){7(k.4.G.1N&&!k.n.1H){k.6.1d.19(k.6.Q).W(y,J).54(\'4N\')}k.n.1H=J},4A:9(){7(k.4.G.1N&&k.n.1H){k.6.1d.19(k.6.Q).W(y,J).53(\'4N\')}k.n.1H=y},Q:9(){7(k.4.17.R>1){k.n.W();$(\'#x-G-\'+k.n.M.18).W(y,y).z(\'K-L\',0);t a=(k.n.M.18+1);a=(a<=(k.4.17.R-1))?a:0;k.n.M.Q=a;k.n.1s(J)}},1d:9(){7(k.4.17.R>1){k.n.W();$(\'#x-G-\'+k.n.M.18).W(y,y).z(\'K-L\',0);t a=(k.n.M.18-1);a=(a>=0)?a:(k.4.17.R-1);k.n.M.Q=a;k.n.1s(J)}},4J:9(a,b){t c=$(\'#x-G-\'+k.n.M.18).z(\'K-L\',(k.4.A.2z?-(a):0));7(k.4.G.2S.1f){t d=3n.4X(a/k.4.G.2S.1w)*3t;t e={\'K-L\':(k.4.A.2z?0:-(a))};c.1n(k.4.G.2S.1n).1x(e,d,\'4W\',9(){7(k.n.M.Q==k.n.M.18){k.n.1r=1G(9(){k.n.3I(b)},k.4.G.1n)}N{k.n.1r=1G(9(){k.n.3a(b)},k.4.G.1n)}})}},3I:9(a){a=a||y;7(k.n.1H){k.n.1r=1G(9(){k.n.3I(a)},k.4.G.1n);C}$(\'#x-G-\'+k.n.M.18).W(y,y).z(\'K-L\',0);k.n.M.18=-1;k.n.1s(a)},3a:9(a){a=a||y;7(k.n.1H){k.n.1r=1G(9(){k.n.3a(a)},k.4.G.1n);C}$(\'#x-G-\'+k.n.M.18).1x({\'2D\':0},k.4.G.4F,9(){k.n.1s(a)})},4r:9(a){7(k.u.1a(k.4.G.2k)){a.P(k.4.G.2k)}N{k.u.2h(a,k.4.G.1U);t b=a.5u(\'a\');k.u.2h(b,k.4.G.2Y);b.21(\'3v 3w\').4V({3v:9(){k.u.2h($(3A),k.4.G.2Y.3D)},3w:9(){k.u.2h($(3A),k.4.G.2Y)}})}}},1j:{1V:{2m:9(){C(1h 1T!=\'2j\')},1v:9(){C(k.1j.1V.2m()&&1h 1T.1v!=\'2j\')}},1X:{2m:9(){$(\'<4P></4P>\').25(\'1O\',\'1E/4Y\').25(\'4Z\',\'2g://3Q.1T.2H/51?52=\'+k.4.3K+\'&4O=4M.45\').3U(\'55\')},1v:9(){1T.1X(\'1v\',\'1\',{\'4O\':k.1j.2s.17})}},2s:{17:9(){7(k.4.1k.1f&&k.u.1a(k.4.1k.2q)){k.1j.2s.1k()}7(k.4.1m.1f&&k.u.1a(k.4.1m.1M)){k.1j.2s.1m()}},1k:9(){t c=\'2g://57.1k.2H/1/58/59.1m?5a=0&4e=\'+k.4.1k.2q;t d=2E 1T.1v.4D(c);d.4i(k.4.1k.4G);d.1X(9(a){k.n.W();7(!a.1t){2l(t i=0;i<a.2R.2Q.R;i++){t b=k.u.4Q(a.2R.2Q[i].3i);k.4.17.3L(b)}}N{1e.1t(a.1t.G)}k.6.G.W(y,J).z({\'L\':0,\'2D\':2I});k.n.1s(J)})},1m:9(){t c=2E 1T.1v.4D(k.4.1m.1M);c.4i(k.4.1m.4a);c.1X(9(a){k.n.W();7(!a.1t){2l(t i=0;i<a.2R.2Q.R;i++){t b=a.2R.2Q[i].3i;7(k.u.1a(k.4.1m.3G)){b+=\' <a 2i="\'+a.2R.2Q[i].5h+\'" 1Q="\'+k.4.1m.4B+\'">\'+k.4.1m.3G+\'</a>\'}k.4.17.3L(b)}}N{1e.1t(a.1t.G)}k.6.G.W(y,J).z({\'L\':0,\'2D\':2I});k.n.1s(J)})}}},35:9(a,b,c){7(1h a===\'1R\'){2a(a){X\'F\':k.2p(o);1i;X\'O\':k.2x(o);1i;X\'2W\':k.2W();1i;X\'2O\':k.2O();1i;X\'1d\':k.n.1d();1i;X\'Q\':k.n.Q();1i;X\'1s\':k.n.1s();1i;X\'W\':k.n.W();1i;X\'2L\':{2a(3C.R){X 3:k.2L.2d(b,c);1i;X 2:{7(1h b===\'1R\'){C k.2L.2P(b)}k.2L.2d(b,o)}}1i}2o:k.2Z($.2w(J,{},j,{\'17\':[a]}));1i}}N{k.2Z($.2w(J,{},j,a))}C y},3c:9(){7($(\'.x-Z\').R===0){k.6.H.Z=$(\'<14></14>\').P(\'x-Z\');k.6.H.l=$(\'<3m></3m>\').25({\'5n\':0,\'5o\':0}).P(\'x-l\');k.6.H.1Z=$(\'<4h></4h>\').P(\'x-l-1Z\');k.6.H.Y=$(\'<14></14>\').P(\'x-Y\');k.6.L.l=$(\'<1y></1y>\').P(\'x-l-L\');k.6.L.U=$(\'<14></14>\').P(\'x-l-U\');k.6.13.l=$(\'<1y></1y>\').P(\'x-l-13\');k.6.13.U=$(\'<14></14>\').P(\'x-l-U\');k.6.S.l=$(\'<1y></1y>\').P(\'x-l-S\');k.6.S.U=$(\'<14></14>\').P(\'x-l-U\');k.6.1d=$(\'<14></14>\').P(\'x-1d-v\');k.6.Q=$(\'<14></14>\').P(\'x-Q-v\');k.6.G=$(\'<14></14>\').P(\'x-G\');k.6.O.1u=$(\'<1y></1y>\').P(\'x-O-v-1u\');k.6.O.l=$(\'<1y></1y>\').P(\'x-O-v-l\');k.6.O.v=$(\'<2V></2V>\').P(\'x-O-v\');k.6.F.l=$(\'<14></14>\').P(\'x-F-v-l\');k.6.F.v=$(\'<2V></2V>\').P(\'x-F-v\');k.6.H.Z.10(k.6.H.l.10(k.6.H.1Z)).10(k.6.H.Y).10(k.6.F.l);k.6.H.1Z.10(k.6.L.l.10(k.6.L.U)).10(k.6.13.l.10(k.6.13.U.10(k.6.G).10(k.6.1d).10(k.6.Q))).10(k.6.S.l.10(k.6.S.U)).10(k.6.O.l);k.6.O.l.10(k.6.O.v);k.6.F.l.10(k.6.F.v);$(\'3V\').5s(k.6.H.Z)}N{k.6.H.Z=$(\'.x-Z\');k.6.H.l=$(\'.x-l\');k.6.H.1Z=$(\'.x-l-1Z\');k.6.H.Y=$(\'.x-Y\');k.6.L.l=$(\'.x-l-L\');k.6.L.U=$(\'.x-l-L .x-l-U\');k.6.13.l=$(\'.x-l-13\');k.6.13.U=$(\'.x-l-13 .x-l-U\');k.6.S.l=$(\'.x-l-S\');k.6.S.U=$(\'.x-l-S .x-l-U\');k.6.1d=$(\'.x-1d-v\');k.6.Q=$(\'.x-Q-v\');k.6.G=$(\'.x-G\');k.6.O.1u=$(\'.x-O-v-1u\');k.6.O.l=$(\'.x-O-v-l\');k.6.O.v=$(\'.x-O-v\');k.6.F.l=$(\'.x-F-v-l\');k.6.F.v=$(\'.x-F-v\')}k.r.E.1z=J},1o:{3O:9(){t a=k.u.3r();7(a!=o&&a.1q==k.4.V.1q&&k.4.V.1f&&!a.26&&k.4.A.v.1O==\'O\'){k.2O();C y}N 7(a!=o&&a.1q!=k.4.V.1q&&k.4.V.1f&&!a.26&&k.4.A.v.1O==\'O\'){k.u.3q()}C J},35:9(){k.r.E.I=k.4.16.T!=\'12\';7(!k.r.E.1z){k.r.1p=k.u.1g.2T($(\'1l\').z(k.r.E.I?\'K-I\':\'K-12\'),0);k.r.1p=k.4.16.4C?0:k.r.1p;k.3c()}N{k.6.L.U.19(k.6.S.U).3p()}7(k.4.A.v.1O==\'O\'){k.6.F.l.P(\'2t\')}N{k.6.F.l.2v(\'2t\')}k.6.H.l.27()},1C:9(){7(k.4.A.1C.1N==o){k.4.A.1C.1N=k.4.A.1C.T}k.6.H.Z.2v().P(k.4.A.1C.T).P(\'x-Z\');k.6.1d.2v().P(k.4.A.1C.1N).P(\'x-1d-v\');k.6.Q.2v().P(k.4.A.1C.1N).P(\'x-Q-v\')},1F:9(){7(k.4.A.v.1F==o){k.4.A.v.1F=k.4.A.1F}k.6.H.l.19(k.6.1d).19(k.6.Q).19(k.6.F.v).z({\'3F-1A\':k.4.A.1F});k.6.F.v.z({\'3F-1A\':k.4.A.v.1F})},Y:9(){7(k.4.A.Y){k.6.H.Z.P(\'Y\')}N{k.6.H.Z.2v(\'Y\')}k.r.2A=k.6.H.Y.D()},1c:9(){7(k.4.A.v.1c==o){k.4.A.v.1c=k.4.A.1c}k.6.H.l.z(\'1c\',\'43\').z(k.r.E.I?\'1c-12\':\'1c-I\',k.4.A.1c);k.6.F.v.z(\'1c\',k.4.A.v.1c).z((k.r.E.I?\'1c-I\':\'1c-12\'),\'43\')},D:9(){k.6.F.l.D(k.4.D.v+k.r.2U);k.6.F.v.D(k.4.D.v);k.6.H.l.19(k.6.O.v).19(k.6.1d).19(k.6.Q).19(k.6.L.l).19(k.6.13.l).19(k.6.S.l).D(k.4.D.T);k.6.L.U.19(k.6.13.U).19(k.6.S.U).z(\'3E-D\',k.4.D.T);t a=k.u.1g.3h(k.4.A.1c,0);k.r.2B=k.4.D.T+k.r.2A+a;k.6.H.Z.D(k.r.2B);k.6.1d.19(k.6.Q).z(\'K-I\',-(k.4.D.T/2))},16:9(){k.6.H.Z.2v(\'1B I 12\').P(k.4.16.T);7(!k.r.E.I){k.6.H.l.5z(k.6.H.Y)}N{k.6.H.l.5A(k.6.H.Y)}k.6.H.Z.19(k.6.F.l).z((k.r.E.I?\'12\':\'I\'),\'32\').z((k.r.E.I?\'I\':\'12\'),(k.4.16.T==\'1B\')?0:k.r.1p);t a=k.u.1g.3h(k.4.A.v.1c,0);t b=-((k.6.F.v.1b()/2)+a);k.6.F.v.z(\'K-L\',b);k.6.O.1u.5B();k.6.L.l.z(k.u.1g.1b(k.4.1b.L));k.6.13.l.z(k.u.1g.1b(k.4.1b.13));k.6.S.l.z(k.u.1g.1b(k.4.1b.S));k.6.O.l.19(k.6.O.1u).19(k.6.F.l).z(k.u.1g.1b(k.4.1b.v));7(k.4.16.v==\'S\'){7(k.4.A.v.1u){k.6.O.1u.3Y(k.6.13.l)}k.6.O.l.4R(k.6.S.l).27();k.6.F.l.z({\'L\':\'32\',\'S\':\'4I\'}).27()}N 7(k.4.16.v==\'L\'){7(k.4.A.v.1u){k.6.O.1u.4R(k.6.13.l)}k.6.O.l.3Y(k.6.L.l).27();k.6.F.l.z({\'S\':\'32\',\'L\':\'4I\'}).27()}N{k.6.O.l.2f();k.6.F.l.2f()}},15:9(){7(k.4.16.15==\'L\'||k.4.16.15==\'S\'){7(k.4.15.3H.R>0){t c=$(\'.x-15\').R>0?$(\'.x-15\'):$(\'<3X></3X>\').P(\'x-15\');c.3p();7(k.u.1a(k.4.15.1E)){t d=$(\'<2K></2K>\').P(\'x-15-1E\').1E(k.4.15.1E).z({\'D\':k.4.D.T,\'5H-D\':k.4.D.T+\'5I\'});7(k.u.1a(k.4.15.2k)){d.P(k.4.15.2k)}N{k.u.2h(d,k.4.15.1U)}c.10(d)}t e={\'2b\':o,\'1M\':o,\'3x\':o,\'1Q\':\'2r\'};$.5K(k.4.15.3H,9(i,p){t a=$.2w({},e,p);7(a.2b!==o&&a.1M!==o&&a.3x!==o){t b=$(\'<a></a>\').25(\'2i\',a.1M).25(\'3i\',a.2b).25(\'1Q\',a.1Q).z({\'3F\':"1M(\'"+a.3x+"\') 5M-5N 13 13",\'D\':k.4.D.T});c.10($(\'<2K></2K>\').z({\'D\':k.4.D.T}).10(b))}});7(k.4.16.15==\'S\'){c.z(\'3k\',\'S\');k.6.S.U.10(c)}N 7(k.4.16.15==\'L\'){c.z(\'3k\',\'L\');k.6.L.U.10(c)}c.4s(\'2K\').z({\'3k\':(k.4.A.2z?\'S\':\'L\'),\'1E-5P\':(k.4.A.2z?\'S\':\'L\')})}N{$(\'.x-15\').2M()}}N{$(\'.x-15\').2M()}},49:9(){7(k.u.1a(k.4.3o)){k.6.S.U.10(k.u.1g.1l(k.4.3o))}7(k.u.1a(k.4.3J)){k.6.L.U.10(k.u.1g.1l(k.4.3J))}},V:9(){t a=k.u.3r();7(a===o||a.1q!=k.4.V.1q||!k.4.V.1f){7(!k.4.V.1f||(a!==o&&a.1q!=k.4.V.1q)){k.u.3q()}2a(k.4.A.1O){X\'5R\':k.28();$(2X).5S(\'2S\',9(){1G(k.2p,k.4.A.1n)});1i;X\'5T\':k.28();1G(k.2p,k.4.A.1n);1i;X\'5U\':k.28();1i;X\'26\':2o:k.2G();1i}}N{a.26?k.2G():k.28()}},4T:9(){7(k.4.A.v.1O==\'O\'){k.6.F.v.21().2f();k.6.O.v.21().2n(9(e){k.2x(e,k.2O)})}N{k.6.F.v.21().2n(k.2p);k.6.O.v.21().2n(k.2x)}$(\'.x-G-Z\').2M();k.n.1H=y;k.n.M.Q=0;k.n.M.18=-1;t a=J,34=y;7(k.4.1k.1f&&k.u.1a(k.4.1k.2q)){a=y;7(k.1j.1V.2m()&&k.1j.1V.1v()){k.1j.2s.1k()}N{34=J}}7(k.4.1m.1f&&k.u.1a(k.4.3K)&&k.u.1a(k.4.1m.1M)){a=y;7(k.1j.1V.2m()&&k.1j.1V.1v()){k.1j.2s.1m()}N{34=J}}7(34){7(k.1j.1V.1v()){k.1j.1X.1v()}N{k.1j.1X.2m()}}7(a){k.6.G.W(J,y).z(\'2D\',2I);k.n.1s()}k.r.E.31=y;t b=$.5X;7(b.5Y&&4U(b.1q)==8){t c=k.6.H.l.z(\'A\');k.6.H.l.z({\'1Y\':\'2t\',\'A\':\'1B-3m\'});k.6.H.Y.z(\'1Y\',\'2t\');1G(9(){k.6.H.l.z({\'1Y\':\'3B\',\'A\':c});k.6.H.Y.z(\'1Y\',\'3B\')},0)}}},2Z:9(a){k.4=a;7(k.1o.3O()){k.u.1S(k.4.22.3M,k.4);k.1o.35();k.1o.1C();k.1o.1F();k.1o.Y();k.1o.1c();k.1o.D();k.1o.16();k.1o.15();k.1o.49();k.1o.V();k.1o.4T();k.u.1S(k.4.22.3R,k.4)}},2O:9(){7(!k.r.E.1z){C}7(k.4.A.2e){t a={\'K-I\':0,\'K-12\':0};7(k.4.16.T!=\'1B\'){a[(k.r.E.I?\'K-I\':\'K-12\')]=(k.r.1p<=0)?0:(k.r.1p-k.4.D.T)}N{a[(k.r.E.I?\'K-I\':\'K-12\')]=k.r.1p}$(\'1l\').z(a)}k.6.H.Z.2M();k.r.E.1z=y},2W:9(){7(!k.r.E.1z){C}7(k.r.E.F){k.2x(o)}N{k.2p(o)}},2p:9(e){k.u.2N(e);7(!k.r.E.1z||k.r.E.F||k.r.E.1D){C}k.r.E.1D=J;k.6.F.v.W(y,J).1x({\'D\':0},k.4.A.1w);k.6.F.l.W(y,J).1x({\'D\':0},k.4.A.1w,9(){7(k.4.A.2e){t a={};7(k.4.16.T!=\'1B\'){a[(k.r.E.I?\'K-12\':\'K-I\')]=0;t b={};b[(k.r.E.I?\'K-I\':\'K-12\')]=\'+=\'+k.4.D.T;$(\'1l\').z(a).W(y,J).1x(b,k.4.A.1w)}N{a[(k.r.E.I?\'K-12\':\'K-I\')]=0;a[(k.r.E.I?\'K-I\':\'K-12\')]=k.r.1p;$(\'1l\').z(a)}}k.u.1S(k.4.22.4K,k.4);k.6.H.l.27();k.6.H.Z.W(y,J).1x({\'D\':k.r.2B},k.4.A.1w,k.4.A.3b,9(){k.6.H.Z.5Z();k.r.E.F=J;k.n.1s(J);k.r.E.1D=y})});7(k.4.V.1f){k.u.2J(J)}},2x:9(e,a){k.u.2N(e);7(!k.r.E.1z||!k.r.E.F||k.r.E.1D){C}k.r.E.1D=J;k.n.W();7(k.4.A.2e){t b={};7(k.4.16.T!=\'1B\'){b[(k.r.E.I?\'K-12\':\'K-I\')]=0;t c={};c[(k.r.E.I?\'K-I\':\'K-12\')]=\'-=\'+k.4.D.T;$(\'1l\').z(b).W(y,J).1x(c,k.4.A.1w)}N{b[(k.r.E.I?\'K-12\':\'K-I\')]=0;b[(k.r.E.I?\'K-I\':\'K-12\')]=k.r.1p;$(\'1l\').z(b)}}k.u.1S(k.4.22.4L,k.4);k.6.H.Z.W(y,J).1x({\'D\':k.r.2A},k.4.A.1w,9(){k.6.H.l.2f();k.6.F.l.W(y,J).1x({\'D\':k.4.D.v+k.r.2U},k.4.A.1w,k.4.A.3b);k.6.F.v.W(y,J).1x({\'D\':k.4.D.v},k.4.A.1w,k.4.A.3b,9(){7($.4q(a)){a.3l()}k.r.E.1D=y})});k.r.E.F=y;7(k.4.V.1f){k.u.2J(y)}},2G:9(){7(!k.r.E.1z||k.r.E.1D){C}k.6.H.Z.D(k.r.2B);k.6.H.l.27();k.6.F.l.19(k.6.F.v).D(0);7(k.4.A.2e&&k.4.16.T!=\'1B\'){t a={\'K-I\':0,\'K-12\':0};a[(k.r.E.I?\'K-I\':\'K-12\')]=(k.r.1p<=0)?k.4.D.T:(k.r.1p+k.4.D.T);$(\'1l\').z(a)}7(k.r.E.31||!k.r.E.F){k.u.1S(k.4.22.2G,k.4)}k.r.E.F=J;7(k.4.V.1f){k.u.2J(J)}},28:9(){7(!k.r.E.1z||k.r.E.1D){C}k.6.H.Z.D(k.r.2A);k.6.H.l.2f();k.6.F.l.D(k.4.D.v+k.r.2U);k.6.F.v.D(k.4.D.v);7(k.4.A.2e&&k.4.16.T!=\'1B\'){t a={\'K-I\':0,\'K-12\':0};a[(k.r.E.I?\'K-I\':\'K-12\')]=k.r.1p;$(\'1l\').z(a)}7(k.r.E.31||k.r.E.F){k.u.1S(k.4.22.28,k.4)}k.r.E.F=y;7(k.4.V.1f){k.u.2J(y)}},2L:{2P:9(a){C k.u.2c.2P(k.4,a)},2d:9(a,b){7(1h a===\'1R\'){k.u.2c.2d(k.4,a,b)}N{k.u.2c.3g(k.4,a)}k.2Z(k.4)}}}})(4M);t 1T;t 1e;7(!2X.1e){1e={}}1e.4v=1e.4v||9(){};1e.4l=1e.4l||9(){};1e.1t=1e.1t||9(){};1e.44=1e.44||9(){};t 2C;7(!2C){2C={}}2C.4m=2C.4m||9(){};',62,378,'||||settings||elements|if||function||||||||||||container||messageLoop|null|||_internals||var|utils|button||foobar|false|css|display||return|height|state|open|message|main|top|true|margin|left|index|else|close|addClass|next|length|right|bar|inner|cookie|stop|case|shadow|wrapper|append||bottom|center|div|social|position|messages|current|add|isNotNullOrEmpty|width|border|prev|console|enabled|parse|typeof|break|googleApi|twitter|html|rss|delay|_render|offsetMargin|version|id|start|error|spacer|feeds|speed|animate|td|initialized|color|inline|theme|busy|text|backgroundColor|setTimeout|paused|decoration|size|family|err|url|navigation|type|indexOf|target|string|raise|google|font|check|weight|load|visibility|row||unbind|events|||attr|expanded|show|setCollapsed|substring|switch|name|property|set|adjustPageHeight|hide|http|applyFont|href|undefined|cssClass|for|core|click|default|expand|user|_blank|fetch|hidden|checks|removeClass|extend|collapse|sizes|rtl|shadowHeight|actualHeight|JSON|opacity|new|replace|setExpanded|com|100|setCookie|li|option|remove|preventDefault|destroy|get|entries|feed|scroll|integer|tabShadowHeight|span|toggle|window|aFont|render||firstrun|auto|try|handleFeeds|init|class|twtr|catch|random|_fade|easing|create|_random|duration|isArray|merge|borderWidth|title|bool|float|call|table|Math|rightHtml|empty|deleteCookie|getCookie|document|1000|isMultipart|mouseenter|mouseleave|image|Verdana|10pt|this|visible|arguments|hover|max|background|linkText|profiles|_reset|leftHtml|googleAPIKey|push|preRender|include|allow|exec|www|postRender|absolute|match|appendTo|body|apply|ul|insertBefore|hasProperties|object|in|hasOwnProperty|none|info|foobarGoogleCallback|zA|Z0|9_|customHtml|maxResults|atreply|Date|setTime|screen_name|getTime|to|tr|setNumEntries|_setCurrent|_setNext|warn|stringify|expires|toGMTString|block|isFunction|_style|children|Array|prototype|log|path|White|split|pause|resume|linkTarget|ignoreOffsetMargin|Feed|while|fadeDelay|maxTweets|min|0px|_scroll|expanding|collapsing|jQuery|fast|callback|script|formatTweetHtml|insertAfter|number|finalise|parseInt|bind|linear|round|javascript|src||jsapi|key|fadeOut|fadeIn|head|clearTimeout|api|statuses|user_timeline|trim_user|static|floor|toString|Object|RegExp|isNaN|link|boolean|toLowerCase|shift|slice|search|cellpadding|cellspacing|hashtag|gi|intent|prepend|hyperlink|find|charAt|More|Read|us|before|after|detach|Follow|underline|LightYellow|2000|300|line|px|4000|each|swing|no|repeat|arrow|align|triangle|onscroll|one|delayed|collapsed|FFF|3px|browser|msie|focus||solid|6c9e00|250|80px|https'.split('|'),0,{}))
;/* ------------------------------------------------------------------------
	Class: prettyPhoto
	Use: Lightbox clone for jQuery
	Author: Stephane Caron (http://www.no-margin-for-errors.com)
	Version: 3.1.3
------------------------------------------------------------------------- */

(function($){$.prettyPhoto={version:'3.1.3'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> \
      <div class="ppt">&nbsp;</div> \
      <div class="pp_top"> \
       <div class="pp_left"></div> \
       <div class="pp_middle"></div> \
       <div class="pp_right"></div> \
      </div> \
      <div class="pp_content_container"> \
       <div class="pp_left"> \
       <div class="pp_right"> \
        <div class="pp_content"> \
         <div class="pp_loaderIcon"></div> \
         <div class="pp_fade"> \
          <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
          <div class="pp_hoverContainer"> \
           <a class="pp_next" href="#">next</a> \
           <a class="pp_previous" href="#">previous</a> \
          </div> \
          <div id="pp_full_res"></div> \
          <div class="pp_details"> \
           <div class="pp_nav"> \
            <a href="#" class="pp_arrow_previous">Previous</a> \
            <p class="currentTextHolder">0/0</p> \
            <a href="#" class="pp_arrow_next">Next</a> \
           </div> \
           <p class="pp_description"></p> \
           <div class="pp_social">{pp_social}</div> \
           <a class="pp_close" href="#">Close</a> \
          </div> \
         </div> \
        </div> \
       </div> \
       </div> \
      </div> \
      <div class="pp_bottom"> \
       <div class="pp_left"></div> \
       <div class="pp_middle"></div> \
       <div class="pp_right"></div> \
      </div> \
     </div> \
     <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \
        <a href="#" class="pp_arrow_previous">Previous</a> \
        <div> \
         <ul> \
          {gallery} \
         </ul> \
        </div> \
        <a href="#" class="pp_arrow_next">Next</a> \
       </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:'',social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal)
$.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>30)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a[rel^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize)
$(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;}
$.prettyPhoto.open=function(event){$foobar('close');if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;_build_overlay(event.target);}
if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking)
setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);}
if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();}
movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;}
if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;}
$pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html('&nbsp;');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0)
movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0)
movie_id=movie_id.substr(0,movie_id.indexOf('&'));}
movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&amp;byline=0&amp;portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('<br clear="all" />').css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};}
$.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;}
$.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}
if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}
if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;}
function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight)
return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide();}else{$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show();};galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css('margin-left',-((galleryWidth/2)+(navWidth/2))).find('div:first').width(galleryWidth+5).find('ul').width(fullGalleryWidth).find('li.selected').removeClass('selected');goToPage=(Math.floor(set_position/itemsPerPage)<totalPage)?Math.floor(set_position/itemsPerPage):totalPage;$.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');}else{$pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');}}
function _build_overlay(caller){if(settings.social_tools)
facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));settings.markup=settings.markup.replace('{pp_social}',(settings.social_tools)?facebook_like_link:'');$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var i=0;i<pp_images.length;i++){if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname='default';img_src='';}else{classname='';img_src=pp_images[i];}
toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
$pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});}
$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);}
return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#!')!=-1)?decodeURI(url.substring(url.indexOf('#!')+2,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash='!'+theRel+'/'+rel_index+'/';};function clearHashtag(){url=location.href;hashtag=(url.indexOf('#!prettyPhoto'))?true:false;if(hashtag)location.hash="!prettyPhoto";}
function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false;
;/* 
 * flowplayer.js 3.2.4. The Flowplayer API
 * 
 * Copyright 2009 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2010-08-25 12:48:46 +0000 (Wed, 25 Aug 2010)
 * Revision: 551 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.4";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasOwnProperty(f)){m[f]=l[f]}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var m,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=m&&m.GetVariable("$version")}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=m&&m.GetVariable("$version")}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.4"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();
;jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options=$.extend({},options);options.expires=-1}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires='; expires='+date.toUTCString()}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('')}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}};
jQuery.fn.fontresizermanager = function () {
    var fontResizer_value = jQuery('#fontResizer_value').val();
    var fontResizer_ownid = jQuery('#fontResizer_ownid').val();
    var fontResizer_ownelement = jQuery('#fontResizer_ownelement').val();
    var fontResizer_resizeSteps = jQuery('#fontResizer_resizeSteps').val();
    var fontResizer_cookieTime = jQuery('#fontResizer_cookieTime').val();
    var fontResizer_element = fontResizer_value;
	if(fontResizer_value == "innerbody") {
		fontResizer_element = "div#innerbody";
	} else if(fontResizer_value == "ownid") {
		fontResizer_element = "div#" + fontResizer_ownid;
	} else if(fontResizer_value == "ownelement") {
		fontResizer_element = fontResizer_ownelement;
	}
	var startFontSize = parseFloat(jQuery(fontResizer_element+"").css("font-size"));
	var savedSize = jQuery.cookie('fontSize');
	if(savedSize > 4) {
		jQuery(fontResizer_element).css("font-size", savedSize + "px");
	}
	jQuery('.fontResizer_add').css("cursor","pointer");
	jQuery('.fontResizer_minus').css("cursor","pointer");
	jQuery('.fontResizer_reset').css("cursor","pointer");
	jQuery('.fontResizer_add').click(function() {
		var newFontSize = parseFloat(jQuery(fontResizer_element+"").css("font-size"));
		newFontSize=newFontSize+parseFloat(fontResizer_resizeSteps);
		jQuery(fontResizer_element+"").css("font-size",newFontSize+"px");
		jQuery.cookie('fontSize', newFontSize, {expires: parseInt(fontResizer_cookieTime), path: '/'});
	});
	jQuery('.fontResizer_minus').click(function() {
		var newFontSize = parseFloat(jQuery(fontResizer_element+"").css("font-size"))
		newFontSize=newFontSize-fontResizer_resizeSteps;
		jQuery(""+fontResizer_element+"").css("font-size",newFontSize+"px");			 
		jQuery.cookie('fontSize', newFontSize, {expires: parseInt(fontResizer_cookieTime), path: '/'});
	});
	jQuery('.fontResizer_reset').click(function() {
		jQuery(""+fontResizer_element+"").css("font-size",startFontSize);			 
		jQuery.cookie('fontSize', startFontSize, {expires: parseInt(fontResizer_cookieTime), path: '/'});
	});
}
jQuery(document).ready(function(){jQuery(".fontResizer").fontresizermanager();});

;jQuery(document).ready(function(){
	jQuery("input[id*=checkboxall]").click(function() {
		var checked_status = this.checked;
		jQuery("input[id*=checklist]").each(function() {
			this.checked = checked_status;
		});
	});
	
	jQuery("input[id*=checkinvert]").click(function() {
		//this.checked = false;
	
		jQuery("input[id*=checklist]").each(function() {
			var status = this.checked;
			
			if (status == true) {
				this.checked = false;
			} else {
				this.checked = true;
			}
		});
	});
});

function wpml_submitserial(form) {
	jQuery('#wpml_submitserial_loading').show();
	var formdata = jQuery(form).serialize();

	// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
	jQuery.post(ajaxurl + '?action=wpmlserialkey', formdata, function(response) {
		jQuery('#wpmlsubmitserial').html(response);
		jQuery.colorbox.resize();
	});
}

function jqCheckAll(checker, formid, name) {					
	jQuery('input:checkbox[name="' + name + '[]"]').each(function() {
		jQuery(this).attr("checked", checker.checked);
	});
}

function wpml_scroll(selector) {
	var targetOffset = jQuery(selector).offset().top;
    jQuery('html,body').animate({scrollTop: targetOffset}, 500);
}

function wpml_getlistfields(list_id, wpoptinid, divid, poststring, getpost, tabi) {
	jQuery('.wpmlerror').slideUp('slow');
	jQuery('#listfieldsdiv' + wpoptinid).slideUp('slow');
	if (getpost == "N") { var poststring = jQuery("#optinform" + wpoptinid).serialize(); }	
	jQuery("#widget_loading" + wpoptinid).show();
	
	jQuery.post(ajaxurl + "action=wpmlgetlistfields&id=" + list_id + "&wpoptinid=" + wpoptinid + "&tabi=" + tabi + "", poststring, function(data) {
		jQuery("#widget_loading" + wpoptinid).hide();
		jQuery("#" + divid).html(data).slideDown('slow');
	});
}

function wpml_subscribe(wpoptinid, form) {
	jQuery('#wpml-' + wpoptinid + 'button').button('option', 'disabled', true);
	jQuery('.wpmlerror').slideUp('slow');
	var formvalues = jQuery("#optinform" + wpoptinid).serialize();
	//var updatediv = "wpmlwidget-" + wpoptinid;
	var updatediv = "optinform" + wpoptinid;
	var mytime = new Date().getTime();
	
	jQuery("#widget_loading" + wpoptinid).show();
	
	jQuery.post(ajaxurl + 'action=wpmlsubscribe&mytime=' + mytime + '&divid=' + wpoptinid + '&id=' + wpoptinid, formvalues, function(response) {
		jQuery('#' + updatediv).html(response);
		jQuery('#wpml-' + wpoptinid + 'button').button('option', 'disabled', false);
		
		if (wpmlScroll == "Y") {
			wpml_scroll(jQuery('#' + updatediv));
		}
	});
}

function wpml_titletoslug(title) {
	var title = title.toLowerCase();
	var slug = title.replace(/[^0-9a-z]+/g, "");
	jQuery('#Field_slug').val(slug);	
}

function wpml_tinymcetag(tag) {
	if (window.tinyMCE && tag != "") {
		window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tag);
		//tinyMCEPopup.editor.execCommand('mceRepaint');	
	}
	
	wpml_scroll('#wp-content-editor-container');
}
