var ImgScrollHeight=130; 
var stopscroll=false; 
var preTop=0;
var currentTop=0;
function ImgScrollInit()
{
  with(ImgScroll)
  { 
    style.width=0; 
    style.height=ImgScrollHeight; 
    style.overflowX="visible"; 
    style.overflowY="hidden"; 
    noWrap=true; 
    onmouseover=new Function("stopscroll=true"); 
    onmouseout=new Function("stopscroll=false"); 
  } 
  ImgScrollLoad() ;
}

function ImgScrollLoad()
{ 
  templayer.innerHTML=""; 
  while(templayer.offsetHeight<ImgScrollHeight){ 
    templayer.innerHTML+=ImgScroll.innerHTML; 
  } 
  ImgScroll.innerHTML=templayer.innerHTML+templayer.innerHTML; 
  setInterval("scrollUp()",100); 
} 
function scrollUp(){ 
  if(stopscroll==true) return; 
  preTop=ImgScroll.scrollTop; 
  ImgScroll.scrollTop+=1; 
  if(preTop==ImgScroll.scrollTop){ 
    ImgScroll.scrollTop=templayer.offsetHeight-ImgScrollHeight; 
    ImgScroll.scrollTop+=1; 
  } 
} 