function UI_actions() {

    //Robert E. 4/2008 Jquery Wrapped Sets 

    //Recipe Edit

    if (jQuery("#trackback").length > 0) {
        jQuery("li#parentMenulist").css('position: relative; top: -20px;')
    }
    jQuery('#Nutrient_totals,h2.prep,#RecipeTextarea').css({display: 'block'}); //.slideDown('fast');
    jQuery('table.sortable').css({display: 'block'});
    jQuery('#enterRecipeName_form').remove();
    jQuery('#SecondarySearch').css({display: 'block'});

    if (jQuery(".even").length > 0) {
        jQuery(".addInstructions,img.curveline").css({display: 'none'})
        jQuery(".cancelAddition").css({display: 'block'})
    }
    else {
        jQuery(".addInstructions,img.curveline").css({display: 'block'})
    }

    jQuery('.placeholderCreate').hide('fast');
    jQuery('#myfoods_form').css({display: 'block'});
    jQuery('table.sortable').css({display: 'block'});

    if (jQuery(".narrowListContainer").length < 1) {
        jQuery(".SpanseeOnlyfoods,#onlyLine,img.search_rule,#showitfoods,#hideitfoods,#pipe").css({display: 'none'})
    }

    if (jQuery("body div#main div#content div#search_header td span.foodColumnError").length > 0) {
        jQuery(".footersearchFoodsOBJ").css({marginTop: 0})

    }

    jQuery("#showit,#showitfoods").css("color", "#ccc");
    jQuery("#showit").click(function () {
        jQuery("#seeOnly").slideDown("fast");
        jQuery("#showit").css("color", "#ccc");
        jQuery("#hideit").css("color", "#034b8e");
        jQuery("#seeonlyFooter").css({display: 'inline'});
    });

    jQuery("#showitfoods").click(function () {
        jQuery("#narrowFreetext").slideDown("fast");
        jQuery("#showitfoods").css("color", "#ccc");
        jQuery("#hideitfoods").css("color", "#034b8e");
        jQuery("#seeonlyFooterfoods").css({display: 'inline'});
    });

    jQuery("#hideit").click(function () {
        jQuery("#seeOnly").slideUp("fast");
        jQuery("#hideit").css("color", "#ccc");
        jQuery("#showit").css("color", "#034b8e");
        jQuery("#seeonlyFooter").css({display: 'none'});
    });

    jQuery("#hideitfoods").click(function () {
        jQuery("#narrowFreetext").slideUp("fast");
        jQuery("#hideitfoods").css("color", "#ccc");
        jQuery("#showitfoods").css("color", "#034b8e");
        jQuery("#seeonlyFooterfoods").css({display: 'none'});
    });

    jQuery("#showit,#showitfoods").mouseover(function () {
        jQuery(this).css({cursor: 'pointer'});
    });

    jQuery("#hideit,#hideitfoods").mouseover(function () {
        jQuery(this).css({cursor: 'pointer'});
    });

    jQuery(".myFoodsTop").click(function () {
        if (jQuery.browser.safari.version == 2) {
            jQuery(".Searchformbg").css("display", "block");
        }
        jQuery(".Searchformbg").slideDown("fast");

    });

    jQuery(".dleet").click(function () {
        jQuery(".move").slideUp("fast");
    });//Test Delete on My foods search

    jQuery(".AddFoodMenu,.CloseFoodMenu, .AddFoodMenuWide").css("color", "#fff");
    jQuery("a.AddFoodMenu, .AddFoodMenuWide, span.CloseFoodMenu ").mouseover(function () {
        jQuery(this).css("background", "#fea203");
    });

    jQuery("a.AddFoodMenu, .AddFoodMenuWide, span.CloseFoodMenu ").mouseout(function () {
        jQuery(this).css("background", "#ff7700");
    });

    jQuery("img#addFood").css({cursor: 'pointer'});
    jQuery("img#addFood").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_addnewfood_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/nd_addnewfood.gif';
            });

    jQuery("#save").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_saverecipe_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/nd_saverecipe.gif';
            });

    jQuery("#saveanalyze").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_saveandanalyze_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/nd_saveandanalyze.gif';
            });

    jQuery("#saveanalyzeTrack, #saveanalyzeTrackbottom").hover(
            function () {
                this.src = '/images/mynd/nd_saveandanalyze_track_over.gif';
            },
            function () {
                this.src = '/images/mynd/nd_saveandanalyze_track.gif';
            });

    jQuery("#save").mousedown(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_saverecipe_off.gif';
            });

    jQuery("#saveanalyze").mousedown(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_saveandanalyze_off.gif';
            });

    jQuery("#saveanalyzeTrack").mousedown(
            function () {
                this.src = '/images/mynd/nd_saveandanalyze_track_off.gif';
            });

    jQuery("html body .addPantry_searchClass").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/addPantryRecipe_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/addPantryRecipe.gif';
            });

    jQuery(".deleteThis").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/DeletePantryRecipe_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/DeletePantryRecipe.gif';
            });

    jQuery(".cancelAddition").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_cancel_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/nd_cancel.gif';
            });

    jQuery(".optImage").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/addOption_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/addOption.gif';
            });

    jQuery(".editThis").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/editSearch_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/editSearch.gif';
            });

    jQuery("#customAdd,#customAddfooter").hover(
            function () {
                this.src = '/images/add_to_pantryCustom_over.gif';
            },
            function () {
                this.src = '/images/add_to_pantryCustom.gif';
            });

    jQuery(".nd_updatelist").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_updatelist_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/nd_updatelist.gif';
            });

    jQuery(".nd_updatelist").mousedown(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_updatelist_off.gif';
            });

    jQuery(".compareButton").hover(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_compare_over.gif';
            },
            function () {
                this.src = '/images/tools/pantry/mynd/nd_compare.gif';
            });

    jQuery(".compareButton").mousedown(
            function () {
                this.src = '/images/tools/pantry/mynd/nd_compare_off.gif';
            });

    jQuery("#updateTracking,#updateTrackingbottom,#updateTrackingReport,##updateTrackingReportbottom").hover(
            function () {
                this.src = '/images/mynd/nd_updatetracking_over.gif';
            },
            function () {
                this.src = '/images/mynd/nd_updatetracking.gif';
            });

    jQuery("#updateTracking,#updateTrackingbottom,#updateTrackingReport,##updateTrackingReportbottom").mousedown(
            function () {
                this.src = '/images/mynd/nd_updatetracking_off.gif';

            });

    jQuery("#AddToTracking,#AddToTrackingbottom,#AddToTrackingReport,#AddToTrackingReportbottom").hover(
            function () {
                this.src = '/images/mynd/multi_addtracking_over.gif';
            },
            function () {
                this.src = '/images/mynd/multi_addtracking.gif';
            });

    jQuery("#AddToTracking,#AddToTrackingbottom,#AddToTrackingReport,#AddToTrackingReportbottom").mousedown(
            function () {
                this.src = '/images/mynd/multi_addtracking_off.gif';

            });

    jQuery("#saveNewTop,#saveNewbottom").hover(
            function () {
                this.src = '/images/mynd/nd_saveandnew_over.gif';
            },
            function () {
                this.src = '/images/mynd/nd_saveandnew.gif';
            });

    jQuery("#saveNewTop,#saveNewbottom").mousedown(
            function () {
                this.src = '/images/mynd/nd_saveandnew_off.gif';
            });

    jQuery("#saveCloseTop,#saveClosebottom").hover(function () {
        this.src = '/images/mynd/nd_saveandclose_over.gif';
    }, function () {
        this.src = '/images/mynd/nd_saveandclose.gif';
    });

    jQuery("#saveCloseTop,#saveClosebottom").mousedown(
            function () {
                this.src = '/images/mynd/nd_saveandclose_off.gif';

            });

    //End My foodsSearch Sets ******************************************************

    if (jQuery(".autoSave").length > 0) {
        jQuery(".autoSave").fadeOut(9000);

    }

    if (jQuery.browser.safari) {
        jQuery("ul.StartText li.create").slideDown(90);
        jQuery("ul.StartText li.analyze").slideDown(790);
        jQuery("ul.StartText li.saveit").slideDown(1290);
    }

    jQuery("ul.StartText li.create").fadeIn(100);
    jQuery("ul.StartText li.analyze").fadeIn(800);
    jQuery("ul.StartText li.saveit").fadeIn(1300);
    jQuery("#recipeStart").click(
            function () {
                jQuery("#createWelcometrack").hide();
                jQuery("#createToptrack").show();
                jQuery("#createWelcomefoods").hide();
                jQuery("#createTopfoods").show();
                jQuery("#createWelcomerecipes").hide();
                jQuery("#createToprecipes").show();
                jQuery("#createWelcomecompare").hide();
                jQuery("#createTopcompare").show();
                jQuery("#createSignin").slideDown("normal");
                jQuery("#createWelcomeSamplefoods").show("normal");
                jQuery("#createWelcomeSamplerecipes").show("normal");
                jQuery("#createWelcomeSamplecompare").show("normal");
                jQuery("#createWelcomeSampletrack").show("normal");
                this.src = '/images/tools/pantry/mynd/nd_getstarted_off.gif';
            });
    jQuery("#recipeStart").mousedown(function () {
        this.src = '/images/tools/pantry/mynd/nd_getstarted_over.gif';
    });
    jQuery("#recipeStart").mouseup(function () {
        this.src = '/images/tools/pantry/mynd/nd_getstarted.gif';
    });
    jQuery(".GetHelp img").hover(function () {
        this.src = '/images/tools/pantry/mynd/nd_help_over.gif';
    }, function () {
        this.src = '/images/tools/pantry/mynd/nd_help.gif';
    });
    //Recipe Add
    jQuery("#addRecipesFood").hover(function () {
        this.src = '/images/tools/pantry/mynd/createRecipebutton_over.gif';
    }, function () {
        this.src = '/images/tools/pantry/mynd/createRecipebutton.gif';
    });
    jQuery(".GetHelp img").hover(function () {
        this.src = '/images/tools/pantry/mynd/nd_help_over.gif';
    }, function () {
        this.src = '/images/tools/pantry/mynd/nd_help.gif';
    });
    jQuery("#prestock_add_top, .pantry_bottom_button").hover(function () {
        this.src = '/images/add_to_pantry_over.gif';
    }, function () {
        this.src = '/images/add_to_pantry.gif';
    });
    jQuery("span.pp_text_blue a img").hover(function () {
        this.src = '/images/add_to_pantry_over.gif';
    }, function () {
        this.src = '/images/add_to_pantry.gif';
    });

    jQuery(document).bind('click', function(e) {
        var $clicked = jQuery(e.target);
        if (! ( $clicked.is('ul.addList') || $clicked.parents().is('ul.addList') )) {
            jQuery('ul.addList').hide();
        }
    });

    jQuery("div.pagination a").click(function() {
        resizeFrameHeight();
    });

}

