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

/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008)
 * Rev: 5685
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d=="23"){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=[]}}N I D(b).2q(d)}N G(D.1D(d))I D(S)[D.17.27?"27":"43"](d);I 7.6Y(D.2d(d))},5w:"1.2.6",8G:H(){I 7.K},K:0,3p:H(a){I a==12?D.2d(7):7[a]},2I:H(b){J a=D(b);a.5n=7;I a},6Y:H(a){7.K=0;2p.44.1p.1w(7,a);I 7},P:H(a,b){I D.P(7,a,b)},5i:H(b){J a=-1;I D.2L(b&&b.5w?b[0]:b,7)},1K:H(c,a,b){J d=c;G(c.1q==56)G(a===12)I 7[0]&&D[b||"1K"](7[0],c);N{d={};d[c]=a}I 7.P(H(i){R(c 1n d)D.1K(b?7.V:7,c,D.1i(7,d[c],b,i,c))})},1g:H(b,a){G((b==\'2h\'||b==\'1Z\')&&3d(a)<0)a=12;I 7.1K(b,a,"2a")},1r:H(b){G(1j b!="49"&&b!=U)I 7.4E().3v((7[0]&&7[0].2z||S).5F(b));J a="";D.P(b||7,H(){D.P(7.3t,H(){G(7.16!=8)a+=7.16!=1?7.76:D.17.1r([7])})});I a},5z:H(b){G(7[0])D(b,7[0].2z).5y().39(7[0]).2l(H(){J a=7;1B(a.1x)a=a.1x;I a}).3v(7);I 7},8Y:H(a){I 7.P(H(){D(7).6Q().5z(a)})},8R:H(a){I 7.P(H(){D(7).5z(a)})},3v:H(){I 7.3W(19,M,Q,H(a){G(7.16==1)7.3U(a)})},6F:H(){I 7.3W(19,M,M,H(a){G(7.16==1)7.39(a,7.1x)})},6E:H(){I 7.3W(19,Q,Q,H(a){7.1d.39(a,7)})},5q:H(){I 7.3W(19,Q,M,H(a){7.1d.39(a,7.2H)})},3l:H(){I 7.5n||D([])},2q:H(b){J c=D.2l(7,H(a){I D.2q(b,a)});I 7.2I(/[^+>] [^+>]/.11(b)||b.1h("..")>-1?D.4r(c):c)},5y:H(e){J f=7.2l(H(){G(D.14.1f&&!D.4n(7)){J a=7.6o(M),5h=S.3h("1v");5h.3U(a);I D.4h([5h.4H])[0]}N I 7.6o(M)});J d=f.2q("*").5c().P(H(){G(7[E]!=12)7[E]=U});G(e===M)7.2q("*").5c().P(H(i){G(7.16==3)I;J c=D.L(7,"3w");R(J a 1n c)R(J b 1n c[a])D.W.1e(d[i],a,c[a][b],c[a][b].L)});I f},1E:H(b){I 7.2I(D.1D(b)&&D.3C(7,H(a,i){I b.1k(a,i)})||D.3g(b,7))},4Y:H(b){G(b.1q==56)G(62.11(b))I 7.2I(D.3g(b,7,M));N b=D.3g(b,7);J a=b.K&&b[b.K-1]!==12&&!b.16;I 7.1E(H(){I a?D.2L(7,b)<0:7!=b})},1e:H(a){I 7.2I(D.4r(D.2R(7.3p(),1j a==\'23\'?D(a):D.2d(a))))},3F:H(a){I!!a&&D.3g(a,7).K>0},7T:H(a){I 7.3F("."+a)},6e:H(b){G(b==12){G(7.K){J c=7[0];G(D.Y(c,"2A")){J e=c.64,63=[],15=c.15,2V=c.O=="2A-2V";G(e<0)I U;R(J i=2V?e:0,2f=2V?e+1:15.K;i<2f;i++){J d=15[i];G(d.2W){b=D.14.1f&&!d.at.2x.an?d.1r:d.2x;G(2V)I b;63.1p(b)}}I 63}N I(7[0].2x||"").1o(/\\r/g,"")}I 12}G(b.1q==4L)b+=\'\';I 7.P(H(){G(7.16!=1)I;G(b.1q==2p&&/5O|5L/.11(7.O))7.4J=(D.2L(7.2x,b)>=0||D.2L(7.34,b)>=0);N G(D.Y(7,"2A")){J a=D.2d(b);D("9R",7).P(H(){7.2W=(D.2L(7.2x,a)>=0||D.2L(7.1r,a)>=0)});G(!a.K)7.64=-1}N 7.2x=b})},2K:H(a){I a==12?(7[0]?7[0].4H:U):7.4E().3v(a)},7b:H(a){I 7.5q(a).21()},79:H(i){I 7.3s(i,i+1)},3s:H(){I 7.2I(2p.44.3s.1w(7,19))},2l:H(b){I 7.2I(D.2l(7,H(a,i){I b.1k(a,i,a)}))},5c:H(){I 7.1e(7.5n)},L:H(d,b){J a=d.1R(".");a[1]=a[1]?"."+a[1]:"";G(b===12){J c=7.5C("9z"+a[1]+"!",[a[0]]);G(c===12&&7.K)c=D.L(7[0],d);I c===12&&a[1]?7.L(a[0]):c}N I 7.1P("9u"+a[1]+"!",[a[0],b]).P(H(){D.L(7,d,b)})},3b:H(a){I 7.P(H(){D.3b(7,a)})},3W:H(g,f,h,d){J e=7.K>1,3x;I 7.P(H(){G(!3x){3x=D.4h(g,7.2z);G(h)3x.9o()}J b=7;G(f&&D.Y(7,"1T")&&D.Y(3x[0],"4F"))b=7.3H("22")[0]||7.3U(7.2z.3h("22"));J c=D([]);D.P(3x,H(){J a=e?D(7).5y(M)[0]:7;G(D.Y(a,"1m"))c=c.1e(a);N{G(a.16==1)c=c.1e(D("1m",a).21());d.1k(b,a)}});c.P(6T)})}};D.17.5j.44=D.17;H 6T(i,a){G(a.4d)D.3Y({1a:a.4d,31:Q,1O:"1m"});N D.5u(a.1r||a.6O||a.4H||"");G(a.1d)a.1d.37(a)}H 1z(){I+2B 8J}D.1l=D.17.1l=H(){J b=19[0]||{},i=1,K=19.K,4x=Q,15;G(b.1q==8I){4x=b;b=19[1]||{};i=2}G(1j b!="49"&&1j b!="H")b={};G(K==i){b=7;--i}R(;i<K;i++)G((15=19[i])!=U)R(J c 1n 15){J a=b[c],2w=15[c];G(b===2w)6M;G(4x&&2w&&1j 2w=="49"&&!2w.16)b[c]=D.1l(4x,a||(2w.K!=U?[]:{}),2w);N G(2w!==12)b[c]=2w}I b};J E="4M"+1z(),6K=0,5r={},6G=/z-?5i|8B-?8A|1y|6B|8v-?1Z/i,3P=S.3P||{};D.1l({8u:H(a){1b.$=3m$;G(a)1b.4M=w;I D},1D:H(a){I!!a&&1j a!="23"&&!a.Y&&a.1q!=2p&&/^[\\s[]?H/.11(a+"")},4n:H(a){I a.1C&&!a.1c||a.2j&&a.2z&&!a.2z.1c},5u:H(a){a=D.3k(a);G(a){J b=S.3H("6w")[0]||S.1C,1m=S.3h("1m");1m.O="1r/4t";G(D.14.1f)1m.1r=a;N 1m.3U(S.5F(a));b.39(1m,b.1x);b.37(1m)}},Y:H(b,a){I b.Y&&b.Y.2r()==a.2r()},1Y:{},L:H(c,d,b){c=c==1b?5r:c;J a=c[E];G(!a)a=c[E]=++6K;G(d&&!D.1Y[a])D.1Y[a]={};G(b!==12)D.1Y[a][d]=b;I d?D.1Y[a][d]:a},3b:H(c,b){c=c==1b?5r:c;J a=c[E];G(b){G(D.1Y[a]){2U D.1Y[a][b];b="";R(b 1n D.1Y[a])1X;G(!b)D.3b(c)}}N{1U{2U c[E]}1V(e){G(c.5l)c.5l(E)}2U D.1Y[a]}},P:H(d,a,c){J e,i=0,K=d.K;G(c){G(K==12){R(e 1n d)G(a.1w(d[e],c)===Q)1X}N R(;i<K;)G(a.1w(d[i++],c)===Q)1X}N{G(K==12){R(e 1n d)G(a.1k(d[e],e,d[e])===Q)1X}N R(J b=d[0];i<K&&a.1k(b,i,b)!==Q;b=d[++i]){}}I d},1i:H(b,a,c,i,d){G(D.1D(a))a=a.1k(b,i);I a&&a.1q==4L&&c=="2a"&&!6G.11(d)?a+"2X":a},1F:{1e:H(c,b){D.P((b||"").1R(/\\s+/),H(i,a){G(c.16==1&&!D.1F.3T(c.1F,a))c.1F+=(c.1F?" ":"")+a})},21:H(c,b){G(c.16==1)c.1F=b!=12?D.3C(c.1F.1R(/\\s+/),H(a){I!D.1F.3T(b,a)}).6s(" "):""},3T:H(b,a){I D.2L(a,(b.1F||b).6r().1R(/\\s+/))>-1}},6q:H(b,c,a){J e={};R(J d 1n c){e[d]=b.V[d];b.V[d]=c[d]}a.1k(b);R(J d 1n c)b.V[d]=e[d]},1g:H(d,e,c){G(e=="2h"||e=="1Z"){J b,3X={30:"5x",5g:"1G",18:"3I"},35=e=="2h"?["5e","6k"]:["5G","6i"];H 5b(){b=e=="2h"?d.8f:d.8c;J a=0,2C=0;D.P(35,H(){a+=3d(D.2a(d,"57"+7,M))||0;2C+=3d(D.2a(d,"2C"+7+"4b",M))||0});b-=29.83(a+2C)}G(D(d).3F(":4j"))5b();N D.6q(d,3X,5b);I 29.2f(0,b)}I D.2a(d,e,c)},2a:H(f,l,k){J e,V=f.V;H 3E(b){G(!D.14.2k)I Q;J a=3P.54(b,U);I!a||a.52("3E")==""}G(l=="1y"&&D.14.1f){e=D.1K(V,"1y");I e==""?"1":e}G(D.14.2G&&l=="18"){J d=V.50;V.50="0 7Y 7W";V.50=d}G(l.1I(/4i/i))l=y;G(!k&&V&&V[l])e=V[l];N G(3P.54){G(l.1I(/4i/i))l="4i";l=l.1o(/([A-Z])/g,"-$1").3y();J c=3P.54(f,U);G(c&&!3E(f))e=c.52(l);N{J g=[],2E=[],a=f,i=0;R(;a&&3E(a);a=a.1d)2E.6h(a);R(;i<2E.K;i++)G(3E(2E[i])){g[i]=2E[i].V.18;2E[i].V.18="3I"}e=l=="18"&&g[2E.K-1]!=U?"2F":(c&&c.52(l))||"";R(i=0;i<g.K;i++)G(g[i]!=U)2E[i].V.18=g[i]}G(l=="1y"&&e=="")e="1"}N G(f.4g){J h=l.1o(/\\-(\\w)/g,H(a,b){I b.2r()});e=f.4g[l]||f.4g[h];G(!/^\\d+(2X)?$/i.11(e)&&/^\\d/.11(e)){J j=V.1A,66=f.65.1A;f.65.1A=f.4g.1A;V.1A=e||0;e=V.aM+"2X";V.1A=j;f.65.1A=66}}I e},4h:H(l,h){J k=[];h=h||S;G(1j h.3h==\'12\')h=h.2z||h[0]&&h[0].2z||S;D.P(l,H(i,d){G(!d)I;G(d.1q==4L)d+=\'\';G(1j d=="23"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,H(b,a,c){I c.1I(/^(aK|4f|7E|aG|4T|7A|aB|3n|az|ay|av)$/i)?b:a+"></"+c+">"});J f=D.3k(d).3y(),1v=h.3h("1v");J e=!f.1h("<au")&&[1,"<2A 7w=\'7w\'>","</2A>"]||!f.1h("<ar")&&[1,"<7v>","</7v>"]||f.1I(/^<(aq|22|am|ak|ai)/)&&[1,"<1T>","</1T>"]||!f.1h("<4F")&&[2,"<1T><22>","</22></1T>"]||(!f.1h("<af")||!f.1h("<ad"))&&[3,"<1T><22><4F>","</4F></22></1T>"]||!f.1h("<7E")&&[2,"<1T><22></22><7q>","</7q></1T>"]||D.14.1f&&[1,"1v<1v>","</1v>"]||[0,"",""];1v.4H=e[1]+d+e[2];1B(e[0]--)1v=1v.5T;G(D.14.1f){J g=!f.1h("<1T")&&f.1h("<22")<0?1v.1x&&1v.1x.3t:e[1]=="<1T>"&&f.1h("<22")<0?1v.3t:[];R(J j=g.K-1;j>=0;--j)G(D.Y(g[j],"22")&&!g[j].3t.K)g[j].1d.37(g[j]);G(/^\\s/.11(d))1v.39(h.5F(d.1I(/^\\s*/)[0]),1v.1x)}d=D.2d(1v.3t)}G(d.K===0&&(!D.Y(d,"3V")&&!D.Y(d,"2A")))I;G(d[0]==12||D.Y(d,"3V")||d.15)k.1p(d);N k=D.2R(k,d)});I k},1K:H(d,f,c){G(!d||d.16==3||d.16==8)I 12;J e=!D.4n(d),40=c!==12,1f=D.14.1f;f=e&&D.3X[f]||f;G(d.2j){J g=/5Q|4d|V/.11(f);G(f=="2W"&&D.14.2k)d.1d.64;G(f 1n d&&e&&!g){G(40){G(f=="O"&&D.Y(d,"4T")&&d.1d)7p"O a3 a1\'t 9V 9U";d[f]=c}G(D.Y(d,"3V")&&d.7i(f))I d.7i(f).76;I d[f]}G(1f&&e&&f=="V")I D.1K(d.V,"9T",c);G(40)d.9Q(f,""+c);J h=1f&&e&&g?d.4G(f,2):d.4G(f);I h===U?12:h}G(1f&&f=="1y"){G(40){d.6B=1;d.1E=(d.1E||"").1o(/7f\\([^)]*\\)/,"")+(3r(c)+\'\'=="9L"?"":"7f(1y="+c*7a+")")}I d.1E&&d.1E.1h("1y=")>=0?(3d(d.1E.1I(/1y=([^)]*)/)[1])/7a)+\'\':""}f=f.1o(/-([a-z])/9H,H(a,b){I b.2r()});G(40)d[f]=c;I d[f]},3k:H(a){I(a||"").1o(/^\\s+|\\s+$/g,"")},2d:H(b){J a=[];G(b!=U){J i=b.K;G(i==U||b.1R||b.4I||b.1k)a[0]=b;N 1B(i)a[--i]=b[i]}I a},2L:H(b,a){R(J i=0,K=a.K;i<K;i++)G(a[i]===b)I i;I-1},2R:H(a,b){J i=0,T,2S=a.K;G(D.14.1f){1B(T=b[i++])G(T.16!=8)a[2S++]=T}N 1B(T=b[i++])a[2S++]=T;I a},4r:H(a){J c=[],2o={};1U{R(J i=0,K=a.K;i<K;i++){J b=D.L(a[i]);G(!2o[b]){2o[b]=M;c.1p(a[i])}}}1V(e){c=a}I c},3C:H(c,a,d){J b=[];R(J i=0,K=c.K;i<K;i++)G(!d!=!a(c[i],i))b.1p(c[i]);I b},2l:H(d,a){J c=[];R(J i=0,K=d.K;i<K;i++){J b=a(d[i],i);G(b!=U)c[c.K]=b}I c.7d.1w([],c)}});J v=9B.9A.3y();D.14={5B:(v.1I(/.+(?:9y|9x|9w|9v)[\\/: ]([\\d.]+)/)||[])[1],2k:/75/.11(v),2G:/2G/.11(v),1f:/1f/.11(v)&&!/2G/.11(v),42:/42/.11(v)&&!/(9s|75)/.11(v)};J y=D.14.1f?"7o":"72";D.1l({71:!D.14.1f||S.70=="6Z",3X:{"R":"9n","9k":"1F","4i":y,72:y,7o:y,9h:"9f",9e:"9d",9b:"99"}});D.P({6W:H(a){I a.1d},97:H(a){I D.4S(a,"1d")},95:H(a){I D.3a(a,2,"2H")},91:H(a){I D.3a(a,2,"4l")},8Z:H(a){I D.4S(a,"2H")},8X:H(a){I D.4S(a,"4l")},8W:H(a){I D.5v(a.1d.1x,a)},8V:H(a){I D.5v(a.1x)},6Q:H(a){I D.Y(a,"8U")?a.8T||a.8S.S:D.2d(a.3t)}},H(c,d){D.17[c]=H(b){J a=D.2l(7,d);G(b&&1j b=="23")a=D.3g(b,a);I 7.2I(D.4r(a))}});D.P({6P:"3v",8Q:"6F",39:"6E",8P:"5q",8O:"7b"},H(c,b){D.17[c]=H(){J a=19;I 7.P(H(){R(J i=0,K=a.K;i<K;i++)D(a[i])[b](7)})}});D.P({8N:H(a){D.1K(7,a,"");G(7.16==1)7.5l(a)},8M:H(a){D.1F.1e(7,a)},8L:H(a){D.1F.21(7,a)},8K:H(a){D.1F[D.1F.3T(7,a)?"21":"1e"](7,a)},21:H(a){G(!a||D.1E(a,[7]).r.K){D("*",7).1e(7).P(H(){D.W.21(7);D.3b(7)});G(7.1d)7.1d.37(7)}},4E:H(){D(">*",7).21();1B(7.1x)7.37(7.1x)}},H(a,b){D.17[a]=H(){I 7.P(b,19)}});D.P(["6N","4b"],H(i,c){J b=c.3y();D.17[b]=H(a){I 7[0]==1b?D.14.2G&&S.1c["5t"+c]||D.14.2k&&1b["5s"+c]||S.70=="6Z"&&S.1C["5t"+c]||S.1c["5t"+c]:7[0]==S?29.2f(29.2f(S.1c["4y"+c],S.1C["4y"+c]),29.2f(S.1c["2i"+c],S.1C["2i"+c])):a==12?(7.K?D.1g(7[0],b):U):7.1g(b,a.1q==56?a:a+"2X")}});H 25(a,b){I a[0]&&3r(D.2a(a[0],b,M),10)||0}J C=D.14.2k&&3r(D.14.5B)<8H?"(?:[\\\\w*3m-]|\\\\\\\\.)":"(?:[\\\\w\\8F-\\8E*3m-]|\\\\\\\\.)",6L=2B 4v("^>\\\\s*("+C+"+)"),6J=2B 4v("^("+C+"+)(#)("+C+"+)"),6I=2B 4v("^([#.]?)("+C+"*)");D.1l({6H:{"":H(a,i,m){I m[2]=="*"||D.Y(a,m[2])},"#":H(a,i,m){I a.4G("2v")==m[2]},":":{8D:H(a,i,m){I i<m[3]-0},8C:H(a,i,m){I i>m[3]-0},3a:H(a,i,m){I m[3]-0==i},79:H(a,i,m){I m[3]-0==i},3o:H(a,i){I i==0},3S:H(a,i,m,r){I i==r.K-1},6D:H(a,i){I i%2==0},6C:H(a,i){I i%2},"3o-4u":H(a){I a.1d.3H("*")[0]==a},"3S-4u":H(a){I D.3a(a.1d.5T,1,"4l")==a},"8z-4u":H(a){I!D.3a(a.1d.5T,2,"4l")},6W:H(a){I a.1x},4E:H(a){I!a.1x},8y:H(a,i,m){I(a.6O||a.8x||D(a).1r()||"").1h(m[3])>=0},4j:H(a){I"1G"!=a.O&&D.1g(a,"18")!="2F"&&D.1g(a,"5g")!="1G"},1G:H(a){I"1G"==a.O||D.1g(a,"18")=="2F"||D.1g(a,"5g")=="1G"},8w:H(a){I!a.3R},3R:H(a){I a.3R},4J:H(a){I a.4J},2W:H(a){I a.2W||D.1K(a,"2W")},1r:H(a){I"1r"==a.O},5O:H(a){I"5O"==a.O},5L:H(a){I"5L"==a.O},5p:H(a){I"5p"==a.O},3Q:H(a){I"3Q"==a.O},5o:H(a){I"5o"==a.O},6A:H(a){I"6A"==a.O},6z:H(a){I"6z"==a.O},2s:H(a){I"2s"==a.O||D.Y(a,"2s")},4T:H(a){I/4T|2A|6y|2s/i.11(a.Y)},3T:H(a,i,m){I D.2q(m[3],a).K},8t:H(a){I/h\\d/i.11(a.Y)},8s:H(a){I D.3C(D.3O,H(b){I a==b.T}).K}}},6x:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2B 4v("^([:.#]*)("+C+"+)")],3g:H(a,c,b){J d,1t=[];1B(a&&a!=d){d=a;J f=D.1E(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1t=b?c=f.r:D.2R(1t,f.r)}I 1t},2q:H(t,o){G(1j t!="23")I[t];G(o&&o.16!=1&&o.16!=9)I[];o=o||S;J d=[o],2o=[],3S,Y;1B(t&&3S!=t){J r=[];3S=t;t=D.3k(t);J l=Q,3j=6L,m=3j.2D(t);G(m){Y=m[1].2r();R(J i=0;d[i];i++)R(J c=d[i].1x;c;c=c.2H)G(c.16==1&&(Y=="*"||c.Y.2r()==Y))r.1p(c);d=r;t=t.1o(3j,"");G(t.1h(" ")==0)6M;l=M}N{3j=/^([>+~])\\s*(\\w*)/i;G((m=3j.2D(t))!=U){r=[];J k={};Y=m[2].2r();m=m[1];R(J j=0,3i=d.K;j<3i;j++){J n=m=="~"||m=="+"?d[j].2H:d[j].1x;R(;n;n=n.2H)G(n.16==1){J g=D.L(n);G(m=="~"&&k[g])1X;G(!Y||n.Y.2r()==Y){G(m=="~")k[g]=M;r.1p(n)}G(m=="+")1X}}d=r;t=D.3k(t.1o(3j,""));l=M}}G(t&&!l){G(!t.1h(",")){G(o==d[0])d.4s();2o=D.2R(2o,d);r=d=[o];t=" "+t.6v(1,t.K)}N{J h=6J;J m=h.2D(t);G(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2D(t)}m[2]=m[2].1o(/\\\\/g,"");J f=d[d.K-1];G(m[1]=="#"&&f&&f.61&&!D.4n(f)){J p=f.61(m[2]);G((D.14.1f||D.14.2G)&&p&&1j p.2v=="23"&&p.2v!=m[2])p=D(\'[@2v="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.Y(p,m[3]))?[p]:[]}N{R(J i=0;d[i];i++){J a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];G(a=="*"&&d[i].Y.3y()=="49")a="3n";r=D.2R(r,d[i].3H(a))}G(m[1]==".")r=D.5m(r,m[2]);G(m[1]=="#"){J e=[];R(J i=0;r[i];i++)G(r[i].4G("2v")==m[2]){e=[r[i]];1X}r=e}d=r}t=t.1o(h,"")}}G(t){J b=D.1E(t,r);d=r=b.r;t=D.3k(b.t)}}G(t)d=[];G(d&&o==d[0])d.4s();2o=D.2R(2o,d);I 2o},5m:H(r,m,a){m=" "+m+" ";J c=[];R(J i=0;r[i];i++){J b=(" "+r[i].1F+" ").1h(m)>=0;G(!a&&b||a&&!b)c.1p(r[i])}I c},1E:H(t,r,h){J d;1B(t&&t!=d){d=t;J p=D.6x,m;R(J i=0;p[i];i++){m=p[i].2D(t);G(m){t=t.8r(m[0].K);m[2]=m[2].1o(/\\\\/g,"");1X}}G(!m)1X;G(m[1]==":"&&m[2]=="4Y")r=62.11(m[3])?D.1E(m[3],r,M).r:D(r).4Y(m[3]);N G(m[1]==".")r=D.5m(r,m[2],h);N G(m[1]=="["){J g=[],O=m[3];R(J i=0,3i=r.K;i<3i;i++){J a=r[i],z=a[D.3X[m[2]]||m[2]];G(z==U||/5Q|4d|2W/.11(m[2]))z=D.1K(a,m[2])||\'\';G((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1h(m[5])||O=="$="&&z.6v(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1h(m[5])>=0)^h)g.1p(a)}r=g}N G(m[1]==":"&&m[2]=="3a-4u"){J e={},g=[],11=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2D(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.11(m[3])&&"8q+"+m[3]||m[3]),3o=(11[1]+(11[2]||1))-0,d=11[3]-0;R(J i=0,3i=r.K;i<3i;i++){J j=r[i],1d=j.1d,2v=D.L(1d);G(!e[2v]){J c=1;R(J n=1d.1x;n;n=n.2H)G(n.16==1)n.4q=c++;e[2v]=M}J b=Q;G(3o==0){G(j.4q==d)b=M}N G((j.4q-d)%3o==0&&(j.4q-d)/3o>=0)b=M;G(b^h)g.1p(j)}r=g}N{J f=D.6H[m[1]];G(1j f=="49")f=f[m[2]];G(1j f=="23")f=6u("Q||H(a,i){I "+f+";}");r=D.3C(r,H(a,i){I f(a,i,m,r)},h)}}I{r:r,t:t}},4S:H(b,c){J a=[],1t=b[c];1B(1t&&1t!=S){G(1t.16==1)a.1p(1t);1t=1t[c]}I a},3a:H(a,e,c,b){e=e||1;J d=0;R(;a;a=a[c])G(a.16==1&&++d==e)1X;I a},5v:H(n,a){J r=[];R(;n;n=n.2H){G(n.16==1&&n!=a)r.1p(n)}I r}});D.W={1e:H(f,i,g,e){G(f.16==3||f.16==8)I;G(D.14.1f&&f.4I)f=1b;G(!g.24)g.24=7.24++;G(e!=12){J h=g;g=7.3M(h,H(){I h.1w(7,19)});g.L=e}J j=D.L(f,"3w")||D.L(f,"3w",{}),1H=D.L(f,"1H")||D.L(f,"1H",H(){G(1j D!="12"&&!D.W.5k)I D.W.1H.1w(19.3L.T,19)});1H.T=f;D.P(i.1R(/\\s+/),H(c,b){J a=b.1R(".");b=a[0];g.O=a[1];J d=j[b];G(!d){d=j[b]={};G(!D.W.2t[b]||D.W.2t[b].4p.1k(f)===Q){G(f.3K)f.3K(b,1H,Q);N G(f.6t)f.6t("4o"+b,1H)}}d[g.24]=g;D.W.26[b]=M});f=U},24:1,26:{},21:H(e,h,f){G(e.16==3||e.16==8)I;J i=D.L(e,"3w"),1L,5i;G(i){G(h==12||(1j h=="23"&&h.8p(0)=="."))R(J g 1n i)7.21(e,g+(h||""));N{G(h.O){f=h.2y;h=h.O}D.P(h.1R(/\\s+/),H(b,a){J c=a.1R(".");a=c[0];G(i[a]){G(f)2U i[a][f.24];N R(f 1n i[a])G(!c[1]||i[a][f].O==c[1])2U i[a][f];R(1L 1n i[a])1X;G(!1L){G(!D.W.2t[a]||D.W.2t[a].4A.1k(e)===Q){G(e.6p)e.6p(a,D.L(e,"1H"),Q);N G(e.6n)e.6n("4o"+a,D.L(e,"1H"))}1L=U;2U i[a]}}})}R(1L 1n i)1X;G(!1L){J d=D.L(e,"1H");G(d)d.T=U;D.3b(e,"3w");D.3b(e,"1H")}}},1P:H(h,c,f,g,i){c=D.2d(c);G(h.1h("!")>=0){h=h.3s(0,-1);J a=M}G(!f){G(7.26[h])D("*").1e([1b,S]).1P(h,c)}N{G(f.16==3||f.16==8)I 12;J b,1L,17=D.1D(f[h]||U),W=!c[0]||!c[0].32;G(W){c.6h({O:h,2J:f,32:H(){},3J:H(){},4C:1z()});c[0][E]=M}c[0].O=h;G(a)c[0].6m=M;J d=D.L(f,"1H");G(d)b=d.1w(f,c);G((!17||(D.Y(f,\'a\')&&h=="4V"))&&f["4o"+h]&&f["4o"+h].1w(f,c)===Q)b=Q;G(W)c.4s();G(i&&D.1D(i)){1L=i.1w(f,b==U?c:c.7d(b));G(1L!==12)b=1L}G(17&&g!==Q&&b!==Q&&!(D.Y(f,\'a\')&&h=="4V")){7.5k=M;1U{f[h]()}1V(e){}}7.5k=Q}I b},1H:H(b){J a,1L,38,5f,4m;b=19[0]=D.W.6l(b||1b.W);38=b.O.1R(".");b.O=38[0];38=38[1];5f=!38&&!b.6m;4m=(D.L(7,"3w")||{})[b.O];R(J j 1n 4m){J c=4m[j];G(5f||c.O==38){b.2y=c;b.L=c.L;1L=c.1w(7,19);G(a!==Q)a=1L;G(1L===Q){b.32();b.3J()}}}I a},6l:H(b){G(b[E]==M)I b;J d=b;b={8o:d};J c="8n 8m 8l 8k 2s 8j 47 5d 6j 5E 8i L 8h 8g 4K 2y 5a 59 8e 8b 58 6f 8a 88 4k 87 86 84 6d 2J 4C 6c O 82 81 35".1R(" ");R(J i=c.K;i;i--)b[c[i]]=d[c[i]];b[E]=M;b.32=H(){G(d.32)d.32();d.80=Q};b.3J=H(){G(d.3J)d.3J();d.7Z=M};b.4C=b.4C||1z();G(!b.2J)b.2J=b.6d||S;G(b.2J.16==3)b.2J=b.2J.1d;G(!b.4k&&b.4K)b.4k=b.4K==b.2J?b.6c:b.4K;G(b.58==U&&b.5d!=U){J a=S.1C,1c=S.1c;b.58=b.5d+(a&&a.2e||1c&&1c.2e||0)-(a.6b||0);b.6f=b.6j+(a&&a.2c||1c&&1c.2c||0)-(a.6a||0)}G(!b.35&&((b.47||b.47===0)?b.47:b.5a))b.35=b.47||b.5a;G(!b.59&&b.5E)b.59=b.5E;G(!b.35&&b.2s)b.35=(b.2s&1?1:(b.2s&2?3:(b.2s&4?2:0)));I b},3M:H(a,b){b.24=a.24=a.24||b.24||7.24++;I b},2t:{27:{4p:H(){55();I},4A:H(){I}},3D:{4p:H(){G(D.14.1f)I Q;D(7).2O("53",D.W.2t.3D.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("53",D.W.2t.3D.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3D";I D.W.1H.1w(7,19)}},3N:{4p:H(){G(D.14.1f)I Q;D(7).2O("51",D.W.2t.3N.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("51",D.W.2t.3N.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3N";I D.W.1H.1w(7,19)}}}};D.17.1l({2O:H(c,a,b){I c=="4X"?7.2V(c,a,b):7.P(H(){D.W.1e(7,c,b||a,b&&a)})},2V:H(d,b,c){J e=D.W.3M(c||b,H(a){D(7).4e(a,e);I(c||b).1w(7,19)});I 7.P(H(){D.W.1e(7,d,e,c&&b)})},4e:H(a,b){I 7.P(H(){D.W.21(7,a,b)})},1P:H(c,a,b){I 7.P(H(){D.W.1P(c,a,7,M,b)})},5C:H(c,a,b){I 7[0]&&D.W.1P(c,a,7[0],Q,b)},2m:H(b){J c=19,i=1;1B(i<c.K)D.W.3M(b,c[i++]);I 7.4V(D.W.3M(b,H(a){7.4Z=(7.4Z||0)%i;a.32();I c[7.4Z++].1w(7,19)||Q}))},7X:H(a,b){I 7.2O(\'3D\',a).2O(\'3N\',b)},27:H(a){55();G(D.2Q)a.1k(S,D);N D.3A.1p(H(){I a.1k(7,D)});I 7}});D.1l({2Q:Q,3A:[],27:H(){G(!D.2Q){D.2Q=M;G(D.3A){D.P(D.3A,H(){7.1k(S)});D.3A=U}D(S).5C("27")}}});J x=Q;H 55(){G(x)I;x=M;G(S.3K&&!D.14.2G)S.3K("69",D.27,Q);G(D.14.1f&&1b==1S)(H(){G(D.2Q)I;1U{S.1C.7V("1A")}1V(3e){3B(19.3L,0);I}D.27()})();G(D.14.2G)S.3K("69",H(){G(D.2Q)I;R(J i=0;i<S.4W.K;i++)G(S.4W[i].3R){3B(19.3L,0);I}D.27()},Q);G(D.14.2k){J a;(H(){G(D.2Q)I;G(S.3f!="68"&&S.3f!="1J"){3B(19.3L,0);I}G(a===12)a=D("V, 7A[7U=7S]").K;G(S.4W.K!=a){3B(19.3L,0);I}D.27()})()}D.W.1e(1b,"43",D.27)}D.P(("7R,7Q,43,85,4y,4X,4V,7P,"+"7O,7N,89,53,51,7M,2A,"+"5o,7L,7K,8d,3e").1R(","),H(i,b){D.17[b]=H(a){I a?7.2O(b,a):7.1P(b)}});J F=H(a,c){J b=a.4k;1B(b&&b!=c)1U{b=b.1d}1V(3e){b=c}I b==c};D(1b).2O("4X",H(){D("*").1e(S).4e()});D.17.1l({67:D.17.43,43:H(g,d,c){G(1j g!=\'23\')I 7.67(g);J e=g.1h(" ");G(e>=0){J i=g.3s(e,g.K);g=g.3s(0,e)}c=c||H(){};J f="2P";G(d)G(D.1D(d)){c=d;d=U}N{d=D.3n(d);f="6g"}J h=7;D.3Y({1a:g,O:f,1O:"2K",L:d,1J:H(a,b){G(b=="1W"||b=="7J")h.2K(i?D("<1v/>").3v(a.4U.1o(/<1m(.|\\s)*?\\/1m>/g,"")).2q(i):a.4U);h.P(c,[a.4U,b,a])}});I 7},aL:H(){I D.3n(7.7I())},7I:H(){I 7.2l(H(){I D.Y(7,"3V")?D.2d(7.aH):7}).1E(H(){I 7.34&&!7.3R&&(7.4J||/2A|6y/i.11(7.Y)||/1r|1G|3Q/i.11(7.O))}).2l(H(i,c){J b=D(7).6e();I b==U?U:b.1q==2p?D.2l(b,H(a,i){I{34:c.34,2x:a}}):{34:c.34,2x:b}}).3p()}});D.P("7H,7G,7F,7D,7C,7B".1R(","),H(i,o){D.17[o]=H(f){I 7.2O(o,f)}});J B=1z();D.1l({3p:H(d,b,a,c){G(D.1D(b)){a=b;b=U}I D.3Y({O:"2P",1a:d,L:b,1W:a,1O:c})},aE:H(b,a){I D.3p(b,U,a,"1m")},aD:H(c,b,a){I D.3p(c,b,a,"3z")},aC:H(d,b,a,c){G(D.1D(b)){a=b;b={}}I D.3Y({O:"6g",1a:d,L:b,1W:a,1O:c})},aA:H(a){D.1l(D.60,a)},60:{1a:5Z.5Q,26:M,O:"2P",2T:0,7z:"4R/x-ax-3V-aw",7x:M,31:M,L:U,5Y:U,3Q:U,4Q:{2N:"4R/2N, 1r/2N",2K:"1r/2K",1m:"1r/4t, 4R/4t",3z:"4R/3z, 1r/4t",1r:"1r/as",4w:"*/*"}},4z:{},3Y:H(s){s=D.1l(M,s,D.1l(M,{},D.60,s));J g,2Z=/=\\?(&|$)/g,1u,L,O=s.O.2r();G(s.L&&s.7x&&1j s.L!="23")s.L=D.3n(s.L);G(s.1O=="4P"){G(O=="2P"){G(!s.1a.1I(2Z))s.1a+=(s.1a.1I(/\\?/)?"&":"?")+(s.4P||"7u")+"=?"}N G(!s.L||!s.L.1I(2Z))s.L=(s.L?s.L+"&":"")+(s.4P||"7u")+"=?";s.1O="3z"}G(s.1O=="3z"&&(s.L&&s.L.1I(2Z)||s.1a.1I(2Z))){g="4P"+B++;G(s.L)s.L=(s.L+"").1o(2Z,"="+g+"$1");s.1a=s.1a.1o(2Z,"="+g+"$1");s.1O="1m";1b[g]=H(a){L=a;1W();1J();1b[g]=12;1U{2U 1b[g]}1V(e){}G(i)i.37(h)}}G(s.1O=="1m"&&s.1Y==U)s.1Y=Q;G(s.1Y===Q&&O=="2P"){J j=1z();J k=s.1a.1o(/(\\?|&)3m=.*?(&|$)/,"$ap="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1I(/\\?/)?"&":"?")+"3m="+j:"")}G(s.L&&O=="2P"){s.1a+=(s.1a.1I(/\\?/)?"&":"?")+s.L;s.L=U}G(s.26&&!D.4O++)D.W.1P("7H");J n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;G(s.1O=="1m"&&O=="2P"&&n.11(s.1a)&&n.2D(s.1a)[1]!=5Z.al){J i=S.3H("6w")[0];J h=S.3h("1m");h.4d=s.1a;G(s.7t)h.aj=s.7t;G(!g){J l=Q;h.ah=h.ag=H(){G(!l&&(!7.3f||7.3f=="68"||7.3f=="1J")){l=M;1W();1J();i.37(h)}}}i.3U(h);I 12}J m=Q;J c=1b.7s?2B 7s("ae.ac"):2B 7r();G(s.5Y)c.6R(O,s.1a,s.31,s.5Y,s.3Q);N c.6R(O,s.1a,s.31);1U{G(s.L)c.4B("ab-aa",s.7z);G(s.5S)c.4B("a9-5R-a8",D.4z[s.1a]||"a7, a6 a5 a4 5N:5N:5N a2");c.4B("X-9Z-9Y","7r");c.4B("9W",s.1O&&s.4Q[s.1O]?s.4Q[s.1O]+", */*":s.4Q.4w)}1V(e){}G(s.7m&&s.7m(c,s)===Q){s.26&&D.4O--;c.7l();I Q}G(s.26)D.W.1P("7B",[c,s]);J d=H(a){G(!m&&c&&(c.3f==4||a=="2T")){m=M;G(f){7k(f);f=U}1u=a=="2T"&&"2T"||!D.7j(c)&&"3e"||s.5S&&D.7h(c,s.1a)&&"7J"||"1W";G(1u=="1W"){1U{L=D.6X(c,s.1O,s.9S)}1V(e){1u="5J"}}G(1u=="1W"){J b;1U{b=c.5I("7g-5R")}1V(e){}G(s.5S&&b)D.4z[s.1a]=b;G(!g)1W()}N D.5H(s,c,1u);1J();G(s.31)c=U}};G(s.31){J f=4I(d,13);G(s.2T>0)3B(H(){G(c){c.7l();G(!m)d("2T")}},s.2T)}1U{c.9P(s.L)}1V(e){D.5H(s,c,U,e)}G(!s.31)d();H 1W(){G(s.1W)s.1W(L,1u);G(s.26)D.W.1P("7C",[c,s])}H 1J(){G(s.1J)s.1J(c,1u);G(s.26)D.W.1P("7F",[c,s]);G(s.26&&!--D.4O)D.W.1P("7G")}I c},5H:H(s,a,b,e){G(s.3e)s.3e(a,b,e);G(s.26)D.W.1P("7D",[a,s,e])},4O:0,7j:H(a){1U{I!a.1u&&5Z.9O=="5p:"||(a.1u>=7e&&a.1u<9N)||a.1u==7c||a.1u==9K||D.14.2k&&a.1u==12}1V(e){}I Q},7h:H(a,c){1U{J b=a.5I("7g-5R");I a.1u==7c||b==D.4z[c]||D.14.2k&&a.1u==12}1V(e){}I Q},6X:H(a,c,b){J d=a.5I("9J-O"),2N=c=="2N"||!c&&d&&d.1h("2N")>=0,L=2N?a.9I:a.4U;G(2N&&L.1C.2j=="5J")7p"5J";G(b)L=b(L,c);G(c=="1m")D.5u(L);G(c=="3z")L=6u("("+L+")");I L},3n:H(a){J s=[];G(a.1q==2p||a.5w)D.P(a,H(){s.1p(3u(7.34)+"="+3u(7.2x))});N R(J j 1n a)G(a[j]&&a[j].1q==2p)D.P(a[j],H(){s.1p(3u(j)+"="+3u(7))});N s.1p(3u(j)+"="+3u(D.1D(a[j])?a[j]():a[j]));I s.6s("&").1o(/%20/g,"+")}});D.17.1l({1N:H(c,b){I c?7.2g({1Z:"1N",2h:"1N",1y:"1N"},c,b):7.1E(":1G").P(H(){7.V.18=7.5D||"";G(D.1g(7,"18")=="2F"){J a=D("<"+7.2j+" />").6P("1c");7.V.18=a.1g("18");G(7.V.18=="2F")7.V.18="3I";a.21()}}).3l()},1M:H(b,a){I b?7.2g({1Z:"1M",2h:"1M",1y:"1M"},b,a):7.1E(":4j").P(H(){7.5D=7.5D||D.1g(7,"18");7.V.18="2F"}).3l()},78:D.17.2m,2m:H(a,b){I D.1D(a)&&D.1D(b)?7.78.1w(7,19):a?7.2g({1Z:"2m",2h:"2m",1y:"2m"},a,b):7.P(H(){D(7)[D(7).3F(":1G")?"1N":"1M"]()})},9G:H(b,a){I 7.2g({1Z:"1N"},b,a)},9F:H(b,a){I 7.2g({1Z:"1M"},b,a)},9E:H(b,a){I 7.2g({1Z:"2m"},b,a)},9D:H(b,a){I 7.2g({1y:"1N"},b,a)},9M:H(b,a){I 7.2g({1y:"1M"},b,a)},9C:H(c,a,b){I 7.2g({1y:a},c,b)},2g:H(k,j,i,g){J h=D.77(j,i,g);I 7[h.36===Q?"P":"36"](H(){G(7.16!=1)I Q;J f=D.1l({},h),p,1G=D(7).3F(":1G"),46=7;R(p 1n k){G(k[p]=="1M"&&1G||k[p]=="1N"&&!1G)I f.1J.1k(7);G(p=="1Z"||p=="2h"){f.18=D.1g(7,"18");f.33=7.V.33}}G(f.33!=U)7.V.33="1G";f.45=D.1l({},k);D.P(k,H(c,a){J e=2B D.28(46,f,c);G(/2m|1N|1M/.11(a))e[a=="2m"?1G?"1N":"1M":a](k);N{J b=a.6r().1I(/^([+-]=)?([\\d+-.]+)(.*)$/),2b=e.1t(M)||0;G(b){J d=3d(b[2]),2M=b[3]||"2X";G(2M!="2X"){46.V[c]=(d||1)+2M;2b=((d||1)/e.1t(M))*2b;46.V[c]=2b+2M}G(b[1])d=((b[1]=="-="?-1:1)*d)+2b;e.3G(2b,d,2M)}N e.3G(2b,a,"")}});I M})},36:H(a,b){G(D.1D(a)||(a&&a.1q==2p)){b=a;a="28"}G(!a||(1j a=="23"&&!b))I A(7[0],a);I 7.P(H(){G(b.1q==2p)A(7,a,b);N{A(7,a).1p(b);G(A(7,a).K==1)b.1k(7)}})},9X:H(b,c){J a=D.3O;G(b)7.36([]);7.P(H(){R(J i=a.K-1;i>=0;i--)G(a[i].T==7){G(c)a[i](M);a.7n(i,1)}});G(!c)7.5A();I 7}});J A=H(b,c,a){G(b){c=c||"28";J q=D.L(b,c+"36");G(!q||a)q=D.L(b,c+"36",D.2d(a))}I q};D.17.5A=H(a){a=a||"28";I 7.P(H(){J q=A(7,a);q.4s();G(q.K)q[0].1k(7)})};D.1l({77:H(b,a,c){J d=b&&b.1q==a0?b:{1J:c||!c&&a||D.1D(b)&&b,2u:b,41:c&&a||a&&a.1q!=9t&&a};d.2u=(d.2u&&d.2u.1q==4L?d.2u:D.28.5K[d.2u])||D.28.5K.74;d.5M=d.1J;d.1J=H(){G(d.36!==Q)D(7).5A();G(D.1D(d.5M))d.5M.1k(7)};I d},41:{73:H(p,n,b,a){I b+a*p},5P:H(p,n,b,a){I((-29.9r(p*29.9q)/2)+0.5)*a+b}},3O:[],48:U,28:H(b,c,a){7.15=c;7.T=b;7.1i=a;G(!c.3Z)c.3Z={}}});D.28.44={4D:H(){G(7.15.2Y)7.15.2Y.1k(7.T,7.1z,7);(D.28.2Y[7.1i]||D.28.2Y.4w)(7);G(7.1i=="1Z"||7.1i=="2h")7.T.V.18="3I"},1t:H(a){G(7.T[7.1i]!=U&&7.T.V[7.1i]==U)I 7.T[7.1i];J r=3d(D.1g(7.T,7.1i,a));I r&&r>-9p?r:3d(D.2a(7.T,7.1i))||0},3G:H(c,b,d){7.5V=1z();7.2b=c;7.3l=b;7.2M=d||7.2M||"2X";7.1z=7.2b;7.2S=7.4N=0;7.4D();J e=7;H t(a){I e.2Y(a)}t.T=7.T;D.3O.1p(t);G(D.48==U){D.48=4I(H(){J a=D.3O;R(J i=0;i<a.K;i++)G(!a[i]())a.7n(i--,1);G(!a.K){7k(D.48);D.48=U}},13)}},1N:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1N=M;7.3G(0,7.1t());G(7.1i=="2h"||7.1i=="1Z")7.T.V[7.1i]="9m";D(7.T).1N()},1M:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1M=M;7.3G(7.1t(),0)},2Y:H(a){J t=1z();G(a||t>7.15.2u+7.5V){7.1z=7.3l;7.2S=7.4N=1;7.4D();7.15.45[7.1i]=M;J b=M;R(J i 1n 7.15.45)G(7.15.45[i]!==M)b=Q;G(b){G(7.15.18!=U){7.T.V.33=7.15.33;7.T.V.18=7.15.18;G(D.1g(7.T,"18")=="2F")7.T.V.18="3I"}G(7.15.1M)7.T.V.18="2F";G(7.15.1M||7.15.1N)R(J p 1n 7.15.45)D.1K(7.T.V,p,7.15.3Z[p])}G(b)7.15.1J.1k(7.T);I Q}N{J n=t-7.5V;7.4N=n/7.15.2u;7.2S=D.41[7.15.41||(D.41.5P?"5P":"73")](7.4N,n,0,1,7.15.2u);7.1z=7.2b+((7.3l-7.2b)*7.2S);7.4D()}I M}};D.1l(D.28,{5K:{9l:9j,9i:7e,74:9g},2Y:{2e:H(a){a.T.2e=a.1z},2c:H(a){a.T.2c=a.1z},1y:H(a){D.1K(a.T.V,"1y",a.1z)},4w:H(a){a.T.V[a.1i]=a.1z+a.2M}}});D.17.2i=H(){J b=0,1S=0,T=7[0],3q;G(T)ao(D.14){J d=T.1d,4a=T,1s=T.1s,1Q=T.2z,5U=2k&&3r(5B)<9c&&!/9a/i.11(v),1g=D.2a,3c=1g(T,"30")=="3c";G(T.7y){J c=T.7y();1e(c.1A+29.2f(1Q.1C.2e,1Q.1c.2e),c.1S+29.2f(1Q.1C.2c,1Q.1c.2c));1e(-1Q.1C.6b,-1Q.1C.6a)}N{1e(T.5X,T.5W);1B(1s){1e(1s.5X,1s.5W);G(42&&!/^t(98|d|h)$/i.11(1s.2j)||2k&&!5U)2C(1s);G(!3c&&1g(1s,"30")=="3c")3c=M;4a=/^1c$/i.11(1s.2j)?4a:1s;1s=1s.1s}1B(d&&d.2j&&!/^1c|2K$/i.11(d.2j)){G(!/^96|1T.*$/i.11(1g(d,"18")))1e(-d.2e,-d.2c);G(42&&1g(d,"33")!="4j")2C(d);d=d.1d}G((5U&&(3c||1g(4a,"30")=="5x"))||(42&&1g(4a,"30")!="5x"))1e(-1Q.1c.5X,-1Q.1c.5W);G(3c)1e(29.2f(1Q.1C.2e,1Q.1c.2e),29.2f(1Q.1C.2c,1Q.1c.2c))}3q={1S:1S,1A:b}}H 2C(a){1e(D.2a(a,"6V",M),D.2a(a,"6U",M))}H 1e(l,t){b+=3r(l,10)||0;1S+=3r(t,10)||0}I 3q};D.17.1l({30:H(){J a=0,1S=0,3q;G(7[0]){J b=7.1s(),2i=7.2i(),4c=/^1c|2K$/i.11(b[0].2j)?{1S:0,1A:0}:b.2i();2i.1S-=25(7,\'94\');2i.1A-=25(7,\'aF\');4c.1S+=25(b,\'6U\');4c.1A+=25(b,\'6V\');3q={1S:2i.1S-4c.1S,1A:2i.1A-4c.1A}}I 3q},1s:H(){J a=7[0].1s;1B(a&&(!/^1c|2K$/i.11(a.2j)&&D.1g(a,\'30\')==\'93\'))a=a.1s;I D(a)}});D.P([\'5e\',\'5G\'],H(i,b){J c=\'4y\'+b;D.17[c]=H(a){G(!7[0])I;I a!=12?7.P(H(){7==1b||7==S?1b.92(!i?a:D(1b).2e(),i?a:D(1b).2c()):7[c]=a}):7[0]==1b||7[0]==S?46[i?\'aI\':\'aJ\']||D.71&&S.1C[c]||S.1c[c]:7[0][c]}});D.P(["6N","4b"],H(i,b){J c=i?"5e":"5G",4f=i?"6k":"6i";D.17["5s"+b]=H(){I 7[b.3y()]()+25(7,"57"+c)+25(7,"57"+4f)};D.17["90"+b]=H(a){I 7["5s"+b]()+25(7,"2C"+c+"4b")+25(7,"2C"+4f+"4b")+(a?25(7,"6S"+c)+25(7,"6S"+4f):0)}})})();',62,669,'|||||||this|||||||||||||||||||||||||||||||||||if|function|return|var|length|data|true|else|type|each|false|for|document|elem|null|style|event||nodeName|||test|undefined||browser|options|nodeType|fn|display|arguments|url|window|body|parentNode|add|msie|css|indexOf|prop|typeof|call|extend|script|in|replace|push|constructor|text|offsetParent|cur|status|div|apply|firstChild|opacity|now|left|while|documentElement|isFunction|filter|className|hidden|handle|match|complete|attr|ret|hide|show|dataType|trigger|doc|split|top|table|try|catch|success|break|cache|height||remove|tbody|string|guid|num|global|ready|fx|Math|curCSS|start|scrollTop|makeArray|scrollLeft|max|animate|width|offset|tagName|safari|map|toggle||done|Array|find|toUpperCase|button|special|duration|id|copy|value|handler|ownerDocument|select|new|border|exec|stack|none|opera|nextSibling|pushStack|target|html|inArray|unit|xml|bind|GET|isReady|merge|pos|timeout|delete|one|selected|px|step|jsre|position|async|preventDefault|overflow|name|which|queue|removeChild|namespace|insertBefore|nth|removeData|fixed|parseFloat|error|readyState|multiFilter|createElement|rl|re|trim|end|_|param|first|get|results|parseInt|slice|childNodes|encodeURIComponent|append|events|elems|toLowerCase|json|readyList|setTimeout|grep|mouseenter|color|is|custom|getElementsByTagName|block|stopPropagation|addEventListener|callee|proxy|mouseleave|timers|defaultView|password|disabled|last|has|appendChild|form|domManip|props|ajax|orig|set|easing|mozilla|load|prototype|curAnim|self|charCode|timerId|object|offsetChild|Width|parentOffset|src|unbind|br|currentStyle|clean|float|visible|relatedTarget|previousSibling|handlers|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|child|RegExp|_default|deep|scroll|lastModified|teardown|setRequestHeader|timeStamp|update|empty|tr|getAttribute|innerHTML|setInterval|checked|fromElement|Number|jQuery|state|active|jsonp|accepts|application|dir|input|responseText|click|styleSheets|unload|not|lastToggle|outline|mouseout|getPropertyValue|mouseover|getComputedStyle|bindReady|String|padding|pageX|metaKey|keyCode|getWH|andSelf|clientX|Left|all|visibility|container|index|init|triggered|removeAttribute|classFilter|prevObject|submit|file|after|windowData|inner|client|globalEval|sibling|jquery|absolute|clone|wrapAll|dequeue|version|triggerHandler|oldblock|ctrlKey|createTextNode|Top|handleError|getResponseHeader|parsererror|speeds|checkbox|old|00|radio|swing|href|Modified|ifModified|lastChild|safari2|startTime|offsetTop|offsetLeft|username|location|ajaxSettings|getElementById|isSimple|values|selectedIndex|runtimeStyle|rsLeft|_load|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|val|pageY|POST|unshift|Bottom|clientY|Right|fix|exclusive|detachEvent|cloneNode|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|image|zoom|odd|even|before|prepend|exclude|expr|quickClass|quickID|uuid|quickChild|continue|Height|textContent|appendTo|contents|open|margin|evalScript|borderTopWidth|borderLeftWidth|parent|httpData|setArray|CSS1Compat|compatMode|boxModel|cssFloat|linear|def|webkit|nodeValue|speed|_toggle|eq|100|replaceWith|304|concat|200|alpha|Last|httpNotModified|getAttributeNode|httpSuccess|clearInterval|abort|beforeSend|splice|styleFloat|throw|colgroup|XMLHttpRequest|ActiveXObject|scriptCharset|callback|fieldset|multiple|processData|getBoundingClientRect|contentType|link|ajaxSend|ajaxSuccess|ajaxError|col|ajaxComplete|ajaxStop|ajaxStart|serializeArray|notmodified|keypress|keydown|change|mouseup|mousedown|dblclick|focus|blur|stylesheet|hasClass|rel|doScroll|black|hover|solid|cancelBubble|returnValue|wheelDelta|view|round|shiftKey|resize|screenY|screenX|relatedNode|mousemove|prevValue|originalTarget|offsetHeight|keyup|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|Date|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|outer|prev|scrollTo|static|marginTop|next|inline|parents|able|cellSpacing|adobeair|cellspacing|522|maxLength|maxlength|readOnly|400|readonly|fast|600|class|slow|1px|htmlFor|reverse|10000|PI|cos|compatible|Function|setData|ie|ra|it|rv|getData|userAgent|navigator|fadeTo|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|fadeOut|300|protocol|send|setAttribute|option|dataFilter|cssText|changed|be|Accept|stop|With|Requested|Object|can|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|XMLHTTP|th|Microsoft|td|onreadystatechange|onload|cap|charset|colg|host|tfoot|specified|with|1_|thead|leg|plain|attributes|opt|embed|urlencoded|www|area|hr|ajaxSetup|meta|post|getJSON|getScript|marginLeft|img|elements|pageYOffset|pageXOffset|abbr|serialize|pixelLeft'.split('|'),0,{}));// $Id: drupal.js,v 1.41.2.3 2008/06/25 09:06:57 goba Exp $

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

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

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

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

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

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

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

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

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

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

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

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
Drupal.freezeHeight = function () {
  Drupal.unfreezeHeight();
  var div = document.createElement('div');
  $(div).css({
    position: 'absolute',
    top: '0px',
    left: '0px',
    width: '1px',
    height: $('body').css('height')
  }).attr('id', 'freeze-height');
  $('body').append(div);
};

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

/**
 * Wrapper to address the mod_rewrite url encoding bug
 * (equivalent of drupal_urlencode() in PHP).
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

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

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

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

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

  /**
   * Formats text for emphasized display in a placeholder inside a sentence.
   *
   * @param str
   *   The text to format (plain-text).
   * @return
   *   The formatted text (html).
   */
  placeholder: function(str) {
    return '<em>' + Drupal.checkPlain(str) + '</em>';
  }
};
;Drupal.locale = { 'pluralFormula': function($n) { return Number(($n>1)); }, 'strings': { "Unspecified error": "Erreur non spécifiée", "Only files with the following extensions are allowed: %files-allowed.": "Seuls les fichiers se terminant par les extensions suivantes sont autorisés : %files-allowed.", "An error occurred. \n@uri\n@text": "Une erreur s\'est produite. \n@uri\n@text", "An error occurred. \n@uri\n(no information available).": "Une erreur s\'est produite. \n@uri\n(aucune information supplémentaire)", "An HTTP error @status occurred. \n@uri": "Une erreur HTTP @status s\'est produite. \n@uri", "Drag to re-order": "Cliquer-déposer pour ré-organiser", "Changes made in this table will not be saved until the form is submitted.": "Les modifications réalisées sur cette table ne seront enregistrés que lorsque le formulaire sera soumis.", "Select all rows in this table": "Sélectionner toutes les lignes du tableau", "Deselect all rows in this table": "Désélectionner toutes les lignes du tableau", "Split summary at cursor": "Créer un résumé à partir du curseur", "Join summary": "Fusionner le résumé et le corps du message", "Your server has been successfully tested to support this feature.": "Le test a réussi. Votre serveur supporte cette fonctionnalité.", "Your system configuration does not currently support this feature. The \x3ca href=\"http://drupal.org/node/15365\"\x3ehandbook page on Clean URLs\x3c/a\x3e has additional troubleshooting information.": "La configuration de votre système ne supporte pas cette fonctionnalité. La \x3ca href=\"http://drupal.org/node/15365\"\x3epage du manuel sur les URLs simplifiées\x3c/a\x3e apporte une aide supplémentaire.", "Testing clean URLs...": "Test des URLs simplifiées...", "Upload": "Transfert de fichiers", "The changes to these blocks will not be saved until the \x3cem\x3eSave blocks\x3c/em\x3e button is clicked.": "N\'oubliez pas de cliquer sur \x3cem\x3eEnregistrer les blocs\x3c/em\x3e pour confirmer les modifications apportées ici.", "An error occurred at ": "Une erreur s\'est produite à", "jQuery UI Tabs: Mismatching fragment identifier.": "Onglets d\'interface jQuery : identifiant de fragment ne correspondant pas.", "jQuery UI Tabs: Not enough arguments to add tab.": "Onglets d\'interface jQuery : pas assez d\'arguments pour ajouter l\'onglet.", "Save and send": "Sauvegarder et envoyer", "Save and send test": "Sauvegarder et envoyer un test" } };;// $Id: nice_menus.js,v 1.10.2.6 2008/08/04 23:45:51 add1sun Exp $

