/*J_Tabs*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(B){c H=B.1O.1a,D=B.X.4b&&(4a(B.X.21)<1.9);B.b={21:"1.3M",48:{1g:4(K,J,N){c M=B.b[K].1x;2j(c L 4r N){M.1V[L]=M.1V[L]||[];M.1V[L].1I([J,N[L]])}},1L:4(J,L,K){c N=J.1V[L];5(!N){7}2j(c M=0;M<N.o;M++){5(J.e[N[M][0]]){N[M][1].1p(J.j,K)}}}},2M:4(L,K){c J=B.X.30&&B.X.21<4j;5(L.2M&&!J){7 L.2M(K)}5(L.3t){7!!(L.3t(K)&16)}5f(K=K.43){5(K==L){7 z}}7 i},1S:{},q:4(J){5(B.b.1S[J]){7 B.b.1S[J]}c K=B(\'<1Q 4S="b-4U">\').h(J).q({1G:"2C",42:"-3a",3T:"-3a",28:"2T"}).2k("3v");B.b.1S[J]=!!((!(/2B|1k/).u(K.q("5c"))||(/^[1-9]/).u(K.q("4u"))||(/^[1-9]/).u(K.q("4K"))||!(/3i/).u(K.q("4H"))||!(/4T|5e\\(0, 0, 0, 0\\)/).u(K.q("4Y"))));3o{B("3v").2D(0).4Z(K.2D(0))}3c(L){}7 B.b.1S[J]},4n:4(L,J){5(B(L).q("1j")=="1Z"){7 i}c M=(J&&J=="3T")?"49":"4f",K=i;5(L[M]>0){7 z}L[M]=1;K=(L[M]>0);L[M]=0;7 K},2Z:4(J,L,K){7(J>L)&&(J<(L+K))},4g:4(O,J,N,M,L,K){7 B.b.2Z(O,N,L)&&B.b.2Z(J,M,K)},4o:{4i:8,4l:20,4m:4h,50:17,51:46,52:40,4X:35,4s:13,54:27,5a:36,4I:45,4G:37,4L:4P,4O:4N,4M:4F,4E:4x,4w:4v,4t:4y,4z:34,4D:33,4C:4B,4A:39,4Q:16,4R:32,58:9,57:38}};5(D){c E=B.Y,C=B.1O.2z,I="56://55.59.5d/5b/53/2t",F=/^2w-/,G=/^3l:/;B.Y=4(K,J,L){c M=L!==1l;7(J=="4W"?(M?E.1L(2,K,J,"3l:"+L):(E.1p(2,1D)||"").12(G,"")):(F.u(J)?(M?K.4V(I,J.12(F,"2t:"),L):E.1L(2,K,J.12(F,"2t:"))):E.1p(2,1D)))};B.1O.2z=4(J){7(F.u(J)?2.19(4(){2.4c(I,J.12(F,""))}):C.1L(2,J))}}B.1O.1m({1a:4(){B("*",2).1g(2).19(4(){B(2).3g("1a")});7 H.1p(2,1D)},4q:4(){7 2.Y("1K","4e").q("3j","").1b("3b.b")},4d:4(){7 2.Y("1K","3e").q("3j","3i").U("3b.b",4(){7 i})},4k:4(){c J;5((B.X.1z&&(/(4p|3Q)/).u(2.q("1G")))||(/2C/).u(2.q("1G"))){J=2.1C().11(4(){7(/(3Q|2C|3J)/).u(B.1n(2,"1G",1))&&(/(2B|3P)/).u(B.1n(2,"1j",1)+B.1n(2,"1j-y",1)+B.1n(2,"1j-x",1))}).V(0)}t{J=2.1C().11(4(){7(/(2B|3P)/).u(B.1n(2,"1j",1)+B.1n(2,"1j-y",1)+B.1n(2,"1j-x",1))}).V(0)}7(/3J/).u(2.q("1G"))||!J.o?B(2N):J}});B.1m(B.47[":"],{l:4(K,L,J){7!!B.l(K,J[3])},4J:4(K,L,J){c N=K.5j.64();4 M(O){7!(B(O).2a(":1Z")||B(O).1C(":1Z").o)}7(K.63>=0&&(("a"==N&&K.v)||(/62|1v|65|3n/.u(N)&&"1Z"!=K.3h&&!K.d))&&M(K))}});4 A(N,J,O,M){4 L(Q){c P=B[N][J][Q]||[];7(1B P=="1u"?P.2A(/,?\\s+/):P)}c K=L("3N");5(M.o==1&&1B M[0]=="1u"){K=K.2p(L("41"))}7(B.1P(O,K)!=-1)}B.15=4(J,K){c L=J.2A(".")[0];J=J.2A(".")[1];B.1O[J]=4(P){c N=(1B P=="1u"),O=3y.1x.66.1L(1D,1);5(N&&P.69(0,1)=="2i"){7 2}5(N&&A(L,J,P,O)){c M=B.l(2[0],J);7(M?M[P].1p(M,O):1l)}7 2.19(4(){c Q=B.l(2,J);(!Q&&!N&&B.l(2,J,68 B[L][J](2,P)));(Q&&N&&B.67(Q[P])&&Q[P].1p(Q,O))})};B[L]=B[L]||{};B[L][J]=4(N,O){c M=2;2.2v=L;2.1d=J;2.2x=B[L][J].61||J;2.2u=L+"-"+J;2.e=B.1m({},B.15.1T,B[L][J].1T,B.3L&&B.3L.2D(N)[J],O);2.j=B(N).U("60."+J,4(Q,P,R){5(Q.1J==N){7 M.1w(P,R)}}).U("5U."+J,4(Q,P){5(Q.1J==N){7 M.2y(P)}}).U("1a",4(){7 M.1q()});2.2f()};B[L][J].1x=B.1m({},B.15.1x,K);B[L][J].41="44"};B.15.1x={2f:4(){},1q:4(){2.j.1M(2.1d).p(2.2u+"-d "+2.2v+"-r-d").2z("2w-d")},44:4(L,M){c K=L,J=2;5(1B L=="1u"){5(M===1l){7 2.2y(L)}K={};K[L]=M}B.19(K,4(N,O){J.1w(N,O)})},2y:4(J){7 2.e[J]},1w:4(J,K){2.e[J]=K;5(J=="d"){2.j[K?"h":"p"](2.2u+"-d "+2.2v+"-r-d").Y("2w-d",K)}},2U:4(){2.1w("d",i)},2S:4(){2.1w("d",z)},18:4(K,L,M){c J=(K==2.2x?K:2.2x+K);L=L||B.1i.5T({3h:J,1J:2.j[0]});7 2.j.3g(J,[L,M],2.e[K])}};B.15.1T={d:i};B.b.3B={5S:4(){c J=2;2.j.U("6b."+2.1d,4(K){7 J.3d(K)}).U("2e."+2.1d,4(K){5(J.2L){J.2L=i;7 i}});5(B.X.1z){2.31=2.j.Y("1K");2.j.Y("1K","3e")}2.5V=i},5W:4(){2.j.1b("."+2.1d);(B.X.1z&&2.j.Y("1K",2.31))},3d:4(L){(2.1c&&2.1N(L));2.26=L;c J=2,M=(L.5Z==1),K=(1B 2.e.2Q=="1u"?B(L.1J).1C().1g(L.1J).11(2.e.2Q).o:i);5(!M||K||!2.3D(L)){7 z}2.29=!2.e.2q;5(!2.29){2.5Y=3S(4(){J.29=z},2.e.2q)}5(2.2K(L)&&2.2H(L)){2.1c=(2.2I(L)!==i);5(!2.1c){L.2F();7 z}}2.2O=4(N){7 J.3z(N)};2.2P=4(N){7 J.1N(N)};B(2N).U("3q."+2.1d,2.2O).U("3u."+2.1d,2.2P);5(!B.X.30){L.2F()}7 z},3z:4(J){5(B.X.1z&&!J.3n){7 2.1N(J)}5(2.1c){2.2J(J);7 J.2F()}5(2.2K(J)&&2.2H(J)){2.1c=(2.2I(2.26,J)!==i);(2.1c?2.2J(J):2.1N(J))}7!2.1c},1N:4(J){B(2N).1b("3q."+2.1d,2.2O).1b("3u."+2.1d,2.2P);5(2.1c){2.1c=i;2.2L=z;2.3C(J)}7 i},2K:4(J){7(2G.5X(2G.3r(2.26.3s-J.3s),2G.3r(2.26.3p-J.3p))>=2.e.3x)},2H:4(J){7 2.29},2I:4(J){},2J:4(J){},3C:4(J){},3D:4(J){7 z}};B.b.3B.1T={2Q:m,3x:1,2q:0}})(2s);(4(A){A.15("b.6",{2f:4(){2.1H(z)},1q:4(){c B=2.e;2.j.1b(".6").p(B.24).1M("6");2.$6.19(4(){c C=A.l(2,"v.6");5(C){2.v=C}c D=A(2).1b(".6");A.19(["v","W","1h"],4(F,E){D.1M(E+".6")})});2.$n.1g(2.$k).19(4(){5(A.l(2,"1q.6")){A(2).1a()}t{A(2).p([B.23,B.w,B.1s,B.1o,B.1U,B.14].1A(" "))}});5(B.Z){2.1F(m,B.Z)}},1w:4(B,C){5((/^f/).u(B)){2.1v(C)}t{2.e[B]=C;2.1H()}},o:4(){7 2.$6.o},2o:4(B){7 B.3E&&B.3E.12(/\\s/g,"2i").12(/[^A-6a-6h-9\\-2i:\\.]/g,"")||2.e.3W+A.l(B)},25:4(B){7 B.12(/:/g,"\\\\:")},1F:4(){c B=2.Z||(2.Z="b-6-"+A.l(2.j[0]));7 A.Z.1p(m,[B].2p(A.6e(1D)))},1H:4(O){2.$n=A("1W:6i(a[v])",2.j.2a("1Q")?A("> 3f:2n",2.j):2.j);2.$6=2.$n.1X(4(){7 A("a",2)[0]});2.$k=A([]);c N=2,D=2.e;2.$n.2h(4(){A(2).h("b-r-2h")},4(){A(2).p("b-r-2h")});2.$6.2g(4(){A(2).2X().h("b-r-2g")}).1E(4(){A(2).2X().p("b-r-2g")});2.$6.19(4(Q,P){5(P.1f&&P.1f.12("#","")){N.$k=N.$k.1g(N.25(P.1f))}t{5(A(P).Y("v")!="#"){A.l(P,"v.6",P.v);A.l(P,"W.6",P.v);c S=N.2o(P);P.v="#"+S;c R=A("#"+S);5(!R.o){R=A(D.2m).Y("3K",S).h(D.1U).5g(N.$k[Q-1]||N.j);R.l("1q.6",z)}N.$k=N.$k.1g(R)}t{D.d.1I(Q+1)}}});5(O){5(2.j.2a("1Q")){2.j.h("b-6 b-15 b-15-3X b-2d-3m");A("> 3f:2n",2.j).h(D.24)}t{2.j.h(D.24)}2.$n.h(D.23);2.$k.h(D.1U);5(D.f===1l){5(3k.1f){2.$6.19(4(Q,P){5(P.1f==3k.1f){D.f=Q;7 i}})}t{5(D.Z){c I=6f(N.1F(),10);5(I&&N.$6[I]){D.f=I}}t{5(N.$n.11("."+D.w).o){D.f=N.$n.1e(N.$n.11("."+D.w)[0])}}}}D.f=D.f===m||D.f!==1l?D.f:0;D.d=A.6g(D.d.2p(A.1X(2.$n.11("."+D.1o),4(Q,P){7 N.$n.1e(Q)}))).3F();5(A.1P(D.f,D.d)!=-1){D.d.6d(A.1P(D.f,D.d),1)}2.$k.h(D.14);2.$n.p(D.w);5(D.f!==m){2.$k.V(D.f).p(D.14);c E=[D.w];5(D.1t){E.1I(D.1s)}2.$n.V(D.f).h(E.1A(" "));c B=4(){N.18("2R",m,N.b(N.$6[D.f],N.$k[D.f]))};5(A.l(2.$6[D.f],"W.6")){2.W(D.f,B)}t{B()}}A(6c).U("6j",4(){N.$6.1b(".6");N.$n=N.$6=N.$k=m})}t{D.f=2.$n.1e(2.$n.11("."+D.w)[0])}5(D.Z){2.1F(D.f,D.Z)}2j(c G=0,M;M=2.$n[G];G++){A(M)[A.1P(G,D.d)!=-1&&!A(M).1y(D.w)?"h":"p"](D.1o)}5(D.1h===i){2.$6.1M("1h.6")}c J,C;5(D.1r){5(D.1r.5Q==3y){J=D.1r[0];C=D.1r[1]}t{J=C=D.1r}}4 H(P,Q){P.q({28:""});5(A.X.1z&&Q.5t){P[0].5s.5r("11")}}c K=C?4(P,Q){Q.3U(C,C.3Z||"3Y",4(){Q.p(D.14);H(Q,C);N.18("2R",m,N.b(P,Q[0]))})}:4(P,Q){Q.p(D.14);N.18("2R",m,N.b(P,Q[0]))};c L=J?4(Q,P,R){P.3U(J,J.3Z||"3Y",4(){P.h(D.14);H(P,J);5(R){K(Q,R,P)}})}:4(Q,P,R){P.h(D.14);5(R){K(Q,R)}};4 F(R,T,P,S){c Q=[D.w];5(D.1t){Q.1I(D.1s)}T.p("b-r-1k").h(Q.1A(" ")).5u().p(Q.1A(" ")).h("b-r-1k");L(R,P,S)}2.$6.1b(".6").U(D.1i+".6",4(){c S=A(2).1C("1W:V(0)"),P=N.$k.11(":5v"),R=A(N.25(2.1f));5((S.1y("b-r-2l")&&!D.1t)||S.1y(D.1o)||A(2).1y(D.1R)||N.18("1v",m,N.b(2,R[0]))===i){2.1E();7 i}D.f=N.$6.1e(2);5(D.1t){5(S.1y("b-r-2l")){N.e.f=m;S.p([D.w,D.1s].1A(" ")).h("b-r-1k");N.$k.2r();L(2,P);2.1E();7 i}t{5(!P.o){N.$k.2r();c Q=2;N.W(N.$6.1e(2),4(){S.h([D.w,D.1s].1A(" ")).p("b-r-1k");K(Q,R)});2.1E();7 i}}}5(D.Z){N.1F(D.f,D.Z)}N.$k.2r();5(R.o){c Q=2;N.W(N.$6.1e(2),P.o?4(){F(Q,S,P,R)}:4(){S.h(D.w).p("b-r-1k");K(Q,R)})}t{5x"2s 5w 5q: 5p 5R 5i."}5(A.X.1z){2.1E()}7 i});5(D.1i!="2e"){2.$6.U("2e.6",4(){7 i})}},1g:4(E,D,C){5(C==1l){C=2.$6.o}c G=2.e;c I=A(G.3O.12(/#\\{v\\}/g,E).12(/#\\{1Y\\}/g,D));I.h(G.23).l("1q.6",z);c H=E.5h("#")==0?E.12("#",""):2.2o(A("a:2n-5k",I)[0]);c F=A("#"+H);5(!F.o){F=A(G.2m).Y("3K",H).h(G.14).l("1q.6",z)}F.h(G.1U);5(C>=2.$n.o){I.2k(2.j);F.2k(2.j[0].43)}t{I.3V(2.$n[C]);F.3V(2.$k[C])}G.d=A.1X(G.d,4(K,J){7 K>=C?++K:K});2.1H();5(2.$6.o==1){I.h(G.w);F.p(G.14);c B=A.l(2.$6[0],"W.6");5(B){2.W(C,B)}}2.18("1g",m,2.b(2.$6[C],2.$k[C]))},1a:4(B){c D=2.e,E=2.$n.V(B).1a(),C=2.$k.V(B).1a();5(E.1y(D.w)&&2.$6.o>1){2.1v(B+(B+1<2.$6.o?1:-1))}D.d=A.1X(A.3R(D.d,4(G,F){7 G!=B}),4(G,F){7 G>=B?--G:G});2.1H();2.18("1a",m,2.b(E.2W("a")[0],C[0]))},2U:4(B){c C=2.e;5(A.1P(B,C.d)==-1){7}c D=2.$n.V(B).p(C.1o);5(A.X.30){D.q("28","5l-2T");3S(4(){D.q("28","2T")},0)}C.d=A.3R(C.d,4(F,E){7 F!=B});2.18("2U",m,2.b(2.$6[B],2.$k[B]))},2S:4(C){c B=2,D=2.e;5(C!=D.f){2.$n.V(C).h(D.1o);D.d.1I(C);D.d.3F();2.18("2S",m,2.b(2.$6[C],2.$k[C]))}},1v:4(B){5(1B B=="1u"){B=2.$6.1e(2.$6.11("[v$="+B+"]")[0])}2.$6.V(B).5o(2.e.1i+".6")},W:4(G,K){c L=2,D=2.e,E=2.$6.V(G),J=E[0],H=K==1l||K===i,B=E.l("W.6");K=K||4(){};5(!B||!H&&A.l(J,"1h.6")){K();7}c M=4(N){c O=A(N),P=O.2W("*:5n");7 P.o&&P.2a(":5m(5y)")&&P||O};c C=4(){L.$6.11("."+D.1R).p(D.1R).19(4(){5(D.2c){M(2).2X().22(M(2).l("1Y.6"))}});L.2b=m};5(D.2c){c I=M(J).22();M(J).5z("<2Y></2Y>").2W("2Y").l("1Y.6",I).22(D.2c)}c F=A.1m({},D.2V,{3H:B,3A:4(P,N){A(L.25(J.1f)).22(P);C();5(D.1h){A.l(J,"1h.6",z)}L.18("W",m,L.b(L.$6[G],L.$k[G]));3o{D.2V.3A(P,N)}3c(O){}K()}});5(2.2b){2.2b.5L();C()}E.h(D.1R);L.2b=A.5K(F)},3H:4(C,B){2.$6.V(C).1M("1h.6").l("W.6",B)},b:4(C,B){7{e:2.e,5J:C,3G:B,1e:2.$6.1e(C)}}});A.1m(A.b.6,{21:"1.3M",3N:"o",1T:{2V:m,1h:i,Z:m,1t:i,1s:"b-6-1t",d:[],1o:"b-r-d",1i:"2e",1r:m,14:"b-6-5M",3W:"b-6-",1R:"b-6-5N",24:"b-6-5P b-3w-5O b-3w-5I b-15-5H b-2d-3m",23:"b-r-1k b-2d-42",1U:"b-6-3G b-15-3X b-2d-5C",2m:"<1Q></1Q>",w:"b-6-f b-r-2l",2c:"5B&#5A;",3O:\'<1W><a v="#{v}"><3I>#{1Y}</3I></a></1W>\'}});A.1m(A.b.6.1x,{2E:m,5D:4(C,F){F=F||i;c B=2,E=2.e.f;4 G(){B.2E=5E(4(){E=++E<B.$6.o?E:0;B.1v(E)},C)}4 D(H){5(!H||H.5G){5F(B.2E)}}5(C){G();5(!F){2.$6.U(2.e.1i+".6",D)}t{2.$6.U(2.e.1i+".6",4(){D();E=B.e.f;G()})}}t{D();2.$6.1b(2.e.1i+".6",D)}}})})(2s);',62,392,'||this||function|if|tabs|return||||ui|var|disabled|options|selected||addClass|false|element|panels|data|null|lis|length|removeClass|css|state||else|test|href|selectedClass|||true|||||||||||||||||||||bind|eq|load|browser|attr|cookie||filter|replace||hideClass|widget|||_trigger|each|remove|unbind|_mouseStarted|widgetName|index|hash|add|cache|event|overflow|default|undefined|extend|curCSS|disabledClass|apply|destroy|fx|deselectableClass|deselectable|string|select|_setData|prototype|hasClass|msie|join|typeof|parents|arguments|blur|_cookie|position|_tabify|push|target|unselectable|call|removeData|_mouseUp|fn|inArray|div|loadingClass|cssCache|defaults|panelClass|plugins|li|map|label|hidden||version|html|tabClass|navClass|_sanitizeSelector|_mouseDownEvent||display|mouseDelayMet|is|xhr|spinner|corner|click|_init|focus|hover|_|for|appendTo|active|panelTemplate|first|_tabId|concat|delay|stop|jQuery|aaa|widgetBaseClass|namespace|aria|widgetEventPrefix|_getData|removeAttr|split|auto|absolute|get|rotation|preventDefault|Math|_mouseDelayMet|_mouseStart|_mouseDrag|_mouseDistanceMet|_preventClickEvent|contains|document|_mouseMoveDelegate|_mouseUpDelegate|cancel|show|disable|block|enable|ajaxOptions|find|parent|em|isOverAxis|safari|_mouseUnselectable|||||||||5000px|selectstart|catch|_mouseDown|on|ul|triggerHandler|type|none|MozUserSelect|location|wairole|all|button|try|pageY|mousemove|abs|pageX|compareDocumentPosition|mouseup|body|helper|distance|Array|_mouseMove|success|mouse|_mouseStop|_mouseCapture|title|sort|panel|url|span|fixed|id|metadata|6rc4|getter|tabTemplate|scroll|relative|grep|setTimeout|left|animate|insertBefore|idPrefix|content|normal|duration||getterSetter|top|parentNode|option|||expr|plugin|scrollLeft|parseFloat|mozilla|removeAttributeNS|disableSelection|off|scrollTop|isOver|188|BACKSPACE|522|scrollParent|CAPS_LOCK|COMMA|hasScroll|keyCode|static|enableSelection|in|ENTER|NUMPAD_SUBTRACT|height|106|NUMPAD_MULTIPLY|108|109|PAGE_DOWN|RIGHT|190|PERIOD|PAGE_UP|NUMPAD_ENTER|111|LEFT|backgroundImage|INSERT|tabbable|width|NUMPAD_ADD|NUMPAD_DIVIDE|110|NUMPAD_DECIMAL|107|SHIFT|SPACE|class|transparent|gen|setAttributeNS|role|END|backgroundColor|removeChild|CONTROL|DELETE|DOWN|07|ESCAPE|www|http|UP|TAB|w3|HOME|2005|cursor|org|rgba|while|insertAfter|indexOf|identifier|nodeName|child|inline|not|last|trigger|Mismatching|Tabs|removeAttribute|style|opacity|siblings|visible|UI|throw|img|wrapInner|8230|Loading|bottom|rotate|setInterval|clearInterval|clientX|header|clearfix|tab|ajax|abort|hide|loading|reset|nav|constructor|fragment|_mouseInit|fix|getData|started|_mouseDestroy|max|_mouseDelayTimer|which|setData|eventPrefix|input|tabIndex|toLowerCase|textarea|slice|isFunction|new|substring|Za|mousedown|window|splice|makeArray|parseInt|unique|z0|has|unload'.split('|'),0,{}))

/*Superfish menu*/
;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl()},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path)}},o.delay)},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone())};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass)});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this))}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li)}).blur(function(){out.call($li)})});o.onInit.call(this)}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '))})};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)this.toggleClass(sf.c.shadowClass+'-off')};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul)});return this}})})(jQuery);
/*Superfish init*/
$(document).ready(function(){
  $("#mainmenu").superfish({
	delay: 0,
	speed: 1,
	autoArrows: true,
	dropShadows: false
  });
});

