var version = "other"
browserName = navigator.appName;   
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";

//向左滚动
function Marquee_Left_Begin(nWidth,nHeight)
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee style='bottom: 0px; font-weight: 100px; test-align: left; top: 0px' scrollamount='1' scrolldelay='10' behavior='loop' direction='left' border='0' height='"+nHeight+"' width='"+nWidth+"' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function Marquee_Left_End()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}

//向右滚动
function Marquee_Right_Begin(nWidth,nHeight)
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee style='bottom: 0px; font-weight: 100px; test-align: left; top: 0px' scrollamount='1' scrolldelay='10' behavior='loop' direction='Right' border='0' height='"+nHeight+"' width='"+nWidth+"' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function Marquee_Right_End()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}


//向上滚动
function Marquee_Up_Begin(nWidth,nHeight)
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee style='bottom: 0px; font-weight: 100px; test-align: left; top: 0px' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0'  height='"+nHeight+"' width='"+nWidth+"' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function Marquee_Up_End()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}

//向下滚动
function Marquee_Down_Begin(nWidth,nHeight)
{
	if (version == "e4" | version == "n3")
	{
		document.write("<marquee style='bottom: 0px; font-weight: 100px; test-align: left; top: 0px' scrollamount='1' scrolldelay='10' behavior='loop' direction='down' border='0'  height='"+nHeight+"' width='"+nWidth+"' onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function Marquee_Down_End()
{
	if (version == "e4" | version == "n3")
	{
		document.write("</marquee>")
	}
}