
    function bookmarkIt(type) {
    var bookmarkUrl = '';
    var u=location.href;
    var t=document.title;
    if (type == 'delicious') {
        bookmarkUrl = 'http://del.icio.us/post?v=4&noui&jump=close&url=' + escape(u) + '&title=' + escape(t);
        } else if (type == 'digg') {
        bookmarkUrl = 'http://digg.com/submit?url=' + escape(u) + '&title=' + escape(t) + '&phase=2';
        } else if (type == 'reddit') {
        bookmarkUrl = 'http://www.reddit.com/submit?url=' + escape(u) + '&title=' + escape(t);
        } else if (type == 'facebook') {
        bookmarkUrl = 'http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t);
        } else if (type == 'stumble') {
        bookmarkUrl = 'http://www.stumbleupon.com/submit?url=' + escape(u) + '&title=' + escape(t);
        } else {
        return false;
    }
    if (type == 'facebook') {
        window.open(bookmarkUrl,'sharer','toolbar=0,status=0,width=626,height=436');
        } else {
        window.open(bookmarkUrl);
    }
    return false;
    }
   
