//JavaScript document
function MM_reloadPage(init)
{  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function  _CF_checks(_CF_this)
{
	return true;
}

function  _CF_checkCFForm_2(_CF_this)
{
	if  (!_CF_hasValue(_CF_this.EMAIL, "TEXT" ))
	{
		if  (!_CF_onError(_CF_this, _CF_this.EMAIL, _CF_this.EMAIL.value, "Please enter your email address to continue."))
		{
			return false;
		}
	}

	return true;
}

function  _CF_checkCFForm_3(_CF_this)
{
	if  (!_CF_hasValue(_CF_this.PRIMARY_ZIP, "TEXT" ))
	{
		if  (!_CF_onError(_CF_this, _CF_this.PRIMARY_ZIP, _CF_this.PRIMARY_ZIP.value, "Please enter a valid postal code to continue.\n\nThe Grocery Game is only available in the United States of America."))
		{
			return false;
		}
	}

	if  (!_CF_checkzip(_CF_this.PRIMARY_ZIP.value))
	{
		if  (!_CF_onError(_CF_this, _CF_this.PRIMARY_ZIP, _CF_this.PRIMARY_ZIP.value, "Please enter a valid postal code to continue.\n\nThe Grocery Game is only available in the United States of America."))
		{
			return false;
		}
	}

	return true;
}

// SEO toggle function
function toggle(obj)
{
	document.getElementById(obj).className = (document.getElementById(obj).className=='open') ? 'collapse' : 'open';
}

// sonik toggle function
function moreInformation() {
	var x = document.getElementById('homeMoreInfo');
	if (x.className == 'moreInformationDef') 	{ x.className = 'moreInformationExp'; }
	else 										{ x.className = 'moreInformationDef'; }
}

