/***********************
function addSocialBookmark( data ) {

    var title = encodeURIComponent(document.title);
    var url   = encodeURIComponent(location.href);
    var send_url = "";

    switch ( data ) {
        // livedoorClip
        case 1:
           send_url = "http://clip.livedoor.com/clip/add?link="+url+"&title="+title+"&ie=UTF-8";
           break;
        // はてなBookMark
        case 2:
           send_url = "http://b.hatena.ne.jp/add?mode=confirm&title="+title+"&url="+url; 
        break;

        // yahooブックマーク
        case 3:
           send_url = "http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t="+title+"&u="+url+"&opener=bm&ei=UTF-8"
        break;

        // del.icio.us
        case 4:
           send_url = "http://del.icio.us/post?url="+url+"&title="+title;
        break;

        default :
        break;

    }

    window.open(send_url, 'bookmark', 'toolbar=yes, scrollbars=yes width=600, height=470');
}

*****************/

function addSocialBookmark() {

    var title = encodeURIComponent(document.title);
    var url   = encodeURIComponent(location.href);
    var send_url = "";

	send_url = "/cgi-bin/goow/used/disp_sbm_list.cgi?t="+title+"&u="+url;
    window.open(send_url, 'bookmark', 'width=600, height=470');

}


/*
 * 静的ページのみ適用
*/

if (!location.href.match(/.html$/i)){
	if( document.getElementById("add_bookmark_page") != null ) {
		document.getElementById("add_bookmark_page").style.display = "none";
	}
	if( document.getElementById("block-socialBookmark") != null ) {
		document.getElementById("block-socialBookmark").style.display = "none";
	}
}

// add 2008/10/29
var win;
function OpenWin(title, url, rt){

    var next_url = "/cgi-bin/goow/used/sbm_rd.cgi?t="+title+"&u="+url+"&rt\="+rt;

    if(win) win.close();
    //win = window.open(next_url, 'sbm');
    win = window.open(next_url, rt);
}