// We need to do some browser sniffing to weed out IE 6 only
// because only IE6 needs this hover hack.
if (document.all && !window.opera && (navigator.appVersion.search("MSIE 6.0") != -1) && $.browser.msie) {
  function IEHoverPseudo() {
      $("ul.nice-menu li.menuparent").hover(function(){
          $(this).addClass("over").find("> ul").show().addShim();
        },function(){
          $(this).removeClass("over").find("> ul").removeShim().hide();
        }
      );
      // Add a hover class to all li for CSS styling. Silly naming is done
      // so we don't break CSS compatibility for .over class already in use
      // and due to the fact that IE6 doesn't understand multiple selectors.
      $("ul.nice-menu li").hover(function(){
          $(this).addClass("ie-over");
        },function(){
          $(this).removeClass("ie-over");
        }
      );
    }

    // This is the jquery method of adding a function
    // to the BODY onload event.  (See jquery.com)
    $(document).ready(function(){ IEHoverPseudo() });
}

$.fn.addShim = function() {
  return this.each(function(){
	  if(document.all && $("select").size() > 0) {
	    var ifShim = document.createElement('iframe');
	    ifShim.src = "javascript:false";
			ifShim.style.width=$(this).width()+1+"px";
      ifShim.style.height=$(this).find("> li").size()*23+20+"px";
			ifShim.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
		  ifShim.style.zIndex="0";
    $(this).prepend(ifShim);
      $(this).css("zIndex","99");
		}
	});
};

