var checker=0;

	
	button3=new Image();
	button4=new Image();
	button5=new Image();
	button6=new Image();
	button7=new Image();
	button8=new Image();
	button9=new Image();
	button10=new Image();


	button3.src="buttons/buttonon1.gif";
	button4.src="buttons/buttonon2.gif";
	button5.src="buttons/buttonon3.gif";
	button6.src="buttons/buttonon4.gif";
	button7.src="buttons/buttonon5.gif";
	button8.src="buttons/buttonon6.gif";
	button9.src="buttons/buttonon7.gif";
	button10.src="buttons/buttonon8.gif";


    
	function cap1()
		{
        openpopup = window.open("popcap1.htm","","resizable=0,width=500,height=150");
		}

	function cap2()
		{
        openpopup = window.open("popcap2.htm","","resizable=0,width=500,height=150");
		}

	function cap3()
		{
        openpopup = window.open("popcap3.htm","","resizable=0,width=500,height=150");
		}

	function cap4()
		{
        openpopup = window.open("popcap4.htm","","resizable=0,width=500,height=165");
		}

	function cap5()
		{
        openpopup = window.open("popcap5.htm","","resizable=0,width=500,height=165");
		}

	function cap6()
		{
        openpopup = window.open("popcap6.htm","","resizable=0,width=500,height=130");
		}

	function cap7()
		{
        openpopup = window.open("popcap7.htm","","resizable=0,width=500,height=120");
		}

	function cap8()
		{
        openpopup = window.open("popcap8.htm","","resizable=0,width=500,height=180");
		}

	function cap9()
		{
        openpopup = window.open("popcap9.htm","","resizable=0,width=500,height=195");
		}

	function cap10()
		{
        openpopup = window.open("popcap10.htm","","resizable=1,width=500,height=235");
		}

	function cap11()
		{
        openpopup = window.open("popcap11.htm","","resizable=0,width=500,height=130");
		}

	function cap12()
		{
        openpopup = window.open("popcap12.htm","","resizable=0,width=500,height=150");
		}

	function cap13()
		{
        openpopup = window.open("popcap13.htm","","resizable=0,width=500,height=160");
		}

	function newsclip1()
		{
        openpopup = window.open("popnewsclip1.htm","","resizable=0,width=600,height=380");
		}

	function aXD1()
		{
        openpopup = window.open("pop/aXD1.htm","","resizable=0,width=450,height=303");
		}

	function aXD2()
		{
        openpopup = window.open("pop/aXD2.htm","","resizable=0,width=450,height=303");
		}

	function aXD3()
		{
        openpopup = window.open("pop/aXD3.htm","","resizable=0,width=450,height=303");
		}

	function aXD4()
		{
        openpopup = window.open("pop/aXD4.htm","","resizable=0,width=450,height=303");
		}

	function army48()
		{
        openpopup = window.open("pop/army48.htm","","resizable=0,width=450,height=340");
		}

	function army53()
		{
        openpopup = window.open("pop/army53.htm","","resizable=0,width=450,height=340");
		}

	function army55()
		{
        openpopup = window.open("pop/army55.htm","","resizable=0,width=450,height=340");
		}

	function armyND()
		{
        openpopup = window.open("pop/armyND.htm","","resizable=0,width=450,height=340");
		}



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 Eshift(name)
{
	if ((checker == "S")||(checker == "O"))
	{
		elem = name;
		ystep=0; ystop=215; xstep=800; xstop=0;
		GetID();
		RollTitle();
	}
} 

function Rshift(name)
{
	if ((checker == "S")||(checker == "O"))
	{
		elem = name;
		ystep=0; ystop=215; xstep=-800; xstop=-800;
		GetID();
		RollTitle();
	}
}

function starttitle()
{
	xstep=0; xstop=180; ystep=10; ystop=150;
	elem="title";
	GetID();
	RollTitle();
}

function GetID()
{
	gid = (browcode=="nav4") ? eval("document." + elem) : document.getElementById(elem).style;
	return gid;
}

function GetCRID()
{
	gidCR = (browcode=="nav4") ? eval("document." + elemCR) : document.getElementById(elemCR).style;
	return gidCR;
}

function RollCaption()
{
	if (parseInt(gidCR.left) != xstopCR)
	{
		npx = parseInt(gidCR.left);
		gidCR.left = npx + xstepCR;
		titledCR=window.setTimeout("RollCaption()", 1);
	}

	if (parseInt(gidCR.left) == xstopCR)
	{
		checker="S"
		window.clearTimeout(titledCR);
	}
}

function RollTitle()
{
	if ((parseInt(gid.left) != xstop)||(parseInt(gid.top) != ystop))
	{
		npx = parseInt(gid.left);
		gid.left = npx + xstep;
		npy = parseInt(gid.top);
		gid.top = npy + ystep;
		titled=window.setTimeout("RollTitle()", 1);
	}

	if ((parseInt(gid.top) == ystop)&&(checker==0))
	{
		ystep=-2; ystop=70;
		checker=1
		RollTitle();
		xstepCR=25; xstopCR=20;
		elemCR="caption";
		GetCRID();
		RollCaption();
	}

	if ((parseInt(gid.top) == ystop)&&(checker==1))
	{
		window.clearTimeout(titled);
	}
}


