function gotoForgotPwd() {
    window.location = '/Forgot-Password.aspx';
}

function gotoReg() {
    window.location = '/Register.aspx';
}

function gotoMyRecipes() {
    window.location = '/MyRecipes';
}

function gotoMyRecipesTab(tab) {
    window.location = '/MyRecipes/Default.aspx?tab=' + tab;
}

function gotoMyRecipesNew() {
    window.location = '/MyRecipes/Default.aspx?new=yes';
}

function closeBox() {
    $.facebox.close();
}

function openWindow(url) {
    window.open(url, "recipe", "resizable=yes,menubar=no,titlebar=no,location=no,status=no,scrollbars=no,width=650,height=500");
}

function openSTF(url) {
    window.open(url, "recipe", "resizable=yes,menubar=no,titlebar=no,location=no,status=no,scrollbars=no,width=600,height=500");
}

function openPrint(url) {
    window.open(url, "recipe", "resizable=yes,menubar=no,titlebar=no,location=no,status=no,scrollbars=yes,width=630,height=600");
}

function showFaq(id){	
    document.getElementById(id+'-small').style.visibility = "hidden";
	document.getElementById(id+'-small').style.display = "none";
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.display = "block";
}

function hideFaq() {
    for (i = 1; i < 4; i++) {
        document.getElementById('ways-to-spray-' + i).style.visibility = "hidden";
        document.getElementById('ways-to-spray-' + i).style.display = "none";
    }
}

function openButtertons() {
    window.open('/Buttertons.aspx', 'buttertonsvideos', 'scrollbars=no,status=no,width=800,height=497')
}

function showTip(id) {
    document.getElementById(id + '-small').style.visibility = "hidden";
    document.getElementById(id + '-small').style.display = "none";
    document.getElementById(id).style.visibility = "visible";
    document.getElementById(id).style.display = "block";
}

function hideTips() {
    for (i = 1; i < 11; i++) {
        document.getElementById('ways-to-spray-tip' + i).style.visibility = "hidden";
        document.getElementById('ways-to-spray-tip' + i).style.display = "none";
        document.getElementById('ways-to-spray-tip' + i + '-small').style.visibility = "visible";
        document.getElementById('ways-to-spray-tip' + i + '-small').style.display = "block";
    }
}
function hideTip(id) {
    document.getElementById('ways-to-spray-' + id).style.visibility = "hidden";
    document.getElementById('ways-to-spray-' + id).style.display = "none";
    document.getElementById('ways-to-spray-' + id + '-small').style.visibility = "visible";
    document.getElementById('ways-to-spray-' + id + '-small').style.display = "block";
}

function showTub() {
    $("#home-tub-wrapper").show();    
}

function showPostTub() {
    $("#home-tub-wrapper").addClass("tub-post-transition").removeClass("tub-transition");
    $("#header-wrapper").hide();
    $("#content-wrapper").hide();
    $("#bigfatbar").hide();
    $("#footer-home-wrapper").css("top", "615px");
    $("#hometubfooter").hide();
    $("#tubfooter-share").show();
}

function openTerms() {
    window.open("{contentURL}{mediaURL}/{doorId}/misc/terms.html", 'icbinb_terms', 'width=500,height=240');
}
function openRules() {
    window.open("/TurnTheTubAround/Official-Rules.aspx", "rules", "resizable=yes,menubar=no,titlebar=no,location=no,status=no,scrollbars=yes,width=957,height=700");
}
