$(document).ready(function() {

    var target = $("div#s_membership h3:contains('Hello')");
    if (target.length >= 1) {
        doStuff();
    }
    else {
        if (getCookie("HolderDetails") == null || getCookie("HolderDetails") == '') {
            if (GetRadWindowManager() != null && GetRadWindowManager().GetWindowByName("LogInWindow") != null) {
                return false; // do nothing if login window is there
            }
            else {
                doStuff();
            }
        }
    }

    function doStuff() {
        $('body.pg-home div#s_comments a.btn').show().wrap('<div id="img_holder_btn"><div/>');
        var ourClone = $('#img_holder_btn').clone();
        $('div#addition_btn').html(ourClone);
    }

    


}); // end:JQUERY

$(document).ready(function() {

    /* make link to the home page, but not the home-page */
    var homePage = $('body.pg-home');
    if (homePage.length == 0) {
        $('#hd').wrap('<a href="/default.aspx" alt="To the Home Page!"></a>');
    } //end:if

}); // end:JQUERY
