	<!--

		var ns4 = (document.layers);
		var ie4 = (document.all && !document.getElementById);
		var ie5 = (document.all && document.getElementById);
		var ns6 = (!document.all && document.getElementById);

		function showMenu(where) {
			if (ns4) {
				document.layers[where].style.visibility="visible";
			} else if (ie4) {
				document.all[where].style.visibility="visible";
			} else if (ie5 || ns6) {
				document.getElementById(where).style.visibility="visible";
			}
		}

		function hideMenu(where) {
			if (ns4) {
				document.layers[where].style.visibility="hidden";
			} else if (ie4) {
				document.all[where].style.visibility="hidden";
			} else if (ie5 || ns6) {
				document.getElementById(where).style.visibility="hidden";
			}
		}

		function SwapText(where, what) {
			if (ns4) {
				document.layers[where].innerHTML=what;
			} else if (ie4) {
				document.all[where].innerHTML=what;
			} else if (ie5 || ns6) {
				document.getElementById(where).innerHTML=what;
			}
		}

		function CheckEmail(dname,fname,msg) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var string1 = document[frmName][fldName].value;
			if ((string1.indexOf("@")==-1) || (string1.indexOf(".")==-1)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		}

		function CheckNull(dname,fname,msg) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var string1 = document[frmName][fldName].value;
			var string2 = string1.replace(/ /g, "");
			if (string2=="") {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		}

		function CheckDate(dname,fname,msg) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var string1 = document[frmName][fldName].value;
			if (string1.indexOf("/")==-1) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		        var dateArray = string1.split('/');
			if (dateArray.length !== 3) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			if ((isNaN(dateArray[0])) || (isNaN(dateArray[1])) || (isNaN(dateArray[2]))) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			var vMonth = dateArray[0];
			var vDay = dateArray[1];
			var vYear = dateArray[2];
			if ((vMonth > 12) || (vMonth < 1)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			if ((vDay < 1) || (vDay > 31)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			if (vMonth == 2) {
				var febMax = 28;
				var startYear = 1004;
				for (count = 0; count < 1000; count++) {
					startYear = startYear + 4;
					if (vYear == startYear) {
						febMax = 29;
						break;
					}
				}
				if (vDay > febMax) {
					alert(alertText);
					document[frmName][fldName].focus();
					return true;
				}
			}
			if ((vMonth == 4) || (vMonth == 6) || (vMonth == 9) || (vMonth == 11)) {
				if (vDay > 30) {
					alert(alertText);
					document[frmName][fldName].focus();
					return true;
				}
			}
			if ((vMonth == 1) || (vMonth == 3) || (vMonth == 5) || (vMonth == 7) || (vMonth == 8) || (vMonth == 10) || (vMonth == 12)) {
				if (vDay > 31) {
					alert(alertText);
					document[frmName][fldName].focus();
					return true;
				}
			}
			if ((vYear < 1000) || (vYear > 9999)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		}

		function DoBox(url,w,h,top,left) {
			window.open(url,'popup','height=' + h + ',width=' + w + ',top=' + top + ',left=' + left + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no');
		}

		function DoBox2(url,w,h,top,left) {
			window.open(url,'popup','height=' + h + ',width=' + w + ',top=' + top + ',left=' + left + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes');
		}

		/* ------------------------------ STANDARD AJAX ---------------------------- */


		function PostItem(theScript, frmName, div) {
			frmName = document.forms[frmName];
			var fld;
			var theData = "";
			for (i = 0; i < frmName.elements.length; i++) {
				fld = frmName.elements[i];
				if ((fld.type !== "button") && (fld.type !== "submit")) {
					if ((fld.type == "radio") || (fld.type == "checkbox")) {
						if (fld.checked) {
							if (i > 0) {
								theData += "&" + fld.name + "=" + escape(fld.value);
							} else {
								theData += fld.name + "=" + escape(fld.value);
							}
						}
					} else {
						if (i > 0) {
							theData += "&" + fld.name + "=" + escape(fld.value);
						} else {
							theData += fld.name + "=" + escape(fld.value);
						}
					}
				}
			}
			var xmlHttp;
			if (xmlHttp = startAjax()) {
				xmlHttp.open("POST", theScript, true);
				xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
				xmlHttp.onreadystatechange = function() {
					if (xmlHttp.readyState == 4) {
						var theText = xmlHttp.responseText;
						showMenu(div);
						SwapText(div, theText);
					}
				}
				xmlHttp.send(theData);
			}
		}

		function GetItem(scrp, div, tmp) {
			var theScript = scrp + tmp;
			var xmlHttp;
			if (xmlHttp = startAjax()) {
				xmlHttp.onreadystatechange = function() {
					if(xmlHttp.readyState == 4) {
						var theText = xmlHttp.responseText;
						showMenu(div);
						SwapText(div, theText);
					}
				}
				xmlHttp.open("GET", theScript, true);
				xmlHttp.send(null);
			}
		}

		function startAjax() {
			var xmlHttp;
			try {
				xmlHttp = new XMLHttpRequest();
			//	xmlHttp.overrideMimeType("text/xml");
			}
			catch (e) {
				try {
					xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch (e) {
					try {
						xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
					}
					catch (e) {
						alert("Your browser does not support AJAX.");
						return false;
					}
				}
			}
			return xmlHttp;
		}


		/* --------------------------------- UNIQUE -------------------------------- */

		function DoNav(tmp) {
			var theWhat = "../front/fr" + tmp + ".php?r=" + Math.random();
			GetItem(theWhat, "content", "");
			document.frmHide.startpic.value = "0";
			document.location.href="#top";
			if (tmp == "Gallery") {
				GetGallery('');
				showMenu("slideshow");
			} else {
				hideMenu("slideshow");
			}
		}


		/* ---------------------------- SLIDE SHOW STUFF --------------------------- */

		function LoadPics() {
			var picString = document.frmHide.picstring.value;
			picArray = picString.split(",");
			document.frmHide.piccount.value = picArray.length;
			document.frmHide.startpic.value = "0";
			var theText = "";
			for (i = 0; i < picArray.length; i++) {
				theText += "<img src='../gallery/" + picArray[i] + "' height='0' width='0'>";
			}
			SwapText("hiddenpics", theText);
		}

		function GetGallery(tmp) {

			// ------------------------------------------------ BASICS

			var picString = document.frmHide.picstring.value;
			picArray = picString.split(",");
			var lastPic = (picArray.length - 1);
			var groupCount = (document.frmHide.groupcount.value - 0);
			var oldStart = (document.frmHide.startpic.value - 0);
			var newStart = 0;

			if (tmp == "next") {
				newStart = ((oldStart + groupCount) - 0);
			} else if (tmp == "back") {
				newStart = ((oldStart - groupCount) - 0);
			} else {
				newStart = oldStart;
			}

			if ((newStart > lastPic) || (newStart < 0)) {
				newStart = 0;
			}

			document.frmHide.startpic.value = newStart;


			// -------------------------------------- LOAD MAIN PIC BOX

			ShowPic(newStart);


			// -------------------------------------- CREATE TOGGLE BAR

			var theText = "";
			theText += "<table width=\"100%\" bgcolor=\"#AB4A1A\" cellpadding=\"1\" cellspacing=\"0\"><tr>";
			theText += "<td width=\"25%\" align=\"left\" valign=\"center\" onClick=\"GetGallery('back');\" onMouseOver=\"this.className='miscHandOn';\" onMouseOut=\"this.className='';\"><span class=\"toggleOff\">&nbsp;&nbsp;&nbsp;&lt;&lt;&nbsp;BACK</span></td>";
			theText += "<td width=\"50%\" align=\"center\" valign=\"center\"><span class=\"toggleOff\">&nbsp;</span></td>";
			theText += "<td width=\"25%\" align=\"right\" valign=\"center\" onClick=\"GetGallery('next');\" onMouseOver=\"this.className='miscHandOn';\" onMouseOut=\"this.className='';\"><span class=\"toggleOff\">NEXT&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;</span></td>";
			theText += "</tr></table>";

			SwapText("toggle", theText);

			// ----------------------------------- CREATE THUMBNAIL NAV

			x = 0;

			for (i = newStart; i < ((newStart + groupCount) - 0); i++) {
				x++;
				theWhere = "thumb" + x;
				if (i < picArray.length) {
					theText = "<img src=\"../gallery/" + picArray[i] + "\" width=\"112\" onClick=\"ShowPic('" + i + "');\" onMouseOver=\"this.className='miscHandOn';\" onMouseOut=\"this.className='';\">";
				} else {
					theText = "&nbsp;";
				}
				SwapText(theWhere, theText);
			}


			// ------------------------------------------------ DISPLAY

			showMenu("slideshow");
		}

		function ShowPic(tmp) {

			var picString = document.frmHide.picstring.value;
			picArray = picString.split(",");

			var showWidth;
			var thisPic = new Image();
			thisPic.src = "../gallery/" + picArray[tmp];

			var theH = thisPic.height;
			var theW = thisPic.width;
			theH = (theH - 0);
			theW = (theW - 0);

			if (theW > theH) {
				showWidth = 462;
			} else {
				showWidth = 310;
			}

			var theText = "<img src='../gallery/" + picArray[tmp] + "' width='" + showWidth + "'>";
			SwapText("picBox", theText);
		}

		/* ----------------------------- SCRIPT SPECIFIC --------------------------- */

		function SponsorForm() {
			if (CheckNull('frmSponsor','guestname','Please provide your name.')) {
				return false;
			}
			var phone = document.frmSponsor.phone.value;
			var email = document.frmSponsor.email.value;
			phone = phone.replace(/ /g, "");
			email = email.replace(/ /g, "");
			if ((phone == "") && (email == "")) {
				alert("Please provide either a phone number or an email address.");
				document.frmSponsor.phone.focus();
				return false;
			}
			if (email !== "") {
				if (CheckEmail('frmSponsor','email','The email address you supplied does not appear to be valid')) {
					return false;
				}
			}
			var cat = document.frmSponsor.cat.value;
			var isOK;
			if (cat == "60") {
				isOK = 0;
				for (i = 0; i < 3; i++) {
					if (document.frmSponsor.game[i].checked == true) {
						isOK++;
						break;
					}
				}
				if (isOK == 0) {
					alert("Please select a specific Sporting Event.");
					return false;
				}
			}
			if (cat == "110") {
				isOK = 0;
				for (i = 0; i < 6; i++) {
					if (document.frmSponsor.prod[i].checked == true) {
						isOK++;
						break;
					}
				}
				if (isOK == 0) {
					alert("Please select a specific Product.");
					return false;
				}
			}
			PostItem("../front/frSConfirm.php", "frmSponsor", "content");
			document.location.href="#top";
			setTimeout("GetItem('../front/frFront.php', 'content', '')", 6000);
		}

		function ContactForm() {
			if (CheckNull('frmContact','guestname','Please provide your name.')) {
				return false;
			}
			var phone = document.frmContact.phone.value;
			var email = document.frmContact.email.value;
			phone = phone.replace(/ /g, "");
			email = email.replace(/ /g, "");
			if ((phone == "") && (email == "")) {
				alert("Please provide either a phone number or an email address.");
				document.frmContact.phone.focus();
				return false;
			}
			if (email !== "") {
				if (CheckEmail('frmContact','email','The email address you supplied does not appear to be valid')) {
					return false;
				}
			}
			PostItem("../front/frCConfirm.php", "frmContact", "content");
			document.location.href="#top";
			setTimeout("GetItem('../front/frFront.php', 'content', '')", 6000);
		}

		function DoPop() {
			if (document.frmHide.popped.value == "0") {
				var theWhat = "showMenu('pop')";
				setTimeout(theWhat, 3000);
				document.frmHide.popped.value = "1";
			}
		}

		function KillPop() {
			hideMenu("pop");
		}

		function GetTraffic() {
			if (CheckDate('frmDates','fromdate','Please enter a valid From date in m/d/yyyy format.')) {
				return false;
			}
			if (CheckDate('frmDates','todate','Please enter a valid To date in m/d/yyyy format.')) {
				return false;
			}
			PostItem("../front/frTraffic.php", "frmDates", "content");
			document.location.href="#top";
		}

	-->

