/*!
 * jQuery Slider Evolution - for jQuery 1.3+
 * http://codecanyon.net/user/aeroalquimia/portfolio?ref=aeroalquimia
 *
 * Copyright 2011, Eduardo Daniel Sada
 * http://codecanyon.net/wiki/buying/howto-buying/licensing/
 *
 * Version: 1.1.5 (08 Jun 2011)
 *
 * Includes jQuery Easing v1.3
 * http://gsgd.co.uk/sandbox/jquery/easing/
 * Copyright (c) 2008 George McGinley Smith
 * jQuery Easing released under the BSD 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}('(B($){A u=(1q.1P.2g&&1d(1q.1P.22,10)<7&&1d(1q.1P.22,10)>4);y(u){3a{3b.3c("3d",T,N)}3e(3f){}};y($.1a===2z){$.1r({1a:B(a,b){y(a){1a=B(){U a.3g(b||5,3h)}};U 1a}})};$.1r($.2h,{2A:B(x,t,b,c,d){U c*((t=t/d-1)*t*t+1)+b}});2i=B(a,b){5.2B(a,b)};$.1r(2i.3i,{22:"1.1.4",2B:B(a,b){5.2C={w:\'2D-2j\',1l:N,J:N,L:N,P:N,2k:N,2l:N,2E:N,2m:N,V:3j,1e:3k,1y:9,1h:7,1i:3,1s:3l,1z:8,2h:"2A",1A:\'1t\',3m:B(){},3n:B(){}};5.v={};5.2n=[\'3o\',\'3p\',\'Z\',\'3q\',\'23\',\'1G\',];5.3r={};5.2F=[];5.3s=[];5.3t=[];5.3u=0;5.3v=0;5.3w=0;5.3x=[];5.1B=0;5.1C=[];5.11=0;5.1u=0;5.L=0;5.3y=[];5.C={1Q:[],1l:[],L:[],J:[],P:[],M:[]};5.K={3z:T,1n:T,1f:T,1R:T,1H:T};5.G=$(a);A c=5.v;A d=5;A e=5.G.Y("Q");y(e.1I<2){U T}y(!b[\'D\']){b[\'D\']=0;b[\'I\']=0;A f={};e.Y().1D(B(){y($(5).2G("2F")){f[\'D\']=$(5).2H();f[\'I\']=$(5).3A();b[\'D\']=(f[\'D\']>=b[\'D\'])?f[\'D\']:0;b[\'I\']=(f[\'I\']>=b[\'I\'])?f[\'I\']:0}});2o f;y(b[\'D\']==0||b[\'I\']==0){2o b[\'D\'];2o b[\'I\']}}5.v=$.1r(N,5.2C,b);A g=5.v.w+\'-3B\';$.1D([\'1l\',\'J\',\'P\',\'L\'],B(i,s){y(d.v[s]){g+=\'-\'+s}});5.C.1Q=5.G.3C(\'<Q 15="\'+5.v.w+\'-1Q \'+g+\'" />\').3D();5.C.1Q.F({\'D\':5.v.D,\'I\':5.v.I});5.G.F({\'D\':5.v.D,\'I\':5.v.I,\'1S\':\'1T\',\'17\':\'3E\'});e.1D(B(i){y(i==0){$(5).W(d.v.w+\'-S-O\')}$(5).W(d.v.w+\'-S\');$(5).W(d.v.w+\'-S-\'+(i+1));d.1C=$(d.1C).3F($(\'<a 24="#" 15="\'+d.v.w+\'-J" 1J="\'+(i+1)+\'"><1m 15="\'+d.v.w+\'-J-1m \'+d.v.w+\'-J-\'+(i+1)+\'"><1m>\'+(i+1)+\'</1m></1m></a>\'));y(i==0){$(d.1C).W(d.v.w+\'-J-O\')}});5.C.J=$(\'<Q 15="\'+5.v.w+\'-3G" />\').25(a);5.C.J.1j(5.1C);y(!5.v.J){5.C.J.3H()}12{y(5.2p(5.C.J.F("2I"))=="#2q"){A h=$(\'.\'+5.v.w+\'-J\').2H(N);h=-((h*e.1I)/2);5.C.J.F({"3I-14":h})}}y(5.v.1l){5.C.1l=$(\'<Q 15="\'+5.v.w+\'-1l" />\').25(a);A j=$(\'<a 24="#" 15="\'+5.v.w+\'-1l-2r" 1J="-1"><1m>3J</1m></a>\');A k=$(\'<a 24="#" 15="\'+5.v.w+\'-1l-1E" 1J="+1"><1m>3K</1m></a>\');5.C.1l.1j(j,k)}y(5.v.P){5.C.P=$(\'<a 24="#" 15="\'+5.v.w+\'-P \'+5.v.w+\'-P-26"><1m>3L/3M</1m></a>\').25(a)}y(5.v.L){5.C.L=$(\'<Q 15="\'+5.v.w+\'-L"></Q>\').25(a);5.C.M.1o=$(\'<Q 15="\'+5.v.w+\'-L-1o"></Q>\');5.C.M.1g=$(\'<Q 15="\'+5.v.w+\'-L-1g"></Q>\');5.C.M.Z=$(\'<Q 15="\'+5.v.w+\'-L-Z"></Q>\');5.C.M.1U=5.2p(5.C.L.F("2I"));5.C.L.1j(5.C.M.1o.1j(5.C.M.1g),5.C.M.Z)}5.2J();y(5.v.2m){5.1F()}12{5.1K()}},2J:B(){A c=5;A d=5.C.1Q;A e=5.v;d.3N(B(){d.W(e.w+\'-1n\');y(e.2l&&!c.K.1R){c.K.1n=N;c.2K()}},B(){d.13(e.w+\'-1n\');y(e.2l&&c.K.1n){c.1F()}c.K.1n=T});5.C.J.Y("a").2s(B(a){y(c.K.1f==T){y($(5).3O(e.w+\'-J-O\')==T){A b=c.K.1H;c.1K();c.1L($(5).2t(\'1J\'));y(!e.2k&&!b){c.1F()}}}a.2u()});y(e.1l){5.C.1l.Y("a").2s(B(a){y(c.K.1f==T){A b=c.K.1H;c.1K();c.1L($(5).2t("1J"));y(!e.2k&&!b){c.1F()}}a.2u()})};y(e.P){5.C.P.2s($.1a(B(a){y(5.K.1H){5.1F()}12{5.1K()}5.K.1n=T;a.2u()},5))}},1F:B(){y(5.v.L){y(5.C.M.1U=="#2L"){5.C.M.Z.18({"D":"27%"},(5.1B>0?5.1B:5.v.V),"3P",$.1a(B(){5.1L("+1");5.1B=0;5.C.M.Z.F({"D":0});5.1F()},5))}12 y(5.C.M.1U="#2q"){5.L=2M($.1a(B(){A a="2N("+5.1u+"2O)";5.1u+=2;5.C.M.1g.F({"-2P-1v":a,"-2Q-1v":a,"-o-1v":a,"1v":a});y(1q.1P.2g){5.C.M.1g.2R(0).1M[\'2S\']=a}y(5.1u>2T){5.C.M.1g.W(5.v.w+\'-L-1g-1N\');5.C.M.1o.W(5.v.w+\'-L-1o-1N\')}y(5.1u>3Q){5.C.M.1g.13(5.v.w+\'-L-1g-1N\');5.C.M.1o.13(5.v.w+\'-L-1o-1N\');5.1u=0;5.1L("+1");5.1B=0}},5),5.v.V/2T)}y(5.v.P){5.C.P.13(5.v.w+\'-P-2v\');5.C.P.W(5.v.w+\'-P-26\')}}12{y(!5.L){5.L=2M($.1a(B(){5.1L("+1")},5),5.v.V)}}5.K.1R=T;5.K.1H=T;5.G.1p("3R")},2K:B(){2U(5.L);5.L="";y(5.v.L){5.C.M.Z.28(N);A a=27-(1d(5.C.M.Z.F("D"),10)*27/5.v.D);5.1B=5.v.V*a/27}5.K.1R=N;y(5.v.P&&!5.K.1n){5.C.P.13(5.v.w+\'-P-26\');5.C.P.W(5.v.w+\'-P-2v\')}5.G.1p("3S")},1K:B(){2U(5.L);5.L="";y(5.v.L){5.C.M.Z.28();5.1B=0;y(5.C.M.1U=="#2L"){5.C.M.Z.F({"D":0})}12 y(5.C.M.1U=="#2q"){5.C.M.1g.13(5.v.w+\'-L-1g-1N\');5.C.M.1o.13(5.v.w+\'-L-1o-1N\');5.1u=0;A a="2N("+5.1u+"2O)";5.C.M.1g.F({"-2P-1v":a,"-2Q-1v":a,"-o-1v":a,"1v":a});y(1q.1P.2g){5.C.M.1g.2R(0).1M[\'2S\']=a}}}5.K.1R=N;5.K.1H=N;5.K.1n=T;y(5.v.P){5.C.P.13(5.v.w+\'-P-26\');5.C.P.W(5.v.w+\'-P-2v\')}5.G.1p("3T")},29:B(a){1b(A j,x,i=a.1I;i;j=1d(1O.1t()*i,10),x=a[--i],a[i]=a[j],a[j]=x){}U a},2p:B(b){y(b.3U(/^#[0-3V-3W-f]{6}$/)){U b.2a()}A c=/3X\\((.+),(.+),(.+)\\)/i.3Y(b);y(!c){U b.2a()}A d=1d(c[1]);A e=1d(c[2]);A f=1d(c[3]);A g=B(a){U((a.1I<2?\'0\':\'\')+a).2a()};U(\'#\'+g(d.2w(16))+g(e.2w(16))+g(f.2w(16))).2a()},1L:B(a){y(5.K.1f){U T}A b=5.G.Y("."+5.v.w+\'-S-O\');A c=5.C.J.Y("."+5.v.w+\'-J-O\');y(a=="+1"){A d=b.1E("."+5.v.w+\'-S\');A e=c.1E();y(d.1I<=0){y(5.v.2E){d=5.G.Y("."+5.v.w+\'-S\').2V();e=5.1C.2V("a")}12{5.1K();U T}}}12 y(a=="-1"){A d=b.2r("."+5.v.w+\'-S\');A e=c.2r("a");y(d.1I<=0){d=5.G.Y("."+5.v.w+\'-S\').2W();e=5.1C.2W("a")}}12{A d=5.G.Y("."+5.v.w+\'-S-\'+a);A e=5.C.J.Y("."+5.v.w+\'-J[1J=\'+a+\']\')}5.1A(b,c,d,e);5.G.1p("3Z",d)},1A:B(a,b,c,d){y($.40(5.v.1A)){5.2n=5.v.1A;5.v.1A="1t"}A e=c.2t(\'15\').2X(" ")[0].2X(5.v.w+"-2Y-")[1];y(e===2z){e=5.v.1A}y(e=="1t"){A f=\'\';41(f==5.2Z||f==\'\'){f=5.29(5.2n)[0].30()}e=f}e=e.30();5.2Z=e;5["2Y"+e](a,b,c,d)},42:B(a,b,c,d){5.K.1f=N;c.F({"R":1}).W(5.v.w+\'-S-1E\');b.13(5.v.w+\'-J-O\');d.W(5.v.w+\'-J-O\');a.28().18({"R":0},5.v.1e,$.1a(B(){a.13(5.v.w+\'-S-O\');c.W(5.v.w+\'-S-O\');c.13(5.v.w+\'-S-1E\');5.G.1p("1V",c);5.K.1f=T},5))},1W:B(b,d,e,f,g){g=$.1r(N,{\'11\':\'14\'},g);5.K.1f=N;A h={\'D\':1O.1X(5.v.D/5.v.1y),\'I\':5.v.I};1Y=31 43(5.v.1y);y(g[\'11\']=="2b"){c=0;1b(i=5.v.1y;i>0;i--){1Y[c]=i;c++}}12 y(g[\'11\']=="14"){1b(i=1;i<=5.v.1y;i++){1Y[i]=i}}12 y(g[\'11\']=="23"||g[\'11\']=="1G"){A j=1;A k=1d(5.v.1y/2);1b(i=1;i<=5.v.1y;i++){1Y[i-1]=(k-(1d((i)/2)*j))+1;j*=-1}}$.1D(1Y,$.1a(B(i,a){17=(a*h.D)-h.D;Z=$(\'<Q 15="\'+5.v.w+\'-Z \'+5.v.w+\'-Z-\'+a+\'"/>\');Z.F({\'17\':\'1w\',\'1S\':\'1T\',\'14\':17,\'z-2c\':3,\'R\':0,\'2d-17\':\'-\'+17+\'X 19\'}).F(h);y(g[\'11\']=="23"){Z.F({\'19\':5.v.I})}12 y(g[\'11\']=="1G"){Z.F({\'19\':-5.v.I})}Z.1j(\'<Q 1M="17: 1w; 14: -\'+17+\'X; D: \'+5.v.D+\'X; I: \'+5.v.I+\'X;">\'+e.2e()+\'</Q>\');5.G.1j(Z);V=5.v.1s*i;Z.18({\'R\':0},V).18({\'R\':1,\'19\':0},{1e:5.v.1e})},5));d.13(5.v.w+\'-J-O\');f.W(5.v.w+\'-J-O\');2x($.1a(B(){e.F({"R":1}).W(5.v.w+\'-S-O\');b.F({"R":0}).13(5.v.w+\'-S-O\');5.G.Y("."+5.v.w+\'-Z\').2f();5.K.1f=T;5.G.1p("1V",e)},5),V+5.v.1e)},44:B(a,b,c,d){U 5.1W(a,b,c,d)},45:B(a,b,c,d){U 5.1W(a,b,c,d,{"11":"2b"})},32:B(b,c,d,e,f){f=$.1r(N,{\'1Z\':\'2y\',\'1x\':\'1G\'},f);5.K.1f=N;d.F({"R":1});c.13(5.v.w+\'-J-O\');e.W(5.v.w+\'-J-O\');A g=1O.1X(5.v.D/5.v.1h);A h=1O.1X(5.v.I/5.v.1i);A j=[];A k=d.2e();1b(E=1;E<=5.v.1i;E++){1b(H=1;H<=5.v.1h;H++){j.33(H+\'\'+E);A l=((E*h)-h);A m=((H*g)-g);A n=(g*H)-g;A o=(h*E)-h;A p=$(\'<Q 15="\'+5.v.w+\'-1c \'+5.v.w+\'-1c-\'+H+E+\'" />\');p.F({\'1S\':\'1T\',\'17\':\'1w\',\'D\':g,\'I\':h,\'z-2c\':3,\'19\':l,\'14\':m,\'R\':0,\'2d-17\':\'-\'+n+\'X -\'+o+\'X\'});p.1j(\'<Q 1M="17: 1w; 14: -\'+n+\'X; 19: -\'+o+\'X; D: \'+5.v.D+\'X; I: \'+5.v.I+\'X;">\'+k+\'</Q>\');5.G.1j(p)}}y(f[\'1x\']==\'1t\'){j=5.29(j)}12 y(f[\'1x\']==\'34\'){j=5.35(j)}y(f[\'1Z\']==\'2y\'){A q=0;1b(E=1;E<=5.v.1i;E++){1k=E;1b(H=1;H<=5.v.1h;H++){V=5.v.1s*1k;5.G.Y(\'.\'+5.v.w+\'-1c-\'+j[q]).18({\'D\':g},V).18({\'R\':1},5.v.1e);q++;1k++}}}12 y(f[\'1Z\']==\'46\'){$.1D(j,$.1a(B(i,a){V=5.v.1s*i;5.G.Y(\'.\'+5.v.w+\'-1c-\'+a).18({\'D\':g},V).18({\'R\':1},5.v.1e)},5))}12 y(f[\'1Z\']==\'47\'){$.1D(j,$.1a(B(i,a){V=5.v.1s*i;5.G.Y(\'.\'+5.v.w+\'-1c-\'+a).18({\'D\':g},V).18({\'R\':1},5.v.1e)},5))}2x($.1a(B(){d.F({"R":1}).W(5.v.w+\'-S-O\');b.F({"R":0}).13(5.v.w+\'-S-O\');5.G.Y("."+5.v.w+\'-1c\').2f();5.K.1f=T;5.G.1p("1V",d)},5),V+5.v.1e)},48:B(a,b,c,d){U 5.32(a,b,c,d,{\'1x\':\'1t\'})},20:B(a,b,c,d,e){e=$.1r(N,{\'11\':\'14\'},e);5.K.1f=N;c.F({"R":1});b.13(5.v.w+\'-J-O\');d.W(5.v.w+\'-J-O\');a.13(5.v.w+\'-S-O\');a.W(5.v.w+\'-S-1E\');c.W(5.v.w+\'-S-O\');y(e.11=="14"){c.F({"14":5.v.D})}12 y(e.11=="2b"){c.F({"14":-5.v.D})}12 y(e.11=="19"){c.F({"19":-5.v.I})}12 y(e.11=="36"){c.F({"19":5.v.I})}c.28().18({"14":0,"19":0},5.v.1e,5.v.2h,$.1a(B(){a.13(5.v.w+\'-S-1E\');a.F({"R":0});5.K.1f=T;5.G.1p("1V",c)},5))},49:B(a,b,c,d){U 5.20(a,b,c,d,{\'11\':\'14\'})},4a:B(a,b,c,d){U 5.20(a,b,c,d,{\'11\':\'2b\'})},4b:B(a,b,c,d){U 5.20(a,b,c,d,{\'11\':\'19\'})},4c:B(a,b,c,d){U 5.20(a,b,c,d,{\'11\':\'36\'})},4d:B(a,b,c,d){U 5.1W(a,b,c,d,{\'11\':\'23\'})},4e:B(a,b,c,d){U 5.1W(a,b,c,d,{\'11\':\'1G\'})},37:B(a,b,c,d,e){e=$.1r(N,{\'1Z\':\'2y\',\'1x\':\'1G\'},e);5.K.1f=N;c.F({"R":0});b.13(5.v.w+\'-J-O\');d.W(5.v.w+\'-J-O\');A f=1O.1X(5.v.D/5.v.1h);A g=1O.1X(5.v.I/5.v.1i);A h=[];A i=c.2e();1b(E=1;E<=5.v.1i;E++){1b(H=1;H<=5.v.1h;H++){h.33(H+\'\'+E);A j=((E*g)-g);A k=((H*f)-f);A l=(f*H)-f;A m=(g*E)-g;A n=(H-1d((5.v.1h+1)/2))*5.v.1z;A o=(E-1d((5.v.1i+1)/2))*5.v.1z;A p=$(\'<Q 15="\'+5.v.w+\'-1c-21 \'+5.v.w+\'-1c-21-\'+H+E+\'" />\');p.F({\'1S\':\'1T\',\'17\':\'1w\',\'D\':f,\'I\':g,\'z-2c\':2,\'19\':j+o,\'14\':k+n,\'R\':0,\'2d-17\':\'-\'+l+\'X -\'+m+\'X\'});p.1j(\'<Q 1M="17: 1w; 14: -\'+l+\'X; 19: -\'+m+\'X; D: \'+5.v.D+\'X; I: \'+5.v.I+\'X;">\'+i+\'</Q>\');5.G.1j(p);A p=$(\'<Q 15="\'+5.v.w+\'-1c \'+5.v.w+\'-1c-\'+H+E+\'" />\');p.F({\'1S\':\'1T\',\'17\':\'1w\',\'D\':f,\'I\':g,\'z-2c\':3,\'19\':j,\'14\':k,\'R\':1,\'2d-17\':\'-\'+l+\'X -\'+m+\'X\'});p.1j(\'<Q 1M="17: 1w; 14: -\'+l+\'X; 19: -\'+m+\'X; D: \'+5.v.D+\'X; I: \'+5.v.I+\'X;">\'+a.2e()+\'</Q>\');5.G.1j(p)}}a.F({"R":0});y(e[\'1x\']==\'1t\'){h=5.29(h)}12 y(e[\'1x\']==\'34\'){h=5.35(h)}1b(E=1;E<=5.v.1i;E++){1k=E;1b(H=1;H<=5.v.1h;H++){V=5.v.1s*1k;A n=(H-1d((5.v.1h+1)/2))*5.v.1z;A o=(E-1d((5.v.1i+1)/2))*5.v.1z;5.G.Y(\'.\'+5.v.w+\'-1c-\'+H+\'\'+E).18({\'14\':\'+=\'+n,\'19\':\'+=\'+o},5.v.1e);1k++}}A q=V;A r=0;1b(E=1;E<=5.v.1i;E++){1k=E;1b(H=1;H<=5.v.1h;H++){V=5.v.1s*1k;5.G.Y(\'.\'+5.v.w+\'-1c-\'+h[r]).18({\'R\':0},V);5.G.Y(\'.\'+5.v.w+\'-1c-21-\'+h[r]).18({\'D\':f},5.v.1e).18({\'R\':1},V).18({\'D\':f},q-V);r++;1k++}}1b(E=1;E<=5.v.1i;E++){1k=E;1b(H=1;H<=5.v.1h;H++){V=5.v.1s*1k;A n=(H-1d((5.v.1h+1)/2))*5.v.1z;A o=(E-1d((5.v.1i+1)/2))*5.v.1z;5.G.Y(\'.\'+5.v.w+\'-1c-21-\'+H+\'\'+E).18({\'14\':\'-=\'+n,\'19\':\'-=\'+o},5.v.1e);1k++}}2x($.1a(B(){c.F({"R":1}).W(5.v.w+\'-S-O\');a.F({"R":0}).13(5.v.w+\'-S-O\');5.G.Y("."+5.v.w+\'-1c\').2f();5.G.Y("."+5.v.w+\'-1c-21\').2f();5.K.1f=T;5.G.1p("1V",c)},5),(q+(5.v.1e*2)))},4f:B(a,b,c,d){U 5.37(a,b,c,d,{\'1x\':\'1t\'})}});$.38.2m=B(a,b){y(4g($.38.2D)>1.2){A d={};5.1D(B(){A s=$(5);d=s.39("2j");y(!d){d=31 2i(5,a,b);s.39("2j",d)}});U d}12{4h"4i 1q 22 4j 4k 4l 2G 4m 4n. 4o 4p 4q 1q 1.3+";}}})(1q);',62,275,'|||||this||||||||||||||||||||||||||options|name||if||var|function|esqueleto|width|iRow|css|element|iCol|height|selector|events|timer|clock|true|current|control|div|opacity|slide|false|return|delay|addClass|px|children|bar||direction|else|removeClass|left|class||position|animate|top|proxy|for|block|parseInt|duration|playing|rotator|columns|rows|append|colRow|navigation|span|hovered|mask|trigger|jQuery|extend|speed|random|degrees|transform|absolute|effect|bars|padding|transition|resto|selectores|each|next|startTimer|rain|stopped|length|rel|stopTimer|callSlide|style|move|Math|browser|wrapper|paused|overflow|hidden|command|sliderTransitionFinishes|transbar|round|bar_array|mode|transslide|clon|version|fountain|href|insertAfter|pause|100|stop|shuffle|toUpperCase|right|index|background|html|remove|msie|easing|SliderObject|slider|pauseOnClick|pauseOnHover|slideshow|transitions|delete|rgbToHex|FFFFFF|prev|click|attr|preventDefault|play|toString|setTimeout|acumulative|undefined|easeOutCubic|create|defaults|jquery|loop|img|is|outerWidth|color|addEvents|pauseTimer|000000|setInterval|rotate|deg|webkit|moz|get|msTransform|180|clearInterval|first|last|split|trans|lastTransition|toLowerCase|new|transsquare|push|swirl|arrayswirl|bottom|transexplode|fn|data|try|document|execCommand|BackgroundImageCache|catch|err|apply|arguments|prototype|4500|400|80|onComplete|onSlideshowEnd|fade|square|squarerandom|dom|titles|links|imgInc|imgInterval|inc|order|slides|clicked|outerHeight|option|wrap|parent|relative|add|selectors|hide|margin|Prev|Next|Play|Pause|hover|hasClass|linear|360|sliderPlay|sliderPause|sliderStop|match|9A|Fa|rgb|exec|sliderChange|isArray|while|transfade|Array|transbarleft|transbarright|dual|lineal|transsquarerandom|transslideleft|transslideright|transslidetop|transslidebottom|transfountain|transrain|transexploderandom|parseFloat|throw|The|that|was|loaded|too|old|Slider|Evolution|requires'.split('|'),0,{}));;
/*!
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.11 (15-JUN-2010)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */

