// JavaScript Document
    function add_site(site,site_lang){
        var desc = '';
        var via ='';
        if(document.referrer)via=document.referrer;
        if(typeof(_ref)!='undefined')via=_ref;
        if(window.getSelection)desc=window.getSelection();
        if(document.getSelection)desc=document.getSelection();
        if(document.selection)desc=document.selection.createRange().text;
        var site_url = new Array();
        if(site_lang == 'tw'){
            site_url[1] = 'http://www.hemidemi.com/user_bookmark/new?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&description='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via);
            site_url[2] = 'http://funp.com/push/submit/add.php?url='+encodeURIComponent(location.href)+'&via=tools';
            site_url[3] = 'https://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site_url[4] = 'http://tw.bookmarks.yahoo.com/toolbar/savebm?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&opener=bm&ei=UTF-8';
            site_url[5] = 'https://skydrive.live.com/sharefavorite.aspx/.SharedFavorites?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&jump=1&wa=wsignin1.0';
            site_url[6] = 'http://myshare.url.com.tw/index.php?func=newurl&from=mysharepop&url='+encodeURIComponent(location.href)+'&desc='+encodeURIComponent(document.title)+'&contents='+encodeURIComponent(desc);
            site_url[7] = 'http://del.icio.us/post?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&notes='+encodeURIComponent(desc);
            site_url[8] = 'http://twitter.com/home?status='+encodeURIComponent(location.href)+'%20'+encodeURIComponent(document.title);
            site_url[9] = 'http://www.plurk.com/?qualifier=shares&status='+encodeURIComponent(location.href)+'%20'+encodeURIComponent(document.title);
            site_url[10]= 'http://www.facebook.com/share.php?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title);
            site = site_url[site];
        }else if(site_lang == 'cn'){
            site_url[1] = 'http://v.t.sina.com.cn/share/share.php?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&jumpback=2&noui=1';
            site_url[2] = 'http://cang.baidu.com/do/add?iu='+encodeURIComponent(location.href)+'&it='+encodeURIComponent(document.title)+'&fr=ien#nw=1';
            site_url[3] = 'http://shuqian.qq.com/post?uri='+encodeURIComponent(location.href)+'&from=3&title='+encodeURIComponent(document.title)+'&jumpback=2&noui=1';
            site_url[4] = 'http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site_url[5] = 'http://t.sohu.com/third/post.jsp?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site_url[6] = 'http://www.kaixin001.com/~repaste/repaste.php?url='+encodeURIComponent(location.href)+'&rtitle='+encodeURIComponent(document.title)+'&jumpback=2&noui=1';
            site_url[7] = 'http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&jumpback=2&noui=1';
            site_url[8] = 'http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site_url[9] = 'http://zuosa.com/collect/Collect.aspx?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title);
            site_url[10] = 'http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site = site_url[site];
        }else if(site_lang == 'en'){
            site_url[1] = 'https://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site_url[2] = 'http://bookmarks.yahoo.com/toolbar/savebm?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&opener=bm&ei=UTF-8&d='+encodeURIComponent(desc);
            site_url[3] = 'http://del.icio.us/post?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&notes='+encodeURIComponent(desc);
            site_url[4] = 'http://www.blinklist.com/blink?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&d='+encodeURIComponent(desc);
            site_url[5] = 'http://blogmarks.net/my/new.php?mini=1&simple=1&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&content='+encodeURIComponent(desc);
            site_url[6] = 'http://www.google.com/buzz/post?hl=zh-TW&url='+encodeURIComponent(location.href)+'&message='+encodeURIComponent(document.title)+'&imageurl=';
            site_url[7] = 'http://www.ttnet.net/wordpress_addthis.html?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&s='+encodeURIComponent(desc);
            site_url[8] = 'http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
            site_url[9] = 'http://twitter.com/home?status='+encodeURIComponent(location.href)+'%20'+encodeURIComponent(document.title);
            site_url[10]= 'http://www.facebook.com/share.php?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title);
            site = site_url[site];
        }
        void(open(site));
    }
