// myspace currently is the only network defining its own custom comment
var defComment = "First on Mars makes it easy to watch free online TV episodes. First on Mars helps you discover TV shows you'll love with a " + 
						"personalized guide that adapts to your viewing habits and preferences about shows, networks and TV moods. First on Mars " + 
						"has more than 12,500 episodes from 600 hit TV shows on 60 TV networks. This link will take you to the network, show or " + 
						"episode listed in the URL below.";

function Delicious(url){
	window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(url)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400');
}
function Magnolia(url){
	c=defComment;
	window.open('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(document.title)+'&description='+encodeURIComponent(c));
}
function StumbleUpon(url){
	window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(document.title));
}
function Newsvine(url){
	//window.open('http://www.newsvine.com/_tools/seed?popoff=0&u=http://vlatko.users.sbb.co.yu/aka/javascript.html');
	window.open('http://www.newsvine.com/_wine/save?popoff=0&u='+encodeURIComponent(url));
}
function Digg(url){
	window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(document.url));
}
function Furl(url){
	window.open('http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.url)+'&t='+encodeURIComponent(document.title));
}
function Netscape(url){
	window.open('http://www.netscape.com/submit/?U='+encodeURIComponent(document.url)+'&T='+encodeURIComponent(document.title));
}
function Technorati(url){
	window.open('http://technorati.com/faves?add='+encodeURIComponent(url));
}
function Google(url){
	window.open('http://www.google.com/bookmarks/mark?op=add&hl=en&bkmk='+encodeURIComponent(url)+'&annotation=&labels=&title='+encodeURIComponent(document.title));
}
function Yahoo(url){
	d=defComment;
	window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&d='+encodeURIComponent(d)+'&u='+encodeURIComponent(url));
}
function Reddit(url){
	window.open('http://reddit.com/submit?url='+encodeURIComponent(url)+'?ref=dSKY&title='+encodeURIComponent(document.title));
}
function Facebook(url){
	u=url;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'?ref=dsky&t='+encodeURIComponent(t))
}
function MySpace(url){
	u=url;
	t=document.title;
	c="Hey check out these TV shows on First on Mars! First on Mars helps you discover new TV shows with a personalized guide that " +
	  "adapts to your viewing habits and preferences about shows, networks and TV moods. First on Mars has more than 12,500 episodes " +
	  "from 600 hit TV shows on 60 TV networks. This link will take you to the network, show or episode listed in the URL below.";
	window.open('http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(t) + '&c=' + encodeURIComponent(c) + '&u=' + encodeURIComponent(u));
}
function Slashdot(url){
	window.open('http://slashdot.org/bookmark.pl?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(document.title));
}
function Blinklist(url){
	window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Tag=&Url='+encodeURIComponent(url)+'&Title='+encodeURIComponent(document.title));
}
function Spurl(url){
	window.open('http://www.spurl.net/spurl.php?v=3&tags=&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(url));
}
function Diigo(url){
	c=defComment;
	window.open('http://www.diigo.com/post?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(document.title)+'&tag=&comments='+encodeURIComponent(c));
}
function Blogmarks(url){
	// blogmarks registration not finished
	window.open('http://blogmarks.net/my/new.php?mini=1&simple=1&url='+encodeURIComponent(url)+'&content=&public-tags=&title='+encodeURIComponent(document.title));
}
function Simpy(url){
	c=defComment;
	window.open('http://www.simpy.com/simpy/LinkAdd.do?title='+encodeURIComponent(document.title)+'&tags=&note='+encodeURIComponent(c)+'&href='+encodeURIComponent(url));
}
function TwitThis(url){
	window.open("http://twitthis.com/twit?url="+encodeURIComponent(url)+"&title="+((document.title) ? encodeURIComponent(document.title.replace(/^\s*|\s*$/g,'')) : ""), "TwitThisPop", "width=600, height=500, location, status, scrollbars, resizable");
}
function Jumptags(url){
	window.open('http://www.jumptags.com/add/?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(document.title));
}