// Put jQuery into no colflict mode
jQuery.noConflict();

// Put all your code in your document ready area
jQuery(function($){

    // add bookmark widget if span exists
    // del.icio.us
    // Digg
    // Email
    // Evernote
    // Facebook
    // Google
    // StumbleUpon
    // Technorati
    // Twitter
    // Yahoo
    // linkedin - LinkedIn

    // BlogEntry
    $('body.BlogEntry .authorDate:first').append('<div class="bookmark-menu"></div>');
    $('body.BlogEntry .bookmark-menu').bookmark( {
        sites: [
            'tweetmeme',
            'delicious',
            'digg',
            'evernote',
            'facebook',
            'google',
            'ping',
            'stumbleupon',
            'technorati',
            'twitthis',
            'yahoo'
        ],
        addEmail: true,
        emailSubject: 'Interesting page',  // The subject for the e-mail
        emailBody: 'I thought you might find this page interesting:\n{t} ({u})',
            // The body of the e-mail. Use '{t}' for the position of the
            // page title, '{u}' for the page URL, and '\n' for new lines
        manualBookmark: 'Please close this dialog and\npress Ctrl-D to bookmark this page.'
            // Instructions for manually bookmarking the page
    }).prepend('Share this post: ');

    // BlogHolder
//     $('body.BlogHolder .blogSummary').each( function() {
//         my_url = $(this).find('h2:first a').attr('href');
//         my_title = $(this).find('h2:first').text();
//         $(this).find('.authorDate:first').append('<div class="bookmark-menu"></div>');
//         $(this).find('.bookmark-menu:first').bookmark({
//             url: my_url,  // The URL to bookmark, leave blank for the current page
//             title: my_title,  // The title to bookmark, leave blank for the current one
//             sites: [
//                 'delicious',
//                 'digg',
//                 'evernote',
//                 'facebook',
//                 'google',
//                 'linkedin',
//                 'stumbleupon',
//                 'technorati',
//                 'twitthis',
//                 'yahoo'
//             ],
//             addEmail: true,
//             emailSubject: 'Interesting page',  // The subject for the e-mail
//             emailBody: 'I thought you might find this page interesting:\n{t} ({u})',
//                 // The body of the e-mail. Use '{t}' for the position of the
//                 // page title, '{u}' for the page URL, and '\n' for new lines
//             manualBookmark: 'Please close this dialog and\npress Ctrl-D to bookmark this page.'
//                 // Instructions for manually bookmarking the page
//         }).prepend('Share this post: ');
//     });
});
