// JavaScript Document
marqueesHeight=162;
stopscroll=false;
icefable5.scrollTop=0;

with(icefable5){
  style.width=0;
  style.height=marqueesHeight;
  style.overflowX="visible";
  style.overflowY="hidden";
  noWrap=true;
  onmouseover=new Function("stopscroll=true");
  onmouseout=new Function("stopscroll=false");
}
preTop=0; currentTop=160; stoptime=0;

function init_srolltext(){
  icefable6.innerHTML="";
  icefable6.innerHTML+=icefable5.innerHTML;    
  icefable5.innerHTML=icefable6.innerHTML+icefable6.innerHTML;
  setInterval("scrollUp()",40);
}

function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==160)
  {
   stoptime+=1;
   currentTop-=1;
   if(stoptime==40) 
   {
    currentTop=0;
    stoptime=0;
   }
  }
  else {   
   preTop=icefable5.scrollTop;
   icefable5.scrollTop+=1;
   if(preTop==icefable5.scrollTop){
     icefable5.scrollTop=icefable6.offsetHeight-marqueesHeight;
     icefable5.scrollTop+=1;
   }
  }
}
init_srolltext();
