/*************************************************************
 * This script is developed by Arturs Sosins aka ar2rsawseen, http://webcodingeasy.com
 * Feel free to distribute and modify code, but keep reference to its creator
 *
 * Anchor slider class provides scrolling and sliding effects 
 * when switching between anchor hash links. 
 * It can find target by id or name attributes and 
 * slide or scroll towards target.
 *
 * For more information, examples and online documentation visit: 
 * http://webcodingeasy.com/JS-classes/Sliding-effect-between-anchor-hash-link
**************************************************************/
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}('5 1D=8(h){R.3={W:10,1n:10,1b:U,1f:8(){},1g:8(){},1h:8(){},T:0,V:0,18:U,B:I};5 k;5 l;5 m;5 n=I;5 o;5 p=R;R.1p=8(){1d(5 c 1F h){R.3[c]=h[c]}4(p.3.B===I){p.3.B=C;k=z();l=A();u(p.3.B,"1K",8(){k=z()})}7{p.3.B=6.1l(p.3.B);4(!p.3.B.1c){p.3.B.1c=8(x,y){p.3.B.M+=y;p.3.B.P+=x}}l=J K();l.9=p.3.B.19;l.E=p.3.B.1e;k=J K();k.9=p.3.B.Y;k.9=p.3.B.Y}o=J K();o.x=-1;o.d=-1;5 d=v(C.O.1I());4(C.O.S!=""){5 f=C.O.S;r(f.1i(1))}u(C,"1E",8(){5 a=C.O.S;r(a.1i(1))});5 g=6.12("a");1d(5 i=0;i<g.16;i++){4(g[i].N&&g[i].N.1o("#")>=0){4(g[i].N.1o("#")==0||v(g[i].N)==d){u(g[i],"1L",8(e){5 a=s(e);4(a.N){5 b=a.N.1k("#");b=b[b.16-1];4(b!=""){4(r(b)){t(e);H I}}}})}}}};5 q=8(x,y,a){4(p.3.B==C){5 b=w()}7{5 b=J K();b.x=p.3.B.P;b.y=p.3.B.M}5 c=J K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1C(b,c,I)}7{a.1J(\'1O\'+b,c)}};5 v=8(a){a=a.1k("#");H a[0]};5 w=8(){5 x=0,y=0;4(11(C.1m)==\'1N\'){y=C.1m;x=C.1P}7 4(6.F&&(6.F.P||6.F.M)){y=6.F.M;x=6.F.P}7 4(6.D&&(6.D.P||6.D.M)){y=6.D.M;x=6.D.P}5 a=J K();a.x=x;a.y=y;H a};5 z=8(){5 a=J K();a.9=0;a.E=0;4(11 C.1s!=\'1a\'){a.9=C.1s,a.E=C.1M}7 4(11 6.D!=\'1a\'&&11 6.D.Q!=\'1a\'&&6.D.Q!=0){a.9=6.D.Q,a.E=6.D.15}7{a.9=6.12(\'F\')[0].Q,a.E=6.12(\'F\')[0].15}H a};5 A=8(){5 a=J K();a.9=0;a.E=0;a.9=G.L(G.L(6.F.19,6.D.19),G.L(6.F.Y,6.D.Y),G.L(6.F.Q,6.D.Q));a.E=G.L(G.L(6.F.1e,6.D.1e),G.L(6.F.1u,6.D.1u),G.L(6.F.15,6.D.15));H a};R.1p()}',62,114,'|||conf|if|var|document|else|function|width||||||||||||||||||||||||||||parent|window|documentElement|height|body|Math|return|false|new|Object|max|scrollTop|href|location|scrollLeft|clientWidth|this|hash|offsetX|true|offsetY|step|name|offsetWidth|new_y||typeof|getElementsByTagName|offsetParent|busy|clientHeight|length|event|show_hash|scrollWidth|undefined|slide|scrollBy|for|scrollHeight|scrollStart|scrollEnd|scrollStep|substr|id|split|getElementById|pageYOffset|interval|indexOf|construct|srcElement|ceil|innerWidth|offsetLeft|offsetHeight|100|target|as_change|abs|returnValue|offsetTop|preventDefault|addEventListener|anchor_slider|hashchange|in|while|setTimeout|toString|attachEvent|resize|click|innerHeight|number|on|pageXOffset'.split('|'),0,{}))
