function stickyBar() {
    $('#stickyBar li a').click(function (e) {
        if ($(this).attr('class') == "windowed") {
            e.preventDefault();
            var stickyHREF = $(this).attr('href'),
            stickyIMAGE = $("img", this).attr('src'),
            stickyTITLE = $("span.cssTip", this).text();

            $('#displayWindow .icon').attr('src', stickyIMAGE);
            $('#displayWindow .icon').attr('alt', stickyTITLE);
            $('#displayWindow #displayWinTitle').html(stickyTITLE);
            $('#stickyFrame').attr('src', stickyHREF);
            $('#displayWindow').css({ 'margin-left': '0', 'bottom': '36px', 'right': '0' });
        }
    });
    $('#displayWindow .close').click(function (e) {
        //Cancel the link behavior
        e.preventDefault();
        $('#displayWindow').css({ 'margin-left': '-999em', 'bottom': 'inherit', 'right': 'inherit' });
        //Clear Pop Shadow Iframe			
        window.frames["stickyFrame"].location.href = 'about:blank';
    });
};


$(document).ready(function () {
    stickyBar();
});

