/*
Scroll window
*/
;(function($){var m=$.scrollTo=function(b,h,f){$(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};m.window=function(b){return $(window).scrollable()};$.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||$.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return $.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};$.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=$.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=$(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(d)){d=n(d);break}d=$(d,this);case'object':if(d.is||d.style)p=(d=$(d)).offset()}$.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);
/********/


/*
hoverIntent
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);



/*****/
/*	
 *	jQuery carouFredSel 3.2.1
 *	Demo's and documentation:
 *	caroufredsel.frebsite.nl
 *	
 *	Copyright (c) 2010 Fred Heusschen
 *	www.frebsite.nl
 *
 *	Dual licensed under the MIT and GPL licenses.
 *	http://en.wikipedia.org/wiki/MIT_License
 *	http://en.wikipedia.org/wiki/GNU_General_Public_License
 */


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}('(v($){$.1h.1i=v(o){9(I.U==0)y 14(\'3h 3i 2t.\');9(I.U>1){y I.1x(v(){$(I).1i(o)})}I.2u=v(o){9(q o!=\'1a\')o={};9(q o.S==\'C\'){9(o.S<=3j)o.S={u:o.S};A o.S={W:o.S}}A{9(q o.S==\'15\')o.S={X:o.S}}9(q o.u==\'C\')o.u={G:o.u};A 9(q o.u==\'15\')o.u={G:o.u,1K:o.u,1L:o.u};8=$.1M(K,{},$.1h.1i.2L,o);8.P=2M(8.P);8.11=(8.P[0]==0&&8.P[1]==0&&8.P[2]==0&&8.P[3]==0)?Q:K;1j=(8.1j==\'2N\'||8.1j==\'1k\')?\'E\':\'H\';9(8.1j==\'2O\'||8.1j==\'1k\'){8.w=[\'1K\',\'2P\',\'1L\',\'2Q\',\'1k\',\'22\',\'3k\',\'3l\']}A{8.w=[\'1L\',\'2Q\',\'1K\',\'2P\',\'22\',\'1k\',\'3m\',\'3n\'];8.P=[8.P[3],8.P[2],8.P[1],8.P[0]]}9(8[8.w[2]]==\'L\'){8[8.w[2]]=1l(8,J(j))[1];8.u[8.w[2]]=\'L\'}A{9(!8.u[8.w[2]]){8.u[8.w[2]]=J(j)[8.w[3]](K)}}9(!8.u[8.w[0]]){8.u[8.w[0]]=J(j)[8.w[1]](K)}9(8.u.G==\'3o\'){9(q 8[8.w[0]]==\'C\'){8.1y=8[8.w[0]];8[8.w[0]]=1N}A{8.1y=l.1O()[8.w[7]]()}9(q 8.u[8.w[0]]==\'C\'){8.u.G=2v.3p(8.1y/8.u[8.w[0]])}A{2w=K;8.u.G=0}}9(q 8.u.1P!=\'C\')8.u.1P=8.u.G;9(q 8.S.u!=\'C\')8.S.u=8.u.G;9(q 8.S.W!=\'C\')8.S.W=3q;8.L=1Q(8.L,Q,K);8.H=1Q(8.H);8.E=1Q(8.E);8.T=1Q(8.T,K);8.L=$.1M({},8.S,8.L);8.H=$.1M({},8.S,8.H);8.E=$.1M({},8.S,8.E);8.T=$.1M({},8.S,8.T);9(q 8.T.23!=\'Z\')8.T.23=Q;9(q 8.T.2x!=\'v\')8.T.2x=$.1h.1i.2R;9(q 8.L.V!=\'Z\')8.L.V=K;9(q 8.L.1R!=\'Z\')8.L.1R=K;9(q 8.L.2y!=\'C\')8.L.2y=0;9(q 8.L.24!=\'C\')8.L.24=(8.L.W<10)?3r:8.L.W*5};I.2S=v(){l.O({25:\'3s\',3t:\'3u\'});j.z(\'2T\',{1K:j.O(\'1K\'),1L:j.O(\'1L\'),25:j.O(\'25\'),22:j.O(\'22\'),1k:j.O(\'1k\')}).O({25:\'3v\'});9(8.11){J(j).1x(v(){D m=1S($(I).O(8.w[6]));9(26(m))m=0;$(I).z(\'Y\',m)})}27(8,F)};I.2U=v(){j.16(\'1e\',v(e,g){9(q g!=\'Z\')g=Q;9(g)1m=K;9(28!=1N){3w(28)}9(29!=1N){3x(29)}});j.16(\'V\',v(e,d,f,g){j.B(\'1e\');9(8.L.V){9(q g!=\'Z\'){9(q f==\'Z\')g=f;A 9(q d==\'Z\')g=d;A g=Q}9(q f!=\'C\'){9(q d==\'C\')f=d;A f=0}9(d!=\'H\'&&d!=\'E\')d=1j;9(g)1m=Q;9(1m)y;28=3y(v(){9(j.1b(\':1z\')){j.B(\'V\',d)}A{2a=0;j.B(d,8.L)}},8.L.24+f-2a);9(8.L.1A===\'3z\'){29=3A(v(){2a+=2V},2V)}}});9(2w){j.16(\'H\',v(e,b,c){9(j.1b(\':1z\'))y;9(1m)y;D d=J(j),1n=0,x=0;9(q b==\'C\')c=b;9(q c!=\'C\'){1T(D a=d.U-1;a>=0;a--){1f=d.18(\':2z(\'+a+\')\')[8.w[1]](K);9(1n+1f>8.1y)2A;1n+=1f;x++}c=x}1T(D a=d.U-c;a<d.U;a++){1f=d.18(\':2z(\'+a+\')\')[8.w[1]](K);9(1n+1f>8.1y)2A;1n+=1f;9(a==d.U-1)a=0;x++};8.u.G=x;j.B(\'2B\',[b,c])});j.16(\'E\',v(e,b,c){9(j.1b(\':1z\'))y;9(1m)y;D d=J(j),1n=0,x=0;9(q b==\'C\')c=b;9(q c!=\'C\')c=8.u.G;1T(D a=c;a<d.U;a++){1f=d.18(\':2z(\'+a+\')\')[8.w[1]](K);9(1n+1f>8.1y)2A;1n+=1f;9(a==d.U-1)a=0;x++};8.u.G=x;j.B(\'2C\',[b,c])}).B(\'E\',{W:0})}A{j.16(\'H\',v(e,a,b){j.B(\'2B\',[a,b])});j.16(\'E\',v(e,a,b){j.B(\'2C\',[a,b])})}j.16(\'2B\',v(e,b,c){9(j.1b(\':1z\'))y;9(1m)y;9(8.u.1P>=F)y 14(\'1t 2D u: 1U 1V\');9(q b==\'C\')c=b;9(q b!=\'1a\')b=8.H;9(q c!=\'C\')c=b.u;9(q c!=\'C\')y 14(\'1t a 2b C: 1U 1V\');9(!8.1u){D d=F-M;9(d-c<0){c=d}9(M==0){c=0}}M+=c;9(M>=F)M-=F;9(!8.1u){9(M==0&&c!=0&&8.H.2c){8.H.2c()}9(8.2d){9(c==0){j.B(\'E\',F-8.u.G);y Q}}A{9(M==0&&8.H.R)8.H.R.2e(\'1W\');9(8.E.R)8.E.R.2E(\'1W\')}}9(c==0){y Q}J(j,\':2f(\'+(F-c-1)+\')\').3B(j);9(F<8.u.G+c)J(j,\':1o(\'+((8.u.G+c)-F)+\')\').2W(K).2F(j);D f=2G(j,8,c),1p=J(j,\':1v(\'+(c-1)+\')\'),17=f[1].18(\':1B\'),1c=f[0].18(\':1B\');9(8.11)17.O(8.w[6],17.z(\'Y\'));D g=1l(8,J(j,\':1o(\'+c+\')\')),1q=2g(1l(8,f[0],K),8);9(8.11)17.O(8.w[6],17.z(\'Y\')+8.P[1]);D h={},2H={},1C={},N=b.W;9(N==\'L\')N=8.S.W/8.S.u*c;A 9(N<=0)N=0;A 9(N<10)N=g[0]/N;9(b.2h)b.2h(f[1],f[0],1q,N);9(8.11){D i=8.P[3];1C[8.w[6]]=1p.z(\'Y\');2H[8.w[6]]=1c.z(\'Y\')+8.P[1];1p.O(8.w[6],1p.z(\'Y\')+8.P[3]);1p.1D().1r(1C,{W:N,X:b.X});1c.1D().1r(2H,{W:N,X:b.X})}A{D i=0}h[8.w[4]]=i;9((q 8[8.w[0]]!=\'C\'&&q 8.u[8.w[0]]!=\'C\')||(q 8[8.w[2]]!=\'C\'&&q 8.u[8.w[2]]!=\'C\')){l.1D().1r(1q,{W:N,X:b.X})}j.z(\'1E\',c).z(\'1F\',b).z(\'2i\',f[1]).z(\'2j\',f[0]).z(\'2k\',1q).O(8.w[4],-g[0]).1r(h,{W:N,X:b.X,2X:v(){9(j.z(\'1F\').2l){j.z(\'1F\').2l(j.z(\'2i\'),j.z(\'2j\'),j.z(\'2k\'))}9(F<8.u.G+j.z(\'1E\')){J(j,\':2f(\'+(F-1)+\')\').1X()}D a=J(j,\':1v(\'+(8.u.G+j.z(\'1E\')-1)+\')\');9(8.11){a.O(8.w[6],a.z(\'Y\'))}}});j.B(\'1w\').B(\'V\',N)});j.16(\'2C\',v(e,c,d){9(j.1b(\':1z\'))y;9(1m)y;9(8.u.1P>=F)y 14(\'1t 2D u: 1U 1V\');9(q c==\'C\')d=c;9(q c!=\'1a\')c=8.E;9(q d!=\'C\')d=c.u;9(q d!=\'C\')y 14(\'1t a 2b C: 1U 1V\');9(!8.1u){9(M==0){9(d>F-8.u.G){d=F-8.u.G}}A{9(M-d<8.u.G){d=M-8.u.G}}}M-=d;9(M<0)M+=F;9(!8.1u){9(M==8.u.G&&d!=0&&8.E.2c){8.E.2c()}9(8.2d){9(d==0){j.B(\'H\',F-8.u.G);y Q}}A{9(M==8.u.G&&8.E.R)8.E.R.2e(\'1W\');9(8.H.R)8.H.R.2E(\'1W\')}}9(d==0){y Q}9(F<8.u.G+d)J(j,\':1o(\'+((8.u.G+d)-F)+\')\').2W(K).2F(j);D f=2G(j,8,d),1p=J(j,\':1v(\'+(d-1)+\')\'),17=f[0].18(\':1B\'),1c=f[1].18(\':1B\');9(8.11){17.O(8.w[6],17.z(\'Y\'));1c.O(8.w[6],1c.z(\'Y\'))}D g=1l(8,J(j,\':1o(\'+d+\')\')),1q=2g(1l(8,f[1],K),8);9(8.11){17.O(8.w[6],17.z(\'Y\')+8.P[1]);1c.O(8.w[6],1c.z(\'Y\')+8.P[1])}D h={},2I={},1C={},N=c.W;9(N==\'L\')N=8.S.W/8.S.u*d;A 9(N<=0)N=0;A 9(N<10)N=g[0]/N;9(c.2h)c.2h(f[0],f[1],1q,N);h[8.w[4]]=-g[0];9(8.11){2I[8.w[6]]=17.z(\'Y\');1C[8.w[6]]=1p.z(\'Y\')+8.P[3];1c.O(8.w[6],1c.z(\'Y\')+8.P[1]);17.1D().1r(2I,{W:N,X:c.X});1p.1D().1r(1C,{W:N,X:c.X})}9((q 8[8.w[0]]!=\'C\'&&q 8.u[8.w[0]]!=\'C\')||(q 8[8.w[2]]!=\'C\'&&q 8.u[8.w[2]]!=\'C\')){l.1D().1r(1q,{W:N,X:c.X})}j.z(\'1E\',d).z(\'1F\',c).z(\'2i\',f[0]).z(\'2j\',f[1]).z(\'2k\',1q).1r(h,{W:N,X:c.X,2X:v(){9(j.z(\'1F\').2l){j.z(\'1F\').2l(j.z(\'2i\'),j.z(\'2j\'),j.z(\'2k\'))}9(F<8.u.G+j.z(\'1E\')){J(j,\':2f(\'+(F-1)+\')\').1X()}D a=(8.11)?8.P[3]:0;j.O(8.w[4],a);D b=J(j,\':1o(\'+j.z(\'1E\')+\')\').2F(j).18(\':1B\');9(8.11){b.O(8.w[6],b.z(\'Y\'))}}});j.B(\'1w\').B(\'V\',N)});j.16(\'1G\',v(e,a,b,c,d){9(j.1b(\':1z\'))y Q;a=2m(a,b,c,M,F,j);9(a==0)y Q;9(q d!=\'1a\')d=Q;9(8.1u){9(a<F/2)j.B(\'E\',[d,a]);A j.B(\'H\',[d,F-a])}A{9(M==0||M>a)j.B(\'E\',[d,a]);A j.B(\'H\',[d,F-a])}}).16(\'2Y\',v(e,a,b,c,d){9(q a==\'1a\'&&q a.1Y==\'12\')a=$(a);9(q a==\'15\')a=$(a);9(q a!=\'1a\'||q a.1Y==\'12\'||a.U==0)y 14(\'1t a 2b 1a.\');9(q b==\'12\'||b==\'2Z\'){j.2J(a)}A{b=2m(b,d,c,M,F,j);D f=J(j,\':1v(\'+b+\')\');9(f.U){9(b<=M)M+=a.U;f.3C(a)}A{j.2J(a)}}F=J(j).U;1H(\'\',\'.2n\',j);1Z(j,8);27(8,F);j.B(\'1w\',K)}).16(\'30\',v(e,a,b,c){9(q a==\'12\'||a==\'2Z\'){J(j,\':1B\').1X()}A{a=2m(a,c,b,M,F,j);D d=J(j,\':1v(\'+a+\')\');9(d.U){9(a<M)M-=d.U;d.1X()}}F=J(j).U;1H(\'\',\'.2n\',j);1Z(j,8);27(8,F);j.B(\'1w\',K)}).16(\'1w\',v(e,b){9(!8.T.13)y Q;9(q b==\'Z\'&&b){J(8.T.13).1X();1T(D a=0;a<2v.3D(F/8.u.G);a++){8.T.13.2J(8.T.2x(a+1))}J(8.T.13).19(\'1I\').1x(v(a){$(I).1I(v(e){e.1g();j.B(\'1G\',[a*8.u.G,0,K,8.T])})})}D c=(M==0)?0:2v.3E((F-M)/8.u.G);J(8.T.13).2E(\'2t\').18(\':1v(\'+c+\')\').2e(\'2t\')})};I.31=v(){9(8.L.1A&&8.L.V){l.2o(v(){j.B(\'1e\')},v(){j.B(\'V\')})}9(8.H.R){8.H.R.1I(v(e){j.B(\'H\');e.1g()});9(8.H.1A&&8.L.V){8.H.R.2o(v(){j.B(\'1e\')},v(){j.B(\'V\')})}9(!8.1u&&!8.2d){8.H.R.2e(\'1W\')}}9($.1h.1d){9(8.H.1d){l.1d(v(e,a){9(a>0){e.1g();2p=(q 8.H.1d==\'C\')?8.H.1d:\'\';j.B(\'H\',2p)}})}9(8.E.1d){l.1d(v(e,a){9(a<0){e.1g();2p=(q 8.E.1d==\'C\')?8.E.1d:\'\';j.B(\'E\',2p)}})}}9(8.E.R){8.E.R.1I(v(e){e.1g();j.B(\'E\')});9(8.E.1A&&8.L.V){8.E.R.2o(v(){j.B(\'1e\')},v(){j.B(\'V\')})}}9(8.T.13){j.B(\'1w\',K);9(8.T.1A&&8.L.V){8.T.13.2o(v(){j.B(\'1e\')},v(){j.B(\'V\')})}}9(8.E.1s||8.H.1s){$(32).33(v(e){D k=e.34;9(k==8.E.1s){e.1g();j.B(\'E\')}9(k==8.H.1s){e.1g();j.B(\'H\')}})}9(8.T.23){$(32).33(v(e){D k=e.34;9(k>=49&&k<3F){k=(k-49)*8.u.G;9(k<=F){e.1g();j.B(\'1G\',[k,0,K,8.T])}}})}9(8.L.V){j.B(\'V\',8.L.2y);9($.1h.1R&&8.L.1R){j.1R(\'1e\',\'V\')}}};I.35=v(){j.B(\'1e\').O(j.z(\'2T\')).19(\'1e\').19(\'V\').19(\'H\').19(\'E\').19(\'3G\').19(\'1G\').19(\'2Y\').19(\'30\').19(\'1w\');l.3H(j);y I};I.3I=v(a,b){9(q a==\'12\')y 8;9(q b==\'12\'){D r=36(\'8.\'+a);9(q r==\'12\')r=\'\';y r}36(\'8.\'+a+\' = b\');I.2u(8);1Z(j,8);y I};I.1H=v(a,b){1H(a,b,j)};I.3J=v(){9(M==0){y 0}y F-M};D j=$(I);9($(I).1O().1b(\'.3a\')){D l=j.1O();I.35()}D l=$(I).3K(\'<3L 3M="3a" />\').1O(),8={},F=J(j).U,M=0,28=1N,29=1N,2a=0,1m=Q,1j=\'E\',2w=Q;I.2u(o);I.2S();I.2U();I.31();1H(\'\',\'.2n\',j);1Z(j,8);9(8.u.20!==0&&8.u.20!==Q){D s=8.u.20;9(8.u.20===K){s=2q.3N.3b;9(!s.U)s=0}j.B(\'1G\',[s,0,K,{W:0}])}y I};$.1h.1i.2L={2d:K,1u:K,1j:\'1k\',P:0,u:{G:5,20:0},S:{X:\'3O\',1A:Q,1d:Q}};$.1h.1i.2R=v(a){y\'<a 3P="#"><3c>\'+a+\'</3c></a>\'};v 1H(a,b,c){9(q a==\'12\'||a.U==0)a=$(\'3Q\');A 9(q a==\'15\')a=$(a);9(q a!=\'1a\')y Q;9(q b==\'12\')b=\'\';a.3R(\'a\'+b).1x(v(){D h=I.3b||\'\';9(h.U>0&&J(c).3d($(h))!=-1){$(I).19(\'1I\').1I(v(e){e.1g();c.B(\'1G\',h)})}})}v 27(o,t){9(o.u.1P>=t){14(\'1t 2D u: 1U 1V\');D f=\'3S\'}A{D f=\'3T\'}9(o.H.R)o.H.R[f]();9(o.E.R)o.E.R[f]();9(o.T.13)o.T.13[f]()}v 2K(k){9(k==\'2O\')y 39;9(k==\'1k\')y 37;9(k==\'2N\')y 38;9(k==\'3U\')y 40;y-1};v 1Q(a,b,c){9(q b!=\'Z\')b=Q;9(q c!=\'Z\')c=Q;9(q a==\'12\')a={};9(q a==\'15\'){D d=2K(a);9(d==-1)a=$(a);A a=d}9(b){9(q a.1Y!=\'12\')a={13:a};9(q 3V==\'Z\')a={23:a};9(q a.13==\'15\')a.13=$(a.13)}A 9(c){9(q a==\'Z\')a={V:a};9(q a==\'C\')a={24:a}}A{9(q a.1Y!=\'12\')a={R:a};9(q a==\'C\')a={1s:a};9(q a.R==\'15\')a.R=$(a.R);9(q a.1s==\'15\')a.1s=2K(a.1s)}y a};v J(a,f){9(q f!=\'15\')f=\'\';y $(\'> *\'+f,a)};v 2G(c,o,n){D a=J(c,\':1o(\'+o.u.G+\')\'),3e=J(c,\':1o(\'+(o.u.G+n)+\'):2f(\'+(n-1)+\')\');y[a,3e]};v 2m(a,b,c,d,e,f){9(q a==\'15\'){9(26(a))a=$(a);A a=1S(a)}9(q a==\'1a\'){9(q a.1Y==\'12\')a=$(a);a=J(f).3d(a);9(a==-1)a=0;9(q c!=\'Z\')c=Q}A{9(q c!=\'Z\')c=K}9(26(a))a=0;A a=1S(a);9(26(b))b=0;A b=1S(b);9(c){a+=d}a+=b;9(e>0){3f(a>=e){a-=e}3f(a<0){a+=e}}y a};v 1l(o,a,b){9(q b!=\'Z\')b=Q;D c=o.w,21=0,1J=0;9(b&&q o[c[0]]==\'C\')21+=o[c[0]];A 9(q o.u[c[0]]==\'C\')21+=o.u[c[0]]*a.U;A{a.1x(v(){21+=$(I)[c[1]](K)})}9(b&&q o[c[2]]==\'C\')1J+=o[c[2]];A 9(q o.u[c[2]]==\'C\')1J+=o.u[c[2]];A{a.1x(v(){D m=$(I)[c[3]](K);9(1J<m)1J=m})}y[21,1J]};v 2g(a,o){D b=(o.11)?o.P:[0,0,0,0];D c={};c[o.w[0]]=a[0]+b[1]+b[3];c[o.w[2]]=a[1]+b[0]+b[2];y c};v 1Z(a,o){D b=a.1O(),$i=J(a),$l=$i.18(\':1v(\'+(o.u.G-1)+\')\'),1b=1l(o,$i,Q);b.O(2g(1l(o,$i.18(\':1o(\'+o.u.G+\')\'),K),o));9(o.11){$l.O(o.w[6],$l.z(\'Y\')+o.P[1]);a.O(o.w[5],o.P[0]);a.O(o.w[4],o.P[3])}a.O(o.w[0],1b[0]*2);a.O(o.w[2],1b[1])};v 2M(p){9(q p==\'C\')p=[p];A 9(q p==\'15\')p=p.3g(\'3W\').3X(\'\').3g(\' \');9(q p!=\'1a\'){14(\'1t a 2b 3Y, P 3Z 41 "0".\');p=[0]}1T(i 42 p){p[i]=1S(p[i])}43(p.U){2r 0:y[0,0,0,0];2r 1:y[p[0],p[0],p[0],p[0]];2r 2:y[p[0],p[1],p[0],p[1]];2r 3:y[p[0],p[1],p[2],p[1]];44:y p}};v 14(m){9(q m==\'15\')m=\'1i: \'+m;9(2q.2s&&2q.2s.14)2q.2s.14(m);A 45{2s.14(m)}46(47){}y Q};$.1h.2n=v(o){I.1i(o)}})(48);',62,258,'||||||||opts|if|||||||||||||||||typeof||||items|function|dimentions||return|data|else|trigger|number|var|next|totalItems|visible|prev|this|getItems|true|auto|firstItem|a_dur|css|padding|false|button|scroll|pagination|length|play|duration|easing|cfs_origCssMargin|boolean||usePadding|undefined|container|log|string|bind|l_old|filter|unbind|object|is|l_new|mousewheel|pause|current|preventDefault|fn|carouFredSel|direction|left|getSizes|pausedGlobal|total|lt|l_cur|w_siz|animate|key|Not|circular|nth|updatePageStatus|each|maxDimention|animated|pauseOnHover|last|a_cur|stop|cfs_numItems|cfs_slideObj|slideTo|link_anchors|click|s2|width|height|extend|null|parent|minimum|getNaviObject|nap|parseInt|for|not|scrolling|disabled|remove|jquery|setSizes|start|s1|top|keys|pauseDuration|position|isNaN|showNavi|autoTimeout|autoInterval|pauseTimePassed|valid|onEnd|infinite|addClass|gt|mapWrapperSizes|onBefore|cfs_oldItems|cfs_newItems|cfs_wrapSize|onAfter|getItemIndex|caroufredsel|hover|num|window|case|console|selected|init|Math|varnumvisitem|anchorBuilder|delay|eq|break|scrollPrev|scrollNext|enough|removeClass|appendTo|getCurrentItems|a_new|a_old|append|getKeyCode|defaults|getPadding|up|right|outerWidth|outerHeight|pageAnchorBuilder|build|cfs_origCss|bind_events|100|clone|complete|insertItem|end|removeItem|bind_buttons|document|keyup|keyCode|destroy|eval||||caroufredsel_wrapper|hash|span|index|ni|while|split|No|element|50|marginRight|innerWidth|marginBottom|innerHeight|variable|floor|500|2500|relative|overflow|hidden|absolute|clearTimeout|clearInterval|setTimeout|resume|setInterval|prependTo|before|ceil|round|58|scrollTo|replaceWith|configuration|current_position|wrap|div|class|location|swing|href|body|find|hide|show|down|Object|px|join|value|set||to|in|switch|default|try|catch|err|jQuery|'.split('|'),0,{}));

