

Drupal.behaviors.updateBottomBorder = function (con) {
  $('#sidebar-far-right .block:last-child').
   add('#sidebar-right .block:last-child').
   add('#sidebar-left .block:last-child').
   add('body.region-far-right #content .block:last-child',con).css("border-bottom","none");
}

Drupal.behaviors.updatePrintLink = function (c) {
  title = $('.section-title').html();
  href = $('.print a').attr('href') + '?section=' + title;
  $('.print a').attr('href',href);
  href = $('.mail a').attr('href') + '?section=' + title;
  $('.mail a').attr('href',href);
  if(typeof(SHARETHIS) !== 'undefined') {
    //Create your sharelet with desired properties and set button element to false
    var object = SHARETHIS.addEntry({'title':'share'},{button:false});
    //Output your customized button
    //Tie customized button to ShareThis button functionality.
    var element = document.getElementById("share");
    object.attachButton(element);
  }

}
