(function(){
	var imgPath = 'css/sharing/',
		sites = [
			
			['delicious', 'Bookmark this page at Delicious', 'http://del.icio.us/post?url={url}&amp;title={title}'],
			
			['stumbleupon', 'Share this page at StumbleUpon', 'http://www.stumbleupon.com/submit?url={url}&amp;title={title}'],
			['twitter', 'Share this page with your Twitter followers', 'http://twitter.com/home?status={title}%20{url}'],
			['technorati', 'Add to your Technorati favorites', 'http://technorati.com/faves?add={url}'],
			['facebook', 'Share this page on Facebook', 'http://www.facebook.com/sharer.php?u={url}&amp;t={title}'],
			['reddit', 'Share this page on Reddit', 'http://reddit.com/submit?url={url}&amp;title={title}'],
			['mixx', 'Share this page on Mixx', 'http://www.mixx.com/submit?page_url={url}&amp;title={title}'],
			['newsvine', 'Share this page on NewsVine', 'http://www.newsvine.com/_tools/seed&amp;save?u={url}&amp;h={title}'],
			['email', 'Send this page to your friend', 'mailto:?subject={title}&amp;body={url}']
		];

	var url = encodeURIComponent(location.href),
		title = encodeURIComponent(document.title),
		html = '<ul class="social-bookmarks" style="list-style: none; padding: 0px; margin: 0px">';
		
	for (var i = 0, len = sites.length; i < len; i++) {
		var site = sites[i],
			link = site[2].replace('{url}', url).replace('{title}', title),
			imgSrc = imgPath + site[0] + '.png';
		
		html += '<li style="float: left; display: inline; margin-right: 4px"><a href="' + link + '" title="' + site[1] + '" target="_blank"><img border="0" src="http://tacnetltd.com/' + imgSrc + '" alt="' + site[1] + '"></a></li>';
	}

	html += '</ul>';

	document.write(html);

})();
