  // Scrollers width here (in pixels)
  var scrollerwidth="100%"

  // Scrollers height here
  var scrollerheight="103px" //127


  // Change nothing below!

  var copyspeed=1
  var iedom=document.all||document.getElementById
  var actualheight=''
  var cross_scroller, cross_scroller2;
  var newsdata;
  var currentpos=0;
  var indent_Y=150;  		// Indent from top border screen
  var coorY;
  var moving = true;


  function setup(event) {
      coorY = event.clientY - indent_Y;
  }

  function populate(){
  
    if (iedom){
        newsdata = document.getElementById("news_data").innerHTML;
        cross_scroller=document.getElementById?document.getElementById("iescroller"):document.all.iescroller
        cross_scroller.style.top=1+"px"
        cross_scroller.innerHTML=newsdata
        actualheight=cross_scroller.offsetHeight
    }
    lefttime=setInterval("scrollscroller()",40)
  }


  window.onload=populate

  function scrollscroller(){
    if (iedom){
    
        if (moving == false) {
	        if (coorY > parseInt(scrollerheight)-17){
	            if (parseInt(cross_scroller.style.top)>(actualheight*(-1) + parseInt(scrollerheight) )){
	                cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px";
	            } else {
	                cross_scroller.style.top=cross_scroller.style.top;
	            }
	        }
	        
	        if (coorY < 17){
	            if (parseInt(cross_scroller.style.top)<1 ){
	                cross_scroller.style.top=parseInt(cross_scroller.style.top)+copyspeed+"px";
	            } else {
	                cross_scroller.style.top=cross_scroller.style.top;
	            }
	        }
        } else
        if (moving == true) {
        
                 if (parseInt(cross_scroller.style.top)==(actualheight*(-1)+8) + parseInt(scrollerheight)){
                     cross_scroller.innerHTML=cross_scroller.innerHTML+newsdata
                 }
	        if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8)){
	            cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px";

	        } else {
		   cross_scroller.innerHTML=newsdata
		   cross_scroller.style.top=8+"px"
	            //cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
	        }
        }    
    }
  }

  function showNews() {
      with (document){
          if (iedom){
              write('<div style="position:relative; left:0px; width:'+scrollerwidth+';height:'+scrollerheight+'; overflow:hidden; scroll:no; padding:0px; margin:0;"  onMouseMove="setup(event)" onMouseover="moving=false" onMouseout="moving=true" >')
              write('<div style="position:absolute;right:0px;top:0px;"><img src="/images/scrolling.gif"></div>')
              write('<div id="iescroller" style="position:relative;left:0px;top:0px;width:; padding-right:23;">')
              write('</div></div>')
          }
      }
  }
  
  function clock_form() {
  	 day=new Date()
  	 clock_f=day.getHours()+":"+day.getMinutes()+":"+day.getSeconds()
  	 document.form.f_clock.value=clock_f
     id=setTimeout("clock_form()",100)
  }
