// JavaScript Document


         var
            flag=0, timer=null,
            scrwid, scrtop=0, speed=0.5,
            speedmax=2, speedmin=0.5,
            inner, innerhei, cont, pause
         ;
         function scrollit(dir) {
            if(dir=='down' && scrtop*1>=scrhei-innerhei) {
               scrtop-=speed;
               inner.style.top=scrtop+'px';
            }
            if(dir=='up' && scrtop*1<=0) {
               scrtop+=speed;
               inner.style.top=scrtop+'px';
            }
            timer=window.setTimeout("scrollit('"+dir+"');",1);
         }
         function scrclear() {window.clearTimeout(timer);}
         function getParams() {
            scrhei=document.getElementById('scrcontainer').offsetHeight;
            innerhei=document.getElementById('scrinner').offsetHeight;
			cont=document.getElementById('scrcontainer');
			pause=document.getElementById('pause');
			cont.onmouseover = function() {scrclear();}
			cont.onmouseout = function() {scrollit('down');}
			pause.onmouseover = function() {scrclear();}
			pause.onmouseout = function() {scrollit('down');}
            inner=document.getElementById('scrinner');
            var arrup=document.getElementById('arrup');
            var arrdown=document.getElementById('arrdown');
            // Upward
            arrup.onmouseover=function() {
				scrclear();
				scrollit('up');
			}
            arrup.onmouseout=function() {scrclear();scrollit('down');}
            arrup.onmousedown=function() {speed=speedmax;}
            arrup.onmouseup=function() {speed=speedmin;}
            // Downward
            arrdown.onmouseover=function() {scrclear();scrollit('down');}
            arrdown.onmouseout=function() {scrclear();scrollit('down');}
            arrdown.onmousedown=function() {speed=speedmax;}
            arrdown.onmouseup=function() {speed=speedmin;}
         }
