<!--

// Original:  news scroller v2.0 rev 2 30mar00
// Original:  Dion (biab@iinet.net.au)
// Web Site:  http://www.iinet.net.au/~biab 

// blank is the location of an invisible gif image.
var blank = "blank.gif";

//floating = true; // place news scroller anywhere on the page
topedge = 248;  // location of news box from top of page when floating
leftedge = 214;  // location of news box from left edge when floating

floating = false; // false looks for the DIV named 'place'
// DIV place can be stored within a table cell to allow accurate
// placement of the news scroller
// floating = true; // place the news scroller anywhere on the page

boxheight = 200;  // height of news box
boxwidth = 310;  // width of news box
scrollheight = 690; // total height of all data to be scrolled
speed = 2; // scrolling speed (line step size)
delay = 150; // .0150 second delay before next line srolled (1000=1sec)
iterate = -1; // Number of times to scroll (-1=non-stop)
replace = ""; // optional replacement html file when iterations complete
source=""; // name of HTML page to load and replace the news.
// the original news DIV must be inplace but can contain anything

function scrollnews(cliptop)
 { if (document.layers)
    { newsDiv = document.news;
      nDc=newsDiv.clip;
      nDc.top = cliptop;
      nDc.bottom = cliptop + boxheight;
      nDc.left = 0;
      nDc.right = boxwidth + leftedge;
      newsDiv.left = (floating)?leftedge:document.place.pageX
      newsDiv.top = (floating)?topedge - cliptop:document.place.pageY-cliptop; }
   else
    { newsDiv = news.style;
      newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
      newsDiv.pixelLeft = (floating)?leftedge:document.all.place.offsetLeft;
      newsDiv.pixelTop = (floating)?topedge - cliptop:document.all.place.offsetTop-cliptop; };
   if(source>"")
    { newsDiv.src=source; source=""; };
   cliptop+=speed;
   if(cliptop>(scrollheight+boxheight))
    { cliptop=0; iterate--; };
   newsDiv.visibility='visible';
   if(iterate!=0) { setTimeout("scrollnews(" + cliptop + ")", delay); }
   else { if(replace!="") { source=replace; replace=""; scrollnews(0); }; };
 };

// -->

