// Bookmark Script - recoded by Doug Ashbaugh 7/31/10
function vsoBookmarkSite(title, url)
{
    // IE 
    try
    {
        if (document.all)
        {
            window.external.AddFavorite(url, title);
            return (true);
        }
    }
    catch (e)
    {
        alert("Oops. Due to browser security settings, we could not automatically add the bookmark. You will have to bookmark the site manually. Sorry for the inconvenience.");
        return (false);
    }

    // Firefox
    try
    {
        if (window.sidebar)
        {
            window.sidebar.addPanel(title, url, "");
            return (true);
        }
    }
    catch (e)
    {
        alert("Oops. Due to browser security settings, we could not automatically add the bookmark. You will have to bookmark the site manually. Sorry for the inconvenience.");
        return (false);
    }

    // Opera
    try
    {
        if (window.opera && window.print)
        {
            var elem = document.createElement('a');
            elem.setAttribute('href', url);
            elem.setAttribute('title', title);
            elem.setAttribute('rel', 'sidebar');
            elem.click();
            return (true);
        }
    }
    catch (e)
    {
        alert("Oops. Due to browser security settings, we could not automatically add the bookmark. You will have to bookmark the site manually. Sorry for the inconvenience.");
        return (false);
    }
}

function makeLink()
{
    var url = 'http://www.VegasSports-Odds.com';
    var title = 'Vegas Sports Odds';
    vsoBookmarkSite(title, url);
}
// EOF