/**
 *  corner() takes a single string argument:  $('#myDiv').corner("effect corners width")
 *
 *  effect:  name of the effect to apply, such as round, bevel, notch, bite, etc (default is round). 
 *  corners: one or more of: top, bottom, tr, tl, br, or bl.  (default is all corners)
 *  width:   width of the effect; in the case of rounded corners this is the radius. 
 *           specify this value using the px suffix such as 10px (yes, it must be pixels).
 */
;(function($) { 

var style = document.createElement('div').style,
    moz = style['MozBorderRadius'] !== undefined,
    webkit = style['WebkitBorderRadius'] !== undefined,
    radius = style['borderRadius'] !== undefined || style['BorderRadius'] !== undefined,
    mode = document.documentMode || 0,
    noBottomFold = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8),

    expr = $.browser.msie && (function() {
        var div = document.createElement('div');
        try { div.style.setExpression('width','0+0'); div.style.removeExpression('width'); }
        catch(e) { return false; }
        return true;
    })();

$.support = $.support || {};
$.support.borderRadius = moz || webkit || radius; // so you can do:  if (!$.support.borderRadius) $('#myDiv').corner();

function sz(el, p) { 
    return parseInt($.css(el,p))||0; 
};
function hex2(s) {
    var s = parseInt(s).toString(16);
    return ( s.length < 2 ) ? '0'+s : s;
};
function gpc(node) {
    while(node) {
        var v = $.css(node,'backgroundColor'), rgb;
        if (v && v != 'transparent' && v != 'rgba(0, 0, 0, 0)') {
            if (v.indexOf('rgb') >= 0) { 
                rgb = v.match(/\d+/g); 
                return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]);
            }
            return v;
        }
        if (node.nodeName.toLowerCase() == 'html')
            break;
        node = node.parentNode; // keep walking if transparent
    }
    return '#ffffff';
};

