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_hatena").href = akst_share_url("https://www.hatena.ne.jp/login?location=http://www.hatena.ne.jp/", url, title); $("akst_nifty").href = akst_share_url("https://clip.nifty.com/login", url, title); $("akst_buzzurl").href = akst_share_url("http://buzzurl.jp/config/add/", url, title); $("akst_yahoo_myweb").href = akst_share_url("http://bookmarks.yahoo.co.jp/all", url, title); $("akst_livedoor").href = akst_share_url("http://clip.livedoor.com/", url, title); $("akst_google_bmarks").href = akst_share_url("https://www.google.com/accounts/ServiceLogin?hl=ja&continue=http://www.google.co.jp/bookmarks/&nui=1", url, title); $("akst_corich").href = akst_share_url("http://www.corich.jp/login.php?cid=BM", url, title); $("akst_fc2").href = akst_share_url("http://bookmark.fc2.com/", url, title); $("akst_delicious").href = akst_share_url("https://secure.delicious.com/login?jump=http%3A%2F%2Fdelicious.com%2Fpopular%2F", url, title); post_id.value = id; form.style.top = (offset[1] + link.offsetHeight + 2) + '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; }