var checker=0;

function buttonwrite()
{
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='index.htm'>Home Page</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='team.htm'>Meet the Team</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='join.htm'>Join NGA</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='records.htm'>Our World Records</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='resource.htm'>The Resource</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='contact.htm'>Contact Us</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='videolib.htm'>Video Library</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='q&a.htm'>Q&A with CHW</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='news.htm'>NGA News</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='events.htm'>Upcoming Events</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='heroes.htm'>True Heroes</a></li>");
	document.write("<img src='buttons/border.gif' /><br /><br />");
/*
	document.write("<img src='buttons/border.gif' /><br /><li><a class='button' href='comment.htm'>CHW Commentary</a></li>");
	document.write("<img src='buttons/border.gif' /><br />");

	document.write("<li><a class='button' href='response.htm'>Reader Response</a></li>");
	document.write("<img src='buttons/border.gif' /><br />");
*/
}

function resourcewrite()
{
	document.write("<li><a href='history-xd.htm'>A Brief History of Rifle Exhibition Drill</a></li>");
	document.write("<li><a href='specs.htm'>General Weapon Specifications</a></li>");
	document.write("<li><a href='logo.htm'>The NGA Logo Description</a></li>");
	document.write("<li><a href='+onx.htm'>The NGA Cross on Cross Description</a></li>");
	document.write("<li><a href='xdterm.htm'>NGA Exhibition Drill Terminology</a></li>");
	document.write("<li><a href='rank.htm'>The NGA XD Classification Ranks</a></li>");
	document.write("<li><a href='iaxd.htm'>The International Association of Exhibition Drillers (IAXD)</a></li>");
}

function SVL1buttonwrite()
{
	document.write("<input type='button' onclick='wrongbutton1()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton2()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton3()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton4()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton5()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton6()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='SVL2locate()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton7()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton8()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton9()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton10()' value='' style='width:400px; height:10px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbutton11()' value='' style='width:400px; height:10px;' /><br /><br />");
}

function SVL2buttonwrite()
{
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='check()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' />&nbsp;&nbsp;&nbsp;");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /> ");
	document.write("<input type='button' onclick='wrongbuttonSVL2()' value='' style='width:20px;' /><br />");
}

function SVL2locate()
{
	window.location="videolib-secret2.htm";
}

function wrongbuttonSVL2()
{
	alert("UNAUTHORIZED ACCESS!");
	alert("GO AWAY!");
	window.location="http://www.computerhope.com/jargon/u/unauacce.htm";
}

function bannerwrite()
{
	document.write("\"the gold standard in rifle exhibition drill\"<br />");
}

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 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 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);
	}
}

function check()
{
	var x=document.getElementById("fname").value;
	if (x=="Please let me in NGA2011")
	{
		window.location="kjuih8h8MKNBhbhGTRFDVGbggbGB0098jhhytdce3ett5tGGFGHHB.htm";
	}
	else
	{
		wrongbuttonSVL2();
	}
}


function wrongbutton1()
{
		alert("WRONG!!");
		window.location="http://www.darwinsrules.com/wp-content/uploads/2011/02/url-141.jpeg"
}

function wrongbutton2()
{
		alert("WRONG!!");
		window.location="http://www.darwinsrules.com/wp-content/uploads/2011/02/epic-fail21.jpg"
}

function wrongbutton3()
{
		alert("WRONG!!");
		window.location="http://4.bp.blogspot.com/-_q08kSf0vh0/TpwDLeLu-9I/AAAAAAAAByE/NItLzUMDb7s/s1600/Epic_Fail___Motivation_Poster_by_Echidna_kid.jpg"
}

function wrongbutton4()
{
		alert("WRONG!!");
		window.location="http://www.demoties.com/posters/fail/epic-fail-demotivational-poster-1220242871.jpg"
}

function wrongbutton5()
{
		alert("WRONG!!");
		window.location="http://www.demoties.com/posters/fail/epic-fail-sports-fail-epic-forehead-weak-retard-demotivational-poster-1206344902.jpg"
}

function wrongbutton6()
{
		alert("WRONG!!");
		window.location="http://1.bp.blogspot.com/_eaKbvlcIK10/SujEoiNEWVI/AAAAAAAAGUE/JjY9mx793EU/s1600/epic-fail-landscape-award-fail+(FAIL+Blog).jpg"
}

function wrongbutton7()
{
		alert("WRONG!!");
		window.location="http://3.bp.blogspot.com/_x3n87ZGCFno/S-VmOqyBttI/AAAAAAAAAIw/LoEinDB8XH8/s1600/beaker_epicfailure.jpg"
}

function wrongbutton8()
{
		alert("WRONG!!");
		window.location="http://funnysz.com/wp-content/uploads/2011/06/epic-fail.jpg"
}

function wrongbutton9()
{
		alert("WRONG!!");
		window.location="http://www.omgepic.com/pix/2011/01/epic_fail.jpg"
}

function wrongbutton10()
{
		alert("WRONG!!");
		window.location="http://www.omgepic.com/pix/2011/01/20090727002827780196-0-epic-fail.jpg"
}

function wrongbutton11()
{
		alert("WRONG!!");
		window.location="http://www.omgepic.com/pix/2011/01/fail.jpg"
}





