var scrollspeed		= "5"		// SET SCROLLER SPEED 1 = SLOWEST
var speedjump		= "600"		// ADJUST SCROLL JUMPING = RANGE 20 TO 40
var startdelay 		= "1" 		// START SCROLLING DELAY IN SECONDS
var nextdelay		= "0" 		// SECOND SCROLL DELAY IN SECONDS 0 = QUICKEST
var topspace		= "0px"		// TOP SPACING FIRST TIME SCROLLING
var frameheight		= "200px"	// IF YOU RESIZE THE WINDOW EDIT THIS HEIGHT TO MATCH

current = (scrollspeed)


function HeightData(){
	AreaHeight = dataobj.offsetHeight;
	if (AreaHeight==0){
		setTimeout("HeightData()",( startdelay * 1000 ));
	}
	else {
		ScrollNewsDiv();
	}
}

function NewsScrollStart(){
	if (document.getElementById("NewsDiv") == null) return;
	dataobj = document.getElementById("NewsDiv");
	dataobj.style.marginTop = topspace;
	setTimeout("HeightData()",( startdelay * 1000 ));
}

function ScrollNewsDiv(){
		dataobj.style.marginTop = String(parseInt(dataobj.style.marginTop) - parseInt(scrollspeed)) + "px";
		if (parseInt(dataobj.style.marginTop) < AreaHeight*(-1)) {
			dataobj.style.marginTop = frameheight;
			setTimeout("ScrollNewsDiv()",( nextdelay * 1000 ));
	}
	else {
		setTimeout("ScrollNewsDiv()",speedjump);
	}
}

