//if (navigator.appName == "Microsoft Internet Explorer")	IE4=1;
//if (navigator.appName == "Netscape") NN4 = 1;


function ScrollNow()
{
	if (IE4)
	{
		//clip = rect(top,right,bottom,left)

		base.style.clip = 'rect(0,600,400,0)';
		scr.style.clip = 'rect(0,500,' + IEcBottom + ',0)'
		IEcBottom+=MinusVal;
		scr.style.pixelTop=ot

		if ((ot*-1) > (ScrollHeight) )
		{
			scr.style.top = ScrolStartAt;
			ot=ScrolStartAt;
			IEcBottom=20;
			scr.style.clip = 'rect(0,500,' + IEcBottom + ',0)'
		}

	}
	if (NN4)
	{
		window.document.layers[0].document.layers[0].top = ot;
		if ((ot*-1) > ScrollHeight )
		{
			window.document.layers[0].document.layers[0].top = ScrolStartAt;
			ot=ScrolStartAt;
		}
		
	}

	if (NewsShown == 0 )
	{
		if (IE4)
			scr.style.visibility="visible"

		if (NN4)
		{
		
		/*window.document.layers[0].document.layers[0].clip.left   = 0;
		window.document.layers[0].document.layers[0].clip.top    = 0;
		window.document.layers[0].document.layers[0].clip.right  = 600;
		window.document.layers[0].document.layers[0].clip.bottom = 100;
		*/

		var obj = eval("window.document.base.document.scr");
		obj.visibility="show"
		}
		NewsShown=1
	}

	ot=ot-MinusVal;
}
//--------------------------------------
function BodyLoad()
{	
	if (IE4)
	{
		var temps= '<font face="verdana" size="-1" color="#000000"><b>' + BreakNews + '</b></font>'
		scr.innerHTML = BreakNews;
		ScrollHeight = scr.scrollHeight;
	}

	if(NN4)
	{
		ChangeLayerValue(BreakNews);
		t=window.document.layers[0].document.layers[0].clip.top
		b=window.document.layers[0].document.layers[0].clip.bottom
		ScrollHeight = b-t
	}

	window.setInterval("ScrollNow()",700);
	window.setInterval("StartCount()",1000);
}
//-----------------------
function WriteScrollDivs()
{

if (IE4)
{
	data='<div id="base" style="position:absolute; width:220;top:300;left:540;height:60;">'
	data = data + '<div id="scr" style="position:absolute; width:215;top:0;left:0;height:60;color:black;visibility=hidden;"></div></div>'
	document.write(data);
}
if (NN4) 
{ 
	data='<layer id="base" width=220 top=300 left=540 height=40>'
	data=data + '<layer id="scr" width=215 top=0 left=0 height=40 visibility="hidden"></layer></layer>'
	document.write(data);
}
}
