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_delicious").href = akst_share_url("http://del.icio.us/post?url={url}&title={title}", url, title);
	$("akst_readster").href = akst_share_url("http://www.readster.de/submit/?url={url}&title={title}", url, title);
	$("akst_feedburner").href = akst_share_url("http://feeds.feedburner.com/1303/", url, title);
	$("akst_linksilo").href = akst_share_url("http://www.linksilo.de/index.php?area=bookmarks&func=bookmark_new&addurl={url}&addtitle={title}", url, title);
	$("akst_google_bmarks").href = akst_share_url("http://www.google.com/bookmarks/mark?op=edit&bkmk={url}&title={title}", url, title);
	$("akst_netscape").href = akst_share_url("http://www.netscape.com/submit/?U={url}&T={title}", url, title);
	$("akst_yahoo_myweb").href = akst_share_url("http://myweb.yahoo.com/myresults/bookmarklet?&ei=UTF-8&u={url}&t={title}&d=Deine_Beschreibung", url, title);
	$("akst_linkarena").href = akst_share_url("http://linkarena.com/bookmarks/addlink/?url={url}&title={title}", url, title);
	$("akst_technorati").href = akst_share_url("http://www.technorati.com/faves?add={url}", url, title);
	$("akst_mrwong").href = akst_share_url("http://www.mister-wong.de/index.php?action=addurl&bm_url={url}", url, title);
	$("akst_wikio").href = akst_share_url("http://www.wikio.de/publish?url={url}&title={title}", url, title);
	$("akst_klickts").href = akst_share_url("http://www.klickts.de/bookmarks?action=add&address={url}&title={title}", url, title);
	$("akst_colivia").href = akst_share_url("http://www.colivia.de/submit.php?url={url}&title={title}", url, title);
	$("akst_maodi").href = akst_share_url("http://test.maodi.de/bookmarks?action=add&address={url}&title={title}", url, title);
	$("akst_newsider").href = akst_share_url("http://www.newsider.de/submit.php?url={url}&title={title}", url, title);
	$("akst_simpy").href = akst_share_url("http://www.simpy.com/simpy/LinkAdd.do ?href={url}&title={title}", url, title);
	$("akst_blogspeed").href = akst_share_url("http://www.blogspeed.de/account/bookmark/?bookmark_url={url}&edit={title}&description={description}", url, title);
	$("akst_webnews").href = akst_share_url("http://www.webnews.de/einstellen?url={url}&title={title}", url, title);
	$("akst_alltagz").href = akst_share_url("http://www.alltagz.de/bookmarks/?action=add&address={url}&title={title}", url, title);
	$("akst_yigg").href = akst_share_url("http://yigg.de/neu?exturl={url}", url, title);
	$("akst_seoigg").href = akst_share_url("http://www.seoigg.de/node/add/storylink?edit[url]={url}&edit[title]={title}", url, title);
	$("akst_seekxl").href = akst_share_url("http://social-bookmarking.seekxl.de/?add_url={url}&title={title}", url, title);
	$("akst_infopirat").href = akst_share_url("http://infopirat.com/node/add/userlink?edit[url]={url}&edit[title]={title}", url, title);
	$("akst_7hot").href = akst_share_url("http://7hot.de/newPosting?url={url}&title={title}&description=Deine_Beschreibung", url, title);
	$("akst_socialmatic").href = akst_share_url("http://www.socialmatic.com/submitDetails.php?&title={title}&description=Deine_Beschreibung", url, title);
	$("akst_zoz").href = akst_share_url("http://www.zoz.at/add_bookmark.php?url={url}&title={title}", url, title);
	$("akst_wiki").href = akst_share_url("http://de.wikipedia.org/wiki/Social_Bookmarks", 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;
}
