﻿function showTab(displayTab) {
    if (displayTab == "ingredients") {
        document.getElementById("ingredients").style.display = "block";
        document.getElementById("directions").style.display = "none";
        document.getElementById("tab-ingredients").src = "../images/tab_ingredients_on.gif";
        document.getElementById("tab-directions").src = "../images/tab_directions.gif";
    } else {
        document.getElementById("directions").style.display = "block";
        document.getElementById("ingredients").style.display = "none";
        document.getElementById("tab-directions").src = "../images/tab_directions_on.gif";
        document.getElementById("tab-ingredients").src = "../images/tab_ingredients.gif";
    }
}

function openRecipe(recipeID) {
    recipePopup = window.open('recipes/Recipe' + recipeID + '.html','recipePopup','width=575,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=200,top=200');
	if (window.focus) {recipePopup.focus()}
}