/************/
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}




//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Menu created: Nov 12, 2008

//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) contain sub menus: http://www.dynamicdrive.com/forums/showthread.php?t=39177&highlight=smooth

//** Feb 11th, 09" (v1.02): The currently active main menu item (LI A) now gets a CSS class of ".selected", including sub menu items.

//** May 1st, 09" (v1.3):
//** 1) Now supports vertical (side bar) menu mode- set "orientation" to 'v'
//** 2) In IE6, shadows are now always disabled

//** July 27th, 09" (v1.31): Fixed bug so shadows can be disabled if desired.
//** Feb 2nd, 10" (v1.4): Adds ability to specify delay before sub menus appear and disappear, respectively. See showhidedelay variable below

//** Dec 17th, 10" (v1.5): Updated menu shadow to use CSS3 box shadows when the browser is FF3.5+, IE9+, Opera9.5+, or Safari3+/Chrome. Only .js file changed.

var ddsmoothmenu={

//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:['downarrowclass', '../images/down.gif'], right:['rightarrowclass', '../images/right.gif']},
transition: {overtime:300, outtime:300}, //duration of slide in/ out animation, in milliseconds
shadow: {enable:false, offsetx:5, offsety:5}, //enable shadow?
showhidedelay: {showdelay: 100, hidedelay: 200}, //set delay in milliseconds before sub menus appear and disappear, respectively

///////Stop configuring beyond here///////////////////////////
  
detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1, //detect WebKit browsers (Safari, Chrome etc)
detectie6: document.all && !window.XMLHttpRequest,
css3support: window.msPerformance || (!document.all && document.querySelector), //detect browsers that support CSS3 box shadows (ie9+ or FF3.5+, Safari3+, Chrome etc)

getajaxmenu:function($, setting){ //function to fetch external page containing the panel DIVs
	var $menucontainer=$('#'+setting.contentsource[0]) //reference empty div on page that will hold menu
	$menucontainer.html("Loading Menu...")
	$.ajax({
		url: setting.contentsource[1], //path to external menu file
		async: true,
		error:function(ajaxrequest){
			$menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText)
		},
		success:function(content){
			$menucontainer.html(content)
			ddsmoothmenu.buildmenu($, setting)
		}
	})
},