$.fn.removeShim = function() {
  return this.each(function(){
	  if (document.all) $("iframe", this).remove();
	});
};
;/**
 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
 * @requires jQuery v1.2 or above
 *
 * http://gmarwaha.com/jquery/jcarousellite/
 *
 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Version: 1.0.1
 * Note: Requires jquery 1.2 or above from version 1.0.1
 */

/**
 * Creates a carousel-style navigation widget for images/any-content from a simple HTML markup.
 *
 * The HTML markup that is used to build the carousel can be as simple as...
 *
 *  <div class="carousel">
 *      <ul>
 *          <li><img src="image/1.jpg" alt="1"></li>
 *          <li><img src="image/2.jpg" alt="2"></li>
 *          <li><img src="image/3.jpg" alt="3"></li>
 *      </ul>
 *  </div>
 *
 * As you can see, this snippet is nothing but a simple div containing an unordered list of images.
 * You don't need any special "class" attribute, or a special "css" file for this plugin.
 * I am using a class attribute just for the sake of explanation here.
 *
 * To navigate the elements of the carousel, you need some kind of navigation buttons.
 * For example, you will need a "previous" button to go backward, and a "next" button to go forward.
 * This need not be part of the carousel "div" itself. It can be any element in your page.
 * Lets assume that the following elements in your document can be used as next, and prev buttons...
 *
 * <button class="prev">&lt;&lt;</button>
 * <button class="next">&gt;&gt;</button>
 *
 * Now, all you need to do is call the carousel component on the div element that represents it, and pass in the
 * navigation buttons as options.
 *
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev"
 * });
 *
 * That's it, you would have now converted your raw div, into a magnificient carousel.
 *
 * There are quite a few other options that you can use to customize it though.
 * Each will be explained with an example below.
 *
 * @param an options object - You can specify all the options shown below as an options object param.
 *
 * @option btnPrev, btnNext : string - no defaults
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev"
 * });
 * @desc Creates a basic carousel. Clicking "btnPrev" navigates backwards and "btnNext" navigates forward.
 *
 * @option btnGo - array - no defaults
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      btnGo: [".0", ".1", ".2"]
 * });
 * @desc If you don't want next and previous buttons for navigation, instead you prefer custom navigation based on
 * the item number within the carousel, you can use this option. Just supply an array of selectors for each element
 * in the carousel. The index of the array represents the index of the element. What i mean is, if the
 * first element in the array is ".0", it means that when the element represented by ".0" is clicked, the carousel
 * will slide to the first element and so on and so forth. This feature is very powerful. For example, i made a tabbed
 * interface out of it by making my navigation elements styled like tabs in css. As the carousel is capable of holding
 * any content, not just images, you can have a very simple tabbed navigation in minutes without using any other plugin.
 * The best part is that, the tab will "slide" based on the provided effect. :-)
 *
 * @option mouseWheel : boolean - default is false
 * @example
 * $(".carousel").jCarouselLite({
 *      mouseWheel: true
 * });
 * @desc The carousel can also be navigated using the mouse wheel interface of a scroll mouse instead of using buttons.
 * To get this feature working, you have to do 2 things. First, you have to include the mouse-wheel plugin from brandon.
 * Second, you will have to set the option "mouseWheel" to true. That's it, now you will be able to navigate your carousel
 * using the mouse wheel. Using buttons and mouseWheel or not mutually exclusive. You can still have buttons for navigation
 * as well. They complement each other. To use both together, just supply the options required for both as shown below.
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      mouseWheel: true
 * });
 *
 * @option auto : number - default is null, meaning autoscroll is disabled by default
 * @example
 * $(".carousel").jCarouselLite({
 *      auto: 800,
 *      speed: 500
 * });
 * @desc You can make your carousel auto-navigate itself by specfying a millisecond value in this option.
 * The value you specify is the amount of time between 2 slides. The default is null, and that disables auto scrolling.
 * Specify this value and magically your carousel will start auto scrolling.
 *
 * @option speed : number - 200 is default
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      speed: 800
 * });
 * @desc Specifying a speed will slow-down or speed-up the sliding speed of your carousel. Try it out with
 * different speeds like 800, 600, 1500 etc. Providing 0, will remove the slide effect.
 *
 * @option easing : string - no easing effects by default.
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      easing: "bounceout"
 * });
 * @desc You can specify any easing effect. Note: You need easing plugin for that. Once specified,
 * the carousel will slide based on the provided easing effect.
 *
 * @option vertical : boolean - default is false
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      vertical: true
 * });
 * @desc Determines the direction of the carousel. true, means the carousel will display vertically. The next and
 * prev buttons will slide the items vertically as well. The default is false, which means that the carousel will
 * display horizontally. The next and prev items will slide the items from left-right in this case.
 *
 * @option circular : boolean - default is true
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      circular: false
 * });
 * @desc Setting it to true enables circular navigation. This means, if you click "next" after you reach the last
 * element, you will automatically slide to the first element and vice versa. If you set circular to false, then
 * if you click on the "next" button after you reach the last element, you will stay in the last element itself
 * and similarly for "previous" button and first element.
 *
 * @option visible : number - default is 3
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      visible: 4
 * });
 * @desc This specifies the number of items visible at all times within the carousel. The default is 3.
 * You are even free to experiment with real numbers. Eg: "3.5" will have 3 items fully visible and the
 * last item half visible. This gives you the effect of showing the user that there are more images to the right.
 *
 * @option start : number - default is 0
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      start: 2
 * });
 * @desc You can specify from which item the carousel should start. Remember, the first item in the carousel
 * has a start of 0, and so on.
 *
 * @option scrool : number - default is 1
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      scroll: 2
 * });
 * @desc The number of items that should scroll/slide when you click the next/prev navigation buttons. By
 * default, only one item is scrolled, but you may set it to any number. Eg: setting it to "2" will scroll
 * 2 items when you click the next or previous buttons.
 *
 * @option beforeStart, afterEnd : function - callbacks
 * @example
 * $(".carousel").jCarouselLite({
 *      btnNext: ".next",
 *      btnPrev: ".prev",
 *      beforeStart: function(a) {
 *          alert("Before animation starts:" + a);
 *      },
 *      afterEnd: function(a) {
 *          alert("After animation ends:" + a);
 *      }
 * });
 * @desc If you wanted to do some logic in your page before the slide starts and after the slide ends, you can
 * register these 2 callbacks. The functions will be passed an argument that represents an array of elements that
 * are visible at the time of callback.
 *
 *
 * @cat Plugins/Image Gallery
 * @author Ganeshji Marwaha/ganeshread@gmail.com
 */

(function($) {                                          // Compliant with jquery.noConflict()
$.fn.jCarouselLite = function(o) {
    o = $.extend({
        btnPrev: null,
        btnNext: null,
        btnGo: null,
        mouseWheel: false,
        auto: null,

        speed: 200,
        easing: null,

        vertical: false,
        circular: true,
        visible: 3,
        start: 0,
        scroll: 1,

        beforeStart: null,
        afterEnd: null
    }, o || {});

    return this.each(function() {                           // Returns the element collection. Chainable.

        var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width";
        var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible;

        if(o.circular) {
            ul.prepend(tLi.slice(tl-v-1+1).clone())
              .append(tLi.slice(0,v).clone());
            o.start += v;
        }

        var li = $("li", ul), itemLength = li.size(), curr = o.start;
        div.css("visibility", "visible");

        li.css({overflow: "hidden", float: o.vertical ? "none" : "left"});
        ul.css({margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1"});
        div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"});

        var liSize = o.vertical ? height(li) : width(li);   // Full li size(incl margin)-Used for animation
        var ulSize = liSize * itemLength;                   // size of full ul(total length, not just for the visible items)
        var divSize = liSize * v;                           // size of entire div(total length for just the visible items)

        li.css({width: li.width(), height: li.height()});
        ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize));

        div.css(sizeCss, divSize+"px");                     // Width of the DIV. length of visible images

        if(o.btnPrev)
            $(o.btnPrev).click(function() {
                return go(curr-o.scroll);
            });

        if(o.btnNext)
            $(o.btnNext).click(function() {
                return go(curr+o.scroll);
            });

        if(o.btnGo)
            $.each(o.btnGo, function(i, val) {
                $(val).click(function() {
                    return go(o.circular ? o.visible+i : i);
                });
            });

        if(o.mouseWheel && div.mousewheel)
            div.mousewheel(function(e, d) {
                return d>0 ? go(curr-o.scroll) : go(curr+o.scroll);
            });

        if(o.auto)
            setInterval(function() {
                go(curr+o.scroll);
            }, o.auto+o.speed);

        function vis() {
            return li.slice(curr).slice(0,v);
        };

        function go(to) {
            if(!running) {

                if(o.beforeStart)
                    o.beforeStart.call(this, vis());

                if(o.circular) {            // If circular we are in first or last, then goto the other end
                    if(to<=o.start-v-1) {           // If first, then goto last
                        ul.css(animCss, -((itemLength-(v*2))*liSize)+"px");
                        // If "scroll" > 1, then the "to" might not be equal to the condition; it can be lesser depending on the number of elements.
                        curr = to==o.start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll;
                    } else if(to>=itemLength-v+1) { // If last, then goto first
                        ul.css(animCss, -( (v) * liSize ) + "px" );
                        // If "scroll" > 1, then the "to" might not be equal to the condition; it can be greater depending on the number of elements.
                        curr = to==itemLength-v+1 ? v+1 : v+o.scroll;
                    } else curr = to;
                } else {                    // If non-circular and to points to first or last, we just return.
                    if(to<0 || to>itemLength-v) return;
                    else curr = to;
                }                           // If neither overrides it, the curr will still be "to" and we can proceed.

                running = true;

                ul.animate(
                    animCss == "left" ? { left: -(curr*liSize) } : { top: -(curr*liSize) } , o.speed, o.easing,
                    function() {
                        if(o.afterEnd)
                            o.afterEnd.call(this, vis());
                        running = false;
                    }
                );
                // Disable buttons when the carousel reaches the last/first, and enable when not
                if(!o.circular) {
                    $(o.btnPrev + "," + o.btnNext).removeClass("disabled");
                    $( (curr-o.scroll<0 && o.btnPrev)
                        ||
                       (curr+o.scroll > itemLength-v && o.btnNext)
                        ||
                       []
                     ).addClass("disabled");
                }

            }
            return false;
        };
    });
};

function css(el, prop) {
    return parseInt($.css(el[0], prop)) || 0;
};
function width(el) {
    return  el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');
};
function height(el) {
    return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
};

})(jQuery);;;/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();;﻿/**
* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>.
* Author: Drew Diller
* Email: drew.diller@gmail.com
* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/
* Version: 0.0.8a
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
*
* Example usage:
* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector
* DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement
**/

/*
PLEASE READ:
Absolutely everything in this script is SILLY.  I know this.  IE's rendering of certain pixels doesn't make sense, so neither does this code!
*/

