﻿function getdom(){
dom=document.getElementById?"modernb":(document.all?"ie":"others");
return dom;
}
//ソーシャルブックマーク、めんどいので全部document.writeしとく.
//dom取得して、innerHTML出力が普通
function sbm(url,title){
	html="<a href=\"http://b.hatena.ne.jp/append?" +url +"\" \"rel=\"nofollow\" title=\"はてブに追加\"><img src=\"http://sozai.7gates.net/img/sbm/hatena.gif\" alt=\"Hatena ブックマーク\" height=\"16\" width=\"16\"></a>";
	html+="<a href=\"http://del.icio.us/post?url=" +url+"&title=" + title + "\" rel=\"nofollow\" title=\"del.icio.us に追加\"><img src=\"http://sozai.7gates.net/img/sbm/delicious.gif\" alt=\"del.icio.us\" height=\"16\" width=\"16\"></a>";
	html+="<a href=\"http://clip.livedoor.com/redirect?link="+ url + "&title="+ title +"\" rel=\"nofollow\" title=\"livedoor クリップに追加\"><img src=\"http://sozai.7gates.net/img/sbm/livedoor_clip.gif\" alt=\"livedoor\" height=\"16\" width=\"16\"></a>";
	html+="<a href=\"http://www.google.com/bookmarks/mark?op=edit&bkmk=" + url +"&title=" + title +"\" rel=\"nofollow\" title=\"Google Bookmarks に追加\"><img src=\"http://sozai.7gates.net/img/sbm/favicon.gif\" alt=\"Google Bookmarks\" title=\"Google Bookmarks に追加\" height=\"16\" width=\"16\"></a>";
	html+="<a href=\"http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t=" + title +"&u=" + url +"\" rel=\"nofollow\" title=\"Yahoo!ブックマークに登録\"><img src=\"http://sozai.7gates.net/img/sbm/ybm16.gif\" alt=\"Yahoo!ブックマーク\" title=\"Yahoo!ブックマークに登録\" height=\"16\" width=\"16\"></a>";
	html+="<a href=\"http://pookmark.jp/post?url="+ url + "&title=" + title + "\" rel=\"nofollow\" title=\"POOKMARK Airlines に追加\"><img src=\"http://sozai.7gates.net/img/sbm/pookmark.gif\" alt=\"POOKMARK Airlines\" height=\"16\" width=\"18\"></a>";
	html+="<a href=\"http://clip.nifty.com/create?url="+url+ "&title=" +title +"\" rel=\"nofollow\" title=\"ニフティクリップに追加\"><img src=\"http://sozai.7gates.net/img/sbm/nifty_clip.gif\" alt=\"ニフティクリップ\" height=\"16\" width=\"16\"></a>";
	html+="<a href=\"http://buzzurl.jp/entry/" + url +"\" rel=\"nofollow\" title=\"Buzzurl に追加\"><img src=\"http://sozai.7gates.net/img/sbm/add_icon_mini_01.gif\" alt=\"Buzzurl\" title=\"Buzzurl に追加\" height=\"15\" width=\"21\"></a>";
	html+="<a href=\"http://newsing.jp/nbutton?title=" +title + "&url=" +url + "\" rel=\"nofollow\" title=\"newsing it! に追加\"><img src=\"http://sozai.7gates.net/img/sbm/newsingit_s.gif\" alt=\"newsing it!\" title=\"newsing it! に追加\" height=\"16\" width=\"16\"></a>";
	document.write(html);
}
