//scBk('bookmarks');

function scBk(elmID)
{
var image_dir = 'http://www.avfan.org/images/bookmark/';

var bookmarks = new Array();

bookmarks.push({
    "name"      : "Yahoo!ブックマーク",
    "title"     : "Yahoo!ブックマークに登録",
    "file_name" : "yahoo.gif",
    "action"    : "window.open('http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t='+encodeURIComponent(document.title)+'&amp;u='+encodeURIComponent(window.location.href)+'&amp;opener=bm&amp;ei=UTF-8','popup','width=550px,height=480px,status=1,location=0,resizable=1,scrollbars=0,left=100,top=50',0);"
});

bookmarks.push({
    "name"      : "はてなブックマーク",
    "title"     : "Hatenaブックマークに追加",
    "file_name" : "hatena.gif",
    "action"    : "window.open('http://b.hatena.ne.jp/add?mode=confirm&amp;title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(window.location.href));"
});

bookmarks.push({
    "name"      : "del.icioブックマーク",
    "title"     : "del.icio.usに追加",
    "file_name" : "deli.gif",
    "action"    : "window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400');"
});

bookmarks.push({
    "name"      : "ニフティクリップに追加",
    "title"     : "ニフティクリップに追加",
    "file_name" : "nifty.gif",
    "action"    : "window.open('http://clip.nifty.com/entry?viacliplink=true&amp;url='+encodeURIComponent(window.location.href)+'&amp;title='+encodeURIComponent(document.title));"
});

bookmarks.push({
    "name"      : "livedoorクリップに追加",
    "title"     : "livedoorクリップに追加",
    "file_name" : "livedoor.gif",
    "action"    : "window.open('http://clip.livedoor.com/clip/add?link='+encodeURIComponent(window.location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;jump=myclip');"
});

bookmarks.push({
    "name"      : "Yahoo.comに追加",
    "title"     : "Yahoo!ブックマークに登録",
    "file_name" : "yahoocom.gif",
    "action"    : "window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&amp;u='+encodeURIComponent(window.location.href)+'&amp;opener=bm&amp;ei=UTF-8','popup','width=550px,height=480px,status=1,location=0,resizable=1,scrollbars=0,left=100,top=50',0);"
});

bookmarks.push({
    "name"      : "Buzzurlに追加",
    "title"     : "Buzzurlに追加",
    "file_name" : "buzz.gif",
    "action"    : "window.open('http://buzzurl.jp/config/add/confirm?url='+encodeURIComponent(location.href));"
});

bookmarks.push({
    "name"      : "newsingに追加",
    "title"     : "newsingに追加",
    "file_name" : "new.gif",
    "action"    : "window.open('http://newsing.jp/nbutton?title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(window.location.href));"
});

bookmarks.push({
    "name"      : "Choixに追加",
    "title"     : "Choixに追加",
    "file_name" : "choixsbm.gif",
    "action"    : "window.open('http://www.choix.jp/bloglink/'+encodeURIComponent(location.href));"
});

bookmarks.push({
    "name"      : "POOKMARKに追加",
    "title"     : "POOKMARKに追加",
    "file_name" : "pook.gif",
    "action"    : "window.open('http://pookmark.jp/post?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title));"
});

bookmarks.push({
    "name"      : "イザ!に追加",
    "title"     : "イザ!に追加",
    "file_name" : "iza.gif",
    "action"    : "window.open('http://www.iza.ne.jp/bookmark/add/regist/back/?mode=confirm&amp;title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(window.location.href));"
});

var bkStr = "";
var classStr;
//bkStr += '<ul>';
for (var i = 0; i < bookmarks.length; i ++) {
    classStr = (i)? "underline": "underline_top";
    bkStr += '<li><a class="'+classStr+'" href="javascript:void(0);" onclick="'+bookmarks[i].action+'" title="'+bookmarks[i].title+'" /><img src="'+image_dir+bookmarks[i].file_name+'" alt="'+bookmarks[i].title+'" />'+bookmarks[i].name+'</a></li>';
}
//bkStr += '</ul>';
document.getElementById(elmID).innerHTML = bkStr;
}

