var icefable1=document.getElementById("icefable1");
var marqueesHeight=icefable1.getElementsByTagName("div")[0].offsetHeight;
marqueesHeight = 200;
var stopscroll=false;

with(icefable1){
   //style.width=150;
   style.height=marqueesHeight;
   style.overflowX="visible";
   style.overflowY="hidden";
   noWrap=true;
   onmouseover=new Function("stopscroll=true");
   onmouseout=new Function("stopscroll=false");
  }

  preTop=0; currentTop=marqueesHeight; stoptime=0;
  icefable1.innerHTML+=icefable1.innerHTML;

function init_srolltext(){
  icefable1.scrollTop=0;
  setInterval("scrollUp()",10);

}
init_srolltext();
function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==marqueesHeight+1)
  {
   stoptime+=1;
   currentTop-=1;
  if(stoptime==250){ currentTop=0; stoptime=0;
  }
  
  }
  else {  
   preTop=icefable1.scrollTop;
   icefable1.scrollTop+=1;
   if(preTop==icefable1.scrollTop){
     icefable1.scrollTop=0;
     icefable1.scrollTop+=1;
	 currentTop=1;

   }
  }
//OK.innerText="icefable1.offsetHeight:"+icefable1.offsetHeight+"__________icefable1.scrollTop:"+icefable1.scrollTop+"____currentTop:"+currentTop+"___stoptime:"+stoptime+"____preTop:"+preTop;
}
