$(document).ready(function() {
    $('#tab-nav a').click(function() {
        var newtab = '#'+this.rel;
        current = $('#tab-nav a.current');
        var oldtab = '#'+$(current).attr('rel');
        $(newtab).show();
        $(oldtab).hide();
        $('#tab-nav a.current').attr('class', '');
        $(this).attr('class', 'current');
    })
});

function bookmark(url, title)
{
    if (!url) url = location.href;
    if (!title) title = document.title;

    //Gecko
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
    //IE4+
    else if (typeof window.external == "object") window.external.AddFavorite(url, title);
    //Opera7+
    else if (window.opera && document.createElement)
    {
        var a = document.createElement('A');
        if (!a) return false; //IF Opera 6
        a.setAttribute('rel','sidebar');
        a.setAttribute('href',url);
        a.setAttribute('title',title);
        a.click();
    }
    else return false;
}



















