function share_this_show(id, orientation, url, title, bodytext)
{

	var form = $('#share_this_form');
	var link = $('#share_this_link_' + id);

	//form.style.left = offset[0] + 'px';
	if ($('#share_this_form').is(':visible')) {
	   $('#share_this_form').hide();
	}
	else {
	   $('#share_this_form').show();
	}

	/*if (orientation == "top") {
	   form.style.top = (offset[1] - form.offsetHeight - 10) + 'px';
	}
	else if (orientation == "bottom") {
	   form.style.top = (offset[1] + link.offsetHeight + 3) + 'px';
	}	*/
	
	if ($("#share_this_delicious"))     {$("#share_this_delicious").attr("href", "http://del.icio.us/post?url=" + url + "&title=" + title + "&notes=" + bodytext);}
	if ($("#share_this_digg"))          {$("#share_this_digg").attr("href",  "http://digg.com/submit?phase=2&url=" + url + "&title=" + title + "&bodytext=" + bodytext);}
	if ($("#share_this_furl"))          {$("#share_this_furl").attr("href",  "http://furl.net/storeIt.jsp?u=" + url + "&t=" + title);}
	if ($("#share_this_netscape"))      {$("#share_this_netscape").attr("href",  " http://www.netscape.com/submit/?U=" + url + "&T=" + title);}
	if ($("#share_this_yahoo_myweb"))   {$("#share_this_yahoo_myweb").attr("href",  "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=" + url + "&t=" + title);}
	if ($("#share_this_technorati"))    {$("#share_this_technorati").attr("href",  "http://www.technorati.com/faves?add=" + url + "");}
	if ($("#share_this_google_bmarks")) {$("#share_this_google_bmarks").attr("href",  "  http://www.google.com/bookmarks/mark?op=edit&bkmk=" + url + "&title=" + title + "&annotation=" + bodytext);}
	if ($("#share_this_newsvine"))      {$("#share_this_newsvine").attr("href",  "http://www.newsvine.com/_wine/save?u=" + url + "&h=" + title);}
	if ($("#share_this_blinklist"))     {$("#share_this_blinklist").attr("href",  "http://blinklist.com/index.php?Action=Blink/addblink.php&Url=" + url + "&Title=" + title);}
	if ($("#share_this_reddit"))        {$("#share_this_reddit").attr("href",  "http://reddit.com/submit?url=" + url + "&title=" + title);}
	if ($("#share_this_blogmarks"))     {$("#share_this_blogmarks").attr("href",  "http://blogmarks.net/my/new.php?mini=1&url=" + url + "&title=" + title);}
	if ($("#share_this_magnolia"))      {$("#share_this_magnolia").attr("href",  "http://ma.gnolia.com/bookmarklet/add?url=" + url + "&title=" + title);}
	if ($("#share_this_windows_live"))  {$("#share_this_windows_live").attr("href",  "https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=" + url + "&title=" + title + "&top=1");}
	if ($("#share_this_tailrank"))      {$("#share_this_tailrank").attr("href",  "http://tailrank.com/share/?link_href=" + url + "&title=" + title);}
	if ($("#share_this_mrwong"))        {$("#share_this_mrwong").attr("href",  "http://www.mister-wong.de/index.php?action=addurl&bm_url=" + url + "&bm_description=" + title);}
	if ($("#share_this_stumbleupon"))   {$("#share_this_stumbleupon").attr("href",  "http://www.stumbleupon.com/submit?url=" + 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;
	}
} 
