// JavaScript Document
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmark_page(){
var title = document.title;
var url = location.href;
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

function mail_page()
{
mail_str = "mailto:?subject=" + document.title;
mail_str += "&body=Here's a page you might be interested in:%0A%0A" + document.title + "%0A";
mail_str += location.href;
location.href = mail_str;
}

function delicious_page()
{
	location.href = "http://www.delicious.com/save?url=" + location.href + "&title=" + document.title;
}

function facebook_page()
{
	location.href = "http://www.facebook.com/share.php?u=" + location.href + "&h=" + document.title;
}

function stumble_page()
{
	location.href = "http://www.stumbleupon.com/submit?url=" + location.href + "&title=" + document.title;
}

function digg_page()
{
	location.href = "http://www.digg.com/tools/diggthis.php?u=" + location.href + "&t=" + document.title;	
}

