function share_this_show(id, orientation, url, title, bodytext)
{
	var form = $('share_this_form');
	var link = $('share_this_link_' + id);
	var offset = Position.realOffset(link);	
	
	form.style.left = offset[0] + 'px';
	form.style.display = 'block';
	
	var offset = Position.cumulativeOffset(link);

	if (orientation == "top") {
	   //form.style.top = (offset[1] - form.offsetHeight - 10) + 'px';
	   form.style.top = (offset[1]+210) + 'px';
	}
	else if (orientation == "bottom") {
	   //form.style.top = (offset[1] + link.offsetHeight + 3) + 'px';
	   form.style.top = (offset[1]-210) + '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;
        $("share_this_mrwong").href = "http://www.mister-wong.de/index.php?action=addurl&bm_url=" + url + "&bm_description=" + title;
	$("share_this_yigg").href = "http://yigg.de/neu?exturl=" + url + "&exttitle=" + title;
	$("share_this_spurl").href = "http://www.spurl.net/spurl.php?url=" + url + "&title=" + title;

	url = url.substring(0,url.length-1);
	url = encodeURIComponent(url);
	$("share_this_connotea").href = "http://www.connotea.org/addpopup?continue=confirm&uri=" + url + "&usertitle=" + title + "&description=" + bodytext;
}



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;
	}
}