function getWidth(fx, i, width) {
    switch(fx) {
    case 'round':  return Math.round(width*(1-Math.cos(Math.asin(i/width))));
    case 'cool':   return Math.round(width*(1+Math.cos(Math.asin(i/width))));
    case 'sharp':  return Math.round(width*(1-Math.cos(Math.acos(i/width))));
    case 'bite':   return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));
    case 'slide':  return Math.round(width*(Math.atan2(i,width/i)));
    case 'jut':    return Math.round(width*(Math.atan2(width,(width-i-1))));
    case 'curl':   return Math.round(width*(Math.atan(i)));
    case 'tear':   return Math.round(width*(Math.cos(i)));
    case 'wicked': return Math.round(width*(Math.tan(i)));
    case 'long':   return Math.round(width*(Math.sqrt(i)));
    case 'sculpt': return Math.round(width*(Math.log((width-i-1),width)));
    case 'dogfold':
    case 'dog':    return (i&1) ? (i+1) : width;
    case 'dog2':   return (i&2) ? (i+1) : width;
    case 'dog3':   return (i&3) ? (i+1) : width;
    case 'fray':   return (i%2)*width;
    case 'notch':  return width; 
    case 'bevelfold':
    case 'bevel':  return i+1;
    }
};

$.fn.corner = function(options) {
    // in 1.3+ we can fix mistakes with the ready state
    if (this.length == 0) {
        if (!$.isReady && this.selector) {
            var s = this.selector, c = this.context;
            $(function() {
                $(s,c).corner(options);
            });
        }
        return this;
    }

    return this.each(function(index){
        var $this = $(this),
            // meta values override options
            o = [$this.attr($.fn.corner.defaults.metaAttr) || '', options || ''].join(' ').toLowerCase(),
            keep = /keep/.test(o),                       // keep borders?
            cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]),  // corner color
            sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]),  // strip color
            width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10, // corner width
            re = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,
            fx = ((o.match(re)||['round'])[0]),
            fold = /dogfold|bevelfold/.test(o),
            edges = { T:0, B:1 },
            opts = {
                TL:  /top|tl|left/.test(o),       TR:  /top|tr|right/.test(o),
                BL:  /bottom|bl|left/.test(o),    BR:  /bottom|br|right/.test(o)
            },
            // vars used in func later
            strip, pad, cssHeight, j, bot, d, ds, bw, i, w, e, c, common, $horz;
        
        if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR )
            opts = { TL:1, TR:1, BL:1, BR:1 };
            
        // support native rounding
        if ($.fn.corner.defaults.useNative && fx == 'round' && (radius || moz || webkit) && !cc && !sc) {
            if (opts.TL)
                $this.css(radius ? 'border-top-left-radius' : moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px');
            if (opts.TR)
                $this.css(radius ? 'border-top-right-radius' : moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px');
            if (opts.BL)
                $this.css(radius ? 'border-bottom-left-radius' : moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px');
            if (opts.BR)
                $this.css(radius ? 'border-bottom-right-radius' : moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px');
            return;
        }
            
        strip = document.createElement('div');
        $(strip).css({
            overflow: 'hidden',
            height: '1px',
            minHeight: '1px',
            fontSize: '1px',
            backgroundColor: sc || 'transparent',
            borderStyle: 'solid'
        });
    
        pad = {
            T: parseInt($.css(this,'paddingTop'))||0,     R: parseInt($.css(this,'paddingRight'))||0,
            B: parseInt($.css(this,'paddingBottom'))||0,  L: parseInt($.css(this,'paddingLeft'))||0
        };

        if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE
        if (!keep) this.style.border = 'none';
        strip.style.borderColor = cc || gpc(this.parentNode);
        cssHeight = $(this).outerHeight();

        for (j in edges) {
            bot = edges[j];
            // only add stips if needed
            if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) {
                strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');
                d = document.createElement('div');
                $(d).addClass('jquery-corner');
                ds = d.style;

                bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);

                if (bot && cssHeight != 'auto') {
                    if ($.css(this,'position') == 'static')
                        this.style.position = 'relative';
                    ds.position = 'absolute';
                    ds.bottom = ds.left = ds.padding = ds.margin = '0';
                    if (expr)
                        ds.setExpression('width', 'this.parentNode.offsetWidth');
                    else
                        ds.width = '100%';
                }
                else if (!bot && $.browser.msie) {
                    if ($.css(this,'position') == 'static')
                        this.style.position = 'relative';
                    ds.position = 'absolute';
                    ds.top = ds.left = ds.right = ds.padding = ds.margin = '0';
                    
                    // fix ie6 problem when blocked element has a border width
                    if (expr) {
                        bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth');
                        ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"');
                    }
                    else
                        ds.width = '100%';
                }
                else {
                    ds.position = 'relative';
                    ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' : 
                                        (pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';                
                }

                for (i=0; i < width; i++) {
                    w = Math.max(0,getWidth(fx,i, width));
                    e = strip.cloneNode(false);
                    e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';
                    bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild);
                }
                
                if (fold && $.support.boxModel) {
                    if (bot && noBottomFold) continue;
                    for (c in opts) {
                        if (!opts[c]) continue;
                        if (bot && (c == 'TL' || c == 'TR')) continue;
                        if (!bot && (c == 'BL' || c == 'BR')) continue;
                        
                        common = { position: 'absolute', border: 'none', margin: 0, padding: 0, overflow: 'hidden', backgroundColor: strip.style.borderColor };
                        $horz = $('<div/>').css(common).css({ width: width + 'px', height: '1px' });
                        switch(c) {
                        case 'TL': $horz.css({ bottom: 0, left: 0 }); break;
                        case 'TR': $horz.css({ bottom: 0, right: 0 }); break;
                        case 'BL': $horz.css({ top: 0, left: 0 }); break;
                        case 'BR': $horz.css({ top: 0, right: 0 }); break;
                        }
                        d.appendChild($horz[0]);
                        
                        var $vert = $('<div/>').css(common).css({ top: 0, bottom: 0, width: '1px', height: width + 'px' });
                        switch(c) {
                        case 'TL': $vert.css({ left: width }); break;
                        case 'TR': $vert.css({ right: width }); break;
                        case 'BL': $vert.css({ left: width }); break;
                        case 'BR': $vert.css({ right: width }); break;
                        }
                        d.appendChild($vert[0]);
                    }
                }
            }
        }
    });
};

