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 = 350;

var theHeight = 120;

var theWidth = 165;

var theLeft = 50;

var toClip = 225;


function scrollNews( newsDiv, toMove ) {

//if (newsDiv.toString()=='NO')
//{
//alert(toMove);
//newsDiv='news';
/////toMove=document.getElementById('ctl00_ContentPlaceHolder1_HFtm').value;
//theDiv = getObject( newsDiv.toString() );

////for(i=0;;i++)
////{
////i=i;
////}
//setTimeout("scrollNews('news',"+toMove+"),10000");
////clearTimeout();
//}
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 - 20 ) ) {

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);
document.getElementById('ctl00_ContentPlaceHolder1_HFtm').value = toMove;
setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 75);

}