var DD_belatedPNG = {
	ns: 'DD_belatedPNG',
	imgSize: {},
	delay: 10,
	nodesFixed: 0,
	createVmlNameSpace: function () { /* enable VML */
		if (document.namespaces && !document.namespaces[this.ns]) {
			document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
		}
	},
	createVmlStyleSheet: function () { /* style VML, enable behaviors */
		/*
			Just in case lots of other developers have added
			lots of other stylesheets using document.createStyleSheet
			and hit the 31-limit mark, let's not use that method!
			further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
		*/
		var screenStyleSheet, printStyleSheet;
		screenStyleSheet = document.createElement('style');
		screenStyleSheet.setAttribute('media', 'screen');
		document.documentElement.firstChild.insertBefore(screenStyleSheet, document.documentElement.firstChild.firstChild);
		if (screenStyleSheet.styleSheet) {
			screenStyleSheet = screenStyleSheet.styleSheet;
			screenStyleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
			screenStyleSheet.addRule(this.ns + '\\:shape', 'position:absolute;');
			screenStyleSheet.addRule('img.' + this.ns + '_sizeFinder', 'behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;'); /* large negative top value for avoiding vertical scrollbars for large images, suggested by James O'Brien, http://www.thanatopsic.org/hendrik/ */
			this.screenStyleSheet = screenStyleSheet;
			
			/* Add a print-media stylesheet, for preventing VML artifacts from showing up in print (including preview). */
			/* Thanks to Rémi Prévost for automating this! */
			printStyleSheet = document.createElement('style');
			printStyleSheet.setAttribute('media', 'print');
			document.documentElement.firstChild.insertBefore(printStyleSheet, document.documentElement.firstChild.firstChild);
			printStyleSheet = printStyleSheet.styleSheet;
			printStyleSheet.addRule(this.ns + '\\:*', '{display: none !important;}');
			printStyleSheet.addRule('img.' + this.ns + '_sizeFinder', '{display: none !important;}');
		}
	},
	readPropertyChange: function () {
		var el, display, v;
		el = event.srcElement;
		if (!el.vmlInitiated) {
			return;
		}
		if (event.propertyName.search('background') != -1 || event.propertyName.search('border') != -1) {
			DD_belatedPNG.applyVML(el);
		}
		if (event.propertyName == 'style.display') {
			display = (el.currentStyle.display == 'none') ? 'none' : 'block';
			for (v in el.vml) {
				if (el.vml.hasOwnProperty(v)) {
					el.vml[v].shape.style.display = display;
				}
			}
		}
		if (event.propertyName.search('filter') != -1) {
			DD_belatedPNG.vmlOpacity(el);
		}
	},
	vmlOpacity: function (el) {
		if (el.currentStyle.filter.search('lpha') != -1) {
			var trans = el.currentStyle.filter;
			trans = parseInt(trans.substring(trans.lastIndexOf('=')+1, trans.lastIndexOf(')')), 10)/100;
			el.vml.color.shape.style.filter = el.currentStyle.filter; /* complete guesswork */
			el.vml.image.fill.opacity = trans; /* complete guesswork */
		}
	},
	handlePseudoHover: function (el) {
		setTimeout(function () { /* wouldn't work as intended without setTimeout */
			DD_belatedPNG.applyVML(el);
		}, 1);
	},
	/**
	* This is the method to use in a document.
	* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
	**/
	fix: function (selector) {
		if (this.screenStyleSheet) {
			var selectors, i;
			selectors = selector.split(','); /* multiple selectors supported, no need for multiple calls to this anymore */
			for (i=0; i<selectors.length; i++) {
				this.screenStyleSheet.addRule(selectors[i], 'behavior:expression(DD_belatedPNG.fixPng(this))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
			}
		}
	},
	applyVML: function (el) {
		el.runtimeStyle.cssText = '';
		this.vmlFill(el);
		this.vmlOffsets(el);
		this.vmlOpacity(el);
		if (el.isImg) {
			this.copyImageBorders(el);
		}
	},
	attachHandlers: function (el) {
		var self, handlers, handler, moreForAs, a, h;
		self = this;
		handlers = {resize: 'vmlOffsets', move: 'vmlOffsets'};
		if (el.nodeName == 'A') {
			moreForAs = {mouseleave: 'handlePseudoHover', mouseenter: 'handlePseudoHover', focus: 'handlePseudoHover', blur: 'handlePseudoHover'};
			for (a in moreForAs) {			
				if (moreForAs.hasOwnProperty(a)) {
					handlers[a] = moreForAs[a];
				}
			}
		}
		for (h in handlers) {
			if (handlers.hasOwnProperty(h)) {
				handler = function () {
					self[handlers[h]](el);
				};
				el.attachEvent('on' + h, handler);
			}
		}
		el.attachEvent('onpropertychange', this.readPropertyChange);
	},
	giveLayout: function (el) {
		el.style.zoom = 1;
		if (el.currentStyle.position == 'static') {
			el.style.position = 'relative';
		}
	},
	copyImageBorders: function (el) {
		var styles, s;
		styles = {'borderStyle':true, 'borderWidth':true, 'borderColor':true};
		for (s in styles) {
			if (styles.hasOwnProperty(s)) {
				el.vml.color.shape.style[s] = el.currentStyle[s];
			}
		}
	},
	vmlFill: function (el) {
		if (!el.currentStyle) {
			return;
		} else {
			var elStyle, noImg, lib, v, img, imgLoaded;
			elStyle = el.currentStyle;
		}
		for (v in el.vml) {
			if (el.vml.hasOwnProperty(v)) {
				el.vml[v].shape.style.zIndex = elStyle.zIndex;
			}
		}
		el.runtimeStyle.backgroundColor = '';
		el.runtimeStyle.backgroundImage = '';
		noImg = true;
		if (elStyle.backgroundImage != 'none' || el.isImg) {
			if (!el.isImg) {
				el.vmlBg = elStyle.backgroundImage;
				el.vmlBg = el.vmlBg.substr(5, el.vmlBg.lastIndexOf('")')-5);
			}
			else {
				el.vmlBg = el.src;
			}
			lib = this;
			if (!lib.imgSize[el.vmlBg]) { /* determine size of loaded image */
				img = document.createElement('img');
				lib.imgSize[el.vmlBg] = img;
				img.className = lib.ns + '_sizeFinder';
				img.runtimeStyle.cssText = 'behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;'; /* make sure to set behavior to none to prevent accidental matching of the helper elements! */
				imgLoaded = function () {
					this.width = this.offsetWidth; /* weird cache-busting requirement! */
					this.height = this.offsetHeight;
					lib.vmlOffsets(el);
				};
				img.attachEvent('onload', imgLoaded);
				img.src = el.vmlBg;
				img.removeAttribute('width');
				img.removeAttribute('height');
				document.body.insertBefore(img, document.body.firstChild);
			}
			el.vml.image.fill.src = el.vmlBg;
			noImg = false;
		}
		el.vml.image.fill.on = !noImg;
		el.vml.image.fill.color = 'none';
		el.vml.color.shape.style.backgroundColor = elStyle.backgroundColor;
		el.runtimeStyle.backgroundImage = 'none';
		el.runtimeStyle.backgroundColor = 'transparent';
	},
	/* IE can't figure out what do when the offsetLeft and the clientLeft add up to 1, and the VML ends up getting fuzzy... so we have to push/enlarge things by 1 pixel and then clip off the excess */
	vmlOffsets: function (el) {
		var thisStyle, size, fudge, makeVisible, bg, bgR, dC, altC, b, c, v;
		thisStyle = el.currentStyle;
		size = {'W':el.clientWidth+1, 'H':el.clientHeight+1, 'w':this.imgSize[el.vmlBg].width, 'h':this.imgSize[el.vmlBg].height, 'L':el.offsetLeft, 'T':el.offsetTop, 'bLW':el.clientLeft, 'bTW':el.clientTop};
		fudge = (size.L + size.bLW == 1) ? 1 : 0;
		/* vml shape, left, top, width, height, origin */
		makeVisible = function (vml, l, t, w, h, o) {
			vml.coordsize = w+','+h;
			vml.coordorigin = o+','+o;
			vml.path = 'm0,0l'+w+',0l'+w+','+h+'l0,'+h+' xe';
			vml.style.width = w + 'px';
			vml.style.height = h + 'px';
			vml.style.left = l + 'px';
			vml.style.top = t + 'px';
		};
		makeVisible(el.vml.color.shape, (size.L + (el.isImg ? 0 : size.bLW)), (size.T + (el.isImg ? 0 : size.bTW)), (size.W-1), (size.H-1), 0);
		makeVisible(el.vml.image.shape, (size.L + size.bLW), (size.T + size.bTW), (size.W), (size.H), 1 );
		bg = {'X':0, 'Y':0};
		if (el.isImg) {
			bg.X = parseInt(thisStyle.paddingLeft, 10) + 1;
			bg.Y = parseInt(thisStyle.paddingTop, 10) + 1;
		}
		else {
			for (b in bg) {
				if (bg.hasOwnProperty(b)) {
					this.figurePercentage(bg, size, b, thisStyle['backgroundPosition'+b]);
				}
			}
		}
		el.vml.image.fill.position = (bg.X/size.W) + ',' + (bg.Y/size.H);
		bgR = thisStyle.backgroundRepeat;
		dC = {'T':1, 'R':size.W+fudge, 'B':size.H, 'L':1+fudge}; /* these are defaults for repeat of any kind */
		altC = { 'X': {'b1': 'L', 'b2': 'R', 'd': 'W'}, 'Y': {'b1': 'T', 'b2': 'B', 'd': 'H'} };
		if (bgR != 'repeat' || el.isImg) {
			c = {'T':(bg.Y), 'R':(bg.X+size.w), 'B':(bg.Y+size.h), 'L':(bg.X)}; /* these are defaults for no-repeat - clips down to the image location */
			if (bgR.search('repeat-') != -1) { /* now let's revert to dC for repeat-x or repeat-y */
				v = bgR.split('repeat-')[1].toUpperCase();
				c[altC[v].b1] = 1;
				c[altC[v].b2] = size[altC[v].d];
			}
			if (c.B > size.H) {
				c.B = size.H;
			}
			el.vml.image.shape.style.clip = 'rect('+c.T+'px '+(c.R+fudge)+'px '+c.B+'px '+(c.L+fudge)+'px)';
		}
		else {
			el.vml.image.shape.style.clip = 'rect('+dC.T+'px '+dC.R+'px '+dC.B+'px '+dC.L+'px)';
		}
	},
	figurePercentage: function (bg, size, axis, position) {
		var horizontal, fraction;
		fraction = true;
		horizontal = (axis == 'X');
		switch(position) {
			case 'left':
			case 'top':
				bg[axis] = 0;
				break;
			case 'center':
				bg[axis] = 0.5;
				break;
			case 'right':
			case 'bottom':
				bg[axis] = 1;
				break;
			default:
				if (position.search('%') != -1) {
					bg[axis] = parseInt(position, 10) / 100;
				}
				else {
					fraction = false;
				}
		}
		bg[axis] = Math.ceil(  fraction ? ( (size[horizontal?'W': 'H'] * bg[axis]) - (size[horizontal?'w': 'h'] * bg[axis]) ) : parseInt(position, 10)  );
		if (bg[axis] % 2 === 0) {
			bg[axis]++;
		}
		return bg[axis];
	},
	fixPng: function (el) {
		el.style.behavior = 'none';
		var lib, els, nodeStr, v, e;
		if (el.nodeName == 'BODY' || el.nodeName == 'TD' || el.nodeName == 'TR') { /* elements not supported yet */
			return;
		}
		el.isImg = false;
		if (el.nodeName == 'IMG') {
			if(el.src.toLowerCase().search(/\.png$/) != -1) {
				el.isImg = true;
				el.style.visibility = 'hidden';
			}
			else {
				return;
			}
		}
		else if (el.currentStyle.backgroundImage.toLowerCase().search('.png') == -1) {
			return;
		}
		lib = DD_belatedPNG;
		el.vml = {color: {}, image: {}};
		els = {shape: {}, fill: {}};
		for (v in el.vml) {
			if (el.vml.hasOwnProperty(v)) {
				for (e in els) {
					if (els.hasOwnProperty(e)) {
						nodeStr = lib.ns + ':' + e;
						el.vml[v][e] = document.createElement(nodeStr);
					}
				}
				el.vml[v].shape.stroked = false;
				el.vml[v].shape.appendChild(el.vml[v].fill);
				el.parentNode.insertBefore(el.vml[v].shape, el);
			}
		}
		el.vml.image.shape.fillcolor = 'none'; /* Don't show blank white shapeangle when waiting for image to load. */
		el.vml.image.fill.type = 'tile'; /* Makes image show up. */
		el.vml.color.fill.on = false; /* Actually going to apply vml element's style.backgroundColor, so hide the whiteness. */
		lib.attachHandlers(el);
		lib.giveLayout(el);
		lib.giveLayout(el.offsetParent);
		el.vmlInitiated = true;
		lib.applyVML(el); /* Render! */
	}
};
try {
	document.execCommand("BackgroundImageCache", false, true); /* TredoSoft Multiple IE doesn't like this, so try{} it */
} catch(r) {}
DD_belatedPNG.createVmlNameSpace();
DD_belatedPNG.createVmlStyleSheet();; 
DD_belatedPNG.fix('#logo-floater img, #don img, #lang, #enfoiretheque, #enfoiretheque img, #module-push #histoire, .img_history img, #social img,#restos-du-coeur img,#block-block-2 img,#newsletter,#newsletter img, #rappel,#rappel img,#rappel #block-views-evenement-block_1 .view-content div,#block-views-actualites_home-block_1 #descBlock .descriptif,.prev img, .next img,input#email,#subscribeForm .buttons input,input#formRecherche,#form input.submit,.link_mask img'); 
/*#block-views-actualites_home-block_1 .descriptif, #block-views-actualites_home-block_1 #info*/

;/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 */
var Cufon=(function(){var K=function(){return K.replace.apply(null,arguments)};var U=K.DOM={ready:(function(){var Z=false,b={loaded:1,complete:1};var Y=[],a=function(){if(Z){return}Z=true;for(var c;c=Y.shift();c()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,false);window.addEventListener("pageshow",a,false)}if(!window.opera&&document.readyState){(function(){b[document.readyState]?a():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");a()}catch(c){setTimeout(arguments.callee,1)}})()}O(window,"load",a);return function(c){if(!arguments.length){a()}else{Z?c():Y.push(c)}}})()};var L=K.CSS={Size:function(Z,Y){this.value=parseFloat(Z);this.unit=String(Z).match(/[a-z%]*$/)[0]||"px";this.convert=function(a){return a/Y*this.value};this.convertFrom=function(a){return a/this.value*Y};this.toString=function(){return this.value+this.unit}},getStyle:function(Z){var Y=document.defaultView;if(Y&&Y.getComputedStyle){return new A(Y.getComputedStyle(Z,null))}if(Z.currentStyle){return new A(Z.currentStyle)}return new A(Z.style)},ready:(function(){var a=false;var Z=[],b=function(){a=true;for(var d;d=Z.shift();d()){}};var Y=Object.prototype.propertyIsEnumerable?F("style"):{length:0};var c=F("link");U.ready(function(){var g=0,f;for(var e=0,d=c.length;f=c[e],e<d;++e){if(!f.disabled&&f.rel.toLowerCase()=="stylesheet"){++g}}if(document.styleSheets.length>=Y.length+g){b()}else{setTimeout(arguments.callee,10)}});return function(d){if(a){d()}else{Z.push(d)}}})(),supports:function(a,Z){var Y=document.createElement("span").style;if(Y[a]===undefined){return false}Y[a]=Z;return Y[a]===Z},textAlign:function(b,a,Y,Z){if(a.get("textAlign")=="right"){if(Y>0){b=" "+b}}else{if(Y<Z-1){b+=" "}}return b},textDecoration:function(d,c){if(!c){c=this.getStyle(d)}var Z={underline:null,overline:null,"line-through":null};for(var Y=d;Y.parentNode&&Y.parentNode.nodeType==1;){var b=true;for(var a in Z){if(Z[a]){continue}if(c.get("textDecoration").indexOf(a)!=-1){Z[a]=c.get("color")}b=false}if(b){break}c=this.getStyle(Y=Y.parentNode)}return Z},textShadow:I(function(c){if(c=="none"){return null}var b=[],d={},Y,Z=0;var a=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(Y=a.exec(c)){if(Y[0]==","){b.push(d);d={},Z=0}else{if(Y[1]){d.color=Y[1]}else{d[["offX","offY","blur"][Z++]]=Y[2]}}}b.push(d);return b}),color:I(function(Z){var Y={};Y.color=Z.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(b,a,c){Y.opacity=parseFloat(c);return"rgb("+a+")"});return Y}),textTransform:function(Z,Y){return Z[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[Y.get("textTransform")]||"toString"]()}};function Q(Z){var Y=this.face=Z.face;this.glyphs=Z.glyphs;this.w=Z.w;this.baseSize=parseInt(Y["units-per-em"],10);this.family=Y["font-family"].toLowerCase();this.weight=Y["font-weight"];this.style=Y["font-style"]||"normal";this.viewBox=(function(){var b=Y.bbox.split(/\s+/);var a={minX:parseInt(b[0],10),minY:parseInt(b[1],10),maxX:parseInt(b[2],10),maxY:parseInt(b[3],10)};a.width=a.maxX-a.minX,a.height=a.maxY-a.minY;a.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return a})();this.ascent=-parseInt(Y.ascent,10);this.descent=-parseInt(Y.descent,10);this.height=-this.ascent+this.descent}function E(){var Z={},Y={oblique:"italic",italic:"oblique"};this.add=function(a){(Z[a.style]||(Z[a.style]={}))[a.weight]=a};this.get=function(e,f){var d=Z[e]||Z[Y[e]]||Z.normal||Z.italic||Z.oblique;if(!d){return null}f={normal:400,bold:700}[f]||parseInt(f,10);if(d[f]){return d[f]}var b={1:1,99:0}[f%100],h=[],c,a;if(b===undefined){b=f>400}if(f==500){f=400}for(var g in d){g=parseInt(g,10);if(!c||g<c){c=g}if(!a||g>a){a=g}h.push(g)}if(f<c){f=c}if(f>a){f=a}h.sort(function(j,i){return(b?(j>f&&i>f)?j<i:j>i:(j<f&&i<f)?j>i:j<i)?-1:1});return d[h[0]]}}function P(){function a(c,d){if(c.contains){return c.contains(d)}return c.compareDocumentPosition(d)&16}function Y(d){var c=d.relatedTarget;if(!c||a(this,c)){return}Z(this)}function b(c){Z(this)}function Z(c){setTimeout(function(){K.replace(c,D.get(c).options,true)},10)}this.attach=function(c){if(c.onmouseenter===undefined){O(c,"mouseover",Y);O(c,"mouseout",Y)}else{O(c,"mouseenter",b);O(c,"mouseleave",b)}}}function X(){var a={},Y=0;function Z(b){return b.cufid||(b.cufid=++Y)}this.get=function(b){var c=Z(b);return a[c]||(a[c]={})}}function A(Y){var a={},Z={};this.get=function(b){return a[b]!=undefined?a[b]:Y[b]};this.getSize=function(c,b){return Z[c]||(Z[c]=new L.Size(this.get(c),b))};this.extend=function(b){for(var c in b){a[c]=b[c]}return this}}function O(Z,Y,a){if(Z.addEventListener){Z.addEventListener(Y,a,false)}else{if(Z.attachEvent){Z.attachEvent("on"+Y,function(){return a.call(Z,window.event)})}}}function R(Z,Y){var a=D.get(Z);if(a.options){return Z}if(Y.hover&&Y.hoverables[Z.nodeName.toLowerCase()]){B.attach(Z)}a.options=Y;return Z}function I(Y){var Z={};return function(a){if(!Z.hasOwnProperty(a)){Z[a]=Y.apply(null,arguments)}return Z[a]}}function C(d,c){if(!c){c=L.getStyle(d)}var Z=c.get("fontFamily").split(/\s*,\s*/),b;for(var a=0,Y=Z.length;a<Y;++a){b=Z[a].replace(/^(["'])(.*?)\1$/,"$2").toLowerCase();if(H[b]){return H[b].get(c.get("fontStyle"),c.get("fontWeight"))}}return null}function F(Y){return document.getElementsByTagName(Y)}function G(){var Y={},b;for(var a=0,Z=arguments.length;a<Z;++a){for(b in arguments[a]){Y[b]=arguments[a][b]}}return Y}function M(b,k,Z,m,c,a){var j=m.separate;if(j=="none"){return W[m.engine].apply(null,arguments)}var h=document.createDocumentFragment(),e;var f=k.split(N[j]),Y=(j=="words");if(Y&&S){if(/^\s/.test(k)){f.unshift("")}if(/\s$/.test(k)){f.push("")}}for(var g=0,d=f.length;g<d;++g){e=W[m.engine](b,Y?L.textAlign(f[g],Z,g,d):f[g],Z,m,c,a,g<d-1);if(e){h.appendChild(e)}}return h}function J(Z,g){var a,Y,d,f;for(var b=R(Z,g).firstChild;b;b=d){d=b.nextSibling;f=false;if(b.nodeType==1){if(!b.firstChild){continue}if(!/cufon/.test(b.className)){arguments.callee(b,g);continue}else{f=true}}if(!Y){Y=L.getStyle(Z).extend(g)}if(!a){a=C(Z,Y)}if(!a){continue}if(f){W[g.engine](a,null,Y,g,b,Z);continue}var e=b.data;if(e===""){continue}var c=M(a,e,Y,g,b,Z);if(c){b.parentNode.replaceChild(c,b)}else{b.parentNode.removeChild(b)}}}var S=" ".split(/\s+/).length==0;var D=new X();var B=new P();var V=[];var W={},H={},T={enableTextDecoration:false,engine:null,hover:false,hoverables:{a:true},printable:true,selector:(window.Sizzle||window.jQuery||(window.dojo&&dojo.query)||(window.$$&&function(Y){return $$(Y)})||(window.$&&function(Y){return $(Y)})||(document.querySelectorAll&&function(Y){return document.querySelectorAll(Y)})||F),separate:"words",textShadow:"none"};var N={words:/\s+/,characters:""};K.now=function(){U.ready();return K};K.refresh=function(){var a=V.splice(0,V.length);for(var Z=0,Y=a.length;Z<Y;++Z){K.replace.apply(null,a[Z])}return K};K.registerEngine=function(Z,Y){if(!Y){return K}W[Z]=Y;return K.set("engine",Z)};K.registerFont=function(a){var Y=new Q(a),Z=Y.family;if(!H[Z]){H[Z]=new E()}H[Z].add(Y);return K.set("fontFamily",Z)};K.replace=function(a,Z,Y){Z=G(T,Z);if(!Z.engine){return K}if(typeof Z.textShadow=="string"){Z.textShadow=L.textShadow(Z.textShadow)}if(!Y){V.push(arguments)}if(a.nodeType||typeof a=="string"){a=[a]}L.ready(function(){for(var c=0,b=a.length;c<b;++c){var d=a[c];if(typeof d=="string"){K.replace(Z.selector(d),Z,true)}else{J(d,Z)}}});return K};K.set=function(Y,Z){T[Y]=Z;return K};return K})();Cufon.registerEngine("canvas",(function(){var B=document.createElement("canvas");if(!B||!B.getContext||!B.getContext.apply){return null}B=null;var A=Cufon.CSS.supports("display","inline-block");var E=!A&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var F=document.createElement("style");F.type="text/css";F.appendChild(document.createTextNode("@media screen,projection{.cufon-canvas{display:inline;display:inline-block;position:relative;vertical-align:middle"+(E?"":";font-size:1px;line-height:1px")+"}.cufon-canvas .cufon-alt{position:absolute;left:-10000in;font-size:1px}"+(A?".cufon-canvas canvas{position:relative}":".cufon-canvas canvas{position:absolute}")+"}@media print{.cufon-canvas{padding:0 !important}.cufon-canvas canvas{display:none}.cufon-canvas .cufon-alt{display:inline}}"));document.getElementsByTagName("head")[0].appendChild(F);function D(O,H){var M=0,L=0;var G=[],N=/([mrvxe])([^a-z]*)/g,J;generate:for(var I=0;J=N.exec(O);++I){var K=J[2].split(",");switch(J[1]){case"v":G[I]={m:"bezierCurveTo",a:[M+~~K[0],L+~~K[1],M+~~K[2],L+~~K[3],M+=~~K[4],L+=~~K[5]]};break;case"r":G[I]={m:"lineTo",a:[M+=~~K[0],L+=~~K[1]]};break;case"m":G[I]={m:"moveTo",a:[M=~~K[0],L=~~K[1]]};break;case"x":G[I]={m:"closePath"};break;case"e":break generate}H[G[I].m].apply(H,G[I].a)}return G}function C(K,J){for(var I=0,H=K.length;I<H;++I){var G=K[I];J[G.m].apply(J,G.a)}}return function(q,T,k,P,X,r){var I=(T===null);var V=q.viewBox;var J=k.getSize("fontSize",q.baseSize);var h=k.get("letterSpacing");h=(h=="normal")?0:J.convertFrom(parseInt(h,10));var W=0,j=0,f=0,R=0;var U=P.textShadow,d=[];if(U){for(var p=0,m=U.length;p<m;++p){var Z=U[p];var c=J.convertFrom(parseFloat(Z.offX));var b=J.convertFrom(parseFloat(Z.offY));d[p]=[c,b];if(b<W){W=b}if(c>j){j=c}if(b>f){f=b}if(c<R){R=c}}}var u=Cufon.CSS.textTransform(I?X.alt:T,k).split("");var G=0,S=null;for(var p=0,m=u.length;p<m;++p){var Q=q.glyphs[u[p]]||q.missingGlyph;if(!Q){continue}G+=S=Number(Q.w||q.w)+h}if(S===null){return null}j+=(V.width-S);R+=V.minX;var O,K;if(I){O=X;K=X.firstChild}else{O=document.createElement("span");O.className="cufon cufon-canvas";O.alt=T;K=document.createElement("canvas");O.appendChild(K);if(P.printable){var n=document.createElement("span");n.className="cufon-alt";n.appendChild(document.createTextNode(T));O.appendChild(n)}}var v=O.style;var a=K.style;var H=J.convert(V.height-W+f);var t=Math.ceil(H);var e=t/H;K.width=Math.ceil(J.convert(G+j-R)*e);K.height=t;W+=V.minY;a.top=Math.round(J.convert(W-q.ascent))+"px";a.left=Math.round(J.convert(R))+"px";var N=Math.ceil(J.convert(G*e))+"px";if(A){v.width=N;v.height=J.convert(q.height)+"px"}else{v.paddingLeft=N;v.paddingBottom=(J.convert(q.height)-1)+"px"}var s=K.getContext("2d"),Y=t/V.height;s.scale(Y,Y);s.translate(-R,-W);s.lineWidth=q.face["underline-thickness"];s.save();function L(i,g){s.strokeStyle=g;s.beginPath();s.moveTo(0,i);s.lineTo(G,i);s.stroke()}var M=P.enableTextDecoration?Cufon.CSS.textDecoration(r,k):{};if(M.underline){L(-q.face["underline-position"],M.underline)}if(M.overline){L(q.ascent,M.overline)}s.fillStyle=k.get("color");function o(){for(var w=0,g=u.length;w<g;++w){var x=q.glyphs[u[w]]||q.missingGlyph;if(!x){continue}s.beginPath();if(x.d){if(x.code){C(x.code,s)}else{x.code=D("m"+x.d,s)}}s.fill();s.translate(Number(x.w||q.w)+h,0)}}if(U){for(var p=0,m=U.length;p<m;++p){var Z=U[p];s.save();s.fillStyle=Z.color;s.translate.apply(s,d[p]);o();s.restore()}}o();s.restore();if(M["line-through"]){L(-q.descent,M["line-through"])}return O}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return}document.write('<!--[if vml]><script type="text/javascript">Cufon.vmlEnabled=true;<\/script><![endif]-->');if(!Cufon.vmlEnabled){return}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml");document.write('<style type="text/css">@media screen{cvml\\:shape,cvml\\:group,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute}.cufon-vml-canvas{position:absolute;text-align:left}.cufon-vml{display:inline-block;position:relative;vertical-align:middle}.cufon-vml .cufon-alt{position:absolute;left:-10000in;font-size:1px}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none}.cufon-vml .cufon-alt{display:inline}}</style>')}function B(C,D){return A(C,/(?:em|ex|%)$/i.test(D)?"1em":D)}function A(F,G){if(/px$/i.test(G)){return parseFloat(G)}var E=F.style.left,D=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;F.style.left=G;var C=F.style.pixelLeft;F.style.left=E;F.runtimeStyle.left=D;return C}return function(r,U,m,R,Y,s,h){var F=(U===null);if(F){U=Y.alt}var W=r.viewBox;var G=m.computedFontSize||(m.computedFontSize=new Cufon.CSS.Size(B(s,m.get("fontSize"))+"px",r.baseSize));var g=m.computedLSpacing;if(g==undefined){g=m.get("letterSpacing");m.computedLSpacing=g=(g=="normal")?0:~~G.convertFrom(A(s,g))}var O,H;if(F){O=Y;H=Y.firstChild}else{O=document.createElement("span");O.className="cufon cufon-vml";O.alt=U;H=document.createElement("span");H.className="cufon-vml-canvas";O.appendChild(H);if(R.printable){var p=document.createElement("span");p.className="cufon-alt";p.appendChild(document.createTextNode(U));O.appendChild(p)}if(!h){O.appendChild(document.createElement("cvml:group"))}}var x=O.style;var b=H.style;var D=G.convert(W.height),u=Math.ceil(D);var f=u/D;var e=W.minX,d=W.minY;b.height=u;b.top=Math.round(G.convert(d-r.ascent));b.left=Math.round(G.convert(e));x.height=G.convert(r.height)+"px";var K=R.enableTextDecoration?Cufon.CSS.textDecoration(s,m):{};var T=m.get("color");var v=Cufon.CSS.textTransform(U,m).split("");var C=0,c=0,L=null;var S,M,V=R.textShadow;for(var q=0,o=0,n=v.length;q<n;++q){S=r.glyphs[v[q]]||r.missingGlyph;if(S){C+=L=~~(S.w||r.w)+g}}if(L===null){return null}var N=-e+C+(W.width-L);var w=G.convert(N*f),j=Math.round(w);var a=N+","+W.height,E;var X="r"+a+"nsnf";for(q=0;q<n;++q){S=r.glyphs[v[q]]||r.missingGlyph;if(!S){continue}if(F){M=H.childNodes[o];if(M.firstChild){M.removeChild(M.firstChild)}}else{M=document.createElement("cvml:shape");H.appendChild(M)}M.stroked="f";M.coordsize=a;M.coordorigin=E=(e-c)+","+d;M.path=(S.d?"m"+S.d+"xe":"")+"m"+E+X;M.fillcolor=T;var t=M.style;t.width=j;t.height=u;if(V){var J=V[0],I=V[1];var Q=Cufon.CSS.color(J.color),P;var Z=document.createElement("cvml:shadow");Z.on="t";Z.color=Q.color;Z.offset=J.offX+","+J.offY;if(I){P=Cufon.CSS.color(I.color);Z.type="double";Z.color2=P.color;Z.offset2=I.offX+","+I.offY}Z.opacity=Q.opacity||(P&&P.opacity)||1;M.appendChild(Z)}c+=~~(S.w||r.w)+g;++o}x.width=Math.max(Math.ceil(G.convert(C*f)),0);return O}})());;Cufon.registerFont({"w":221,"face":{"font-family":"Futura Std","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 5 2 2 2 4 2 3 3","ascent":"297","descent":"-63","x-height":"5","bbox":"-24 -361 388 95","underline-thickness":"18","underline-position":"-36","stemh":"27","stemv":"29","unicode-range":"U+0020-U+00EA"},"glyphs":{" ":{"w":110},"!":{"d":"61,-36v11,0,20,9,20,20v0,11,-9,21,-20,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20xm46,-55r0,-216r30,0r0,216r-30,0","w":121},"\"":{"d":"37,-271r34,0r-7,118r-21,0xm94,-271r34,0r-7,118r-21,0","w":164},"#":{"d":"85,-271r28,0r-13,73r44,0r13,-73r28,0r-12,73r33,0r0,28r-38,0r-10,62r36,0r0,28r-41,0r-15,80r-27,0r14,-80r-44,0r-15,80r-27,0r14,-80r-37,0r0,-28r41,0r11,-62r-39,0r0,-28r43,0xm96,-170r-11,62r45,0r10,-62r-44,0"},"$":{"d":"128,-124r0,97v23,-8,37,-28,37,-52v0,-23,-18,-36,-37,-45xm104,-167r0,-79v-19,4,-33,21,-33,41v0,20,18,31,33,38xm104,-25r0,-110v-32,-13,-63,-31,-63,-71v0,-37,28,-63,63,-68r0,-37r24,0r0,37v25,3,46,19,57,41r-24,16v-7,-13,-18,-25,-33,-28r0,89v36,15,67,33,67,76v0,40,-28,74,-67,82r0,39r-24,0r0,-37v-38,-2,-71,-32,-77,-70r29,-8v3,25,23,47,48,49"},"%":{"d":"72,-253v-20,0,-37,16,-37,36v0,20,17,36,37,36v20,0,37,-16,37,-36v0,-20,-17,-36,-37,-36xm215,-276r14,9r-157,272r-15,-10xm215,-91v-20,0,-37,16,-37,37v0,19,17,36,37,36v20,0,38,-17,38,-36v0,-21,-18,-37,-38,-37xm72,-276v33,0,60,26,60,59v0,33,-27,59,-60,59v-33,0,-60,-25,-60,-59v0,-33,27,-59,60,-59xm215,-114v33,0,61,26,61,60v0,33,-28,59,-61,59v-32,0,-60,-26,-60,-59v0,-34,27,-60,60,-60","w":286},"&":{"d":"109,-177v15,-13,36,-23,36,-46v0,-16,-14,-28,-29,-28v-44,2,-28,59,-7,74xm209,0r-29,-38v-24,21,-53,43,-87,43v-41,0,-79,-31,-79,-74v0,-47,36,-69,70,-92v-12,-17,-27,-35,-27,-58v0,-34,25,-57,59,-57v31,0,58,21,58,53v0,33,-25,50,-48,68r57,73r31,-36r22,18r-35,41r46,59r-38,0xm102,-139v-23,17,-58,34,-58,67v0,26,22,49,47,49v28,0,52,-21,71,-38","w":250},"(":{"d":"66,-284r26,13v-40,108,-39,237,0,345r-26,12v-46,-114,-45,-255,0,-370","w":103},")":{"d":"12,-271r25,-13v46,115,45,256,0,370r-25,-12v38,-108,38,-237,0,-345","w":103},"*":{"d":"95,-221r-2,-50r27,0r-2,50r48,-18r8,26r-49,14r32,40r-22,16r-28,-43r-29,43r-21,-16r31,-40r-49,-14r9,-26","w":213},"+":{"d":"97,-179r28,0r0,73r73,0r0,28r-73,0r0,73r-28,0r0,-73r-73,0r0,-28r73,0r0,-73"},",":{"d":"54,-40r27,10r-41,92r-19,-8","w":110},"-":{"d":"1,-100r74,0r0,27r-74,0r0,-27","w":74},".":{"d":"55,-36v12,0,21,9,21,20v0,11,-9,21,-21,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20","w":110},"\/":{"d":"175,-297r24,11r-169,343r-24,-11","w":205},"0":{"d":"111,-276v69,0,97,85,97,141v0,67,-35,140,-97,140v-62,0,-97,-73,-97,-140v0,-56,28,-141,97,-141xm111,-248v-51,0,-68,76,-67,114v1,38,17,111,67,111v50,0,66,-73,67,-111v1,-38,-16,-114,-67,-114"},"1":{"d":"102,-243r-45,0r16,-28r59,0r0,271r-30,0r0,-243"},"2":{"d":"76,-28r114,0r0,28r-175,0r127,-150v34,-33,15,-101,-36,-98v-33,0,-54,24,-55,56r-30,0v1,-48,36,-84,84,-84v69,-5,113,85,65,137"},"3":{"d":"98,-129r0,-28v28,-1,53,-9,53,-44v0,-28,-19,-47,-47,-47v-27,0,-42,18,-45,44r-30,0v4,-44,31,-72,75,-72v74,-7,105,101,43,133v70,34,35,156,-46,148v-44,0,-80,-30,-80,-76r29,0v1,28,25,48,52,48v30,0,53,-25,53,-55v0,-34,-24,-52,-57,-51"},"4":{"d":"171,-72r34,0r0,28r-34,0r0,44r-30,0r0,-44r-139,0r169,-243r0,215xm141,-72r-1,-123r-85,123r86,0"},"5":{"d":"188,-243r-86,0r-18,58v62,-11,106,35,106,93v5,98,-142,132,-182,48r24,-17v26,61,133,42,128,-32v2,-61,-75,-85,-119,-48r39,-130r108,0r0,28"},"6":{"d":"91,-175v56,-15,114,28,112,86v0,52,-42,94,-94,94v-80,3,-122,-102,-68,-158r90,-123r22,17xm109,-23v36,0,64,-29,64,-64v0,-36,-29,-63,-64,-63v-35,0,-63,27,-63,63v0,35,28,64,63,64"},"7":{"d":"167,-243r-149,0r0,-28r201,0r-183,276r-23,-14"},"8":{"d":"111,-128v-30,0,-53,24,-53,52v0,29,23,53,53,53v29,0,52,-24,52,-53v0,-28,-23,-52,-52,-52xm111,-276v72,0,104,101,43,135v71,31,39,146,-43,146v-81,0,-115,-115,-43,-146v-60,-34,-31,-135,43,-135xm111,-248v-26,0,-47,21,-47,47v0,26,21,47,47,47v26,0,47,-21,47,-47v0,-26,-21,-47,-47,-47"},"9":{"d":"88,5r-22,-16v19,-29,46,-58,61,-87v-59,18,-112,-29,-111,-86v0,-51,43,-92,94,-92v80,-3,121,101,68,158xm110,-248v-35,0,-64,28,-64,63v0,36,29,63,64,63v35,0,63,-27,63,-63v0,-35,-28,-63,-63,-63"},":":{"d":"55,-36v12,0,21,9,21,20v0,11,-9,21,-21,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20xm55,-174v12,0,21,9,21,20v0,11,-9,20,-21,20v-11,0,-20,-9,-20,-20v0,-11,9,-20,20,-20","w":110},";":{"d":"55,-40r27,10r-41,92r-19,-8xm64,-174v12,0,21,9,21,20v0,11,-9,20,-21,20v-11,0,-20,-9,-20,-20v0,-11,9,-20,20,-20","w":110},"<":{"d":"198,-179r0,30r-132,57r132,56r0,31r-174,-75r0,-25"},"=":{"d":"24,-134r174,0r0,28r-174,0r0,-28xm24,-78r174,0r0,28r-174,0r0,-28"},">":{"d":"24,-149r0,-30r174,74r0,25r-174,75r0,-31r132,-56"},"?":{"d":"117,-118r29,0v1,34,-24,62,-59,62v-33,0,-58,-25,-58,-58v0,-33,22,-47,49,-56v23,-7,46,-11,46,-41v0,-22,-16,-37,-37,-37v-28,0,-43,26,-33,53r-30,0v-11,-48,22,-81,65,-81v57,-3,85,75,45,113v-22,23,-73,12,-76,51v0,16,14,28,30,28v20,0,29,-16,29,-34xm87,-36v11,0,20,9,20,20v0,11,-9,21,-20,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20","w":175},"@":{"d":"144,-183v-53,-2,-73,100,-11,102v57,3,67,-103,11,-102xm275,-163v4,53,-36,109,-77,107v-10,-1,-18,-8,-20,-22v-33,42,-112,18,-109,-44v-5,-64,78,-119,121,-60r5,-22r26,0r-18,92v-3,12,-8,31,5,31v16,0,40,-35,41,-69v4,-63,-41,-100,-100,-100v-64,0,-110,49,-110,114v-6,95,109,143,185,98r25,19v-25,13,-53,24,-96,24v-78,0,-140,-60,-140,-141v0,-80,61,-140,137,-140v64,-1,126,50,125,113","w":288},"A":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0","w":251},"B":{"d":"58,-126r0,98v49,1,97,3,99,-50v-3,-51,-52,-48,-99,-48xm27,0r0,-271v71,-3,135,1,136,73v0,22,-9,41,-27,53v32,8,52,37,52,69v0,77,-81,80,-161,76xm58,-243r0,91v40,0,74,0,74,-46v1,-45,-32,-45,-74,-45","w":204},"C":{"d":"234,-249r0,37v-21,-22,-51,-36,-82,-36v-61,0,-110,53,-110,112v0,60,49,113,110,113v31,0,61,-15,82,-36r0,37v-88,68,-226,-4,-222,-113v-4,-108,134,-184,222,-114","w":258},"D":{"d":"229,-135v4,77,-70,144,-151,135r-51,0r0,-271r51,0v82,-8,156,57,151,136xm199,-136v1,-70,-60,-118,-141,-107r0,215v81,10,141,-38,141,-108","w":244},"E":{"d":"27,0r0,-271r141,0r0,28r-110,0r0,80r107,0r0,28r-107,0r0,107r110,0r0,28r-141,0","w":192},"F":{"d":"151,-243r-93,0r0,80r90,0r0,28r-90,0r0,135r-31,0r0,-271r124,0r0,28","w":172},"G":{"d":"42,-135v-2,60,52,111,108,112v48,0,97,-35,97,-85r-80,0r0,-28r113,0v8,79,-58,143,-129,141v-76,0,-139,-64,-139,-140v0,-78,63,-141,141,-141v48,0,86,21,115,59r-22,20v-23,-32,-53,-51,-93,-51v-62,0,-111,52,-111,113","w":295},"H":{"d":"59,-161r139,0r0,-110r30,0r0,271r-30,0r0,-133r-139,0r0,133r-30,0r0,-271r30,0r0,110","w":257},"I":{"d":"58,-271r0,271r-30,0r0,-271r30,0","w":86},"J":{"d":"85,-57v5,42,-18,88,-61,85v-18,0,-34,-9,-48,-20r17,-23v10,9,18,15,32,15v30,0,30,-35,30,-57r0,-214r30,0r0,214","w":113},"K":{"d":"58,-155r115,-116r41,0r-128,126r132,145r-42,0r-111,-125r-7,8r0,117r-31,0r0,-271r31,0r0,116","w":219},"L":{"d":"58,-271r0,243r74,0r0,28r-105,0r0,-271r31,0","w":135},"M":{"d":"8,0r55,-287r98,228r99,-228r55,287r-31,0r-35,-184r-88,195r-88,-195r-34,184r-31,0","w":322},"N":{"d":"29,0r0,-283r212,222r0,-210r30,0r0,283r-212,-221r0,209r-30,0","w":300},"O":{"d":"155,-276v78,0,142,63,142,141v0,78,-64,140,-142,140v-77,0,-141,-62,-141,-140v0,-78,64,-141,141,-141xm155,-248v-62,0,-111,51,-111,112v0,61,50,113,111,113v62,0,111,-52,111,-113v0,-61,-49,-112,-111,-112","w":310},"P":{"d":"170,-195v1,54,-50,85,-112,76r0,119r-31,0r0,-271v77,-8,144,10,143,76xm58,-243r0,96v44,1,81,-2,82,-49v-1,-48,-41,-47,-82,-47","w":181},"Q":{"d":"190,-109r47,49v65,-67,12,-192,-82,-188v-62,0,-111,51,-111,112v-3,84,101,147,172,92r-66,-65r40,0xm260,3r-23,-25v-89,68,-228,-2,-223,-113v0,-78,64,-141,141,-141v120,-5,190,155,102,237r41,42r-38,0","w":310},"R":{"d":"58,-243r0,97v39,1,77,-3,78,-48v-1,-48,-37,-49,-78,-49xm58,-119r0,119r-31,0r0,-271v71,-1,137,-2,139,74v0,42,-26,72,-68,75r86,122r-37,0r-82,-119r-7,0","w":195},"S":{"d":"175,-234r-25,15v-14,-42,-91,-37,-91,13v2,30,36,40,60,50v35,16,65,34,65,77v0,47,-38,84,-85,84v-44,0,-76,-28,-85,-71r30,-8v4,28,25,51,54,51v29,0,56,-23,56,-53v-6,-74,-129,-50,-126,-131v0,-78,119,-92,147,-27","w":201},"T":{"d":"99,-243r0,243r-30,0r0,-243r-65,0r0,-28r162,0r0,28r-67,0","w":169},"U":{"d":"123,5v-54,2,-96,-48,-96,-107r0,-169r30,0r0,161v0,20,-1,43,12,61v44,56,137,13,121,-61r0,-161r30,0r0,169v7,60,-41,109,-97,107","w":246},"V":{"d":"35,-271r77,207r78,-207r32,0r-110,287r-110,-287r33,0","w":224},"W":{"d":"37,-271r72,203r88,-217r87,217r72,-203r32,0r-104,285r-87,-218r-88,218r-104,-285r32,0","w":392},"X":{"d":"85,-140r-73,-131r34,0r56,102r55,-102r35,0r-74,131r80,140r-34,0r-62,-112r-63,112r-34,0","w":203},"Y":{"d":"92,-117r-89,-154r35,0r69,121r69,-121r35,0r-89,154r0,117r-30,0r0,-117","w":213},"Z":{"d":"55,-28r144,0r0,28r-194,0r148,-243r-129,0r0,-28r179,0","w":210},"[":{"d":"67,-257r0,317r39,0r0,26r-69,0r0,-370r69,0r0,27r-39,0","w":113},"\\":{"d":"6,-286r24,-11r169,297r-24,11","w":205},"]":{"d":"46,60r0,-317r-38,0r0,-27r68,0r0,370r-68,0r0,-26r38,0","w":113},"^":{"d":"24,-116r74,-155r26,0r74,155r-32,0r-55,-118r-56,118r-31,0"},"_":{"d":"180,27r0,18r-180,0r0,-18r180,0","w":180},"a":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0","w":207},"b":{"d":"108,-147v-33,0,-55,29,-55,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-57,-61xm26,0r0,-297r29,0r0,152v44,-61,149,-15,140,60v7,76,-95,122,-140,62r0,23r-29,0","w":207},"c":{"d":"153,-157v-1,12,2,28,-1,38v-29,-49,-116,-26,-112,34v-4,64,83,83,114,34r0,38v-56,44,-148,2,-144,-72v-3,-70,85,-115,143,-72","w":171},"d":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm153,0v-1,-7,2,-18,-1,-23v-45,60,-147,14,-139,-61v0,-48,31,-90,81,-90v24,-1,44,13,59,29r0,-152r29,0r0,297r-29,0","w":207},"e":{"d":"175,-78r-133,0v0,31,22,56,55,56v25,0,41,-15,52,-35r24,14v-16,30,-43,48,-78,48v-50,0,-83,-39,-83,-87v0,-50,29,-92,82,-92v55,0,83,45,81,96xm43,-103r101,0v-6,-57,-94,-55,-101,0","w":186},"f":{"d":"30,-237v-6,-45,29,-78,72,-61r0,29v-30,-11,-48,1,-43,43r0,57r43,0r0,26r-43,0r0,143r-29,0r0,-143r-16,0r0,-26r16,0r0,-68","w":98},"g":{"d":"96,-147v-34,0,-55,29,-55,61v0,33,19,64,55,64v37,0,57,-30,57,-64v0,-34,-22,-61,-57,-61xm180,-8v8,55,-32,106,-83,102v-47,0,-82,-30,-83,-77r29,0v0,31,23,51,54,51v51,0,58,-45,53,-91v-13,17,-36,28,-58,28v-50,0,-81,-42,-81,-89v-7,-75,95,-122,140,-61r0,-24r29,0r0,161","w":208},"h":{"d":"27,-297r29,0r1,148v12,-16,27,-25,48,-25v82,1,52,100,58,174r-29,0r0,-95v0,-28,-2,-52,-36,-52v-64,5,-35,88,-42,147r-29,0r0,-297","w":190},"i":{"d":"62,-169r0,169r-29,0r0,-169r29,0xm47,-253v11,0,21,9,21,20v0,12,-10,21,-21,21v-11,0,-20,-9,-20,-21v0,-11,9,-20,20,-20","w":94},"j":{"d":"62,-169r0,264r-29,0r0,-264r29,0xm47,-253v11,0,21,9,21,20v0,12,-10,21,-21,21v-11,0,-20,-9,-20,-21v0,-11,9,-20,20,-20","w":94},"k":{"d":"55,-297r0,190r61,-62r39,0r-73,72r86,97r-38,0r-68,-77v-15,13,-4,52,-7,77r-29,0r0,-297r29,0","w":169},"l":{"d":"55,-297r0,297r-28,0r0,-297r28,0","w":81},"m":{"d":"56,-169v1,6,-2,14,1,18v18,-33,71,-29,87,5v10,-19,31,-28,51,-28v78,4,48,102,54,174r-29,0r0,-98v0,-22,-1,-49,-31,-49v-60,8,-28,91,-36,147r-29,0r0,-96v0,-21,-3,-51,-30,-51v-61,8,-31,90,-38,147r-29,0r0,-169r29,0","w":276},"n":{"d":"56,-169v1,6,-2,16,1,20v12,-16,27,-25,48,-25v82,1,52,100,58,174r-29,0r0,-95v0,-28,-2,-52,-36,-52v-64,5,-35,88,-42,147r-29,0r0,-169r29,0","w":190},"o":{"d":"101,5v-49,0,-89,-40,-89,-89v0,-50,39,-90,89,-90v50,0,89,40,89,90v0,49,-40,89,-89,89xm101,-147v-35,0,-60,28,-60,62v0,35,25,63,60,63v36,0,60,-28,60,-63v0,-34,-24,-62,-60,-62","w":202},"p":{"d":"108,-147v-33,0,-55,29,-55,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-57,-61xm55,-169r0,24v44,-62,148,-14,140,61v8,75,-96,122,-140,60r0,119r-29,0r0,-264r29,0","w":207},"q":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,264r-29,0r-1,-119v-43,61,-148,16,-139,-60v0,-47,31,-90,81,-90v24,-1,43,12,59,29r0,-24r29,0","w":207},"r":{"d":"55,-169r0,18v13,-21,41,-31,64,-15r-14,26v-6,-4,-10,-7,-17,-7v-32,0,-33,40,-33,62r0,85r-29,0r0,-169r29,0","w":120},"s":{"d":"52,-129v6,36,84,26,78,79v1,67,-103,72,-117,12r26,-11v5,32,60,38,62,1v0,-38,-77,-25,-77,-78v-1,-53,80,-64,96,-17r-24,13v-6,-21,-42,-23,-44,1","w":143},"t":{"d":"58,-143r0,143r-29,0r0,-143r-18,0r0,-26r18,0r0,-61r29,0r0,61r30,0r0,26r-30,0","w":86},"u":{"d":"54,-169v8,56,-26,144,38,147v65,-3,29,-91,38,-147r29,0v-3,79,20,176,-67,174v-87,2,-64,-95,-67,-174r29,0","w":184},"v":{"d":"33,-169r51,114r50,-114r32,0r-82,180r-84,-180r33,0","w":166},"w":{"d":"34,-169r50,114r52,-127r53,127r51,-114r33,0r-84,181r-53,-126r-52,126r-83,-181r33,0","w":273},"x":{"d":"72,-90r-61,-79r35,0r44,57r45,-57r36,0r-62,79r70,90r-35,0r-54,-69r-54,69r-36,0","w":179},"y":{"d":"77,-16r-78,-153r34,0r60,121r54,-121r33,0r-125,264r-33,0","w":179},"z":{"d":"62,-27r117,0r0,27r-175,0r122,-143r-100,0r0,-26r158,0","w":186},"{":{"d":"18,-87r0,-23v69,-12,-27,-186,84,-174r0,27v-46,-9,-27,58,-27,95v0,42,-23,60,-27,63v4,3,27,21,27,64r0,67v-2,24,5,31,27,28r0,26v-62,16,-58,-56,-57,-115v0,-32,-2,-51,-27,-58","w":120},"|":{"d":"117,-283r0,360r-28,0r0,-360r28,0","w":205},"}":{"d":"102,-110r0,23v-69,11,27,186,-84,173r0,-26v46,10,27,-58,27,-95v0,-43,23,-61,28,-64v-5,-3,-28,-21,-28,-63r0,-68v2,-23,-5,-30,-27,-27r0,-27v62,-16,58,57,57,116v0,32,2,50,27,58","w":120},"~":{"d":"148,-61v-24,0,-55,-35,-74,-35v-10,0,-19,15,-25,34r-25,-10v10,-29,26,-53,50,-53v25,-1,53,36,74,36v10,0,20,-16,26,-35r24,10v-10,29,-26,53,-50,53"},"'":{"d":"35,-271r34,0r-6,118r-21,0","w":104},"`":{"d":"28,-254r30,-14r43,59r-18,10","w":128},"\u00c1":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0xm147,-361r30,14r-55,55r-18,-10","w":251},"\u00c2":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0xm69,-311r57,-48r57,48r-21,17r-36,-31r-36,31","w":251},"\u00c0":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0xm75,-347r30,-14r43,59r-18,10","w":251},"\u00c9":{"d":"27,0r0,-271r141,0r0,28r-110,0r0,80r107,0r0,28r-107,0r0,107r110,0r0,28r-141,0xm117,-361r30,14r-55,55r-18,-10","w":192},"\u00ca":{"d":"27,0r0,-271r141,0r0,28r-110,0r0,80r107,0r0,28r-107,0r0,107r110,0r0,28r-141,0xm40,-311r56,-48r57,48r-21,17r-36,-31r-36,31","w":192},"\u00c8":{"d":"27,0r0,-271r141,0r0,28r-110,0r0,80r107,0r0,28r-107,0r0,107r110,0r0,28r-141,0xm51,-347r30,-14r43,59r-18,10","w":192},"\u00e1":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0xm125,-268r30,14r-55,55r-18,-10","w":207},"\u00e2":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0xm48,-217r56,-48r57,48r-21,16r-36,-31r-36,31","w":207},"\u00e0":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0xm53,-254r31,-14r42,59r-18,10","w":207},"\u00e9":{"d":"175,-78r-133,0v0,31,22,56,55,56v25,0,41,-15,52,-35r24,14v-16,30,-43,48,-78,48v-50,0,-83,-39,-83,-87v0,-50,29,-92,82,-92v55,0,83,45,81,96xm43,-103r101,0v-6,-57,-94,-55,-101,0xm114,-268r31,14r-55,55r-18,-10","w":186},"\u00ea":{"d":"175,-78r-133,0v0,31,22,56,55,56v25,0,41,-15,52,-35r24,14v-16,30,-43,48,-78,48v-50,0,-83,-39,-83,-87v0,-50,29,-92,82,-92v55,0,83,45,81,96xm43,-103r101,0v-6,-57,-94,-55,-101,0xm37,-217r56,-48r57,48r-21,16r-36,-31r-35,31","w":186},"\u00e8":{"d":"175,-78r-133,0v0,31,22,56,55,56v25,0,41,-15,52,-35r24,14v-16,30,-43,48,-78,48v-50,0,-83,-39,-83,-87v0,-50,29,-92,82,-92v55,0,83,45,81,96xm43,-103r101,0v-6,-57,-94,-55,-101,0xm43,-254r30,-14r43,59r-18,10","w":186},"\u00a0":{"w":110}}});Cufon.registerFont({"w":246,"face":{"font-family":"Futura Std","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 8 2 2 2 4 2 2 4","ascent":"297","descent":"-63","x-height":"6","bbox":"-7 -374 408 92","underline-thickness":"18","underline-position":"-36","stemh":"57","stemv":"66","unicode-range":"U+0020-U+00EA"},"glyphs":{" ":{"w":123},"!":{"d":"69,-77v24,0,42,19,42,42v0,23,-18,42,-42,42v-23,0,-42,-19,-42,-42v0,-23,19,-42,42,-42xm35,-92r0,-179r68,0r0,179r-68,0","w":138},"\"":{"d":"17,-271r61,0r-10,119r-41,0xm102,-271r61,0r-10,119r-41,0","w":180},"#":{"d":"95,-261r39,0r-14,73r36,0r14,-73r38,0r-14,73r28,0r0,40r-35,0r-8,45r33,0r0,41r-42,0r-12,62r-38,0r12,-62r-37,0r-11,62r-39,0r12,-62r-33,0r0,-41r41,0r9,-45r-35,0r0,-40r42,0xm112,-148r-9,45r37,0r9,-45r-37,0"},"$":{"d":"24,-31r30,-55v17,16,42,31,65,31v15,0,34,-9,34,-27v0,-20,-28,-23,-57,-34v-28,-10,-56,-27,-56,-70v0,-43,29,-82,73,-85r0,-44r34,0r0,44v23,2,46,8,65,21r-26,52v-13,-10,-29,-18,-46,-18v-16,0,-31,6,-31,21v0,16,23,23,35,28v41,13,78,28,78,78v0,51,-28,77,-75,88r0,45r-34,0r0,-43v-35,-1,-67,-14,-89,-32"},"%":{"d":"81,-275v40,0,74,23,74,66v0,44,-33,67,-74,67v-41,0,-74,-23,-74,-67v0,-43,34,-66,74,-66xm81,-239v-17,0,-31,14,-31,31v0,16,14,30,31,30v17,0,31,-14,31,-30v0,-17,-14,-31,-31,-31xm270,-129v40,0,74,22,74,66v0,44,-33,67,-74,67v-41,0,-74,-23,-74,-67v0,-44,34,-66,74,-66xm270,-93v-17,0,-31,13,-31,30v0,17,14,31,31,31v17,0,31,-14,31,-31v0,-17,-14,-30,-31,-30xm237,-271r35,0r-158,271r-35,0","w":351},"&":{"d":"155,-67r-43,-46v-11,7,-25,17,-25,32v3,32,47,28,68,14xm141,-172v27,-8,39,-55,2,-59v-35,2,-21,45,-2,59xm217,0r-23,-25v-57,47,-178,47,-180,-46v-1,-43,29,-63,64,-78v-10,-17,-25,-28,-25,-55v0,-47,41,-75,85,-75v43,0,84,28,84,74v0,34,-22,51,-50,65r34,36v14,-12,26,-24,36,-38r40,38v-13,13,-24,28,-38,40r61,64r-88,0","w":305},"(":{"d":"70,-284r39,22v-56,96,-55,230,0,326r-39,22v-71,-106,-69,-265,0,-370","w":126},")":{"d":"18,-262r39,-22v70,105,71,264,0,370r-39,-22v55,-95,56,-230,0,-326","w":126},"*":{"d":"71,-271r32,0r-2,38r32,-20r16,27r-34,18r34,19r-16,27r-32,-21r2,37r-33,0r2,-36r-30,19r-16,-27r32,-18r-34,-18r17,-28r31,20","w":173},"+":{"d":"96,-120r0,-65r54,0r0,65r66,0r0,54r-66,0r0,66r-54,0r0,-66r-65,0r0,-54r65,0"},",":{"d":"55,-69r61,0r-66,120r-42,0","w":123},"-":{"d":"19,-143r103,0r0,54r-103,0r0,-54","w":141},".":{"d":"62,-77v23,0,42,19,42,42v0,23,-19,42,-42,42v-23,0,-42,-19,-42,-42v0,-23,19,-42,42,-42","w":123},"\/":{"d":"147,-299r52,0r-138,332r-51,0","w":208},"0":{"d":"123,-282v81,0,116,76,116,146v0,71,-35,147,-116,147v-81,0,-115,-76,-115,-147v0,-70,35,-146,115,-146xm123,-220v-36,0,-45,58,-45,84v0,26,9,85,45,85v37,0,45,-59,45,-85v0,-26,-8,-84,-45,-84"},"1":{"d":"97,-212r-39,0r0,-59r109,0r0,271r-70,0r0,-212"},"2":{"d":"141,-60r89,0r0,60r-218,0r111,-121v16,-17,31,-41,31,-66v0,-17,-13,-35,-31,-35v-23,0,-34,20,-29,44r-77,0v2,-62,41,-104,105,-104v57,0,105,37,105,96v2,61,-53,92,-86,126"},"3":{"d":"26,-193v6,-55,42,-89,101,-89v75,-10,119,93,58,134v29,8,45,41,45,69v0,92,-130,118,-187,59v-16,-16,-31,-44,-31,-68r72,0v0,21,16,38,38,38v22,0,38,-14,38,-36v0,-25,-25,-42,-50,-34r0,-47v23,2,38,-10,38,-30v0,-17,-12,-28,-27,-28v-18,0,-30,14,-29,32r-66,0"},"4":{"d":"203,-110r33,0r0,54r-33,0r0,56r-65,0r0,-56r-132,0r0,-45r105,-170r92,0r0,161xm138,-110r-1,-105r-64,105r65,0"},"5":{"d":"222,-85v3,93,-129,123,-202,71r10,-66v21,18,48,31,76,31v22,0,43,-16,43,-40v-3,-53,-71,-54,-111,-35r24,-147r141,0r0,59r-94,0r-5,31v69,-14,117,32,118,96"},"6":{"d":"122,11v-58,3,-115,-42,-114,-98v2,-78,67,-131,102,-184r80,0r-76,92v64,-29,128,25,125,87v0,67,-55,103,-117,103xm122,-45v25,0,43,-20,43,-45v0,-24,-18,-44,-43,-44v-25,0,-45,20,-45,44v0,25,20,45,45,45"},"7":{"d":"139,-212r-113,0r0,-59r222,0r-155,271r-78,0"},"8":{"d":"123,-233v-16,0,-29,13,-29,30v0,17,13,31,29,31v17,0,30,-14,30,-31v0,-17,-13,-30,-30,-30xm123,-114v-18,0,-32,15,-32,34v0,18,14,33,32,33v18,0,33,-15,33,-33v0,-19,-15,-34,-33,-34xm123,-282v47,0,93,25,93,77v0,29,-18,53,-43,62v33,11,54,36,54,72v0,56,-57,82,-104,82v-46,0,-103,-26,-103,-82v0,-36,21,-61,54,-72v-25,-9,-43,-33,-43,-62v0,-52,46,-77,92,-77"},"9":{"d":"125,-282v59,-4,116,42,114,98v-2,77,-67,132,-102,184r-80,0r77,-92v-65,29,-129,-24,-126,-88v0,-66,55,-102,117,-102xm125,-226v-25,0,-43,19,-43,44v0,25,18,45,43,45v25,0,45,-20,45,-45v0,-25,-20,-44,-45,-44"},":":{"d":"62,-77v23,0,42,19,42,42v0,23,-19,42,-42,42v-23,0,-42,-19,-42,-42v0,-23,19,-42,42,-42xm62,-198v23,0,42,18,42,42v0,23,-19,42,-42,42v-23,0,-42,-19,-42,-42v0,-24,19,-42,42,-42","w":123},";":{"d":"50,-69r61,0r-66,120r-42,0xm78,-198v24,0,43,18,43,42v0,23,-19,42,-43,42v-23,0,-42,-19,-42,-42v0,-24,19,-42,42,-42","w":123},"<":{"d":"36,-71r0,-43r176,-66r0,54r-99,34r99,33r0,54"},"=":{"d":"31,-163r185,0r0,54r-185,0r0,-54xm31,-76r185,0r0,54r-185,0r0,-54"},">":{"d":"212,-114r0,43r-176,66r0,-54r98,-34r-98,-33r0,-54"},"?":{"d":"104,-279v48,-1,94,38,94,85v0,41,-28,66,-65,78r0,25r-66,0r0,-70v27,7,61,-6,62,-33v0,-15,-12,-27,-27,-27v-16,0,-25,11,-25,27r-72,0v1,-55,48,-85,99,-85xm101,-77v24,0,42,19,42,42v0,23,-18,42,-42,42v-23,0,-42,-19,-42,-42v0,-23,19,-42,42,-42","w":214},"@":{"d":"136,-169v-38,-1,-50,72,-8,75v39,1,49,-75,8,-75xm264,-163v3,54,-35,111,-78,108v-10,0,-19,-9,-22,-21v-30,41,-106,15,-106,-46v0,-63,75,-118,117,-64r4,-19r34,0r-18,93v-2,9,-6,25,4,24v13,-1,34,-31,36,-62v3,-61,-42,-95,-97,-95v-60,0,-102,46,-102,109v-7,93,101,132,173,95r29,24v-25,13,-58,24,-97,24v-77,0,-139,-60,-139,-143v0,-81,61,-143,137,-143v65,-1,125,51,125,116","w":266},"A":{"d":"189,-47r-97,0r-19,47r-74,0r104,-271r77,0r102,271r-75,0xm170,-101r-29,-87r-29,87r58,0","w":281},"B":{"d":"94,-112r0,58v26,0,63,4,65,-29v-1,-35,-38,-28,-65,-29xm230,-76v-4,96,-115,74,-207,76r0,-271v82,3,184,-20,181,70v0,25,-7,44,-29,56v38,5,55,32,55,69xm94,-217r0,52v23,0,45,0,46,-26v-1,-27,-24,-26,-46,-26","w":243},"C":{"d":"9,-135v-2,-100,108,-178,208,-130r0,85v-37,-55,-134,-28,-134,45v0,73,95,98,134,45r0,85v-102,42,-210,-31,-208,-130","w":237},"D":{"d":"23,0r0,-271r100,0v76,0,138,59,138,135v0,77,-63,136,-138,136r-100,0xm94,-212r0,152v54,3,92,-17,94,-76v-1,-54,-37,-80,-94,-76","w":270},"E":{"d":"177,-212r-83,0r0,46r79,0r0,59r-79,0r0,47r83,0r0,60r-154,0r0,-271r154,0r0,59","w":198},"F":{"d":"179,-212r-85,0r0,46r77,0r0,59r-77,0r0,107r-71,0r0,-271r156,0r0,59","w":195},"G":{"d":"294,-152v7,87,-56,168,-140,161v-85,0,-145,-58,-145,-143v0,-88,60,-146,148,-146v55,0,99,25,122,76r-67,28v-10,-26,-30,-44,-59,-44v-93,2,-93,170,1,171v31,0,54,-16,57,-47r-57,0r0,-56r140,0","w":303},"H":{"d":"94,-167r101,0r0,-104r71,0r0,271r-71,0r0,-111r-101,0r0,111r-71,0r0,-271r71,0r0,104","w":289},"I":{"d":"94,-271r0,271r-71,0r0,-271r71,0","w":116},"J":{"d":"84,-271r70,0v-8,116,38,281,-90,278v-30,0,-53,-15,-69,-40r40,-43v8,11,19,23,29,23v21,0,20,-24,20,-40r0,-178","w":176},"K":{"d":"180,-271r87,0r-108,128r118,143r-92,0r-91,-118r0,118r-71,0r0,-271r71,0r0,112","w":272},"L":{"d":"94,-271r0,211r84,0r0,60r-155,0r0,-271r71,0","w":178},"M":{"d":"7,0r46,-271r69,0r55,145r59,-145r70,0r41,271r-71,0r-20,-156r-65,156r-28,0r-63,-156r-23,156r-70,0","w":353},"N":{"d":"23,0r0,-271r71,0r130,166r0,-166r70,0r0,271r-70,0r-130,-166r0,166r-71,0","w":317},"O":{"d":"159,-280v79,0,151,57,151,139v0,88,-63,150,-151,150v-87,0,-150,-62,-150,-150v0,-82,72,-139,150,-139xm159,-212v-42,0,-76,34,-76,72v0,46,34,81,76,81v43,0,77,-35,77,-81v0,-38,-34,-72,-77,-72","w":319},"P":{"d":"23,0r0,-271v99,0,210,-15,207,89v1,80,-55,97,-136,92r0,90r-71,0xm94,-215r0,68v31,0,62,4,62,-33v0,-38,-29,-35,-62,-35","w":237},"Q":{"d":"204,-114r20,19v33,-49,-7,-118,-64,-117v-42,0,-77,34,-77,72v0,52,46,94,98,77r-43,-43xm320,7r-64,10r-22,-26v-100,53,-233,-16,-225,-132v0,-82,72,-139,150,-139v85,0,151,57,151,145v0,36,-13,67,-35,95","w":319},"R":{"d":"163,-111r86,111r-88,0r-67,-104r0,104r-71,0r0,-271v94,0,201,-16,200,83v0,38,-21,70,-60,77xm94,-217r0,67v27,0,54,-2,55,-34v-1,-31,-28,-33,-55,-33","w":244},"S":{"d":"211,-91v8,99,-129,126,-200,67r30,-57v18,16,39,28,63,28v16,0,34,-8,34,-27v0,-20,-28,-27,-43,-31v-44,-12,-73,-24,-73,-77v-3,-92,110,-112,178,-68r-28,54v-19,-18,-70,-31,-77,5v3,23,30,25,49,31v38,12,67,31,67,75","w":221},"T":{"d":"131,-212r0,212r-71,0r0,-212r-58,0r0,-59r187,0r0,59r-58,0","w":191},"U":{"d":"188,-271r70,0r0,152v0,35,-1,70,-28,96v-48,41,-132,41,-180,0v-27,-26,-28,-61,-28,-96r0,-152r70,0r0,142v0,36,3,74,48,74v45,0,48,-38,48,-74r0,-142","w":280},"V":{"d":"71,-271r66,164r66,-164r76,0r-116,271r-54,0r-114,-271r76,0","w":273},"W":{"d":"68,-271r48,175r57,-175r56,0r54,175r51,-175r74,0r-87,271r-72,0r-48,-157r-54,157r-71,0r-81,-271r73,0","w":402},"X":{"d":"103,-145r-86,-126r86,0r42,70r41,-70r87,0r-87,126r101,145r-85,0r-57,-89r-63,89r-85,0","w":284},"Y":{"d":"93,-130r-100,-141r85,0r51,73r50,-73r85,0r-100,141r0,130r-71,0r0,-130","w":257},"Z":{"d":"123,-60r114,0r0,60r-233,0r128,-212r-106,0r0,-59r225,0","w":254},"[":{"d":"69,-246r0,294r38,0r0,38r-88,0r0,-370r88,0r0,38r-38,0","w":126},"\\":{"d":"10,-299r52,0r137,299r-51,0","w":208},"]":{"d":"57,48r0,-294r-38,0r0,-38r88,0r0,370r-88,0r0,-38r38,0","w":126},"^":{"d":"78,-122r-41,-25r65,-135r43,0r65,135r-41,25r-46,-97"},"_":{"d":"180,45r-180,0r0,-18r180,0r0,18","w":180},"a":{"d":"118,-134v-27,0,-42,19,-42,42v0,23,15,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42xm224,-185r0,185r-66,0v-1,-6,2,-16,-1,-21v-49,64,-149,4,-149,-72v0,-76,95,-132,150,-74r0,-18r66,0","w":245},"b":{"d":"19,0r0,-299r66,0r0,132v54,-57,150,-2,150,74v0,78,-98,134,-150,72r0,21r-66,0xm125,-134v-27,0,-42,19,-42,42v0,23,15,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42","w":245},"c":{"d":"155,-180r0,55v-28,-26,-81,-9,-79,32v-3,42,51,60,79,33r0,56v-68,32,-148,-15,-147,-86v-2,-75,79,-124,147,-90","w":173},"d":{"d":"161,0v-1,-6,2,-16,-1,-21v-49,64,-149,5,-149,-72v0,-77,95,-131,150,-74r0,-132r65,0r0,299r-65,0xm121,-134v-27,0,-43,19,-43,42v0,23,16,41,43,41v26,0,42,-18,42,-41v0,-23,-16,-42,-42,-42","w":245},"e":{"d":"75,-119r75,0v-5,-38,-70,-39,-75,0xm209,-57v-9,39,-48,63,-94,63v-61,0,-107,-34,-107,-98v0,-62,42,-99,102,-99v66,0,103,42,101,110r-138,0v-6,41,55,55,73,24r63,0","w":219},"f":{"d":"28,-185v-12,-77,41,-135,111,-111r0,57v-19,-13,-49,-9,-45,24r0,30r45,0r0,54r-45,0r0,131r-66,0r0,-131r-23,0r0,-54r23,0","w":139},"g":{"d":"86,22v2,11,18,18,31,18v38,0,43,-27,42,-62v-52,58,-150,11,-150,-69v0,-77,97,-136,150,-74r0,-20r65,0r0,167v0,78,-39,110,-107,110v-42,0,-99,-22,-105,-70r74,0xm119,-135v-27,0,-42,19,-42,41v0,24,15,42,42,42v26,0,42,-18,42,-42v0,-22,-16,-41,-42,-41","w":243},"h":{"d":"22,-299r65,0r1,138v36,-55,139,-30,128,48r0,113r-65,0r0,-95v0,-21,-3,-44,-30,-44v-56,6,-27,86,-34,139r-65,0r0,-299","w":237},"i":{"d":"87,-185r0,185r-65,0r0,-185r65,0xm54,-292v21,0,37,16,37,36v0,21,-16,37,-37,37v-20,0,-36,-16,-36,-37v0,-20,16,-36,36,-36","w":108},"j":{"d":"87,-185r0,277r-65,0r0,-277r65,0xm54,-292v21,0,37,16,37,36v0,21,-16,37,-37,37v-20,0,-36,-16,-36,-37v0,-20,16,-36,36,-36","w":108},"k":{"d":"87,-299r0,181r68,-67r90,0r-93,86r99,99r-92,0r-72,-75r0,75r-65,0r0,-299r65,0","w":247},"l":{"d":"87,-299r0,299r-65,0r0,-299r65,0","w":108},"m":{"d":"87,-185v1,7,-2,18,1,23v28,-42,98,-38,121,6v13,-23,38,-35,63,-35v90,-1,57,111,63,191r-66,0r0,-88v0,-19,1,-51,-27,-51v-30,0,-31,29,-31,51r0,88r-66,0r0,-88v0,-21,0,-52,-29,-52v-29,0,-29,31,-29,52r0,88r-65,0r0,-185r65,0","w":356},"n":{"d":"87,-185v1,7,-2,18,1,24v15,-22,33,-30,59,-30v93,-2,65,107,69,191r-65,0r0,-90v0,-18,3,-49,-30,-49v-56,4,-27,87,-34,139r-65,0r0,-185r65,0","w":237},"o":{"d":"119,-191v60,0,111,36,111,99v0,62,-51,98,-111,98v-59,0,-111,-35,-111,-98v0,-63,52,-99,111,-99xm119,-134v-26,0,-42,19,-42,42v0,23,16,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42","w":238},"p":{"d":"85,-185v1,6,-2,16,1,21v49,-63,149,-5,149,72v0,77,-95,132,-150,74r0,110r-66,0r0,-277r66,0xm125,-134v-27,0,-42,19,-42,42v0,23,15,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42","w":245},"q":{"d":"226,-185r0,277r-65,0r0,-110v-54,57,-150,4,-150,-74v0,-77,98,-134,150,-72r0,-21r65,0xm121,-134v-27,0,-43,19,-43,42v0,23,16,41,43,41v26,0,42,-18,42,-41v0,-23,-16,-42,-42,-42","w":245},"r":{"d":"87,-185v1,10,-2,23,1,31v14,-26,38,-35,72,-33r0,63v-38,-19,-73,6,-73,49r0,75r-65,0r0,-185r65,0","w":163},"s":{"d":"166,-179r-22,42v-16,-9,-48,-17,-56,3v0,13,20,15,29,17v31,6,54,20,54,54v-3,79,-107,83,-162,48r24,-46v13,10,36,19,52,19v8,0,20,-4,20,-14v0,-15,-20,-15,-41,-21v-20,-5,-41,-15,-41,-48v1,-69,87,-79,143,-54","w":184},"t":{"d":"93,-131r0,131r-65,0r0,-131r-22,0r0,-54r22,0r0,-55r65,0r0,55r37,0r0,54r-37,0","w":129},"u":{"d":"21,-185r65,0r0,99v0,23,6,40,33,40v58,-3,25,-88,33,-139r65,0r0,112v0,60,-43,79,-98,79v-56,0,-98,-19,-98,-79r0,-112","w":237},"v":{"d":"68,-185r44,95r44,-95r74,0r-97,185r-42,0r-96,-185r73,0","w":224},"w":{"d":"67,-185r46,100r47,-100r39,0r46,100r47,-100r72,0r-97,185r-42,0r-46,-101r-45,101r-43,0r-96,-185r72,0","w":358},"x":{"d":"87,-100r-75,-85r83,0r33,38r33,-38r85,0r-76,85r92,100r-86,0r-48,-55r-47,55r-86,0","w":256},"y":{"d":"84,-25r-89,-160r75,0r50,95r48,-95r74,0r-148,277r-73,0","w":235},"z":{"d":"112,-54r78,0r0,54r-187,0r87,-130r-76,0r0,-55r185,0","w":201},"{":{"d":"13,-82r0,-37v7,0,25,1,25,-19r0,-91v7,-55,30,-58,76,-55r0,43v-63,-8,10,136,-60,141v11,1,34,4,34,42r0,80v-3,13,7,24,26,21r0,43v-46,2,-68,1,-76,-54r0,-91v0,-25,-18,-23,-25,-23","w":126},"|":{"d":"131,-283r0,360r-54,0r0,-360r54,0","w":208},"}":{"d":"114,-119r0,37v-7,0,-25,-2,-25,23r0,91v-7,54,-30,57,-76,54r0,-43v47,5,18,-62,26,-101v0,-40,25,-39,34,-43v-11,-2,-34,-7,-34,-38r0,-81v3,-13,-7,-24,-26,-21r0,-43v46,-2,68,-1,76,55r0,91v0,20,18,19,25,19","w":126},"~":{"d":"81,-142v29,-1,58,37,85,38v10,0,19,-21,22,-30r41,35v-12,21,-33,56,-63,56v-32,0,-61,-36,-84,-38v-10,0,-19,18,-24,30r-40,-35v15,-18,33,-56,63,-56"},"'":{"d":"14,-271r62,0r-10,119r-42,0","w":90},"`":{"d":"27,-266r40,-29r51,62r-29,21","w":144},"\u00c1":{"d":"189,-47r-97,0r-19,47r-74,0r104,-271r77,0r102,271r-75,0xm170,-101r-29,-87r-29,87r58,0xm193,-342r-61,54r-29,-21r50,-62","w":281},"\u00c2":{"d":"189,-47r-97,0r-19,47r-74,0r104,-271r77,0r102,271r-75,0xm170,-101r-29,-87r-29,87r58,0xm62,-315r78,-59r80,59r-28,30r-52,-40r-52,40","w":281},"\u00c0":{"d":"189,-47r-97,0r-19,47r-74,0r104,-271r77,0r102,271r-75,0xm170,-101r-29,-87r-29,87r58,0xm88,-342r40,-29r51,62r-29,21","w":281},"\u00c9":{"d":"177,-212r-83,0r0,46r79,0r0,59r-79,0r0,47r83,0r0,60r-154,0r0,-271r154,0r0,59xm144,-342r-61,54r-29,-21r50,-62","w":198},"\u00ca":{"d":"177,-212r-83,0r0,46r79,0r0,59r-79,0r0,47r83,0r0,60r-154,0r0,-271r154,0r0,59xm20,-315r78,-59r80,59r-28,30r-52,-40r-52,40","w":198},"\u00c8":{"d":"177,-212r-83,0r0,46r79,0r0,59r-79,0r0,47r83,0r0,60r-154,0r0,-271r154,0r0,59xm54,-342r40,-29r50,62r-29,21","w":198},"\u00e1":{"d":"118,-134v-27,0,-42,19,-42,42v0,23,15,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42xm224,-185r0,185r-66,0v-1,-6,2,-16,-1,-21v-49,64,-149,4,-149,-72v0,-76,95,-132,150,-74r0,-18r66,0xm175,-266r-61,54r-29,-21r50,-62","w":245},"\u00e2":{"d":"118,-134v-27,0,-42,19,-42,42v0,23,15,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42xm224,-185r0,185r-66,0v-1,-6,2,-16,-1,-21v-49,64,-149,4,-149,-72v0,-76,95,-132,150,-74r0,-18r66,0xm44,-239r78,-59r80,59r-28,30r-52,-40r-52,40","w":245},"\u00e0":{"d":"118,-134v-27,0,-42,19,-42,42v0,23,15,41,42,41v27,0,42,-18,42,-41v0,-23,-15,-42,-42,-42xm224,-185r0,185r-66,0v-1,-6,2,-16,-1,-21v-49,64,-149,4,-149,-72v0,-76,95,-132,150,-74r0,-18r66,0xm77,-266r40,-29r51,62r-29,21","w":245},"\u00e9":{"d":"75,-119r75,0v-5,-38,-70,-39,-75,0xm209,-57v-9,39,-48,63,-94,63v-61,0,-107,-34,-107,-98v0,-62,42,-99,102,-99v66,0,103,42,101,110r-138,0v-6,41,55,55,73,24r63,0xm164,-266r-61,54r-30,-21r51,-62","w":219},"\u00ea":{"d":"75,-119r75,0v-5,-38,-70,-39,-75,0xm209,-57v-9,39,-48,63,-94,63v-61,0,-107,-34,-107,-98v0,-62,42,-99,102,-99v66,0,103,42,101,110r-138,0v-6,41,55,55,73,24r63,0xm31,-239r78,-59r80,59r-28,30r-52,-40r-52,40","w":219},"\u00e8":{"d":"75,-119r75,0v-5,-38,-70,-39,-75,0xm209,-57v-9,39,-48,63,-94,63v-61,0,-107,-34,-107,-98v0,-62,42,-99,102,-99v66,0,103,42,101,110r-138,0v-6,41,55,55,73,24r63,0xm55,-266r40,-29r51,62r-29,21","w":219},"\u00a0":{"w":123}}});;
/* MENU */
function happyMenu()
{
	$("#menu-798 ul,#menu-803 ul,#menu-805 ul").addClass("subMenu");
	$(" #menu-798 ul ").addClass("subMenu1");
	$(" #menu-803 ul ").addClass("subMenu2");
	$(" #menu-805 ul ").addClass("subMenu3");
	
	if ($("#menu").length != 0){
		$(".subMenu a.active").parents("ul:first").css("visibility", "visible");
		$(".subMenu a.active").parents("ul:first").prev().addClass("active");
		$("#menu-803, #menu-798, #menu-805,#menu-796,#menu-1327,#menu-804").mouseover(function(){
				$(this).parents("ul:first").children("li").children("a").removeClass("active");
				$(this).parents("ul:first").children("li").children("ul").css("visibility", "hidden");
				$(this).children("a").addClass("active");
				$(this).children("ul").css("visibility", "visible");
		});
	}	
}


/* Carrousel home page  */
function myCarrouselHome(){	
	
	// Ajout de la class Ajax sur les liens dont on a pas la main.
	$(".view-id-actualites .pager a").addClass('ajax');
	$('#footer .menu a:first').addClass('ajax');
	$('#footer .menu a').slice(1,2).addClass('ajax');
	$('#footer .menu a:last').addClass('ajax');
	$(".sitemap-box sitemap-menu a").addClass('ajax');
	
	
	
	$("#env-mycarousel").css("display","block");
	//$("#mycarousel li:gt(2)").css({opacity:0.1});
	
	var taille = $("#mycarousel li").length;
	
	$("#mycarousel").jCarouselLite({
		 btnNext: ".next",
		 btnPrev: ".prev",
		 circular:true,
		 scroll:1,
		 auto:2500,
		 speed:500,
		 beforeStart:function(a){
			//a.filter(":eq(2)").next().animate({opacity:1}, 2000);		
			//a.filter(":first").animate({opacity:0.1}, 800);
		 },
		 afterEnd:function(a){}
	});
}

function homeActualites(){
	$("#block-views-actualites_home-block_1").append("<div id='diapoBlock'><div id='previewBlock'><div id='info'></div></div><div id='descBlock'></div></div>");
	var previewBlock = $("#previewBlock");
	var descBlock = $("#descBlock");
	var infoBlock = $("#info");
	
	$(".imgDiapo").each(function(index){
			previewBlock.append($(this));
			if (index > 0){
				$(this).css("display","none");
			}
			else
				$(this).addClass("showing");
	});
	$(".descriptif .chapo, .descriptif .voir").hide();
	$(".descriptif").each(function(index){
			descBlock.append($(this));
	});
	$("#block-views-actualites_home-block_1 .content").append($("#diapoBlock"));
	$(".descriptif").each(function(index){
		$(this).mouseover(function(){
			$(".showingDesc").css("background-position", "top right").removeClass("showingDesc");
			$(this).css("background-position", "bottom right").addClass("showingDesc");
			$("#previewBlock .showing").hide().removeClass("showing");
			$($("#previewBlock").children().get(index + 1)).show().addClass("showing");
			$("#previewBlock #info").html($(this).find(".title").html() + $(this).find(".chapo").html() );
		})
	});
	$(".descriptif:first").css("background-position", "bottom right");
	$(".descriptif:first").addClass("showingDesc");
	$("#previewBlock #info").html($(".descriptif:first").find(".title").html() + $(".descriptif:first").find(".chapo").html() );
	$("#block-views-actualites_home-block_1 .content").show();
}


function myCarrouselVideos(){
	
	$("#caroussel-videos").css("display","block");
	var taille = $("#categories_videos .item-list li").length;
		$("#categories_videos .item-list").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		circular:false,
		scroll:1,
		visible:4,
		speed:300
	});
}

/* enfoireteque */
function fixSize(){
	$("#categories_videos li").height(150);
}

function showHideAccordion(){
	if (jQuery(".enfoiretheque").length != 0)
	{	
		jQuery(".content_fold:lt(1)").show();
		jQuery(".accordion:first").children("span:first").toggleClass("open");
		//alert(2);
		jQuery(".accordion").click(function() 
		{
		
			jQuery(this).parents("div:first").next().next().slideToggle();
			jQuery(this).children("span:first").toggleClass("open");
		
			return false; 
		});
	}
	fixSize();
}

/**/
function showHide_actualites(){
	jQuery(document).ready(function(){ 
	if (jQuery(".view-id-actualites").find(".more a").length!==0) {
		jQuery(".hidden-content").hide();
		jQuery(".content-actu .more a").toggle( function(){
			jQuery(this).parent().parent().next().show();
			return false;
		},
		function(){
		   jQuery(this).parent().parent().next().hide();
		});
	};
	if (jQuery(".view-id-actualites").find(".main-content object").length !==0){
		jQuery(".view-id-actualites .main-content object").wrap("<div class='wrap-object'></div>");
	};	
});
}

/*page livre d'or*/
function livredOr(){
	$("a.link_post_message").click( function(){
		$("#ajout-message").toggle();
		return false;
	});
}
;/*
 * jQuery Form Plugin
 * version: 2.33 (22-SEP-2009)
 * @requires jQuery v1.2.6 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
;(function($) {

/*
	Usage Note:
	-----------
	Do not use both ajaxSubmit and ajaxForm on the same form.  These
	functions are intended to be exclusive.  Use ajaxSubmit if you want
	to bind your own submit handler to the form.  For example,

	$(document).ready(function() {
		$('#myForm').bind('submit', function() {
			$(this).ajaxSubmit({
				target: '#output'
			});
			return false; // <-- important!
		});
	});

	Use ajaxForm when you want the plugin to manage all the event binding
	for you.  For example,

	$(document).ready(function() {
		$('#myForm').ajaxForm({
			target: '#output'
		});
	});

	When using ajaxForm, the ajaxSubmit function will be invoked for you
	at the appropriate time.
*/

/**
 * ajaxSubmit() provides a mechanism for immediately submitting
 * an HTML form using AJAX.
 */
$.fn.ajaxSubmit = function(options) {
	// fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
	if (!this.length) {
		log('ajaxSubmit: skipping submit process - no element selected');
		return this;
	}

	if (typeof options == 'function')
		options = { success: options };

	var url = $.trim(this.attr('action'));
	if (url) {
		// clean url (don't include hash vaue)
		url = (url.match(/^([^#]+)/)||[])[1];
   	}
   	url = url || window.location.href || '';

	options = $.extend({
		url:  url,
		type: this.attr('method') || 'GET'
	}, options || {});

	// hook for manipulating the form data before it is extracted;
	// convenient for use with rich editors like tinyMCE or FCKEditor
	var veto = {};
	this.trigger('form-pre-serialize', [this, options, veto]);
	if (veto.veto) {
		log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
		return this;
	}

	// provide opportunity to alter form data before it is serialized
	if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
		log('ajaxSubmit: submit aborted via beforeSerialize callback');
		return this;
	}

	var a = this.formToArray(options.semantic);
	if (options.data) {
		options.extraData = options.data;
		for (var n in options.data) {
		  if(options.data[n] instanceof Array) {
			for (var k in options.data[n])
			  a.push( { name: n, value: options.data[n][k] } );
		  }
		  else
			 a.push( { name: n, value: options.data[n] } );
		}
	}

	// give pre-submit callback an opportunity to abort the submit
	if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
		log('ajaxSubmit: submit aborted via beforeSubmit callback');
		return this;
	}

	// fire vetoable 'validate' event
	this.trigger('form-submit-validate', [a, this, options, veto]);
	if (veto.veto) {
		log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
		return this;
	}

	var q = $.param(a);

	if (options.type.toUpperCase() == 'GET') {
		options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
		options.data = null;  // data is null for 'get'
	}
	else
		options.data = q; // data is the query string for 'post'

	var $form = this, callbacks = [];
	if (options.resetForm) callbacks.push(function() { $form.resetForm(); });
	if (options.clearForm) callbacks.push(function() { $form.clearForm(); });

	// perform a load on the target only if dataType is not provided
	if (!options.dataType && options.target) {
		var oldSuccess = options.success || function(){};
		callbacks.push(function(data) {
			$(options.target).html(data).each(oldSuccess, arguments);
		});
	}
	else if (options.success)
		callbacks.push(options.success);

	options.success = function(data, status) {
		for (var i=0, max=callbacks.length; i < max; i++)
			callbacks[i].apply(options, [data, status, $form]);
	};

	// are there files to upload?
	var files = $('input:file', this).fieldValue();
	var found = false;
	for (var j=0; j < files.length; j++)
		if (files[j])
			found = true;

	var multipart = false;
//	var mp = 'multipart/form-data';
//	multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);

	// options.iframe allows user to force iframe mode
   if (options.iframe || found || multipart) {
	   // hack to fix Safari hang (thanks to Tim Molendijk for this)
	   // see:  http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
	   if (options.closeKeepAlive)
		   $.get(options.closeKeepAlive, fileUpload);
	   else
		   fileUpload();
	   }
   else
	   $.ajax(options);

	// fire 'notify' event
	this.trigger('form-submit-notify', [this, options]);
	return this;


	// private function for handling file uploads (hat tip to YAHOO!)
	function fileUpload() {
		var form = $form[0];

		if ($(':input[name=submit]', form).length) {
			alert('Error: Form elements must not be named "submit".');
			return;
		}

		var opts = $.extend({}, $.ajaxSettings, options);
		var s = $.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts);

		var id = 'jqFormIO' + (new Date().getTime());
		var $io = $('<iframe id="' + id + '" name="' + id + '" src="about:blank" />');
		var io = $io[0];

		$io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });

		var xhr = { // mock object
			aborted: 0,
			responseText: null,
			responseXML: null,
			status: 0,
			statusText: 'n/a',
			getAllResponseHeaders: function() {},
			getResponseHeader: function() {},
			setRequestHeader: function() {},
			abort: function() {
				this.aborted = 1;
				$io.attr('src','about:blank'); // abort op in progress
			}
		};

		var g = opts.global;
		// trigger ajax global events so that activity/block indicators work like normal
		if (g && ! $.active++) $.event.trigger("ajaxStart");
		if (g) $.event.trigger("ajaxSend", [xhr, opts]);

		if (s.beforeSend && s.beforeSend(xhr, s) === false) {
			s.global && $.active--;
			return;
		}
		if (xhr.aborted)
			return;

		var cbInvoked = 0;
		var timedOut = 0;

		// add submitting element to data if we know it
		var sub = form.clk;
		if (sub) {
			var n = sub.name;
			if (n && !sub.disabled) {
				options.extraData = options.extraData || {};
				options.extraData[n] = sub.value;
				if (sub.type == "image") {
					options.extraData[name+'.x'] = form.clk_x;
					options.extraData[name+'.y'] = form.clk_y;
				}
			}
		}

		// take a breath so that pending repaints get some cpu time before the upload starts
		setTimeout(function() {
			// make sure form attrs are set
			var t = $form.attr('target'), a = $form.attr('action');

			// update form attrs in IE friendly way
			form.setAttribute('target',id);
			if (form.getAttribute('method') != 'POST')
				form.setAttribute('method', 'POST');
			if (form.getAttribute('action') != opts.url)
				form.setAttribute('action', opts.url);

			// ie borks in some cases when setting encoding
			if (! options.skipEncodingOverride) {
				$form.attr({
					encoding: 'multipart/form-data',
					enctype:  'multipart/form-data'
				});
			}

			// support timout
			if (opts.timeout)
				setTimeout(function() { timedOut = true; cb(); }, opts.timeout);

			// add "extra" data to form if provided in options
			var extraInputs = [];
			try {
				if (options.extraData)
					for (var n in options.extraData)
						extraInputs.push(
							$('<input type="hidden" name="'+n+'" value="'+options.extraData[n]+'" />')
								.appendTo(form)[0]);

				// add iframe to doc and submit the form
				$io.appendTo('body');
				io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false);
				form.submit();
			}
			finally {
				// reset attrs and remove "extra" input elements
				form.setAttribute('action',a);
				t ? form.setAttribute('target', t) : $form.removeAttr('target');
				$(extraInputs).remove();
			}
		}, 10);

		var domCheckCount = 50;

		function cb() {
			if (cbInvoked++) return;

			io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);

			var ok = true;
			try {
				if (timedOut) throw 'timeout';
				// extract the server response from the iframe
				var data, doc;

				doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;
				
				var isXml = opts.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
				log('isXml='+isXml);
				if (!isXml && (doc.body == null || doc.body.innerHTML == '')) {
				 	if (--domCheckCount) {
						// in some browsers (Opera) the iframe DOM is not always traversable when
						// the onload callback fires, so we loop a bit to accommodate
						cbInvoked = 0;
						setTimeout(cb, 100);
						return;
					}
					log('Could not access iframe DOM after 50 tries.');
					return;
				}

				xhr.responseText = doc.body ? doc.body.innerHTML : null;
				xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
				xhr.getResponseHeader = function(header){
					var headers = {'content-type': opts.dataType};
					return headers[header];
				};

				if (opts.dataType == 'json' || opts.dataType == 'script') {
					// see if user embedded response in textarea
					var ta = doc.getElementsByTagName('textarea')[0];
					if (ta)
						xhr.responseText = ta.value;
					else {
						// account for browsers injecting pre around json response
						var pre = doc.getElementsByTagName('pre')[0];
						if (pre)
							xhr.responseText = pre.innerHTML;
					}			  
				}
				else if (opts.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
					xhr.responseXML = toXml(xhr.responseText);
				}
				data = $.httpData(xhr, opts.dataType);
			}
			catch(e){
				ok = false;
				$.handleError(opts, xhr, 'error', e);
			}

			// ordering of these callbacks/triggers is odd, but that's how $.ajax does it
			if (ok) {
				opts.success(data, 'success');
				if (g) $.event.trigger("ajaxSuccess", [xhr, opts]);
			}
			if (g) $.event.trigger("ajaxComplete", [xhr, opts]);
			if (g && ! --$.active) $.event.trigger("ajaxStop");
			if (opts.complete) opts.complete(xhr, ok ? 'success' : 'error');

			// clean up
			setTimeout(function() {
				$io.remove();
				xhr.responseXML = null;
			}, 100);
		};

		function toXml(s, doc) {
			if (window.ActiveXObject) {
				doc = new ActiveXObject('Microsoft.XMLDOM');
				doc.async = 'false';
				doc.loadXML(s);
			}
			else
				doc = (new DOMParser()).parseFromString(s, 'text/xml');
			return (doc && doc.documentElement && doc.documentElement.tagName != 'parsererror') ? doc : null;
		};
	};
};

/**
 * ajaxForm() provides a mechanism for fully automating form submission.
 *
 * The advantages of using this method instead of ajaxSubmit() are:
 *
 * 1: This method will include coordinates for <input type="image" /> elements (if the element
 *	is used to submit the form).
 * 2. This method will include the submit element's name/value data (for the element that was
 *	used to submit the form).
 * 3. This method binds the submit() method to the form for you.
 *
 * The options argument for ajaxForm works exactly as it does for ajaxSubmit.  ajaxForm merely
 * passes the options argument along after properly binding events for submit elements and
 * the form itself.
 */
$.fn.ajaxForm = function(options) {
	return this.ajaxFormUnbind().bind('submit.form-plugin', function() {
		$(this).ajaxSubmit(options);
		return false;
	}).bind('click.form-plugin', function(e) {
		var $el = $(e.target);
		if (!($el.is(":submit,input:image"))) {
			return;
		}
		var form = this;
		form.clk = e.target;
		if (e.target.type == 'image') {
			if (e.offsetX != undefined) {
				form.clk_x = e.offsetX;
				form.clk_y = e.offsetY;
			} else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
				var offset = $el.offset();
				form.clk_x = e.pageX - offset.left;
				form.clk_y = e.pageY - offset.top;
			} else {
				form.clk_x = e.pageX - e.target.offsetLeft;
				form.clk_y = e.pageY - e.target.offsetTop;
			}
		}
		// clear form vars
		setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 10);
	});
};

// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
$.fn.ajaxFormUnbind = function() {
	return this.unbind('submit.form-plugin click.form-plugin');
};

/**
 * formToArray() gathers form element data into an array of objects that can
 * be passed to any of the following ajax functions: $.get, $.post, or load.
 * Each object in the array has both a 'name' and 'value' property.  An example of
 * an array for a simple login form might be:
 *
 * [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
 *
 * It is this array that is passed to pre-submit callback functions provided to the
 * ajaxSubmit() and ajaxForm() methods.
 */
$.fn.formToArray = function(semantic) {
	var a = [];
	if (this.length == 0) return a;

	var form = this[0];
	var els = semantic ? form.getElementsByTagName('*') : form.elements;
	if (!els) return a;
	for(var i=0, max=els.length; i < max; i++) {
		var el = els[i];
		var n = el.name;
		if (!n) continue;

		if (semantic && form.clk && el.type == "image") {
			// handle image inputs on the fly when semantic == true
			if(!el.disabled && form.clk == el) {
				a.push({name: n, value: $(el).val()});
				a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
			}
			continue;
		}

		var v = $.fieldValue(el, true);
		if (v && v.constructor == Array) {
			for(var j=0, jmax=v.length; j < jmax; j++)
				a.push({name: n, value: v[j]});
		}
		else if (v !== null && typeof v != 'undefined')
			a.push({name: n, value: v});
	}

	if (!semantic && form.clk) {
		// input type=='image' are not found in elements array! handle it here
		var $input = $(form.clk), input = $input[0], n = input.name;
		if (n && !input.disabled && input.type == 'image') {
			a.push({name: n, value: $input.val()});
			a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
		}
	}
	return a;
};