/*Fake select*/
  $(document).ready(function() {

	  var langs_toggle = $('#langs dt');
	  var langs_list = $('#langs .items');
	  langs_list.hide();
	  langs_toggle.click(
		function(){
		  langs_list.slideToggle();
		}
	  );
	/* color the download link*/
	$('#mainmenu > li a[href$="download.html"]').css('color','#be0000');
  });
/*Share It*/
$(document).ready(function(){
	$('.toggle').css({backgroundPosition:'left bottom'});
	$('.toggle').click(function(event){
	$(this).siblings('#icons').toggle('slow');
	if ($(this).css('backgroundPosition')=='left top') {
			 $(this).css({backgroundPosition:'left bottom'});
		 }
		 else {
			 $(this).css({backgroundPosition:'left top'});
		 }
		  event.preventDefault();
	});
  //open all external links in new window
  $("a[rel=external]").each(function(){
      $(this).attr('target', '_blank');
    }
  );
});


//j_email (defuscate)
jQuery.fn.defuscate=function(settings){settings=jQuery.extend({link:true,find:/\b([A-Z0-9._%-]+)\([^)]+\)((?:[A-Z0-9-]+\.)+[A-Z]{2,6})\b/gi,replace:'$1@$2'},settings);return this.each(function(){if($(this).is('a[@href]')){$(this).attr('href',$(this).attr('href').replace(settings.find,settings.replace));var is_link=true}$(this).html($(this).html().replace(settings.find,(settings.link&&!is_link?'<a href="mailto:'+settings.replace+'">'+settings.replace+'</a>':settings.replace)))})};
/* index */
//jqDnR
(function($){$.fn.jqDrag=function(h){return i(this,h,'d')};$.fn.jqResize=function(h){return i(this,h,'r')};$.jqDnR={dnr:{},e:0,drag:function(v){if(M.k=='d')E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY});else E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)});return false},stop:function(){E.css('opacity',M.o);$().unbind('mousemove',J.drag).unbind('mouseup',J.stop)}};var J=$.jqDnR,M=J.dnr,E=J.e,i=function(e,h,k){return e.each(function(){h=(h)?$(h,e):e;h.bind('mousedown',{e:e,k:k},function(v){var d=v.data,p={};E=d.e;if(E.css('position')!='relative'){try{E.position(p)}catch(e){}}M={X:p.left||f('left')||0,Y:p.top||f('top')||0,W:f('width')||E[0].scrollWidth||0,H:f('height')||E[0].scrollHeight||0,pX:v.pageX,pY:v.pageY,k:d.k,o:E.css('opacity')};E.css({opacity:1});$().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);return false})})},f=function(k){return parseInt(E.css(k))||false}})(jQuery);
//j_dimensions
(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr)};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0)}});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name]}});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent)}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0}})(jQuery);
/* preview */
//j_modal
(function($){$.fn.jqm=function(o){var _o={zIndex:3000,overlay:50,overlayClass:'jqmOverlay',closeClass:'jqmClose',trigger:'.jqModal',ajax:false,target:false,modal:false,toTop:false,onShow:false,onHide:false,onLoad:false};return this.each(function(){if(this._jqm)return;s++;this._jqm=s;H[s]={c:$.extend(_o,o),a:false,w:$(this).addClass('jqmID'+s),s:s};if(_o.trigger)$(this).jqmAddTrigger(_o.trigger)})};$.fn.jqmAddClose=function(e){hs(this,e,'jqmHide');return this};$.fn.jqmAddTrigger=function(e){hs(this,e,'jqmShow');return this};$.fn.jqmShow=function(t){return this.each(function(){if(!H[this._jqm].a)$.jqm.open(this._jqm,t)})};$.fn.jqmHide=function(t){return this.each(function(){if(H[this._jqm].a)$.jqm.close(this._jqm,t)})};$.jqm={hash:{},open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(/^\d+$/.test(h.w.css('z-index')))?h.w.css('z-index'):c.zIndex,o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});h.t=t;h.a=true;h.w.css('z-index',z);if(c.modal){if(!A[0])F('bind');A.push(s);o.css('cursor','wait')}else if(c.overlay>0)h.w.jqmAddClose(o);else o=false;h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):false;if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in{Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'")}}if(c.ajax){var r=c.target||h.w,u=c.ajax,r=(typeof r=='string')?$(r,h.w):$(r),u=(u.substr(0,1)=='@')?$(t).attr(u.substring(1)):u;r.load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h)})}else if(cc)h.w.jqmAddClose($(cc,h.w));if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);(c.onShow)?c.onShow(h):h.w.show();e(h);return false},close:function(s){var h=H[s];h.a=false;if(A[0]){A.pop();if(!A[0])F('unbind')}if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove()}return false}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version=="6.0"),i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),e=function(h){if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i);f(h)},f=function(h){try{$(':input:visible',h.w)[0].focus()}catch(e){}},F=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m)},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return!r},hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm)});$(e).each(function(){if(this[y])$.extend(this[y],s);else{this[y]=s;$(this).click(function(){for(var i in{jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return false})}})}})(jQuery);
//j_carousellite
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,externalControllerActiveClass:'active',mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null,intervalHolder:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$("ul:first",div),tLi=ul.children(),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);var ulSize=liSize*itemLength;var divSize=liSize*v;li.css({width:li.width(),height:li.height()});ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");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)})});$(o.btnGo[o.circular?o.start-1:o.start].toString()).addClass(o.externalControllerActiveClass)};if(o.mouseWheel&&div.mousewheel)div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)$.fn.jCarouselLite.startInterval=function(){intervalHolder=setInterval(function(){go(curr+o.scroll)},o.auto+o.speed)};$.fn.jCarouselLite.stopInterval=function(){clearInterval(intervalHolder)};$.fn.jCarouselLite.startInterval();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(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll}else curr=to}else{if(to<0||to>itemLength-v)return;else curr=to}running=true;if(o.btnGo){_global_current=curr>tLi.length?0:(o.circular?curr-1:curr);$.each(o.btnGo,function(i,val){if(i==_global_current){$(this.toString()).addClass(o.externalControllerActiveClass)}else{$(this.toString()).removeClass(o.externalControllerActiveClass)}})};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});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}})};$.fn.jCarouselLite.startInterval=function(){};$.fn.jCarouselLite.stopInterval=function(){};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);
//j_mousewheel
(function($){$.event.special.mousewheel={setup:function(){var handler=$.event.special.mousewheel.handler;if($.browser.mozilla)$(this).bind('mousemove.mousewheel',function(event){$.data(this,'mwcursorposdata',{pageX:event.pageX,pageY:event.pageY,clientX:event.clientX,clientY:event.clientY})});if(this.addEventListener)this.addEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else this.onmousewheel=handler},teardown:function(){var handler=$.event.special.mousewheel.handler;$(this).unbind('mousemove.mousewheel');if(this.removeEventListener)this.removeEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else this.onmousewheel=function(){};$.removeData(this,'mwcursorposdata')},handler:function(event){var args=Array.prototype.slice.call(arguments,1);event=$.event.fix(event||window.event);$.extend(event,$.data(this,'mwcursorposdata')||{});var delta=0,returnValue=true;if(event.wheelDelta)delta=event.wheelDelta/120;if(event.detail)delta=-event.detail/3;if($.browser.opera)delta=-event.wheelDelta;event.data=event.data||{};event.type="mousewheel";args.unshift(delta);args.unshift(event);return $.event.handle.apply(this,args)}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}})})(jQuery);

