/*
 *  - clipSket -
 *
 *  Author     : TETSUWO-OISHI
 *  Version    : 0.0.2
 *  CreateDate : 2007/11/06(tue)
 *  LastUpdate : 2009/05/07(thu)
 *  Copyright  : Netsket Inc. (www.netsket.com)
 */
var clipsket_href;var clipsket_count;var clipsket_title;var clipsket_major;var marks;var styleimg;var major;var single;var view;var cnt3;var href;var hpname;var subcnt;if(!clipsket_major){major="on"}else{major="off"}major=clipsket_major;href=(!clipsket_href)?location.href:clipsket_href;if((!clipsket_href)&&(clipsket_count=="off")){single="off"}else{single="on"}if((clipsket_href)&&(clipsket_count=="off")){view="off"}else{view="on"}hpname=(!clipsket_title)?document.title:clipsket_title;styleimg='style="border:none;padding:0 2px 0 0;margin:0;display:inline;" align="absmiddle"';styleimglast='style="border:none;padding:0;margin:0;display:inline;" align="absmiddle"';stylecnt='style="border:none;padding:0;margin:0;display:inline;" align="absmiddle"';stylespan='style="border:none;padding:0;margin:0;display:inline;"';marks='<span style="position:relative;">';marks+='<a href="javascript:window.location=\'http://b.hatena.ne.jp/add?mode=confirm&title='+escape(hpname)+'&url='+escape(href)+'\';"><img src="http://b.hatena.ne.jp/images/append.gif" alt="hatena" '+styleimg+' /></a>';if(single=='on'&&view=='on'){marks+='<a href="http://b.hatena.ne.jp/entry/'+href+'" target="_blank"><img src="http://b.hatena.ne.jp/entry/image/'+href+'" '+stylecnt+' /></a>'}marks+='<a href="javascript:window.location=\'http://clip.livedoor.com/redirect?link='+escape(href)+'&title='+escape(hpname)+'&ie=utf-8\';"><img src="http://clip.livedoor.com/img/icon/add.gif" alt="livedoor clip" '+styleimg+' /></a>';if(single=='on'&&view=='on'){marks+='<img src="http://image.clip.livedoor.com/counter/'+href+'" '+stylecnt+' />'}marks+='<a href="javascript:window.location=\'http://buzzurl.jp/entry/'+escape(href)+'\';"><img src="http://buzzurl.jp/static/image/api/icon/add_icon_mini_08.gif" alt="Buzzurl" '+styleimg+' /></a>';if(single=='on'&&view=='on'){marks+='<img src="http://api.buzzurl.jp/api/counter/'+href+'" '+stylecnt+' />'}if(major!='on'){marks+='<a href="javascript:window.location=\'http://clip.nifty.com/create?url='+encodeURIComponent(href)+'&title='+(hpname)+'\';"><img src="http://clip.nifty.com/images/addclip_icn.gif" alt="nifty clip" '+styleimg+' /></a>';marks+='<a target="_blank" href="http://newsing.jp/add?url='+escape(href)+'&title='+escape(hpname)+'"><img src="http://image.newsing.jp/common/images/newsingit/newsingit_s.gif" alt="newsing" '+styleimg+' /></a>';marks+='<a target="_blank" href="javascript:location.href=\'http://bookmark.fc2.com/user/post?url='+encodeURIComponent(href)+'&title='+encodeURIComponent(hpname)+'\';"><img src="http://bookmark.fc2.com/images/add-16.gif" alt="FC2" '+styleimg+' /></a>'}marks+='<a href="javascript:window.location=\'http://del.icio.us/post?url='+escape(href)+'&title='+escape(hpname)+'\';"><img src="http://images.del.icio.us/static/img/delicious.small.gif" alt="del.icio.us" '+styleimg+' /></a>';if((single=="on")&&(!clipsket_href)){delicious='<span id="del_icio_us_cnt" '+stylespan+'></span><script type="text/javascript" charset="utf-8" src="http://badges.del.icio.us/feeds/json/url/data?url='+encodeURIComponent(href)+'&callback=delicious_callback"></script>'}if((single=="on")&&(!clipsket_href)){marks+=delicious}marks+='<a href="javascript:void window.open(\'http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t='+encodeURIComponent(hpname)+'&u='+encodeURIComponent(window.href)+'&opener=bm&ei=UTF-8\',\'popup\',\'width=550px,height=480px,status=1,location=0,resizable=1,scrollbars=0,left=100,top=50\',0);"><img src="http://i.yimg.jp/images/sicons/ybm16.gif" alt="Yahoo!" '+styleimglast+' /></a>';marks+='</span>';document.write(marks);document.write('<script type="text/javascript" src="http://blogparts.netsket.com/in.php?ef=clipsket&ip=38.107.191.105&rf='+encodeURI(document.referrer)+'&ua='+encodeURI(navigator.userAgent)+'&url='+encodeURI(location.href)+'"></script>');function delicious_callback(data){if(!data)return;var first=data[0];if(!first)return;var encurl=encodeURIComponent(first.url);var span=document.getElementById('del_icio_us_cnt');if(!span)return;if(first.total_posts>9){span.style.color='#f00';span.style.backgroundColor='#fcc'}else{span.style.color='#444';span.style.backgroundColor='#ddd'}var text=document.createTextNode(first.total_posts+'users');span.appendChild(text)}