this.easyscroll=function(){var a="myContent";var b=[" "," ","Reset"];var c=["btnUp","btnDown","btnReset"];var d=5;var e=230;var f=document.getElementById(a);f.up=false;f.down=false;f.fast=false;var g=document.createElement("div");var h=f.parentNode;g.id="easyscroll";h.insertBefore(g,f);h.removeChild(f);g.style.position="relative";g.style.height=e+"px";g.style.overflow="hidden";f.style.position="absolute";f.style.top="0";f.style.left="0";g.appendChild(f);var i=new Array;var j=document.createElement("ol");j.id="easyscrollnav";for(var k=0;k<b.length;k++){var l=document.createElement("li");l.innerHTML=b[k];l.id=c[k];i.push(l);j.appendChild(l)}h.insertBefore(j,g);i[0].onmouseover=function(){f.up=true;this.className="over"};i[0].onmouseout=function(){f.up=false;this.className=""};i[1].onmouseover=function(){f.down=true;this.className="over"};i[1].onmouseout=function(){f.down=false;this.className=""};i[0].onmousedown=i[1].onmousedown=function(){f.fast=true};i[0].onmouseup=i[1].onmouseup=function(){f.fast=false};i[2].onmouseover=function(){this.className="over"};i[2].onmouseout=function(){this.className=""};i[2].onclick=function(){f.style.top="0px"};this.start=function(){var a;var b=f.offsetHeight;var c=f.offsetTop;var g=f.fast?2:1;if(f.down){a=b+c>e?c-d*g:c;f.style.top=a+"px"}if(f.up){a=c<0?c+d*g:c;f.style.top=a+"px"}};f.interval=setInterval("start()",50)};this.addEvent=function(a,b,c){if(a.attachEvent){a["e"+b+c]=c;a[b+c]=function(){a["e"+b+c](window.event)};a.attachEvent("on"+b,a[b+c])}else{a.addEventListener(b,c,false)}};addEvent(window,"load",easyscroll)
