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 < 9; 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() {
//    var flashvars = {};
//    var params = {
//        wmode: "transparent",
//        quality: "high",
//        play: "true",
//        loop: "true",
//        scale: "showall",
//        devicefont: "false",
//        bgcolor: "#003366",
//        menu: "true",
//        allowFullScreen: "false",
//        allowScriptAccess: "sameDomain",
//        salign: "tl"
//    };
//    var attributes = {
//        align: "middle",
//        id: "tub_home",
//        name: "tub_home"
//    };
//    swfobject.embedSWF("/flash/ttta_transition.swf", "tubFlashContent", "999", "950", "9.0.0", "", flashvars, params, attributes);
    $("#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();
}
