$(document).ready(function() {
	$("#bookmark a").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
		var url = "http://www.gigantic.com/lizhobbs";
		var title = "Liz Hobbs Group Limited";
		
		//if (window.sidebar) { // Mozilla Firefox Bookmark
		if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} 
		//else if (window.external) { // IE Favorite
		else if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4)) { // IE Favorite
			window.external.AddFavorite( url, title);
		} 
		else if (window.opera) { // Opera 7+
			return false; // do nothing - the rel="sidebar" should do the trick
		} 
		else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
			//alert('Unfortunately, this browser does not support the requested action,' + ' please bookmark this page manually.');
			return false;
		}
	});
});
