/*
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
    
timerID = null;
        
function ScrollUp(speed){
    	if(document.getElementById){
        	if(parseInt(txt.style.top) < 0){
        		txt.style.top = parseInt(txt.style.top) + speed + "px";
		}
        	timerID = setTimeout("ScrollUp("+speed+")",30)
    	}
}

function ScrollDown(speed){
    	if(document.getElementById){                        
        	if(parseInt(txt.style.top) > cnt.offsetHeight - txt.offsetHeight){ 
        		txt.style.top = parseInt(txt.style.top) - speed + "px";
		}
        	timerID = setTimeout("ScrollDown("+speed+")",30)
    	}
}

function ScrollStop(){
    	if(document.getElementById){
        	clearTimeout(timerID);
    	}
}

function ScrollInit() {
   	if (document.getElementById) {
        	cnt = document.getElementById("newsBody");
        	txt = document.getElementById("newsBodyCont");
        	txt.style.top = 0;
    	}
}

function NewsChange(boxID, bdColor, bgColor){
	if (document.getElementById){
		newsObj = document.getElementById(boxID);
		newsObj.style.backgroundColor = bgColor;
		newsObj.style.borderColor = bdColor;
	}
}