/*
 * jQuery UI 1.7.1
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.1",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/*
 * jQuery UI Accordion 1.7.1
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Accordion
 *
 * Depends:
 *	ui.core.js
 */
(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.1",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;
// fixing flicks - http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-so-excellent-flash-of-amazing-unstyled-content
    document.getElementsByTagName('html')[0].className = 'js';
//Trigger Defuscate
$(document).ready(function() {
    $('span.change').defuscate();
    //open all external links in new window
  $("a[href^=http]").each(
    function(){
            if(this.href.indexOf(location.hostname) == -1) {
        $(this).attr('target', '_blank');
      }
    });
  });
/*Add to Favorites*/
$(document).ready(function() {
  $('#favorite').click(function (event) {
	 if(document.all)
	  window.external.AddFavorite(location.href,document.title);
	else if(window.sidebar)window.sidebar.addPanel
	  (document.title,location.href,'');
	  event.preventDefault();
  });
});
//Begin Home Page Gallery
  $(document).ready(function(){
	$('#switcher').hide();
	$('#switcher').fadeIn('slow');
	//Switching visibility of elements
	$('#switcher').click(function(event){
		$('#visual').toggle();
		$('#switcher strong').toggle();
		if ($(this).hasClass('active')) {
			  $(this).removeClass('active');
		  }
		  else {
			  $(this).addClass('active');
		  }
		  if ($('#gallery').hasClass('inactive')) {
			  $('#gallery').removeClass('inactive');
			  $('#gallery').addClass('active');
		  }
		  else {
			  $('#gallery').removeClass('active');
			  $('#gallery').addClass('inactive');
		  }
	  });
	  //Gallery Carousel Initiation
	  $('#c_wrapper').jCarouselLite({
		  btnNext: ".right",
		  btnPrev: ".left",
		  visible: 4,
		  scroll: 1
	  });
	  //Payments Methods Carousel Initiation
	  $('#p_o_carousel').jCarouselLite({
		  visible: 1,
		  scroll: 1,
		  btnNext: "#p_o_prev",
		  btnPrev: "#p_o_next",
		  mouseWheel: true
	  });
	  //Interaction Inside a Gallery
	  $('#carousel li img').click(function(){
		  $(this).fadeOut();
		  $('.infobox').fadeIn();
	  });
	  $('.closeme').click(function(){
		  $(this).parent().fadeOut();
		  $(this).parent().siblings('img').fadeIn();
	  });
  });
  //End Home Page Gallery
