var stop1=0; stop2=0; stop3=0; stop4=0; stop5=0; stop6=0; stop7=0; stop8=0; stop9=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=2; ystop2=398;
	ystep3=1; ystop3=358;
	ystep4=1; ystop4=358;
	ystep5=1; ystop5=358;
	ystep6=2; ystop6=388;
	ystep7=2; ystop7=388;
	ystep8=2; ystop8=388;
	ystep9=2; ystop9=388;
	elem1="text1";
	elem2="text2";
	elem3="buttons1";
	elem4="buttons2";
	elem5="buttons3";
	elem6="buttons4";
	elem7="buttons5";
	elem8="buttons6";
	elem9="buttons7";
	GetID1();
	GetID2();
	GetID3();
	GetID4();
	GetID5();
	GetID6();
	GetID7();
	GetID8();
	GetID9();
	RollTitle1();
	RollTitle2();
	RollTitle3();
	RollTitle4();
	RollTitle5();
	RollTitle6();
	RollTitle7();
	RollTitle8();
	RollTitle9();
}

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 GetID4()
{
	gid4 = (browcode=="nav4") ? eval("document." + elem4) : document.getElementById(elem4).style;
	return gid4;
}

function GetID5()
{
	gid5 = (browcode=="nav4") ? eval("document." + elem5) : document.getElementById(elem5).style;
	return gid5;
}

function GetID6()
{
	gid6 = (browcode=="nav4") ? eval("document." + elem6) : document.getElementById(elem6).style;
	return gid6;
}

function GetID7()
{
	gid7 = (browcode=="nav4") ? eval("document." + elem7) : document.getElementById(elem7).style;
	return gid7;
}

function GetID8()
{
	gid8 = (browcode=="nav4") ? eval("document." + elem8) : document.getElementById(elem8).style;
	return gid8;
}

function GetID9()
{
	gid9 = (browcode=="nav4") ? eval("document." + elem9) : document.getElementById(elem9).style;
	return gid9;
}

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=390;
		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 RollTitle4()
{
	if (parseInt(gid4.top) != ystop4)
	{
		npy = parseInt(gid4.top);
		gid4.top = npy + ystep4;
		titled4=window.setTimeout("RollTitle4()", 1);
	}

	if ((parseInt(gid4.top) == ystop4)&&(stop4==0))
	{
		ystep4=-1; ystop4=350;
		stop4=1
		RollTitle4();
	}

	if ((parseInt(gid4.top) == ystop4)&&(stop4==1))
	{
		window.clearTimeout(titled4);
		stop4=2;
	}
}

function RollTitle5()
{
	if (parseInt(gid5.top) != ystop5)
	{
		npy = parseInt(gid5.top);
		gid5.top = npy + ystep5;
		titled5=window.setTimeout("RollTitle5()", 1);
	}

	if ((parseInt(gid5.top) == ystop5)&&(stop5==0))
	{
		ystep5=-1; ystop5=350;
		stop5=1
		RollTitle5();
	}

	if ((parseInt(gid5.top) == ystop5)&&(stop5==1))
	{
		window.clearTimeout(titled5);
	}
}

function RollTitle6()
{
	if (parseInt(gid6.top) != ystop6)
	{
		npy = parseInt(gid6.top);
		gid6.top = npy + ystep6;
		titled6=window.setTimeout("RollTitle6()", 1);
	}

	if ((parseInt(gid6.top) == ystop6)&&(stop6==0))
	{
		ystep6=-1; ystop6=380;
		stop6=1
		RollTitle6();
	}

	if ((parseInt(gid6.top) == ystop6)&&(stop6==1))
	{
		window.clearTimeout(titled6);
		stop6=2;
	}
}

function RollTitle7()
{
	if (parseInt(gid7.top) != ystop7)
	{
		npy = parseInt(gid7.top);
		gid7.top = npy + ystep7;
		titled7=window.setTimeout("RollTitle7()", 1);
	}

	if ((parseInt(gid7.top) == ystop7)&&(stop7==0))
	{
		ystep7=-1; ystop7=380;
		stop7=1
		RollTitle7();
	}

	if ((parseInt(gid7.top) == ystop7)&&(stop7==1))
	{
		window.clearTimeout(titled7);
		stop7=2;
	}
}

function RollTitle8()
{
	if (parseInt(gid8.top) != ystop8)
	{
		npy = parseInt(gid8.top);
		gid8.top = npy + ystep8;
		titled8=window.setTimeout("RollTitle8()", 1);
	}

	if ((parseInt(gid8.top) == ystop8)&&(stop8==0))
	{
		ystep8=-1; ystop8=380;
		stop8=1
		RollTitle8();
	}

	if ((parseInt(gid8.top) == ystop8)&&(stop8==1))
	{
		window.clearTimeout(titled8);
		stop8=2;
	}
}

function RollTitle9()
{
	if (parseInt(gid9.top) != ystop9)
	{
		npy = parseInt(gid9.top);
		gid9.top = npy + ystep9;
		titled9=window.setTimeout("RollTitle9()", 1);
	}

	if ((parseInt(gid9.top) == ystop9)&&(stop9==0))
	{
		ystep9=-1; ystop9=380;
		stop9=1
		RollTitle9();
	}

	if ((parseInt(gid9.top) == ystop9)&&(stop9==1))
	{
		window.clearTimeout(titled9);
		stop9=2;
	}
}

function buttondrop(name)
{
	if (stop9==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 ((stop9==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);
		}
	}
}