﻿elsevier_share = {

    prepared: false,

    prepare: function() {
        this.prepared = true;
    },

    facebook: function(u, t) {
        this.prepare();
        window.open('http://www.facebook.com/sharer.php?u=' + u + '&t=' + t, 'sharer_facebook', 'toolbar=0,status=0,width=626,height=436');
    },

    reddit: function(u, t) {
        this.prepare();
        window.open('http://www.reddit.com/submit?url=' + u + '&title=' + t, 'sharer_reddit', 'toolbar=0,status=0,scrollbars=yes,width=726,height=436');
    },

    twoCollab: function(u, t, d) {
        this.prepare();
        window.open('http://www.2collab.com/bookmark/addremote?ver=f0.1&url='
            + (u) + '&title='
            + t + '&description=' + (d), 'sharer_twoCollab',
            'height=680,width=1000,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
    },

    digg: function(u) {
        this.prepare();
        window.open('http://www.digg.com/submit/?url=' + (u), 'sharer_digg',
        'height=680,width=920,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
    }
};