// startScroll('DivID',"the Text",ScrollInReverse,speed,step);
// scroll speed (bigger = faster)	  Step= distance each click moves it.
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,dR,step){
	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,dR,speed,step){
	var scr=document.getElementById(sN); 
	var sW = objWidth(scr)-6; 
	var sH = objHeight(scr); 
	scr.innerHTML = '<div id="'+sN+'in" style="position:absolute; left:3px; 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,dR,step);},1000/speed);
}