﻿
jQuery(function($) {

    //if (checkForDiv("privacy")) { yourFunction(); }  
    if (checkForDiv("privacy")) {

        $("#privacy").click(function() {
            //jQ("#privacyPop").toggle();
            $("#privacyPop").fadeIn("slow");
        }
        )
    };

    $("#privacyPop #close").click(function() {
        $("#privacyPop").fadeOut("slow");
    });

    var nutrition = function() {
        var $source = $("#nutritioninfo_source").html();
        var $sourceChildren = $("#nutritioninfo").children();

        if ($sourceChildren != null) {

            $("#nutritioninfo").html($source);
            $("#nutritioninfo").show();
        }

    } ();
});



	


function yourFunction(){
    alert("test");
}


function checkForDiv(id) {
    var div = document.getElementById(id);
    if (div) {return true } else {return false}
}