﻿<!-- HIDE CODE

var scrollspeed		= "1"		// SET SCROLLER SPEED 1 = SLOWEST
var speedjump		= "60"		// 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		= "2px"		// TOP SPACING FIRST TIME SCROLLING
var frameheight		= "100px"	// 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()
{
    dataobj=document.all? document.all.NewsDiv : document.getElementById("NewsDiv")
    dataobj.style.top=topspace
    setTimeout("HeightData()",( startdelay * 1000 ))
}

function ScrollNewsDiv()
{
    var topVal = dataobj.style.top.replace("px", "");
    //document.write(topVal);
    dataobj.style.top= (parseInt(topVal)-(scrollspeed)) + "px"
    if (parseInt(topVal)<AreaHeight*(-1)) {
        dataobj.style.top=frameheight;
        setTimeout("ScrollNewsDiv()",( nextdelay * 1000 ))
    }
    else {
        setTimeout("ScrollNewsDiv()",speedjump)
    }
}

// JScript File

