/*
* Addthis 1.0
* (c)2009 Brent Wong
*/
(function($){
	$.addthis = function(code){
		function init(){
			 try{
			  // determine whether to include the normal or SSL version
			  var addthisurl = (location.href.indexOf('https') == 0 ? 'https://' : 'http://') + 's7.addthis.com/js/300/addthis_widget.js?domready=1&pubid=' + code;
			  
			  // include the script
			  $.getScript(addthisurl, function(){
				  $('li.share a').html('<a title="diese Seite teilen" href="http://www.addthis.com/bookmark.php?v=300" class="addthis_button_compact">Share</a>').mouseover(
					  function(){
						  	  return addthis_open(this, '', '[URL]', '[TITLE]');
						  }).mouseout(function(){
							  addthis_close();
						  }).click(function(){
							  return addthis_sendto();
						  });
				 });
			 } catch(err) {
			  // log any failure
			  // console.info('Failed to load AddThis Script:' + err);
			 }
		}
	init();
	}
})(jQuery);
