var oStart=null;
var oScroll=null;
var oList=null;
var iInitTop=new Number(0);
var iInitHeight=new Number(0);
var iInitBottom=new Number(0);
var iTop=new Number(0);
var iClipTop=new Number(0);
var iClipRight=new Number(165);
var iClipBottom=new Number(200);
var iClipLeft=new Number(0);
function scrollActus() {
 //set new clip ...
 if(iClipTop == iInitHeight) {
  iTop=iInitTop+iInitBottom;
  iClipTop=0;
  iClipBottom=0;
 }
 
 //set div ...
 iTop-=1;
 if (iTop < iInitTop) iClipTop=iClipTop+1;
 iClipBottom+=1;
 oList.style.top=iTop+"px";
 oList.style.clip="rect("+iClipTop+(iClipTop>0?"px, ":", ")+iClipRight+(iClipRight>0?"px, ":", ")+iClipBottom+(iClipBottom>0?"px, ":", ")+"0)"; 
 //reset scroll... 
 if(iClipTop % 110 == 0 && iTop <= iInitTop && iClipTop < iInitHeight) {
  stopScroll();
  initScroll();
 }
}
function skipScroll(iDir) {
 stopScroll();
 if(iTop > iInitTop) {
  iTop=iInitTop;
  iClipTop=0;
  iClipBottom=iInitBottom;
 } else if (iDir < 0 && iTop < iInitTop) {
  var iInt=(iClipTop%110!=0)?iClipTop%110:110;
  iTop+=iInt;
  iClipTop-=iInt;
  iClipBottom-=iInt;
 } else if (iDir > 0 && iClipTop < iInitHeight - 110) {
  var iInt=(iClipTop%110!=0)?110 - iClipTop%110:110;
  iTop-=iInt;
  iClipTop+=iInt;
  iClipBottom+=iInt;
 }
 oList.style.top=iTop+"px";
 oList.style.clip="rect("+iClipTop+"px,"+iClipRight+"px,"+iClipBottom+"px,"+iClipLeft+"px)";
 initScroll();
}
function startScroll() {
 stopScroll();
  oScroll=window.setInterval(scrollActus,50);
} 
function stopScroll() {
 if(oScroll) window.clearInterval(oScroll);
 if(oStart) window.clearTimeout(oStart);
 oScroll=null;
 oStart=null;
}
function initScroll() {
 //init clipping ... set vars ... 
 if (oList==null) {
  oList=document.getElementById("actuList");
  if(oList.currentStyle) {
   iTop=parseInt(oList.currentStyle.top?oList.currentStyle.top:oList.currentStyle.getPropertyValue("top"));
   if(oList.currentStyle.getPropertyValue) var aClip=oList.currentStyle.getPropertyValue("clip").split(/[\(,\)]/);
   iClipTop=parseInt(oList.currentStyle.clipTop?oList.currentStyle.clipTop:aClip[1]);
   iClipRight=parseInt(oList.currentStyle.clipRight?oList.currentStyle.clipRight:aClip[2]);
   iClipBottom=parseInt(oList.currentStyle.clipBottom?oList.currentStyle.clipBottom:aClip[3]);
   iClipLeft=parseInt(oList.currentStyle.clipLeft?oList.currentStyle.clipLeft:aClip[4]);
  } else if(document.defaultView) {
   iTop=parseInt(document.defaultView.getComputedStyle(oList, '').getPropertyValue("top"));
   var aClip=document.defaultView.getComputedStyle(oList, '').getPropertyValue("clip").split(/[\(,\)]/);
   if(aClip.length==4) {
     iClipTop=parseInt(aClip[1]);
     iClipRight=parseInt(aClip[2]);
     iClipBottom=parseInt(aClip[3]);
     iClipLeft=parseInt(aClip[4]);
   }
  }
  iInitTop=iTop;
  iInitBottom=iClipBottom;
  iInitHeight=oList.offsetHeight;
  iInitHeight
 }
 oStart=window.setTimeout(startScroll,3000);
}
window.onload=initScroll; 
