curpos=150; //start from bottom
direct=0;
speed =0.5;
len   =350;   //2550;		//adjust the length of the news.
var scrollTimer;
function itsIE(){
	if(navigator.appName=='Netscape'){
		return false;
	}else{
		return true;
	}
}
function scrollWin(where){
	direct=where;
	if(((curpos!=0)&&(direct!=-1))||((curpos!=-len)&&(direct!=1))){
		curpos+=(speed*direct);
		moveLyr('contLyr',curpos,0)
		scrollTimer=setTimeout('scrollWin('+direct+')',1);
	}
	else //joey's code to rescroll
	{
		//scrollWin(-direct);
		curpos = 150; //start from bottom
		scrollWin(+direct);
	}
}
function scrollStop(){
	clearTimeout(scrollTimer);
}
function moveLyr(who,xpos,ypos){
	if(itsIE()){
		//doc=document.all[who].style;
		doc=document.getElementById(who).style; 
	}else{
		doc=document.layers['maskLyr'].document[who];
	}
	doc.top=xpos;
	doc.left=ypos;
}