$.fn.uncorner = function() { 
    if (radius || moz || webkit)
        this.css(radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius', 0);
    $('div.jquery-corner', this).remove();
    return this;
};

// expose options
$.fn.corner.defaults = {
    useNative: true, // true if plugin should attempt to use native browser support for border radius rounding
    metaAttr:  'data-corner' // name of meta attribute to use for options
};
    
})(jQuery);
;
jQuery(document).ready(function($) {
	
	// SET THE ROUNDED CORNERS
	
	$('.rounded').corner('10px');
	
	$('input, textarea').corner('5px');

	$('div#navigation .menu-level-1 li').corner('5px');
	$('div#container div#content div.main .menu-level-2').corner('10px');
	$('div#block-views-news-block').corner('10px');
	$('.field-name-field-links').corner('10px');
	
	$('.tabs li').corner('top 10px');
	
	
	
	// SLIDESHOW
	
	$('.view-slideshow .view-content').slideshow({
        name:			'jquery-slider',
		width:			820,
		height:			400,
        navigation:		false,
        selector:		false,
        timer:			false,
        control:		false,
        pauseOnClick:	false,
        pauseOnHover:	true,
        loop:			true,
        slideshow:		true,
        delay:			6000,
        duration:		500,
        bars:			30,
        columns:		6,
        rows:			3,
        speed:			100,
        padding:		10,
        easing:			"easeInOutQuad",
        transition:		'square',
        onComplete:		function () {},
        onSlideshowEnd:	function () {}
	});
	
});;

