
function hover_recipe(recipe)
{
	document.getElementById("recipe_" + recipe).style.backgroundImage = 'url("images/recipe_menu_on.jpg")';
	document.getElementById("recipe_" + recipe).style.cursor='pointer';
	document.getElementById("recipe_" + recipe).style.backgroundPosition = '0px 0px';
}

function exit_recipe(recipe)
{
	document.getElementById("recipe_" + recipe).style.backgroundImage = 'url("images/recipe_menu_line.png")';
	document.getElementById("recipe_" + recipe).style.backgroundPosition = '0px 69px';
}

function goto_recipe(recipe)
{
	window.location = "?recipe=" + recipe;
}

function change_email_image()
{
	alert("");
}

function submit_email_address()
{

	var email = document.getElementById("email_address_check").value;	
	var error = "";
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	if (email == ""){error += "Please enter an email address\n";}
	else if(reg.test(email) == false){error += "Please enter a valid email address\n";}

	if (error == "")
	{
		document.email_subscribe.submit();
	}
	else
	{
		alert(error);
	}

}

function production_previous(page)
{
	var newpage = (page * 1) - (1 * 1);
	window.location = "?page=" + newpage;
}

function production_next(page)
{
	var newpage = (page * 1) + (1 * 1);
	window.location = "?page=" + newpage;
}