function addScrollers() {
// code each scroller as follows:
// startScroll('id of scroller div','content of scroller');
startScroll('div_scrolling_news','<h1 class="content" style="text-align:justify">I’ve never had a project run so smoothly.  Thanks for all <br/> of your hard work!”  -Branch <br/> “I am very pleased with the high amount of quality, accuracy, and cost effectiveness that I see <br/>in my project.”  -Eden Brown <br/> “Thank you so much. I am really impressed with your work.  You can expect my business in the future.”<br/>  -Lucky Lan <br/>. “I appreciate your attention to detail and your dedication to complete the work on time.”<br/>  -John Howard <br/>. “Your communication skills are unmatched.  It’s been a  relief working with a company <br/> like yours.” – James Smith <br/></h1>');
}


var speed=15; // scroll speed (bigger = faster)
var dR=false; // reverse direction
var pause = false;
// Vertical Scroller Javascript
// copyright 24th September 2005, by Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the code below (as well as these
// comments) is used without any alteration
var step = 2; 
function objWidth(obj) {
	if(obj.offsetWidth)
		return obj.offsetWidth; 
	if (obj.clip) 
		return obj.clip.width; 
	return 0;
} 
function objHeight(obj) {
	if(obj.offsetHeight) 
		return obj.offsetHeight; 
	if (obj.clip) 
		return obj.clip.height; 
	return 0;} 
	
function scrF(i,sH,eH){
	if(!pause){
		var x=parseInt(i.top)+(dR? step: -step); 
		if(dR && x>sH)x=-eH;else if(x<2-eH)x=sH;i.top = x+'px';
	}
}
function startScroll(sN,txt){
	document.getElementById(sN).onmouseover = function(){
			pause = true;
		};
	document.getElementById(sN).onmouseout = function(){
			pause = false;
		};

	var scr=document.getElementById(sN); 
	var sW = objWidth(scr)-6; 
	var sH = objHeight(scr); 
	scr.innerHTML = '<div id="'+sN+'in" style="position:absolute; width:'+sW+';">'+txt+'<\/div>'; 
	var sTxt=document.getElementById(sN+'in'); 
	var eH=objHeight(sTxt); sTxt.style.top=(dR? -eH : sH)+'px';
	sTxt.style.clip='rect(0,'+sW+'px,'+eH+'px,0)'; 
	setInterval(function() { scrF(sTxt.style,sH,eH);},1000/speed);
						}
window.onload = addScrollers;

