	function IEHoverPseudo() {

		var navItems = document.getElementById("primary-nav").getElementsByTagName("li");
	
		for (var i=0; i<navItems.length; i++) {
			if(navItems[i].className == "menuparent") {
				navItems[i].onmouseover=function() { this.className += " over"; }
				navItems[i].onmouseout=function() { this.className = "menuparent"; }
			}
		}
	
	}
	window.onload = IEHoverPseudo;

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
	}

	function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_findObj(n, d) { //v4.01
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function open_window(url) {
		var NEW_WIN = null;
		NEW_WIN = window.open ("", "PhotoViewer", "toolbar=no,width=640,height=480,directories=no,status=no,scrollbars=yes,resize=no,menubar=no");
		NEW_WIN.location.href = url;
	}

	function wopen(url, name, w, h)
	{
		// Fudge factors for window decoration space.
		// In my tests these work well on all platforms & browsers.
		w += 32;
		h += 54;
		wleft = (screen.width - w) / 2;
		wtop = (screen.height - h) / 2;
		var win = window.open(url,
			name,
			'width=' + w + ', height=' + h + ', ' +
			'left=' + wleft + ', top=' + wtop + ', ' +
			'location=no, menubar=no, ' +
			'status=no, toolbar=no, scrollbars=no, resizable=no');
		// Just in case width and height are ignored
		win.resizeTo(w, h);
		// Just in case left and top are ignored
		win.moveTo(wleft, wtop);
		win.focus();
	}

	function doClear(theText) {
		if (theText.value == theText.defaultValue) {
			theText.value = ""
		}
	}

	function hov(loc,cls){
		if(loc.className)
			loc.className=cls;
	}


	function mask(str,textbox,loc,delim) {
		var locs = loc.split(',');
		
		for (var i = 0; i <= locs.length; i++) {
			for (var k = 0; k <= str.length; k++) {
				if (k == locs[i]) {
					if (str.substring(k, k+1) != delim) {
						str = str.substring(0,k) + delim + str.substring(k,str.length)
					}
				}
			}
		}

		textbox.value = str
	}

	function isNumberKey(evt) {
		var charCode = (evt.which) ? evt.which : event.keyCode;

		if (charCode > 31 && (charCode < 48 || charCode > 57))
			return false;

		return true;
	}

	function multiplyTheFields() {
		var product = 0;
		if (window.document.the_form.number_one.checked == true) {
			product = product + 525;
			}
		if (window.document.the_form.number_two.checked == true) {
			product = product + 525;
			}
		if (window.document.the_form.number_three.checked == true) {
			product = product + 875;
			}
		if (window.document.the_form.number_four.checked == true) {
			product = product + 1325;
			}
		if (window.document.the_form.number_five.checked == true) {
			product = product + 1575;
			}
		if (window.document.the_form.number_six.checked == true) {
			product = product + 2100;
			}
		if (window.document.the_form.number_seven.checked == true) {
			product = product + 3425;
			}
		if (window.document.the_form.number_eight.checked == true) {
			product = product + 4475;
			}
		if (window.document.the_form.pac.checked == true) {
			product = product + 250;
			}
		
		window.document.the_form.total.value = product;
	}
	
	function multiplySponsor() {
		var product = 0;
		if (window.document.the_form.number_one.checked == true) {
			product = product + 7875;
			}
		if (window.document.the_form.number_two.checked == true) {
			product = product + 5250;
			}
		if (window.document.the_form.number_three.checked == true) {
			product = product + 3150;
			}
		if (window.document.the_form.number_four.checked == true) {
			product = product + 1575;
			}
		if (window.document.the_form.number_five.checked == true) {
			product = product + 525;
			}
		if (window.document.the_form.pac.checked == true) {
			product = product + 250;
			}
		
		window.document.the_form.total.value = product;
	}
	
	function verifycontact() {
		var themessage = "You are required to complete the following fields: ";
		if (window.document.the_form.Email.value=="") {
			themessage = themessage + " -  Email";
		}
		if (themessage == "You are required to complete the following fields: ") {
			window.document.the_form.submit();
		} else {
			alert(themessage);
			return false;
		}
	}

	function verifyevent() {
		var themessage = "You are required to complete the following fields: ";
		if (window.document.the_form.Event.value=="") {
			themessage = themessage + " -  Event Name";
		}
		if (themessage == "You are required to complete the following fields: ") {
			window.document.the_form.submit();
		} else {
			alert(themessage);
			return false;
		}
	}
	
	function verify() {
		var themessage = "You are required to complete the following fields: ";
		if (window.document.the_form.email.value=="") {
			themessage = themessage + " -  Email";
		}
		if (window.document.the_form.phone.value=="") {
			themessage = themessage + " -  Phone Number";
		}
		var radio_choice = false;
		for (counter = 0; counter < window.document.the_form.card.length; counter++) {
			if (window.document.the_form.card[counter].checked)
				radio_choice = true; 
		}
		if (!radio_choice) {
			themessage = themessage + " -  Credit Card Type";
		}
		if (window.document.the_form.creditNumber.value=="") {
			themessage = themessage + " -  Credit Card Number";
		}
		if (window.document.the_form.month.value=="") {
			themessage = themessage + " -  Expiration Month";
		}
		if (window.document.the_form.year.value=="") {
			themessage = themessage + " -  Expiration Year";
		}
		if (window.document.the_form.code.value=="") {
			themessage = themessage + " -  Security Code";
		}
		
		//alert if fields are empty and cancel form submit
		if (themessage == "You are required to complete the following fields: ") {
			window.document.the_form.submit();
		} else {
			alert(themessage);
			return false;
		}
	}
	
	function verifySponsor() {
		var themessage = "You are required to complete the following fields: ";
		if (window.document.the_form.email.value=="") {
			themessage = themessage + " -  Email";
		}
		if (window.document.the_form.phone.value=="") {
			themessage = themessage + " -  Phone Number";
		}
		var radio_choice = false;
		for (counter = 0; counter < window.document.the_form.card.length; counter++) {
			if (window.document.the_form.card[counter].checked)
				radio_choice = true; 
		}
		if (!radio_choice) {
			themessage = themessage + " -  Credit Card Type";
		}
		if (window.document.the_form.creditNumber.value=="") {
			themessage = themessage + " -  Credit Card Number";
		}
		if (window.document.the_form.month.value=="") {
			themessage = themessage + " -  Expiration Month";
		}
		if (window.document.the_form.year.value=="") {
			themessage = themessage + " -  Expiration Year";
		}
		if (window.document.the_form.code.value=="") {
			themessage = themessage + " -  Security Code";
		}
		
		//alert if fields are empty and cancel form submit
		if (themessage == "You are required to complete the following fields: ") {
			window.document.the_form.submit();
		} else {
			alert(themessage);
			return false;
		}
	}