/**
 * Serializes form data into a 'submittable' string. This method will return a string
 * in the format: name1=value1&amp;name2=value2
 */
$.fn.formSerialize = function(semantic) {
	//hand off to jQuery.param for proper encoding
	return $.param(this.formToArray(semantic));
};

/**
 * Serializes all field elements in the jQuery object into a query string.
 * This method will return a string in the format: name1=value1&amp;name2=value2
 */
$.fn.fieldSerialize = function(successful) {
	var a = [];
	this.each(function() {
		var n = this.name;
		if (!n) return;
		var v = $.fieldValue(this, successful);
		if (v && v.constructor == Array) {
			for (var i=0,max=v.length; i < max; i++)
				a.push({name: n, value: v[i]});
		}
		else if (v !== null && typeof v != 'undefined')
			a.push({name: this.name, value: v});
	});
	//hand off to jQuery.param for proper encoding
	return $.param(a);
};

/**
 * Returns the value(s) of the element in the matched set.  For example, consider the following form:
 *
 *  <form><fieldset>
 *	  <input name="A" type="text" />
 *	  <input name="A" type="text" />
 *	  <input name="B" type="checkbox" value="B1" />
 *	  <input name="B" type="checkbox" value="B2"/>
 *	  <input name="C" type="radio" value="C1" />
 *	  <input name="C" type="radio" value="C2" />
 *  </fieldset></form>
 *
 *  var v = $(':text').fieldValue();
 *  // if no values are entered into the text inputs
 *  v == ['','']
 *  // if values entered into the text inputs are 'foo' and 'bar'
 *  v == ['foo','bar']
 *
 *  var v = $(':checkbox').fieldValue();
 *  // if neither checkbox is checked
 *  v === undefined
 *  // if both checkboxes are checked
 *  v == ['B1', 'B2']
 *
 *  var v = $(':radio').fieldValue();
 *  // if neither radio is checked
 *  v === undefined
 *  // if first radio is checked
 *  v == ['C1']
 *
 * The successful argument controls whether or not the field element must be 'successful'
 * (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
 * The default value of the successful argument is true.  If this value is false the value(s)
 * for each element is returned.
 *
 * Note: This method *always* returns an array.  If no valid value can be determined the
 *	   array will be empty, otherwise it will contain one or more values.
 */
