function akst_share(id, url, title) {
	var form = $('akst_form');
	var post_id = $('akst_post_id');
	
	if (form.style.display == 'block' && post_id.value == id) {
		form.style.display = 'none';
		return;
	}
	
	var link = $('akst_link_' + id);
	var offset = Position.cumulativeOffset(link);

	$("akst_blogasty").href = akst_share_url("http://blogasty.com/admin", url, title);
	$("akst_blogmemes").href = akst_share_url("http://www.blogmemes.fr/post.php?url={url}&amp;title={title}", url, title);
	$("akst_fuzz").href = akst_share_url("http://www.fuzz.fr/?nws_article?link=URL&amp;title={title}", url, title);
	$("akst_blogmarks").href = akst_share_url("http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url={url}&amp;title={title}", url, title);
	$("akst_misterwong").href = akst_share_url("http://www.mister-wong.fr/addurl/?bm_url={url}&amp;bm_description={title}&amp;plugin=soc", url, title);
	$("akst_nuouz").href = akst_share_url("http://www.nuouz.com/addNews.aspx?url={url}&title={title}", url, title);
	$("akst_scoopeo").href = akst_share_url("http://www.scoopeo.com/scoop/new?newurl={url}&amp;title={title}", url, title);
	$("akst_tapemoi").href = akst_share_url("http://tapemoi.com/submit.php?url={url}", url, title);
	$("akst_wikio").href = akst_share_url("http://www.wikio.fr/vote?url=URL", url, title);
	$("akst_zapface").href = akst_share_url("http://www.zapface.com/add/?url={url}&amp;title={title}", url, title);
	$("akst_codotmments").href = akst_share_url("http://co.mments.com/track?url={url}&amp;title={title}", url, title);
	$("akst_delicious").href = akst_share_url("http://del.icio.us/post?url={url}&amp;title={title}", url, title);
	$("akst_digg").href = akst_share_url("http://digg.com/submit?phase=2&amp;url={url}&amp;title={title}", url, title);
	$("akst_facebook").href = akst_share_url("http://www.facebook.com/share.php?u={url}&amp;t={title}", url, title);
	$("akst_furl").href = akst_share_url("http://www.furl.net/storeIt.jsp?u={url}&amp;t={title}", url, title);
	$("akst_newsvine").href = akst_share_url("http://www.newsvine.com/_tools/seed&amp;save?u={url}&amp;h={title}", url, title);
	$("akst_netscape").href = akst_share_url("http://www.netscape.com/submit/?U={url}&amp;T={title}", url, title);
	$("akst_reddit").href = akst_share_url("http://reddit.com/submit?url={url}&amp;title={title}", url, title);
	$("akst_sphere").href = akst_share_url("http://www.sphere.com/search?q=sphereit:{url}&amp;title={title}", url, title);
	$("akst_stumbleupon").href = akst_share_url("http://www.stumbleupon.com/url/{url}", url, title);
	$("akst_technorati").href = akst_share_url("http://technorati.com/faves?add={url}", url, title);
	$("akst_yahoomyweb").href = akst_share_url("http://myweb2.search.yahoo.com/myresults/bookmarklet?u={url}&amp;={title}", url, title);

	post_id.value = id;

	form.style.left = offset[0] + 'px';
	form.style.top = (offset[1] + link.offsetHeight + 3) + 'px';
	form.style.display = 'block';
}

function akst_share_url(base, url, title) {
	base = base.replace('{url}', url);
	return base.replace('{title}', title);
}

function akst_share_tab(tab) {
	var tab1 = document.getElementById('akst_tab1');
	var tab2 = document.getElementById('akst_tab2');
	var body1 = document.getElementById('akst_social');
	var body2 = document.getElementById('akst_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;
	}
}

function akst_xy(id) {
	var element = $(id);
	var x = 0;
	var y = 0;
}
