﻿$(document).ready(function() {
    var this_domain = location.href;
    $('#share_links a:not(.lnk-email)').each(function() {
        if ($(this).hasClass('lnk-myspace') || $(this).hasClass('lnk-facebook')) {
            $(this).attr('href', $(this).attr('href') + this_domain + "&t=" + encodeURI(document.title));
        } else if ($(this).hasClass('lnk-twitter')) {
            $(this).attr('href', $(this).attr('href') + this_domain);
        } else {
            $(this).attr('href', $(this).attr('href') + this_domain + "&title=" + encodeURI(document.title));
        }
    });
    $.superbox();
});
