function getMuchMore(content) {
	var generator=window.open(content,'moreinfo','height=378,width=435,resizable=no,scrollbars=yes,toolbar=no,status=no');
}
function getMore(content,title) {
	if(title == "") {
		title = "More Information";
	}
	var generator=window.open('','moreinfo','height=400,width=400,resizable=no,scrollbars=auto,toolbar=no,status=no');
	generator.document.write('<html><head><title>How it Works</title>');
	generator.document.write('</head><body><table width=100% cellpadding=5 cellspacing=5 border=0><tr>');
	generator.document.write('<td><div style="margin: 0; padding: 0; background: #002C58 url(../images/title_left.gif) no-repeat left top; width: 370px; height: 20px;"><span style="margin: 0; padding: 1px 0 0 5px; display: block; color: #FFD100; background: url(../images/title_right.gif) no-repeat right top; font: 13px Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-transform: uppercase; width: 370px; height: 19px;">'+title+'</span></div></td>');
	generator.document.write('</tr><tr><td style="font: 11px Verdana, Arial, Helvetica, sans-serif;">'+content+'<p>');
	generator.document.write('<a href="javascript:self.close()">Close window</a>.</p>');
	generator.document.write('</td></tr></table></body></html>');
	generator.document.close();
}
function quickstart_verify(formname,errorelement)
{
	var returnerr = true;
	
		if ((document.forms[formname].zipCode.value.length<5) || (document.forms[formname].zipCode.value == "Enter zip code"))
		{
			document.getElementById(errorelement).innerHTML = "&raquo; Please enter a valid zip code";
			returnerr = false;
		}
			return returnerr;
}


function getQueryVariable(variable){

			var query = window.location.search.substring(1);

			var vars = query.split("&");

			for (var i=0;i<vars.length;i++){

						var pair = vars[i].split("=");

						if(pair[0] == variable) {

									return pair[1];

						}

			}

			return "";

}

var termid;

function hidesub(subnav) {
	termid=setTimeout("document.getElementById('subnav" + subnav + "').style.display='none'", 1000);
	
}


function showsub(subnav) {

	if (document.getElementById('subnav1') != null) {
	document.getElementById('subnav1').style.display="none";
	}
	
	if (document.getElementById('subnav2') != null) {
	document.getElementById('subnav2').style.display="none";
	}
	
	if (document.getElementById('subnav3') != null) {
	document.getElementById('subnav3').style.display="none";
	}
	
	if (document.getElementById('subnav4') != null) {
	document.getElementById('subnav4').style.display="none";
	}
	
	if (document.getElementById('subnav5') != null) {
	document.getElementById('subnav5').style.display="none";
	}
	
	if (document.getElementById('subnav6') != null) {
	document.getElementById('subnav6').style.display="none";
	}
	
	document.getElementById('subnav' + subnav).style.display="block";
}



function cancelhide(subnav) {
	// Other code may need to be included in this function in the future... 

		clearTimeout(termid);
}