function AddToFavorite(url, title)
 
{
 
if (!url)
 
{
 
url = window.location
 
}
 
if (!title)
 
{
 
title = document.title
 
}
 
 
 
var browser = navigator.userAgent.toLowerCase();
 
if (window.sidebar)
 
{
 
window.sidebar.addPanel(title, url, "");
 
}
 
else if (window.external)
 
{
 
if (browser.indexOf('chrome') == -1)
 
{
 
window.external.AddFavorite(url, title);
 
}
 
else
 
{
 
alert('Please close this window, then press CTRL+D to Bookmark this page.');
 
}
 
}
 
else if (window.opera && window.print)
 
{
 
return true;
 
}
 
else if (browser.indexOf('konqueror') != -1)
 
{
 
alert('Please press CTRL+B to add this page to your Favorites.');
 
}
 
else if (browser.indexOf('webkit') != -1)
 
{
 
alert('Please press CTRL+B to add this page to your Favorites.');
 
}
 
else
 
{
 
alert('Your browser does not support adding this link to your Favorites. Please manually add this link.')
 
}
 
}

