﻿function socialbookmark(type){
        var url = encodeURIComponent(location.href);
        var title = encodeURIComponent(document.title);
        switch (type) {
            case "delicious": 
                window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+ url +'&amp;title='+ title, 'bookmark','toolbar=no,width=550,height=550');
                break;
            case "facebook":
                window.open('http://www.facebook.com/sharer.php?u='+ url+'&amp;t='+ title,'bookmark','toolbar=0,status=0,width=626,height=436');
                break;
            case "newsvine":
                window.open('http://www.newsvine.com/_wine/save?popoff=1&amp;u=' + url,'bookmark','toolbar=no,width=790,height=400,resizable=yes,scrollbars=yes');
                break;
            case "google":
                window.open('http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=' + url + '&amp;title=' + title,'bookmark','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
                break;
            case "stumbleupon":
                window.open('http://www.stumbleupon.com/submit?url=' + url + '&amp;title=' + title,'bookmark','toolbar=no,width=790,height=400,resizable=yes,scrollbars=yes');
                break;
            case "linkedin":
                window.open('http://www.linkedin.com/shareArticle?mini=true&amp;url=' + url + '&amp;source=UrbanCherry.net&amp;summary=&amp;title=' + title,'bookmark','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
                break;  
            case "digg":
                window.open('http://digg.com/submit?phase=2&amp;url=' + url + '&amp;title=' + title,'bookmark','toolbar=no,width=790,height=500,resizable=yes,scrollbars=yes');
                break;   
            case "twitter":
                window.open('http://twitter.com/home?status=Currently reading "' + title + '" @urbancherry - ' + url,'bookmark','toolbar=no,width=790,height=500,resizable=yes,scrollbars=yes');                   
            default: 
                //alert(type);
        }
        return false;
    }
    
    
