function akst_share(id, url, title) {
	var frm = $('akst_form');
	//alert (frm);
	$('akst_form').setPosition({relativeTo: 'akst_link'})
	$('akst_form').show();
		$("akst_delicious").set("href", akst_share_url("http://del.icio.us/post?url={url}&title={title}", url, title));
	$("akst_news2-ru").set("href", akst_share_url("http://news2.ru/add_story.php?url={url}", url, title));
	$("akst_twitter").set("href", akst_share_url("http://twitter.com/home?status={title}+{url}", url, title));
	$("akst_facebook").set("href", akst_share_url("http://www.facebook.com/share.php?u={url}&amp;t={title}", url, title));
	$("akst_google_bmarks").set("href", akst_share_url("  http://www.google.com/bookmarks/mark?op=edit&bkmk={url}&title={title}", url, title));
	$("akst_digg").set("href", akst_share_url("http://digg.com/submit?phase=2&url={url}&title={title}", url, title));
	$("akst_smi2-ru").set("href", akst_share_url("http://smi2.ru/add/?typenews=news&url={url}", url, title));
	$("akst_mister").set("href", akst_share_url("http://www.mister-wong.ru/add_url/?bm_url={url}&bm_description={title}", url, title));
	$("akst_technorati").set("href", akst_share_url("http://www.technorati.com/faves?add={url}", url, title));
	$("akst_yandex").set("href", akst_share_url("  http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl={url}&lname={title}", url, title));
	$("akst_bobrdobr").set("href", akst_share_url("http://www.bobrdobr.ru/add.html?url={url}&title={title}", url, title));
	$("akst_newsland").set("href", akst_share_url("http://www.newsland.ru/News/Add/type/news/", url, title));
	$("akst_windows_live").set("href", akst_share_url("https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url={url}&title={title}&top=1", url, title));
	$("akst_livejournal").set("href", akst_share_url("http://www.livejournal.com/update.bml?subject=Нашиздат&event=%3Ca+href%3D%22{url}%22%3E{title}%3C%2Fa%3E%0A", url, title));
	$("akst_memori").set("href", akst_share_url("http://memori.ru/link/?sm=1&u_data[url]={url}&u_data[name]={title}", url, title));
	$("akst_moemesto").set("href", akst_share_url("http://moemesto.ru/post.php?url={url}&title={title}", url, title));
	return false;
}

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 = jQuery('#'+id);
	var x = 0;
	var y = 0;
}