$.fn.fieldValue = function(successful) {
	for (var val=[], i=0, max=this.length; i < max; i++) {
		var el = this[i];
		var v = $.fieldValue(el, successful);
		if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length))
			continue;
		v.constructor == Array ? $.merge(val, v) : val.push(v);
	}
	return val;
};

/**
 * Returns the value of the field element.
 */
$.fieldValue = function(el, successful) {
	var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
	if (typeof successful == 'undefined') successful = true;

	if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
		(t == 'checkbox' || t == 'radio') && !el.checked ||
		(t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
		tag == 'select' && el.selectedIndex == -1))
			return null;

	if (tag == 'select') {
		var index = el.selectedIndex;
		if (index < 0) return null;
		var a = [], ops = el.options;
		var one = (t == 'select-one');
		var max = (one ? index+1 : ops.length);
		for(var i=(one ? index : 0); i < max; i++) {
			var op = ops[i];
			if (op.selected) {
				var v = op.value;
				if (!v) // extra pain for IE...
					v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value;
				if (one) return v;
				a.push(v);
			}
		}
		return a;
	}
	return el.value;
};

/**
 * Clears the form data.  Takes the following actions on the form's input fields:
 *  - input text fields will have their 'value' property set to the empty string
 *  - select elements will have their 'selectedIndex' property set to -1
 *  - checkbox and radio inputs will have their 'checked' property set to false
 *  - inputs of type submit, button, reset, and hidden will *not* be effected
 *  - button elements will *not* be effected
 */
$.fn.clearForm = function() {
	return this.each(function() {
		$('input,select,textarea', this).clearFields();
	});
};

/**
 * Clears the selected form elements.
 */
$.fn.clearFields = $.fn.clearInputs = function() {
	return this.each(function() {
		var t = this.type, tag = this.tagName.toLowerCase();
		if (t == 'text' || t == 'password' || tag == 'textarea')
			this.value = '';
		else if (t == 'checkbox' || t == 'radio')
			this.checked = false;
		else if (tag == 'select')
			this.selectedIndex = -1;
	});
};

/**
 * Resets the form data.  Causes all form elements to be reset to their original value.
 */
$.fn.resetForm = function() {
	return this.each(function() {
		// guard against an input with the name of 'reset'
		// note that IE reports the reset function as an 'object'
		if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType))
			this.reset();
	});
};

/**
 * Enables or disables any matching elements.
 */
$.fn.enable = function(b) {
	if (b == undefined) b = true;
	return this.each(function() {
		this.disabled = !b;
	});
};

/**
 * Checks/unchecks any matching checkboxes or radio buttons and
 * selects/deselects and matching option elements.
 */
$.fn.selected = function(select) {
	if (select == undefined) select = true;
	return this.each(function() {
		var t = this.type;
		if (t == 'checkbox' || t == 'radio')
			this.checked = select;
		else if (this.tagName.toLowerCase() == 'option') {
			var $sel = $(this).parent('select');
			if (select && $sel[0] && $sel[0].type == 'select-one') {
				// deselect all other options
				$sel.find('option').selected(false);
			}
			this.selected = select;
		}
	});
};

// helper fn for console logging
// set $.fn.ajaxSubmit.debug to true to enable debug logging
function log() {
	if ($.fn.ajaxSubmit.debug && window.console && window.console.log)
		window.console.log('[jquery.form] ' + Array.prototype.join.call(arguments,''));
};

})(jQuery);
;/*urlroot = "http://"+document.domain+"/";
urlentiere = document.location.href;
minchar = parseInt(urlroot.length);
minchar2 = minchar+3;
totalchar = parseInt(urlentiere.length);

poshash = urlentiere.indexOf('#');
if(urlentiere.indexOf('#') == -1){
	poshash = totalchar;
}
urlavanthash = urlentiere.substring(0,poshash);
if(urlavanthash != urlroot+"fr/accueil"){
if(urlavanthash != urlroot+"es/portada"){
if(urlavanthash != urlroot+"uk/home"){

if(urlentiere.indexOf('#') == -1 && urlroot != urlentiere){
	pasbon = urlentiere.substring(minchar,totalchar);
	urllangue = pasbon.substring(0,3);
	mylangue = "fr/";
	if(urllangue == "uk/"){mylangue = urllangue+"home";}
	if(urllangue == "fr/"){mylangue = urllangue+"accueil";}
	if(urllangue == "es/"){mylangue = urllangue+"portada";}

	window.location = urlroot+mylangue+"#/"+pasbon;
	}
}}}*/





function message_faq(){
	jQuery(".faq-"+CURRENT_LANGUE).css('display','block');
}


/* AutoCompletion
*************************************/

URLBASE = "http://"+document.domain+"/";
var lien_enfoiretheque = "enfoiretheque";



var monChamp;
function autocompletion(){

CURRENT_LANGUE = jQuery('#getlang').attr('class');
if(CURRENT_LANGUE == "undefined"){lien_enfoiretheque = "enfoiretheque";}
if(CURRENT_LANGUE == "uk"){lien_enfoiretheque = "enfoirepedia";}
if(CURRENT_LANGUE == "es"){lien_enfoiretheque = "enfoireteca";}
var maxlength = 1;
var maxres = 5;
var nb_res = 0;
var message;

message_faq();



monChamp = jQuery("#formRecherche").val();

jQuery("#formRecherche").focus(function(){
	if(jQuery(this).val(monChamp)){
		jQuery(this).val('');
	}
});

jQuery("#formRecherche").keyup(function(event){
    if(event.keyCode != 38 && event.keyCode != 40 && event.keyCode != 37 && event.keyCode != 39 && event.keyCode != 13){
    
    if(jQuery("#test-ac").css("display","none")){
    	jQuery("#test-ac").css("display","block");
    }
    
    valeur = jQuery(this).val();
    if(valeur.length >= maxlength){    
		  jQuery.ajax({
   				type: "GET",
   				url: URLBASE+"sites/all/themes/enfoires/method/search.php",
   				data: "q="+valeur+"&max="+maxres,
  				success: function(msg){
  					//alert("dsq");
  					tab_res = new Array();
  					message = msg;
					jQuery("#test-ac").html(msg);
					var liste_res = jQuery("#test-ac .result_ac");
					
					liste_res.each(function(){ 
						tab_res.push(jQuery(this));
					});
					tab_res[0].addClass("selected");
					nb_res = tab_res.length;
					rollover_search();
   				}
    	});
    }
    else{
    	jQuery("#test-ac").html('');
    }
    
    }

});

function rollover_search(){
	jQuery("#test-ac .result_ac").hover(function(){
		jQuery("#test-ac .selected").removeClass('selected');
		jQuery(this).addClass('selected');
		
		jQuery(this).click(function(){
			var type = jQuery("#test-ac .selected .type").val();
			var id = jQuery("#test-ac .selected .id_type").val();
			if(type == 'enfoire') type = type+'s';
			
			chemin = '&'+type+'=1&id='+id;
			jQuery("#test-ac").html('');
			jQuery("#formRecherche").val('');
			document.location.hash = "/"+CURRENT_LANGUE+"/"+lien_enfoiretheque+chemin;
			callback("/"+CURRENT_LANGUE+"/"+lien_enfoiretheque+chemin);
		});
		
	});
}

jQuery("#formRecherche").keyup(function(event){

	switch(event.keyCode){
		case 38:
			current = jQuery("#test-ac .selected");
			if(!current.hasClass('firstelement')){
				current.removeClass('selected');
				current.prev('.result_ac').addClass('selected');
			}
		break;
		
		case 40:			
			current = jQuery("#test-ac .selected");
			if(!current.hasClass('lastelement')){
				current.removeClass('selected');
				current.next('.result_ac').addClass('selected');
			}
		break;
		case 13:
			
			var type = jQuery("#test-ac .selected .type").val();
			var id = jQuery("#test-ac .selected .id_type").val();
			if(type == 'enfoire') type = type+'s';
			chemin = '&'+type+'=1&id='+id;
			if(type == "spects"){
				chemin = "&"+type+"=1&page="+type+"&id="+id;
			}
			document.location.hash = "/"+CURRENT_LANGUE+"/"+lien_enfoiretheque+chemin;
			rload("/"+CURRENT_LANGUE+"/"+lien_enfoiretheque+chemin);
			jQuery("#test-ac").css("display","none");
			jQuery("#formRecherche").val('');
			jQuery("#test-ac").html('');
		break;
	}
});

jQuery("#formRecherche").focus(function(event){
	jQuery("#test-ac").fadeIn("fast");
});
jQuery("#formRecherche").blur(function(event){
	setTimeout('jQuery("#test-ac").fadeOut("fast")',250);
});


}

/* [END] AutoCompletion
*************************************/
function validate(email) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = email;
   if(reg.test(address) == false) {
      return false;
   }
   return true;
}


/* MENU */
function happyMenu()
{	

	jQuery(".webform-client-form").attr('action','http://enfoires.fr/sites/all/themes/enfoires/method/sendMail.php');
	/*var erreur = 0;
	var message = ""; 
	
	jQuery(".webform-client-form").submit(function(){
		if(jQuery("#edit-submitted-ecrire-a").val() == "")	{ message += "Veuillez choisir un destinataire \n"; }
		if(jQuery("#edit-submitted-nom").val() == "")	{ message += "Veuillez saisir un nom \n"; }
		if(jQuery("#edit-submitted-prenom").val() == "")	{ message += "Veuillez saisir un prenom \n"; }
		if(jQuery("#edit-submitted-email").val() == "")	{ message += "Veuillez saisir un email \n"; }
		if(validate(jQuery("#edit-submitted-email").val()) == true)	{ message += "Veuillez saisir un email valide"; }
		
		if(message != ""){
			alert(message);
			return false;
		}
	});*/
	
	// MENU SITEMAP AJAX
	jQuery('.sitemap-box a').addClass('ajax');

	// Lien dynamique sur la home...
	var menuactu = jQuery('.nice-menu li').slice(1,2);
	menuactu = jQuery("a",menuactu).attr('href');
	jQuery('.link_actu_home').attr('href',menuactu);
	
	var menuhistoire = jQuery('.nice-menu li').slice(2,3);
	menuhistoire = jQuery("a",menuhistoire).attr('href');
	jQuery('.link_histoire_home').attr('href',menuhistoire);
	
	var menuphoto = jQuery('.nice-menu li').slice(4,5);
	menuphoto = jQuery("a",menuphoto).attr('href');
	jQuery('.link_photo_home').attr('href',menuphoto);
	
	var menulivredor = jQuery('.nice-menu li:last');
	menulivredor = jQuery("a",menulivredor).attr('href');
	jQuery('.link_livredor_home').attr('href',menulivredor);
	
	

	jQuery("#menu-2254 ul,#menu-803 ul,#menu-805 ul").addClass("subMenu");
	jQuery(" #menu-2254 ul ").addClass("subMenu1");
	jQuery(" #menu-803 ul ").addClass("subMenu2");
	jQuery(" #menu-805 ul ").addClass("subMenu3");
	
	if (jQuery("#menu").length != 0){
		//jQuery(".subMenu a.active").parent("li:first").siblings().find("a").css("visibility","hidden");
		//jQuery(".subMenu a.active").parent("ul:first").find("a").css("visibility", "visible");
		//jQuery(".subMenu a.active").parent("ul:first").css("visibility", "visible");
		jQuery(".subMenu a.active").parents("ul:first").css("visibility", "visible");
		jQuery(".subMenu a.active").parents("ul:first").prev().addClass("active");
		
		jQuery("#menu-803, #menu-2254, #menu-805,#menu-796,#menu-2244,#menu-804").mouseover(function(){
				jQuery(this).parents("ul:first").children("li").children("a").removeClass("active");
				jQuery(this).parents("ul:first").children("li").children("ul").css("visibility", "hidden");
				jQuery(this).children("a").addClass("active");
				jQuery(this).children("ul").css("visibility", "visible");
		});
	}
	
	// MENU ANGLAIS
	jQuery("#menu-2362 ul,#menu-2395 ul,#menu-2413 ul").addClass("subMenu");
	jQuery("#menu-2362 ul ").addClass("subMenu1");
	jQuery("#menu-2395 ul ").addClass("subMenu2");
	jQuery("#menu-2413 ul ").addClass("subMenu3");
	
	if (jQuery("#menu").length != 0){
		jQuery(".subMenu a.active").parents("ul:first").css("visibility", "visible");
		jQuery(".subMenu a.active").parents("ul:first").prev().addClass("active");
		
		jQuery("#menu-2362, #menu-2395, #menu-2413,#menu-2358,#menu-2386,#menu-2411").mouseover(function(){
				jQuery(this).parents("ul:first").children("li").children("a").removeClass("active");
				jQuery(this).parents("ul:first").children("li").children("ul").css("visibility", "hidden");
				jQuery(this).children("a").addClass("active");
				jQuery(this).children("ul").css("visibility", "visible");
		});
	}
	
	// MENU ESPANOL
	jQuery("#menu-2361 ul,#menu-2396 ul,#menu-2414 ul").addClass("subMenu");
	jQuery("#menu-2361 ul ").addClass("subMenu1");
	jQuery("#menu-2396 ul ").addClass("subMenu2");
	jQuery("#menu-2414 ul ").addClass("subMenu3");
	
	if (jQuery("#menu").length != 0){
		jQuery(".subMenu a.active").parents("ul:first").css("visibility", "visible");
		jQuery(".subMenu a.active").parents("ul:first").prev().addClass("active");
		
		jQuery("#menu-2361, #menu-2396, #menu-2414,#menu-2421,#menu-2336,#menu-2412").mouseover(function(){
				jQuery(this).parents("ul:first").children("li").children("a").removeClass("active");
				jQuery(this).parents("ul:first").children("li").children("ul").css("visibility", "hidden");
				jQuery(this).children("a").addClass("active");
				jQuery(this).children("ul").css("visibility", "visible");
		});
	}
	
	//
	$(".subMenu").each(function(){$(this).children(":last").addClass("last")});
}

jQuery(document).ready(function(){
	jQuery("#menu a").attr('rel','history');
	happyMenu();
	
	//$(".subMenu").each(function(){$(this).children(":last").addClass("last")});
});

/*Carrousel de la home */
jQuery(document).ready(function(){ 
	myCarrouselHome();
});


/*Carrousel de la page videos */
jQuery(document).ready(function(){ 
	myCarrouselVideos();
});


/*page actualités*/
jQuery(document).ready(function(){ 
	if (jQuery(".view-id-actualites").find(".more a").length!==0) {
		jQuery(".hidden-content").hide();
		jQuery(".content-actu .more a").toggle( function(){
			jQuery(this).parent().parent().next().show();
			return false;
		},
		function(){
		   jQuery(this).parent().parent().next().hide();
		});
	};
	if (jQuery(".view-id-actualites").find(".main-content object").length !==0){
		jQuery(".view-id-actualites .main-content object").wrap("<div class='wrap-object'></div>");
	};	
});


/*page livre d'or*/
jQuery(document).ready(function(){ 
	jQuery("a.link_post_message").click( function(){
		jQuery("#ajout-message").toggle();
		return false;
	});
  
});

/* actualites home*/ 
jQuery(document).ready(function(){ 	
	homeActualites();
});



/* Popoup  photo enfoire,   photo titre */
jQuery(document).ready(function(){ 	
	/**
		 / THIRD FUNCTION
		 * getPageSize() by quirksmode.com
		 *
		 * @return Array Return an array with page width, height and window width, height
		 */
		
		function ___getPageSize() 
		{
			var xScroll, yScroll;
			if (window.innerHeight && window.scrollMaxY) {	
				xScroll = window.innerWidth + window.scrollMaxX;
				yScroll = window.innerHeight + window.scrollMaxY;
			} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
				xScroll = document.body.scrollWidth;
				yScroll = document.body.scrollHeight;
			} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
				xScroll = document.body.offsetWidth;
				yScroll = document.body.offsetHeight;
			}
			var windowWidth, windowHeight;
			if (self.innerHeight) {	// all except Explorer
				if(document.documentElement.clientWidth){
					windowWidth = document.documentElement.clientWidth; 
				} else {
					windowWidth = self.innerWidth;
				}
				windowHeight = self.innerHeight;
			} 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;
			}	
			// for small pages with total height less then height of the viewport
			if(yScroll < windowHeight){
				pageHeight = windowHeight;
			} else { 
				pageHeight = yScroll;
			}
			// for small pages with total width less then width of the viewport
			if(xScroll < windowWidth){	
				pageWidth = xScroll;		
			} else {
				pageWidth = windowWidth;
			}
			arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
			return arrayPageSize;
		};
	
		/**
		 / THIRD FUNCTION
		 * getPageScroll() by quirksmode.com
		 *
		 * @return Array Return an array with x,y page scroll values.
		 */
		function ___getPageScroll() 
		{
			var xScroll, yScroll;
			if (self.pageYOffset) {
				yScroll = self.pageYOffset;
				xScroll = self.pageXOffset;
			} else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
				yScroll = document.documentElement.scrollTop;
				xScroll = document.documentElement.scrollLeft;
			} else if (document.body) {// all other Explorers
				yScroll = document.body.scrollTop;
				xScroll = document.body.scrollLeft;	
			}
			arrayPageScroll = new Array(xScroll,yScroll);
			return arrayPageScroll;
		};
	
	// Get page sizes
	var arrPageSizes = ___getPageSize();
	
	// Get page scroll
	var arrPageScroll = ___getPageScroll();
		
	$(".link-image").click(function(){
		
		// Style overlay and show it
		$('#overlay').css({
			width:arrPageSizes[0],
			height:arrPageSizes[1]
		}).fadeIn("slow");
		$('.wrap-picture-large').show();
		$(".close, #overlay").click(function(){
			//$(".wrap-picture-large").remove();
			$(".wrap-picture-large").hide();
			$("#overlay").fadeOut("slow");
		});
		return false;
		
		//$("#overlay").before("<div class='wrap-picture-large'><div class='layout'><img src='"+$(this).attr("href")+"' alt=''/><a class='close' href='#' title='cliquez ici pour fermer'>fermer</a></div></div>");
		
		// Calculate top and left offset for the jquery-lightbox div object and show it
		//console.log(arrPageScroll[1] + (arrPageSizes[3] / 10));
		/*$('.wrap-picture-large').css({
			//top:(arrPageScroll[1] + (arrPageSizes[3] / 10)) + "px",
			//left:(arrPageScroll[0]) + "px"
		
			//top: ((window.innerHeight - $('.wrap-picture-large').height()) / 2) + "px",
			//left: ((window.innerWidth - $('.wrap-picture-large').width()) / 2) + "px"
		}).show();*/
		//$(".picture-large").show();
		
	});
	
	
	
	/* Popup de enfoiretque CD/DVD*/	
	$(".popup").hide();
	$("a.voir").click(function(){
		$('#overlay').css({
			width:arrPageSizes[0],
			height:arrPageSizes[1]
		}).fadeIn("slow");
		$(".popup").hide();
		$(this).next().show();
		return false;
	});
	$("a.close, #overlay").click(function(){
		$(".popup").hide();
		$("#overlay").fadeOut("slow");
		return false;
	});
	
});
;jQuery(document).ready(function() {

ajaxLivredor();
});

function ajaxLivredor(){	
	jQuery(".pagination_livredor a").click(function(){
		var page = jQuery(this).attr('title');
		refresh_list(page);
		checkLinks();
		return false;
	});
	
// Ajout message livre dor

var options = { 
	target:        '#message-error',   // target element(s) to be updated with server response 
	beforeSubmit:  showRequest,  // pre-submit callback 
	success:       showResponse  // post-submit callback 
 }
 	
    jQuery('#livredor_form').ajaxForm(options); 	
	


}


function showRequest(formData, jqForm, options) { 
    var queryString = jQuery.param(formData); 
    return true; 
} 


function showResponse(responseText, statusText)  {
	//alert(responseText);
	
	jQuery("#message-error").fadeIn('slow');
	//jQuery("#ajout-message input").val('');
	
	//jQuery("#message-error").slideDown('slow');
	refresh_list(1);
	//alert(statusText);
} 


