function checkSafari()
{
	var agt=navigator.userAgent.toLowerCase();
    var is_safari = ((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false;    

return(is_safari);
}
function BookmarkWedPlan(url,title)
{
//title 	  = "WedPlan"; 
//url   	  = "http://www.wedplan.net";
is_safari = true;

	if (window.sidebar) 					// Mozilla Firefox Bookmark
	{ 
		window.sidebar.addPanel(title,url,"");
	}
	else if(window.external)				// IE Favorite
	{
		window.external.AddFavorite(url,title);
	}
	else if(window.opera && window.print)	// Opera Hotlist
	{
		return true;
	}
	else if(checkSafari())
	{
		//window.sidebar.addPanel(title,url,"");	// not sure safari supports this ability
	}
}
if (window.external)
{
 	document.write('<li><a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;"><img alt="Add this page to your bookmarks or favorites." style="border: none; float: left;" src="/images/icons/heart.gif"></a> &nbsp; <a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;">Bookmark Page</a></li>');
}
else if(window.sidebar)
{
	document.write('<li><a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;"><img alt="Add this page to your bookmarks or favorites." style="border: none; float: left;" src="/images/icons/heart.gif"></a> &nbsp; <a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;">Bookmark Page</a></li>'); 
} 
else if(window.opera && window.print)
{	
   	document.write('<li><a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;"><img alt="Add this page to your bookmarks or favorites." style="border: none; float: left;" src="/images/icons/heart.gif"></a> &nbsp; <a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;">Bookmark Page</a></li>');
}
else if(checkSafari())
{
 	//document.write('<li><a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;"><img alt="Add this page to your bookmarks or favorites." style="border: none; float: left;" src="/images/icons/heart.gif"></a> &nbsp; <a title="Add this page to your bookmarks or favorites." href="" onclick="BookmarkWedPlan(this.href,document.title); return false;">Bookmark Page</a></li>'); // not sure safari supports this ability
}