
var digg 		= 'Digg';
var delicious 	= 'Del.icio.us';
var facebook	= 'Facebook';
var reddit		= 'Reddit';
var stumbleupon = 'StumbleUpon';
var furl 		= 'Furl';
var yahoo		= 'Yahoo';
var google 		= 'Google';
var livejournal	= 'LiveJournal';
var twitter		= 'Twitter';
var technorati	= 'Technorati';
	
function openWindow(site)
{
  	if (site == digg) {
  		openSite(
  			'http://digg.com/submit?phase=2&url='+
  			encodeURIComponent(location.href)+
  			'&bodytext=&tags=&title='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == delicious) {
  		openSite(
  			'http://del.icio.us/post?v=2&url='+
  			encodeURIComponent(location.href)+
  			'&notes=&tags=&title='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == facebook) {
  		openSite(
  			'http://www.facebook.com/sharer.php?u='+
  			encodeURIComponent(location.href)+
  			'&t='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == reddit) {
  		openSite(
  			'http://reddit.com/submit?url='+
  			encodeURIComponent(location.href)+
  			'&title='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == stumbleupon) {
  		openSite(
  			'http://www.stumbleupon.com/submit?url='+
  			encodeURIComponent(location.href)+
  			'&title='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == furl) {
  		openSite(
  			'http://www.furl.net/storeIt.jsp?u='+
  			encodeURIComponent(location.href)+
  			'&keywords=&t='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == yahoo) {
  		openSite(
  			'http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+
  			encodeURIComponent(document.title)+
  			'&d=&tag=&u='+
  			encodeURIComponent(location.href)
  		);
  	} else if (site == google) {
  		openSite(
  			'http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+
  			encodeURIComponent(location.href)+
  			'&annotation=&labels=&title='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == livejournal) {
  		openSite(
  			'http://www.livejournal.com/update.bml?event='+
  			encodeURIComponent(location.href)+
  			'&subject='+
  			encodeURIComponent(document.title)
  		);
  	} else if (site == twitter) {
  		openSite(
  			'http://www.twitter.com/home/?status='
  			+encodeURIComponent(document.title)+
  			' '+
  			encodeURIComponent(location.href)
  		);
  	} else if (site == technorati) {
  		openSite(
  			'http://www.technorati.com/faves?add='+
  			encodeURIComponent(location.href)
  		);
  	}
  	return false;
}
  
function openSite(url)
{
	window.open(url);
}
