function getObject( obj ) {

	var strObj

	if ( document.all ) {
		strObj = document.all.item( obj );
	}	else if ( document.getElementById ) {
			strObj = document.getElementById( obj );
		}

	return strObj;

}

var theTop = 370;
var theHeight = 55;
var theWidth = 350;
var theLeft = 199;
var toClip = 55;
var TimeId = null;
var guardatoMove;
var guardanewsDiv;

function scrollNews( newsDiv, toMove ) {

	theDiv = getObject( newsDiv.toString() );

	if ( theDiv == null ) { return; }

	if ( document.layers ) {
		theDiv.clip.top = toMove;
		theDiv.clip.bottom = toMove + toClip;
		theDiv.top = theTop - toMove;
	}	else {
			theDiv = theDiv.style;
			theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
			theDiv.top = theTop - toMove + 'px';
		}

	if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 6) ) {
		toMove = 0;
		if ( document.layers ) {
			theDiv.clip.top = theTop;
			theDiv.clip.bottom = toClip;
			theDiv.top = theTop
		}	else {
				theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
				theDiv.top = theTop + 'px';
			}
	}

	toMove = (toMove + 1);
	guardatoMove = toMove;
	guardanewsDiv = newsDiv;
	TimeId = setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100);

}

function StopScroll ()	{
	clearTimeout(TimeId);
}

function RestartScroll ()	{
	TimeId = setTimeout("scrollNews('" + guardanewsDiv + "'," + guardatoMove + ")", 100);
}