buildmenu:function($, setting){
	var smoothmenu=ddsmoothmenu
	var $mainmenu=$("#"+setting.mainmenuid+">ul") //reference main menu UL
	$mainmenu.parent().get(0).className=setting.classname || "ddsmoothmenu"
	var $headers=$mainmenu.find("ul").parent()
	$headers.hover(
		function(e){
			$(this).children('a:eq(0)').addClass('selected')
		},
		function(e){
			$(this).children('a:eq(0)').removeClass('selected')
		}
	)
	$headers.each(function(i){ //loop through each LI header
		var $curobj=$(this).css({zIndex: 100-i}) //reference current LI header
		var $subul=$(this).find('ul:eq(0)').css({display:'block'})
		$subul.data('timers', {})
		this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()}
		this.istopheader=$curobj.parents("ul").length==1? true : false //is top level header?
		$subul.css({top:this.istopheader && setting.orientation!='v'? this._dimensions.h+"px" : 0})
		$curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images
			'<img src="'+ (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[1] : smoothmenu.arrowimages.right[1])
			+'" class="' + (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[0] : smoothmenu.arrowimages.right[0])
			+ '" style="border:0;" />'
		)
		if (smoothmenu.shadow.enable && !smoothmenu.css3support){ //if shadows enabled and browser doesn't support CSS3 box shadows
			this._shadowoffset={x:(this.istopheader?$subul.offset().left+smoothmenu.shadow.offsetx : this._dimensions.w), y:(this.istopheader? $subul.offset().top+smoothmenu.shadow.offsety : $curobj.position().top)} //store this shadow's offsets
			if (this.istopheader)
				$parentshadow=$(document.body)
			else{
				var $parentLi=$curobj.parents("li:eq(0)")
				$parentshadow=$parentLi.get(0).$shadow
			}
			this.$shadow=$('<div class="ddshadow'+(this.istopheader? ' toplevelshadow' : '')+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+'px', top:this._shadowoffset.y+'px'})  //insert shadow DIV and set it to parent node for the next shadow div
		}
		$curobj.hover(
			function(e){
				var $targetul=$subul //reference UL to reveal
				var header=$curobj.get(0) //reference header LI as DOM object
				clearTimeout($targetul.data('timers').hidetimer)
				$targetul.data('timers').showtimer=setTimeout(function(){
					header._offsets={left:$curobj.offset().left, top:$curobj.offset().top}
					var menuleft=header.istopheader && setting.orientation!='v'? 0 : header._dimensions.w
					menuleft=(header._offsets.left+menuleft+header._dimensions.subulw>$(window).width())? (header.istopheader && setting.orientation!='v'? -header._dimensions.subulw+header._dimensions.w : -header._dimensions.w) : menuleft //calculate this sub menu's offsets from its parent
					if ($targetul.queue().length<=1){ //if 1 or less queued animations
						$targetul.css({left:menuleft+"px", width:header._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
						if (smoothmenu.shadow.enable && !smoothmenu.css3support){
							var shadowleft=header.istopheader? $targetul.offset().left+ddsmoothmenu.shadow.offsetx : menuleft
							var shadowtop=header.istopheader?$targetul.offset().top+smoothmenu.shadow.offsety : header._shadowoffset.y
							if (!header.istopheader && ddsmoothmenu.detectwebkit){ //in WebKit browsers, restore shadow's opacity to full
								header.$shadow.css({opacity:1})
							}
							header.$shadow.css({overflow:'', width:header._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:header._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)
						}
					}
				}, ddsmoothmenu.showhidedelay.showdelay)
			},
			function(e){
				var $targetul=$subul
				var header=$curobj.get(0)
				clearTimeout($targetul.data('timers').showtimer)
				$targetul.data('timers').hidetimer=setTimeout(function(){
					$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)
					if (smoothmenu.shadow.enable && !smoothmenu.css3support){
						if (ddsmoothmenu.detectwebkit){ //in WebKit browsers, set first child shadow's opacity to 0, as "overflow:hidden" doesn't work in them
							header.$shadow.children('div:eq(0)').css({opacity:0})
						}
						header.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)
					}
				}, ddsmoothmenu.showhidedelay.hidedelay)
			}
		) //end hover
	}) //end $headers.each()
	if (smoothmenu.shadow.enable && smoothmenu.css3support){ //if shadows enabled and browser supports CSS3 shadows
		var $toplevelul=$('#'+setting.mainmenuid+' ul li ul')
		var css3shadow=parseInt(smoothmenu.shadow.offsetx)+"px "+parseInt(smoothmenu.shadow.offsety)+"px 5px #aaa" //construct CSS3 box-shadow value
		var shadowprop=["boxShadow", "MozBoxShadow", "WebkitBoxShadow", "MsBoxShadow"] //possible vendor specific CSS3 shadow properties
		for (var i=0; i<shadowprop.length; i++){
			$toplevelul.css(shadowprop[i], css3shadow)
		}
	}
	$mainmenu.find("ul").css({display:'none', visibility:'visible'})
},