function refresh_list(page){
	jQuery("#list_messages").css("opacity","0.5");
	jQuery.get(URLBASE+'sites/all/themes/enfoires/method/pagination_livredor.php',{page_comment:page}, function(data){
		jQuery("#list_messages").html(data);
		jQuery("#list_messages").css("opacity","1");
	});
		
	jQuery.get(URLBASE+'sites/all/themes/enfoires/method/pager_livredor.php',{page_comment:page}, function(data){
		jQuery(".pager-top").html(data);
		jQuery(".pager-bottom").html(data);
		ajaxLivredor();
	});	
};function ajaxNewsletter(){
jQuery('#subscribeForm form').attr('action', URLBASE+'pommo/user/process.php');
var options = { 
	target:        '#message_newsletter',   // target element(s) to be updated with server response 
	beforeSubmit:  showRequest,  // pre-submit callback 
	success:       showResponse  // post-submit callback 
 }

	jQuery('#subscribeForm form').ajaxForm(options); 
}

function showRequest(formData, jqForm, options) { 
    var queryString = jQuery.param(formData);
    $('#message_newsletter').html("<img src='"+URLBASE+"sites/all/themes/enfoires/images/ajax-loader-bleu2.gif' />");
    return true; 
} 


function showResponse(responseText, statusText)  {
	jQuery("#message_newsletter").css('display','none');
	jQuery("#message_newsletter").fadeIn('slow');
} 
;/*
 * jQuery history plugin
 * 
 * sample page: http://www.mikage.to/jquery/jquery_history.html
 *
 * Copyright (c) 2006-2009 Taku Sano (Mikage Sawatari)
 * Licensed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Modified by Lincoln Cooper to add Safari support and only call the callback once during initialization
 * for msie when no initial hash supplied.
 */


jQuery.extend({
	historyCurrentHash: undefined,
	historyCallback: undefined,
	historyIframeSrc: undefined,
	
	historyInit: function(callback, src){
		jQuery.historyCallback = callback;
		if (src) jQuery.historyIframeSrc = src;
		var current_hash = location.hash.replace(/\?.*$/, '');
		
		jQuery.historyCurrentHash = current_hash;
		// if ((jQuery.browser.msie) && (jQuery.browser.version < 8)) {
		if (jQuery.browser.msie) {
			// To stop the callback firing twice during initilization if no hash present
			if (jQuery.historyCurrentHash == '') {
			jQuery.historyCurrentHash = '#';
		}
		
			// add hidden iframe for IE
			jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"'+
				(jQuery.historyIframeSrc ? ' src="'+jQuery.historyIframeSrc+'"' : '')
				+'></iframe>'
			);
			var ihistory = jQuery("#jQuery_history")[0];
			var iframe = ihistory.contentWindow.document;
			iframe.open();
			iframe.close();
			iframe.location.hash = current_hash;
		}
		else if (jQuery.browser.safari) {
			// etablish back/forward stacks
			jQuery.historyBackStack = [];
			jQuery.historyBackStack.length = history.length;
			jQuery.historyForwardStack = [];
			jQuery.lastHistoryLength = history.length;
			
			jQuery.isFirst = true;
		}
		if(current_hash)
			jQuery.historyCallback(current_hash.replace(/^#/, ''));
		setInterval(jQuery.historyCheck, 100);
	},
	
	historyAddHistory: function(hash) {
		// This makes the looping function do something
		jQuery.historyBackStack.push(hash);
		
		jQuery.historyForwardStack.length = 0; // clear forwardStack (true click occured)
		this.isFirst = true;
	},
	
	historyCheck: function(){
		// if ((jQuery.browser.msie) && (jQuery.browser.version < 8)) {
		if (jQuery.browser.msie) {
			// On IE, check for location.hash of iframe
			var ihistory = jQuery("#jQuery_history")[0];
			var iframe = ihistory.contentDocument || ihistory.contentWindow.document;
			var current_hash = iframe.location.hash.replace(/\?.*$/, '');
			if(current_hash != jQuery.historyCurrentHash) {
			
				location.hash = current_hash;
				jQuery.historyCurrentHash = current_hash;
				jQuery.historyCallback(current_hash.replace(/^#/, ''));
				
			}
		} else if (jQuery.browser.safari) {
			if(jQuery.lastHistoryLength == history.length && jQuery.historyBackStack.length > jQuery.lastHistoryLength) {
				jQuery.historyBackStack.shift();
			}
			if (!jQuery.dontCheck) {
				var historyDelta = history.length - jQuery.historyBackStack.length;
				jQuery.lastHistoryLength = history.length;
				
				if (historyDelta) { // back or forward button has been pushed
					jQuery.isFirst = false;
					if (historyDelta < 0) { // back button has been pushed
						// move items to forward stack
						for (var i = 0; i < Math.abs(historyDelta); i++) jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());
					} else { // forward button has been pushed
						// move items to back stack
						for (var i = 0; i < historyDelta; i++) jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());
					}
					var cachedHash = jQuery.historyBackStack[jQuery.historyBackStack.length - 1];
					if (cachedHash != undefined) {
						jQuery.historyCurrentHash = location.hash.replace(/\?.*$/, '');
						jQuery.historyCallback(cachedHash);
					}
				} else if (jQuery.historyBackStack[jQuery.historyBackStack.length - 1] == undefined && !jQuery.isFirst) {
					// back button has been pushed to beginning and URL already pointed to hash (e.g. a bookmark)
					// document.URL doesn't change in Safari
					if (location.hash) {
						var current_hash = location.hash;
						jQuery.historyCallback(location.hash.replace(/^#/, ''));
					} else {
						var current_hash = '';
						jQuery.historyCallback('');
					}
					jQuery.isFirst = true;
				}
			}
		} else {
			// otherwise, check for location.hash
			var current_hash = location.hash.replace(/\?.*$/, '');
			if(current_hash != jQuery.historyCurrentHash) {
				jQuery.historyCurrentHash = current_hash;
				jQuery.historyCallback(current_hash.replace(/^#/, ''));
			}
		}
	},
	historyLoad: function(hash){
		var newhash;
		hash = decodeURIComponent(hash.replace(/\?.*$/, ''));
		
		if (jQuery.browser.safari) {
			newhash = hash;
		}
		else {
			newhash = '#' + hash;
			location.hash = newhash;
		}
		jQuery.historyCurrentHash = newhash;
		
		// if ((jQuery.browser.msie) && (jQuery.browser.version < 8)) {
		if (jQuery.browser.msie) {
			var ihistory = jQuery("#jQuery_history")[0];
			var iframe = ihistory.contentWindow.document;
			iframe.open();
			iframe.close();
			iframe.location.hash = newhash;
			jQuery.lastHistoryLength = history.length;
			jQuery.historyCallback(hash);
		}
		else if (jQuery.browser.safari) {
			jQuery.dontCheck = true;
			// Manually keep track of the history values for Safari
			this.historyAddHistory(hash);
			
			// Wait a while before allowing checking so that Safari has time to update the "history" object
			// correctly (otherwise the check loop would detect a false change in hash).
			var fn = function() {jQuery.dontCheck = false;};
			window.setTimeout(fn, 200);
			jQuery.historyCallback(hash);
			// N.B. "location.hash=" must be the last line of code for Safari as execution stops afterwards.
			//      By explicitly using the "location.hash" command (instead of using a variable set to "location.hash") the
			//      URL in the browser and the "history" object are both updated correctly.
			location.hash = newhash;
		}
		else {
		  jQuery.historyCallback(hash);
		}
	}
});;// misen en prod : image load

var recentHash = "";
var IE6 = false;
var strChUserAgent = navigator.userAgent;
var intSplitStart = strChUserAgent.indexOf("(",0);
var intSplitEnd = strChUserAgent.indexOf(")",0);
var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);

if(strChMid.indexOf("MSIE 6") != -1) IE6 = true;
   
jQuery(document).ready(function() {

 ent = false;//console.log("Stop");
 ready = true;
 //var ureg = new RegExp("(http://www.enfoires.fr/)", "g");
 //var ugo = document.URL.replace(ureg,"");
 //if(ugo != "") window.location = "http://www.enfoires.fr/#/"+ugo;
//rload("http://www.enfoires.fr/#/"+ugo);
 
     setInterval(function() {
         var curl = window.location.hash;
         var surl = curl.toString();
         var srecentHash = recentHash.toString();
             if (surl.substr(-6, 6) == srecentHash.substr(-6, 6)) {
                return;
             }
             else{
                 srecentHash = surl;
                 //console.log("<"+srecentHash.substr(-6, 6)+"> != <"+surl.substr(-6, 6)+">");
                 var nreg = new RegExp("(#)", "g");
                 var mgo = srecentHash.replace(nreg,"");
                 //console.log("En cours URL");
                 //console.log("setinterval------<");
                 //if(srecentHash.substr(-6, 6) != "reteca")
                 rload(mgo);
                 // set new recentHash after reload
                 recentHash = surl;
            }
     }, 2700);

	checkLinks();
	ajaxNewsletter();
	autocompletion();
	launch_tooltip();
	ajaxLivredor();
        enableEnfoiretheque = true;
       
    var t=setTimeout("sendTextFromHtml2(Math.floor(Math.random()*40 ),'rand')",4000);
});

if ( window.addEventListener ) {
        var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
        window.addEventListener("keydown", function(e){
                kkeys.push( e.keyCode );
                if ( kkeys.toString().indexOf( konami ) >= 0 )
				{
                    //window.location = "http://konamicodesites.com";
                    enableEnfoiretheque = true;
				}
        }, true);
}

function faq(){
    // faq
    $('div.faq-dd-hide-answer').hide();
    $('div.faq-dt-hide-answer').click(function() {
      $(this).next('div.faq-dd-hide-answer').slideToggle();
      return false;
    });
    // hide/show q/a for a category
    $('div.faq-qa-hide').hide();
    $('div.faq-qa-header .faq-header').click(function() {
      $(this).parent().next('div.faq-qa-hide').slideToggle();
      return false;
    });
}

function checkLinks(){
    jQuery("#conteneur li > a").click(function(){
	
            if(!IE6 && !ent){

            ent = true;
            if(jQuery(this).attr("class") != "noajax"){
            if(jQuery(this).attr("class") != "noajax" | jQuery(this).attr("class") != "ajax"){
            if(jQuery(this).attr("href").substring(0,8) == "le-livre") return false;
            if( (jQuery(this).attr('rel') == "history" && jQuery("#node-81").text() != "") || jQuery("#node-81").text() == ""){
            if(jQuery("#admin-menu").text() == ""){
            var id_conteneur = jQuery(this).parents('div').attr('id');
            var id_conteneur_lang = jQuery(this).parents('div#block-locale-0').attr('id');
            var class_conteneur_faq = jQuery(this).parents('ol').attr('class');
            var class_conteneur_posts = jQuery(this).parents('ul').attr('class');
            var class_comments_video = jQuery(this).parents('div#list-add-comments').attr('id');
            if(jQuery(this).attr('id') != "rech"){
            if(jQuery(this).attr('id') != "post_message"){
            if(class_conteneur_posts != "last-posts"){
            if(class_conteneur_faq != "faq-ul-questions-top"){
            if(id_conteneur != "tabs-wrapper"){
            if(id_conteneur_lang != "block-locale-0"){
            if(!jQuery("#site").hasClass('site-admin')){
            if(class_comments_video!="list-add-comments"){

                var url = jQuery(this).attr("href");
                jQuery(this).attr("href", "#"+url);

                // avec #
                var nreg = new RegExp("(#)", "g");
                recentHash = jQuery(this).attr("href");
                var recentHash2 = recentHash.replace(nreg,"");
                //console.log("conteneur");
                rload(recentHash2);
                //return false; (change anchor)

		}}}}}}}}}}}}}
	});


        jQuery(".result_ac > a").click(function(){
            //alert('.result_ac');
                if(!IE6 && !ent){
                    //console.log("result");
                    ent = true;
                    rload(jQuery(this).attr("href"));
                    return false;
        }});

        jQuery(".ajax").click(function(){
     //alert('.ajax');
        if(!IE6 && !ent){
           //console.log("ajax");
            ent = true;
            var url = jQuery(this).attr("href");
            jQuery(this).attr("href", "#"+url);
            //  #
            var nreg = new RegExp("#", "g");
            recentHash = jQuery(this).attr("href");
            var recentHash2 = recentHash.replace(nreg,"");
            rload(recentHash2);

        }});
        
	jQuery(".enfoiretheque a").not(".link-image").click(function(){
				  
	   if(jQuery(this).attr('href') != '#' && jQuery(this).attr('class') != 'accordion'){
		   if(jQuery(this).attr('href') != 'http://enfoires.fr/#'){
			//console.log("enfoiretheque");
                        rload(jQuery(this).attr("href"));
			return false;
		   }
	   }
        });

	// disable
	jQuery("#ecoute a").click(function(){
		return false;
	});

	jQuery("#rech").click(function() {
        sendTextFromHtml0(Math.floor(Math.random()*40),'rand', true);
	});
}

// links ajax enfoiretheque
function ValidEnfoire(formulaire, chemin){
	if (formulaire.enfoires.value == "") { alert("Vous n'avez pas fait votre choix !"); }
	else {
            //console.log("ValidEnfoire");
		rload(chemin + "&enfoires=1&id=" + formulaire.enfoires.value);
	}
}

function ValidTitre(formulaire, chemin){
	if (formulaire.titres.value == "") { alert("Vous n'avez pas fait votre choix !"); }
	else {
            //console.log("ValidTitre");
		rload(chemin + "&titre=1&id=" + formulaire.titres.value);
		return false; 
	}
}

function ValidSpectacle(formulaire, chemin, page){
	if (formulaire.spectacles.value == "") { alert("Vous n'avez pas fait votre choix !"); }
	else {
            //console.log("ValidSpect");
		rload(chemin + "&spects=1&page=" + page + "&id=" + formulaire.spectacles.value);
		return false; 
	}
}
function ValidMusicien(formulaire, chemin, page){
	if (formulaire.musiciens.value == "") { alert("Vous n'avez pas fait votre choix !"); }
	else {
            //console.log("ValidMus");
		rload(chemin + "&musicien=1&id=" + formulaire.musiciens.value);
		return false;
	}
}

function validrech(id, chemin){
    //console.log("rech");
	rload(chemin + "&id=" + id);
	return false; 
}

function validgo(chemin){
    //console.log("validgo");
	rload(chemin);
	return false; 
}

// player flash callback
function sendTextFromHtml0(t,type,pause){
	var fm;
	if( navigator.appName.indexOf( "Microsoft" ) != -1 )
	{fm = window["playerflash"];}
	else{
            fm = document["playerflash"];
            if(fm = 'undefined') fm = document.getElementById("playerflash");
        }
	fm.sendTextFromHtml(t,type,pause);
}
function sendTextFromHtml2(t,type){
	var fm;
	if( navigator.appName.indexOf( "Microsoft" ) != -1 )
	{fm = window["playerflash"];}
	else{
            fm = document["playerflash"];
            // safari
            if(fm = 'undefined') fm = document.getElementById("playerflash");
        }
	fm.sendTextFromHtmlStart(t,type);
}

// empty and reload content
function checkContent(html,url)
{
    var browserload = setTimeout('jQuery("#load").remove();jQuery("#amask").remove();',500);
    jQuery("#col-principale").empty(); 
	//jQuery("#col-principale").css('opacity', '1');
	jQuery("#col-principale").css({ opacity: "1", filter : "alpha(opacity=100)" });
    jQuery("#col-principale").append(jQuery("#col-principale",html).html());
    
    // Reload de l'autocompletion
    jQuery("#enfoiretheque").empty();
    jQuery("#enfoiretheque").css({ opacity: "1", filter : "alpha(opacity=100)" });
	//jQuery("#enfoiretheque").css('opacity', '1');
    jQuery("#enfoiretheque").append(jQuery("#enfoiretheque",html).html());
    
    // Changement des title de pages
	var debut = html.indexOf("<title>", 0);
	var fin = html.indexOf("</title>", debut);
	var sousChaine = html.substring(debut+7,fin);
	sousChaine = sousChaine.replace("&#039;","");
    document.title = sousChaine;
    checkLinks();

}

// animate and ajax full call
function rload(page) {
    //console.log(">GO>"+page);

	jQuery('html, body').animate({scrollTop:0}, 800);
	jQuery("body").append("<center><div id='load' style='border:1px solid grey;z-index:99;background-color:#fff;padding:10px; position:absolute; top:310px; left:40%;'><h4 class='title' >Chargement...</h4><img width=12 src='/sites/all/themes/enfoires/images/Loader.gif'/></div></center>");
	jQuery("#load").css({ opacity: "0.8", filter : "alpha(opacity=80)" });
	
	jQuery.ajax({
			type: "GET",
			dataType: "html",
			url: page, 
			cache: false,
			success:function(html){
				checkContent(html,page);
                autocompletion();
				myCarrouselHome();
				homeActualites();
				showHide_actualites();
				livredOr();
				//niceUrl(html,page);
				happyMenu();
				myCarrouselVideos();
				fixSize();
				showHideAccordion();
				ajaxLivredor();
				ajaxNewsletter();
				launch_tooltip();
                faq();
                ent = false;//console.log("Stop");
			},
			error:function(XMLHttpRequest, textStatus, errorThrows){ }
		});
	return false; 	
}

// animate & ajax 4 post
function rloadpost(page) {
	//console.log("rloadpost");
	
	jQuery("body").css({ opacity: "0.8", filter : "alpha(opacity=80)" });
	jQuery("#conteneur").append("<center><div id='load' style='background-color:#fff; border:1px solid grey; padding:10px; position:absolute; top:310px; left:325px;'><h4 class='title' >Chargement...</h4><img width=12 src='sites/all/themes/enfoires/images/Loader.gif' /></div></center>");
	
	jQuery.ajax({
			type: "POST",
			dataType: "html",
			url: page, 
			cache: false,
			success:function(html){

                            checkContent(html);
                            autocompletion();
                            myCarrouselHome();
                            homeActualites();
                            showHide_actualites();
                            livredOr();
                            //niceUrl(html,page);
                            happyMenu();
                            myCarrouselVideos();
                            fixSize();
                            showHideAccordion();
                            ajaxLivredor();
                            ajaxNewsletter();
                            launch_tooltip();
			},
			error:function(XMLHttpRequest, textStatus, errorThrows){ }
		});
	 	return false; 
}

//// niceurl
//function niceUrl(html,page){
//	// Changement des title de pages
//	var debut = html.indexOf("<title>", 0);
//	var fin = html.indexOf("</title>", debut);
//	var sousChaine = html.substring(debut+7,fin);
//	//alert(sousChaine);
//	jQuery('title').html(sousChaine);
//
//	// Changement des onglet d'administration
//	var deb_adm = html.indexOf('<ul class="tabs primary">', 0);
//	var fin_adm = html.indexOf("</ul>", deb_adm);
//	var ss_chaine = html.substring(deb_adm+25,fin_adm);
//	//alert(ss_chaine);
//	if(ss_chaine.substring(0,3) == "<li"){
//		jQuery('#tabs-wrapper .tabs').html(ss_chaine);
//	}
//	else{
//		jQuery('#tabs-wrapper .tabs').html('');
//	}
//}
;/*var url = window.location.href;
var hash_present=url.lastIndexOf("#");
var nb_char = url.length;

// if not base url
if(hash_present < 0 && url != "http://www.enfoires.fr/"){
    // if not admin
    var domaine = url.substring(7,url.indexOf("/",7));
   
    // A virer en prod
    domaine += "/";
   
    if(url.indexOf("preprod/fr/admin", 0) < 0){
        var pos_racine = url.indexOf("preprod/", 0);
        var hash = url.substring(pos_racine+8);
        // redirect
       // document.location = "http://"+domaine+"#"+hash;
    }
}


var old_hash = "";
var cpt = 0;
function callback(hash){
	if(!hash){hash = "fr";}
	if(hash){
	
	
	var to_enfoiretheque = hash.indexOf("enfoiretheque&", 0);
	if(to_enfoiretheque> -1){
		cpt = 0;
		return false;
	}
	
	if(cpt>0){
		cpt = 0;
		return false;
	}
			
		jQuery('body').addClass('loadingAjax'); 
		jQuery('#menu').addClass('loadingAjax'); 
		jQuery("#load").css('opacity', '0.65');
		
		jQuery.ajax({
			type: "GET",
			dataType: "html",
			url: decodeURIComponent(hash), 
			cache: false,
			success:function(html){ 
				jQuery('#col-principale').empty();
				jQuery('#enfoiretheque').empty();
				jQuery('title').empty();
				jQuery("#col-principale").append(jQuery("#col-principale",html).html());
				jQuery("#enfoiretheque").append(jQuery("#enfoiretheque",html).html());
				jQuery("#menu a").attr('rel','history');
				jQuery('body').removeClass('loadingAjax'); 
				jQuery('#menu').removeClass('loadingAjax'); 
				jQuery("#load").remove();
				
				autocompletion();
				replace_href_menu();
				historyInit(hash);
				myCarrouselHome();
				homeActualites();
				showHide_actualites();
				livredOr();
				niceUrl(html,hash);
				happyMenu();
				myCarrouselVideos();
				fixSize();
				ajaxLivredor();
				ajaxNewsletter();
				launch_tooltip();
			},
			error:function(XMLHttpRequest, textStatus, errorThrows){ }
		});
		
		cpt+=1;	
	}
}


function replace_href_menu(){
	jQuery("#menu a").each(function(){
		lien = jQuery(this).attr('href');
	});
}

function historyInit(passage){
	jQuery.historyInit(callback);
	old_hash = document.location.hash;
    jQuery("a[@rel='history']").click(function(){
       	this.rel = this.rel.replace(/history/, '');
       	var hash = jQuery(this).attr('href'); 
        jQuery.historyLoad(hash);
        return false;
    });
}

function niceUrl(html,page){
	// Changement des title de pages
	var debut = html.indexOf("<title>", 0);
	var fin = html.indexOf("</title>", debut);
	var sousChaine = html.substring(debut+7,fin);
	//alert(sousChaine);
	jQuery('title').html(sousChaine);
	
	// Changement des onglet d'administration
	var deb_adm = html.indexOf('<ul class="tabs primary">', 0);
	var fin_adm = html.indexOf("</ul>", deb_adm);
	var ss_chaine = html.substring(deb_adm+25,fin_adm);
	//alert(ss_chaine);
	if(ss_chaine.substring(0,3) == "<li"){
		jQuery('#tabs-wrapper .tabs').html(ss_chaine);
	}
	else{
		jQuery('#tabs-wrapper .tabs').html('');
	}
}
*/

;this.screenshotPreview = function(){   
        /* CONFIG */
               
                xOffset = 10;
                yOffset = 30;
               
                // these 2 variable determine popup's distance from the cursor
                // you might want to adjust to get the right result
               
        /* END CONFIG */
        $("a.screenshot").hover(function(e){
                this.t = this.title;
                this.title = "";       
                var c = (this.t != "") ? "<br/>" + this.t : "";
                $("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");                                                                
                $("#screenshot")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px")
                        .fadeIn("fast");                                               
    },
        function(){
                this.title = this.t;   
                $("#screenshot").remove();
    }); 
        $("a.screenshot").mousemove(function(e){
                $("#screenshot")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px");
        });                    
};
this.imagePreview = function(){ 
        /* CONFIG */
               
                xOffset = 10;
                yOffset = 30;
               
                // these 2 variable determine popup's distance from the cursor
                // you might want to adjust to get the right result
               
        /* END CONFIG */
        $("a.preview").hover(function(e){
                this.t = this.title;
                this.title = "";       
                var c = (this.t != "") ? "<br/>" + this.t : "";
                $("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");                                                                
                $("#preview")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px")
                        .fadeIn("fast");                                               
    },
        function(){
                this.title = this.t;   
                $("#preview").remove();
    }); 
        $("a.preview").mousemove(function(e){
                $("#preview")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px");
        });                    
};
this.tooltip = function(){     
        /* CONFIG */           
                xOffset = 10;
                yOffset = 20;          
                // these 2 variable determine popup's distance from the cursor
                // you might want to adjust to get the right result            
        /* END CONFIG */               
        $("a.tooltip").hover(function(e){                                                                                        
                this.t = this.title;
                this.title = "";                                                                         
                $("body").append("<p id='tooltip'>"+ this.t +"</p>");
                $("#tooltip")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px")
                        .fadeIn("fast");               
    },
        function(){
                this.title = this.t;           
                $("#tooltip").remove();
    }); 
        $("a.tooltip").mousemove(function(e){
                $("#tooltip")
                        .css("top",(e.pageY - xOffset) + "px")
                        .css("left",(e.pageX + yOffset) + "px");
        });                    
};

function launch_tooltip(){
        tooltip();//active les tooltip simple
        imagePreview();//active les tooltip image preview
        screenshotPreview();//active les tooltip lien avec preview
};/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-07-22 01:45:56 +0200 (Son, 22 Jul 2007) $
 * $Rev: 2447 $
 *
 * Version 2.1.1
 */
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);;/**
 * Ajax Queue Plugin
 * 
 * Homepage: http://jquery.com/plugins/project/ajaxqueue
 * Documentation: http://docs.jquery.com/AjaxQueue
 */

/**

<script>
$(function(){
	jQuery.ajaxQueue({
		url: "test.php",
		success: function(html){ jQuery("ul").append(html); }
	});
	jQuery.ajaxQueue({
		url: "test.php",
		success: function(html){ jQuery("ul").append(html); }
	});
	jQuery.ajaxSync({
		url: "test.php",
		success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); }
	});
	jQuery.ajaxSync({
		url: "test.php",
		success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); }
	});
});
</script>
<ul style="position: absolute; top: 5px; right: 5px;"></ul>

 */
/*
 * Queued Ajax requests.
 * A new Ajax request won't be started until the previous queued 
 * request has finished.
 */

/*
 * Synced Ajax requests.
 * The Ajax request will happen as soon as you call this method, but
 * the callbacks (success/error/complete) won't fire until all previous
 * synced requests have been completed.
 */


(function($) {
	
	var ajax = $.ajax;
	
	var pendingRequests = {};
	
	var synced = [];
	var syncedData = [];
	
	$.ajax = function(settings) {
		// create settings for compatibility with ajaxSetup
		settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings));
		
		var port = settings.port;
		
		switch(settings.mode) {
		case "abort": 
			if ( pendingRequests[port] ) {
				pendingRequests[port].abort();
			}
			return pendingRequests[port] = ajax.apply(this, arguments);
		case "queue": 
			var _old = settings.complete;
			settings.complete = function(){
				if ( _old )
					_old.apply( this, arguments );
				jQuery([ajax]).dequeue("ajax" + port );;
			};
		
			jQuery([ ajax ]).queue("ajax" + port, function(){
				ajax( settings );
			});
			return;
		case "sync":
			var pos = synced.length;
	
			synced[ pos ] = {
				error: settings.error,
				success: settings.success,
				complete: settings.complete,
				done: false
			};
		
			syncedData[ pos ] = {
				error: [],
				success: [],
				complete: []
			};
		
			settings.error = function(){ syncedData[ pos ].error = arguments; };
			settings.success = function(){ syncedData[ pos ].success = arguments; };
			settings.complete = function(){
				syncedData[ pos ].complete = arguments;
				synced[ pos ].done = true;
		
				if ( pos == 0 || !synced[ pos-1 ] )
					for ( var i = pos; i < synced.length && synced[i].done; i++ ) {
						if ( synced[i].error ) synced[i].error.apply( jQuery, syncedData[i].error );
						if ( synced[i].success ) synced[i].success.apply( jQuery, syncedData[i].success );
						if ( synced[i].complete ) synced[i].complete.apply( jQuery, syncedData[i].complete );
		
						synced[i] = null;
						syncedData[i] = null;
					}
			};
		}
		return ajax.apply(this, arguments);
	};
	
})(jQuery);;/*
 * Thickbox 3 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

var tb_pathToImage = "images/loadingAnimation.gif";

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{}));