var stop1=0; stop2=0; stop3=0; stop4=0; stopBD=0;

function checkBrowser()
{
	if (document.all)
	{
		browser="Microsoft Internet Explorer";
		if ((parseInt(navigator.appVersion) >= 4))
		{
			browser=navigator.appName+" "+navigator.userAgent;
			browcode="msie";
		}
		else
		{
		alert("Please forgive this annoying alert, but this site does not recognize the browser you are using and therefore may not work as expected.");
		}
	}
	else if (document.layers)
	{
		browser="Netscape Navigator";
		if ((parseInt(navigator.appVersion) >= 4))
		{
			browser+=navigator.appVersion;
			browcode="nav4";
		}
		else
		{
		alert("Please forgive this annoying alert, but this site does not recognize the browser you are using and therefore may not work as expected.");
		}
	}
	else if (document.getElementById)
	{
		browser="Netscape "+navigator.userAgent;
		browcode="net6";
	}
	else
	{
		alert("Please forgive this annoying alert, but this site does not recognize the browser you are using and therefore may not work as expected.");
	}
}

function starttitle()
{
	ystep1=1; ystop1=368;
	ystep2=1; ystop2=358;
	ystep3=1; ystop3=358;
	elem1="text";
	elem2="buttons1";
	elem3="buttons2";
	GetID1();
	GetID2();
	GetID3();
	RollTitle1();
	RollTitle2();
	RollTitle3();
}

function GetID1()
{
	gid1 = (browcode=="nav4") ? eval("document." + elem1) : document.getElementById(elem1).style;
	return gid1;
}

function GetID2()
{
	gid2 = (browcode=="nav4") ? eval("document." + elem2) : document.getElementById(elem2).style;
	return gid2;
}

function GetID3()
{
	gid3 = (browcode=="nav4") ? eval("document." + elem3) : document.getElementById(elem3).style;
	return gid3;
}

function GetIDbuttons(name)
{
	gidB = (browcode=="nav4") ? eval("document." + name) : document.getElementById(name).style;
	return gidB;
}

function RollTitle1()
{
	if (parseInt(gid1.top) != ystop1)
	{
		npy = parseInt(gid1.top);
		gid1.top = npy + ystep1;
		titled1=window.setTimeout("RollTitle1()", 1);
	}

	if ((parseInt(gid1.top) == ystop1)&&(stop1==0))
	{
		ystep1=-1; ystop1=360;
		stop1=1
		RollTitle1();
	}

	if ((parseInt(gid1.top) == ystop1)&&(stop1==1))
	{
		window.clearTimeout(titled1);
	}
}

function RollTitle2()
{
	if (parseInt(gid2.top) != ystop2)
	{
		npy = parseInt(gid2.top);
		gid2.top = npy + ystep2;
		titled2=window.setTimeout("RollTitle2()", 1);
	}

	if ((parseInt(gid2.top) == ystop2)&&(stop2==0))
	{
		ystep2=-1; ystop2=350;
		stop2=1
		RollTitle2();
	}

	if ((parseInt(gid2.top) == ystop2)&&(stop2==1))
	{
		window.clearTimeout(titled2);
	}
}

function RollTitle3()
{
	if (parseInt(gid3.top) != ystop3)
	{
		npy = parseInt(gid3.top);
		gid3.top = npy + ystep3;
		titled3=window.setTimeout("RollTitle3()", 1);
	}

	if ((parseInt(gid3.top) == ystop3)&&(stop3==0))
	{
		ystep3=-1; ystop3=350;
		stop3=1
		RollTitle3();
	}

	if ((parseInt(gid3.top) == ystop3)&&(stop3==1))
	{
		window.clearTimeout(titled3);
		stop3=2;
	}
}

function buttondrop(name)
{
	if (stop3==2)
	{
		ystepBD=5; ystopBD=355;
		GetIDbuttons(name);
		if (parseInt(gidB.top) != ystopBD)
		{
			npy = parseInt(gidB.top);
			gidB.top = npy + ystepBD;
			titledBD=window.setTimeout("buttondrop()", 1);
		}

		if (parseInt(gidB.top))
		{
			window.clearTimeout(titledBD);
			stopBD=1
		}
	}
}

function buttonlift(name)
{
	if ((stop3==2)&&(stopBD==1))
	{
		ystepBL=-5; ystopBL=350;
		GetIDbuttons(name);
		if (parseInt(gidB.top) != ystopBL)
		{
			npy = parseInt(gidB.top);
			gidB.top = npy + ystepBL;
			titledBL=window.setTimeout("buttonlift()", 1);
		}

		if (parseInt(gidB.top))
		{
			window.clearTimeout(titledBL);
		}
	}
}