init:function(setting){
	if (typeof setting.customtheme=="object" && setting.customtheme.length==2){ //override default menu colors (default/hover) with custom set?
		var mainmenuid='#'+setting.mainmenuid
		var mainselector=(setting.orientation=="v")? mainmenuid : mainmenuid+', '+mainmenuid
		document.write('<style type="text/css">\n'
			+mainselector+' ul li a {background:'+setting.customtheme[0]+';}\n'
			+mainmenuid+' ul li a:hover {background:'+setting.customtheme[1]+';}\n'
		+'</style>')
	}
	this.shadow.enable=(document.all && !window.XMLHttpRequest)? false : this.shadow.enable //in IE6, always disable shadow
	jQuery(document).ready(function($){ //ajax menu?
		if (typeof setting.contentsource=="object"){ //if external ajax menu
			ddsmoothmenu.getajaxmenu($, setting)
		}
		else{ //else if markup menu
			ddsmoothmenu.buildmenu($, setting)
		}
	})
}

} //end ddsmoothmenu variable


function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
	// creates the target paths
	var list_elements = navigation_id + " li";
	var link_elements = list_elements + " a";
	
	// initiates the timer used for the sliding animation
	var timer = 0;
	
	// creates the slide animation for all list elements 
	jQuery(list_elements).each(function(i)
	{
		// margin left = - ([width of element] + [total vertical padding of element])
		jQuery(this).css("margin-left","-15px");
		// updates timer
		timer = (timer*multiplier + time);
		jQuery(this).animate({ marginLeft: "0" }, timer);
		jQuery(this).animate({ marginLeft: "15px" }, timer);
		jQuery(this).animate({ marginLeft: "0" }, timer);
	});

	// creates the hover-slide effect for all link elements 		
	jQuery(link_elements).each(function(i)
	{
		jQuery(this).hover(
		function()
		{
			jQuery(this).animate({ paddingLeft: pad_out }, 150);
		},		
		function()
		{
			jQuery(this).animate({ paddingLeft: pad_in }, 150);
		});
	});
}

