// JavaScript Document
//- Original:  Dion (yobo42@hotmail.com) -->
// Web Site:  http://www.iinet.net.au/~biab/ -->

// This script and many more are available free online at -->
// The JavaScript Source!! http://javascript.internet.com -->


// change this to where you store the blank.gif image
var blank = "images/spacer.gif";

 topedge = 0;  // location of news box from top of page
 leftedge = 0;  // location of news box from left edge
 boxheight = 120;  // height of news box
 boxwidth = 160;  // width of news box
 scrollheight = 300; // total height of all data to be scrolled
 scrollspeed = 100; //  number of milliseconds 1000th of a second to waith before shifting up 
 scrollshift = 1; 	//  number of pixels to shift up by. 
 					//	Small number means smoother (but slower) scrolling

 
var scrollerTime

var startingPoint = 0

function scrollnews(cliptop) {
	if ((obj=MM_findObj('news'))!=null) {
		  if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=4)) {
								
				if (obj.style) {
					obj=obj.style; 
				}
				obj.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
				obj.pixelLeft = leftedge;
				obj.pixelTop = topedge - cliptop;

				obj.clip.top = cliptop;
				obj.clip.bottom = cliptop + boxheight;
				obj.clip.left = 0;
				obj.clip.right = boxwidth + leftedge;
				obj.left = leftedge;
//				obj.top = topedge - cliptop;
				
			}
			else { 
				if (obj.style) {
					obj=obj.style; 
					obj.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
					obj.pixelLeft = leftedge;
					obj.pixelTop = topedge - cliptop;
				}
			}
			
	cliptop = (cliptop + scrollshift) % (scrollheight + boxheight);
	startingPoint = cliptop ;
	obj.visibility='visible';
	scrollerTime = setTimeout("scrollnews(" + cliptop + ")", scrollspeed);
	}
}

function pauseScroller(){
	window.clearTimeout(scrollerTime) ;
}

function continueScroller(){
	scrollnews(startingPoint);
}