function resizeFrameHeightNoResults() {
    var IE_extra_height = jQuery('#main').height();
    var fullheight = jQuery('#content').height();
    var theFrame = jQuery('#myndResults_multi', parent.document.body);
    theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height);
    if (jQuery.browser.mozilla || jQuery.browser.safari) {
        theFrame.height(jQuery(document.body).height() + fullheight + 8);
    } else if (jQuery.browser.msie) {
        theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height + 8);
    }
}

function resizeFrameHeight() {
    var IE_extra_height = jQuery('#main').height();
    var fullheight = jQuery('#content').height();
    var theFrame = jQuery('#myndResults_multi', parent.document.body);
    theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height);
    if (jQuery.browser.mozilla) {
        theFrame.height(jQuery(document.body).height() + fullheight + 5);
    } else if (jQuery.browser.safari) {
        theFrame.height(jQuery(document.body).height() + fullheight + 55);
    } else if (jQuery.browser.msie) {
        theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height - 5);
    }
}

function resizeFrameHeightOncheck() {
    var IE_extra_height = jQuery('#main').height();
    var fullheight = jQuery('#content').height();
    var theFrame = jQuery('#myndResults_multi', parent.document.body);
    theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height);
    if (jQuery.browser.mozilla && navigator.userAgent.indexOf("Mac") != -1) {
        theFrame.height(jQuery(document.body).height() + fullheight + 20);
    } else if (jQuery.browser.mozilla && navigator.userAgent.indexOf("Mac") == -1) {
        theFrame.height(jQuery(document.body).height() + fullheight + 18);
    } else if (jQuery.browser.msie) {
        theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height + 16);
    } else if (jQuery.browser.safari) {
        theFrame.height(jQuery(document.body).height() + fullheight + 13);
    }
}

function resizeFrameHeightOnuncheck() {
    var IE_extra_height = jQuery('#main').height();
    var fullheight = jQuery('#content').height();
    var theFrame = jQuery('#myndResults_multi', parent.document.body);
    theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height);
    if (jQuery.browser.mozilla && navigator.userAgent.indexOf("Mac") != -1) {
        theFrame.height(jQuery(document.body).height() + fullheight - 30);
    } else if (jQuery.browser.mozilla && navigator.userAgent.indexOf("Mac") == -1) {
        theFrame.height(jQuery(document.body).height() + fullheight - 28);
    } else if (jQuery.browser.msie) {
        theFrame.height(jQuery(document.body).height() + fullheight - IE_extra_height - 27);
    } else if (jQuery.browser.safari) {
        theFrame.height(jQuery(document.body).height() + fullheight - 22);
    }
}

