function akst_share(id, url, title) {
	var form = jQuery('#akst_form');
	var post_id = jQuery('#akst_post_id');

  // Close the 'Share This' link if it's clicked while displayed.
	if (form.css('display') == 'block' && post_id.attr('value') == id) {
		form.css('display', 'none');
		return;
	}

	var link = jQuery('#akst_link_' + id);
	var offset = link.offset();

	jQuery("#akst_delicious").attr('href', akst_share_url("http://del.icio.us/post?url={url}&title=Seguros AdHoc - {title}", url, title));
	jQuery("#akst_facebook").attr('href', akst_share_url("http://www.facebook.com/share.php?u={url}&t=Seguros AdHoc - {title} ", url, title));
	jQuery("#akst_yahoo_myweb").attr('href', akst_share_url("http://myweb2.search.yahoo.com/myresults/bookmarklet?u={url}&t=Seguros AdHoc - {title}", url, title));
	jQuery("#akst_google_bmarks").attr('href', akst_share_url("  http://www.google.com/bookmarks/mark?op=edit&bkmk={url}&title=Seguros AdHoc - {title}", url, title));
	jQuery("#akst_windows_live").attr('href', akst_share_url("https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url={url}&title=Seguros AdHoc - {title}&top=1", url, title));

	post_id.attr('value', id);

	form.css({
		left: offset.left,
		top: (offset.top + link.outerHeight() + 3),
		display: 'block'
	});
}

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

function akst_share_tab(tab) {
	var tab1 = jQuery('#akst_tab1');
	var tab2 = jQuery('#akst_tab2');
	var body1 = jQuery('#akst_social');
	var body2 = jQuery('#akst_email');

	switch (tab) {
		case '1':
			tab2.removeClass('selected');
			tab1.addClass('selected');
			body2.css('display', 'none');
			body1.css('display', 'block');
			break;
		case '2':
			tab1.removeClass('selected');
			tab2.addClass('selected');
			body1.css('display', 'none');
			body2.css('display', 'block');
			break;
	}
}

function akst_xy(id) {
	var element = document.getElementById(id);
	var x = 0;
	var y = 0;
}
