/**
 * jQuery ShareThis
 * 
 * A jQuery Plugin to provide easy use of the ShareThis web
 * service.
 *
 * $Id: jquery.sharethis.js,v 1.1.2.1 2009/06/05 19:58:57 robloach Exp $
 *
 * Copyright (c) 2009 Rob Loach (http://robloach.net) Dual licensed under the
 * MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
 *
 * Built on top of the jQuery library http://jquery.com
 */

/**
 * The ShareThis jQuery plugin.
 *
 * Usage:
 * <a href="http://example.com" title="Example" class="sharethis">ShareThis</a>
 * $('a.sharethis').sharethis();
 *
 * The URL and the title will be taken from the HREF and the TITLE attributes.
 */
 
 /**
  * Customization 2009-10-29 Packed javascript & added callback for onclick, onclick:shareThisClicked 
  */
(function(jQuery){jQuery.sharethisQueue=[];jQuery.sharethisUrl="http://w.sharethis.com/button/sharethis.js#";jQuery.fn.sharethis=function(sharethisUrl){jQuery.sharethisQueue=jQuery.sharethisQueue.concat(this);if(jQuery.fn.sharethis.loaded||true){jQuery.fn.sharethis.loaded=false;jQuery.sharethisUrl=sharethisUrl||jQuery.sharethisUrl;jQuery.ajax({type:'GET',url:jQuery.sharethisUrl+'&amp;button=false',dataType:'script',cache:true,success:function(){SHARETHIS.toolbar=true;SHARETHIS.onReady();jQuery.fn.sharethis.loadedShareThis=true;jQuery.shareThis()}})}else if(jQuery.fn.sharethis.loadedShareThis||false){jQuery.shareThis()}return this};jQuery.shareThis=function(){jQuery.each(jQuery.sharethisQueue,function(i,objects){jQuery.each(objects,function(i,object){var element=jQuery(object);var objectProperties={url:element.attr('href'),title:element.attr('title')};var share=SHARETHIS.addEntry(objectProperties,{button:false,onclick:shareThisClicked});element.replaceWith(share.button)})});jQuery.sharethis=[]}})(jQuery);