function mail(i){i=i.split("(at)");i="mailto:"+i.join("@");location.href=i}
(function(i,k,l){function o(a){for(var h=1,d=arguments.length,b=[];h<d;h++)b.push(arguments[h]);return function(){a.apply(this,b)}}function m(a,h,d,b){a.addEventListener?a.addEventListener(h,d,b):a.attachEvent("on"+h,d)}function n(a,h,d,b,g,e){a+=Math.pow(1/d*b,g)*(h-a);return e?Math.round(a):a}i.scroller={defOpt:{ease:0.17,onStart:0,onFinish:0,onSrcoll:0,duration:function(a,h){for(var a=Math.sqrt(Math.pow(a,2)+Math.pow(h,2)),d=0,b=0;d<a;)b++,d+=b*b;return b*50},rien:0},goTo:function(a,h){var d=i.opera,
b,g,e;e=k.documentElement;b=k.body;i.innerWidth?(g=i.innerWidth,e=i.innerHeight):e.clientWidth?(g=e.clientWidth,e=e.clientHeight):(g=b.clientWidth,e=b.clientHeight);g={w:g,h:e};e=k.documentElement;b=k.body;var c,f;f=e.scrollHeight;c=e.scrollWidth;if(e.clientHeight>f)f=e.clientHeight;if(e.clientWidth>c)c=e.clientWidth;if(b.scrollHeight>f)f=b.scrollHeight;if(b.scrollWidth>c)c=b.scrollWidth;e={w:c,h:f};var j;b=h||{};c=this.defOpt;f={};for(j in c)f[j]=c[j];for(j in b)f[j]=b[j];j=this.opt=f;this.tgt=a;
c=k.documentElement;f=k.body;i.pageXOffset!==l?(b=i.pageXOffset,c=i.pageYOffset):(b=c.scrollLeft?c.scrollLeft:f.scrollLeft?f.scrollLeft:0,c=c.scrollTop?c.scrollTop:f.scrollTop?f.scrollTop:0);b=this.initPos={x:b,y:c};this.startTime=(new Date).getTime();if(d&&!a.innerHTML)a.innerHTML=" &nbsp; ";c={r:0,l:0,t:0,b:0};f=a;do c.l+=f.offsetLeft,f=f.offsetParent;while(f!==null);c.r=c.l+a.offsetWidth;f=a;do c.t+=f.offsetTop,f=f.offsetParent;while(f!==null);c.b=c.t+a.offsetHeight;if(d&&a.innerHTML!=" &nbsp; ")a.innerHTML=
"";if(c.t+g.h>e.h)c.t=e.h-g.h;if(c.l+g.w>e.w)c.l=e.w-g.w;if(typeof j.duration=="function")this.opt.duration=j.duration.call(this,c.t-b.y,c.l-b.x)||1;j.onStart&&j.onStart.call(this);this.tgtPos=c;clearTimeout(this.nextStep);this.frame()},frame:function(){var a=this,h=new Date,d,b,g,e,c;d=a.opt;b=a.initPos;g=a.tgtPos;h=h.getTime();h-=a.startTime;c=Math.min(h,d.duration);e=n(b.x,g.l,d.duration,c,d.ease);b=n(b.y,g.t,d.duration,c,d.ease);i.scrollTo(e,b);d.onScroll&&d.onScroll.call(a,c/d.duration);h>=d.duration||
e===g.l&&b===g.t?(i.location.hash=a.tgt.name,i.scrollTo(g.l,g.t),d.onFinish&&d.onFinish.call(a)):(clearTimeout(a.nextStep),a.nextStep=setTimeout(function(){a.frame()},1))},applyTo:function(a,h){typeof a.length===l&&(a=[a]);var d,b,g,e,c=a.length;d=i.location;var f=d.href.replace(d.hash,"");for(b=0;b<c;b++)if(d=a[b],g=d.href.match(/#.+/))if(g=g[0].substring(1),e=d.href.replace(d.hash,""),e==f&&(g=k.getElementsByName(g)[0]))m(d,"click",o(function(a,b,c){a.goTo(b,c)},this,g,h)),m(d,"click",function(a){a=
a||event;a.preventDefault?a.preventDefault():a.returnValue=!1})},auto:function(a){this.applyTo(k.getElementsByTagName("a"),a)}}})(window,document);scroller.auto();
