function share_this_show(id, orientation, url, title, bodytext)
{
	var form = $('share_this_form');
	var link = $('share_this_link_' + id);
	var offset = Position.cumulativeOffset(link);	
	
	form.style.left = offset[0] - 75 + 'px';
	form.style.display = 'block';

	if (orientation == "top") {
	   form.style.top = (offset[1] - form.offsetHeight) - 10 + 'px';
	}
	else if (orientation == "bottom") {
	   form.style.top = (offset[1] + link.offsetHeight) - 120 + 'px';
	}	
	
	$("share_this_delicious").href = "http://del.icio.us/post?url=" + url + "&title=" + title + "&notes=" + bodytext;
	$("share_this_digg").href = "http://digg.com/submit?phase=2&url=" + url + "&title=" + title + "&bodytext=" + bodytext;
	$("share_this_furl").href = "http://furl.net/storeIt.jsp?u=" + url + "&t=" + title;
	$("share_this_netscape").href = " http://www.netscape.com/submit/?U=" + url + "&T=" + title;
	$("share_this_yahoo_myweb").href = "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=" + url + "&t=" + title;
	$("share_this_technorati").href = "http://www.technorati.com/faves?add=" + url + "";
	$("share_this_google_bmarks").href = "  http://www.google.com/bookmarks/mark?op=edit&bkmk=" + url + "&title=" + title + "&annotation=" + bodytext;
	$("share_this_newsvine").href = "http://www.newsvine.com/_wine/save?u=" + url + "&h=" + title;
	$("share_this_blinklist").href = "http://blinklist.com/index.php?Action=Blink/addblink.php&Url=" + url + "&Title=" + title;
	$("share_this_reddit").href = "http://reddit.com/submit?url=" + url + "&title=" + title;
	$("share_this_blogmarks").href = "http://blogmarks.net/my/new.php?mini=1&url=" + url + "&title=" + title;
	$("share_this_magnolia").href = "http://ma.gnolia.com/bookmarklet/add?url=" + url + "&title=" + title;
	$("share_this_windows_live").href = "https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=" + url + "&title=" + title + "&top=1";
	$("share_this_tailrank").href = "http://tailrank.com/share/?link_href=" + url + "&title=" + title;
}

function share_this_tab(tab) 
{
	var tab1 = document.getElementById('share_this_tab1');
	var tab2 = document.getElementById('share_this_tab2');
	var body1 = document.getElementById('share_this_social');
	var body2 = document.getElementById('share_this_email');
	
	switch (tab) {
		case '1':
			tab2.className = '';
			tab1.className = 'selected';
			body2.style.display = 'none';
			body1.style.display = 'block';
			break;
		case '2':
			tab1.className = '';
			tab2.className = 'selected';
			body1.style.display = 'none';
			body2.style.display = 'block';
			break;
	}
}