var durl = encodeURIComponent(location.href);
var dtitle = encodeURIComponent(document.title);
var add_mark = {
	yahoo : {
		url : "javascript:void(0)" , 
		name : "Yahoo!ブックマーク" , 
		img : "http://i.yimg.jp/images/sicons/ybm16.gif" , 
		attribute : " onclick=\"window.open('http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?u="+durl+"&opener=bm&ei=UTF-8&t="+dtitle+"','popup','width=550px,height=480px,status=1,location=0,resizable=1,scrollbars=0,left=100,top=50',0);\""
	} , 
	hatena   : {
		url : "http://b.hatena.ne.jp/add?mode=confirm&title="+escape(document.title)+"&url="+escape(location.href) , 
		name : "はてなブックマーク" , 
		img : "http://www.hanshinweb.com/images/bookmark/hatena.gif"
	} , 
	livedoor : {
		url : "http://clip.livedoor.com/clip/add?link="+durl+"&title="+dtitle+"&jump=ref" , 
		name : "Livedoor Clip" , 
		img : "http://parts.blog.livedoor.jp/img/cmn/clip_16_16_w.gif"
	} , 
	delicious  : {
		url : "http://del.icio.us/post?url="+durl+"&title="+dtitle , 
		name : "del.icio.us" , 
		img : "http://www.hanshinweb.com/images/bookmark/delicious.gif"
	} , 
	nifty : {
		url : "http://clip.nifty.com/create?url="+durl+"&title="+dtitle , 
		name : "Nifty Clip" , 
		img : "http://www.hanshinweb.com/images/bookmark/nifty.gif"
	} , 
	pookmark : {
		url : "http://pookmark.jp/post?url="+durl+"&title="+dtitle , 
		name : "POOKMARK. Airlines" , 
		img : "http://www.hanshinweb.com/images/bookmark/POOKMARK.gif"
	} , 
	buzzurl : {
		url : "http://news.ecnavi.jp/config/add/confirm?url="+durl+"&title="+dtitle , 
		name : "Buzzurl（バザール）" , 
		img : "http://cdn.buzzurl.jp/static/image/api/icon/add_icon_mini_01.gif"
	} , 
	fc2 : {
		url : "http://bookmark.fc2.com/user/post?url="+durl+"&title="+dtitle , 
		name : "FC2ブックマーク" , 
		img : "http://www.hanshinweb.com/images/bookmark/fc2.gif"
	}
};
function add_bookmark(bookmark){
	var sb =bookmark.split(',');
	 for (var i = 0 ; i < sb.length; i++) {
		var sb1=sb[i];
		document.write("<a href=\"" + add_mark[sb1].url + "\" title=\""+add_mark[sb1].name+"\"><img src=\""+add_mark[sb1].img+"\" alt=\""+add_mark[sb1].name+"\""+add_mark[sb1].attribute+" border=\"0\" /></a> ");
	}
}