/*
* Addthis 0.1
* (c)2009 Brent Wong
*
* Usage:
* $.addthis();
* -or-
* $.addthis('username');
* where username is your AddThis username. Useful for tracking statistics
*/
(function($){
	$.addthis = function(code,thisurl){
	 
	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/250/addthis_widget.js?pub=' + code;
		 
		// include the script
		$.getScript(addthisurl, function(){
			$('a.addthis').append('<img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" border="0" />').mouseover(function(){
				return addthis_open(this, '', thisurl, '[TITLE]');
			}).mouseout(function(){
				addthis_close();
			}).click(function(){
				return addthis_sendto();
			});
		});
		
	} catch(err) {
		// log any failure
		console.log('Failed to load AddThis Script:' + err);
	}
}
 
init();
}
})
(jQuery);

(function($){
	$.addthis2 = 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/250/addthis_widget.js?pub=' + code;
		 
		// include the script
		$.getScript(addthisurl, function(){
			
			$('a.addthis2').append('Share').mouseover(function(){
				
				short_share_url = ""
				short_share_url = $(this).attr('href')
				
				short_url_array=short_share_url.split("/");
				view_id = short_url_array[3]
				thisurl = location.host + '/hall-of-shame/' + view_id

				
				return addthis_open(this, '', thisurl, '[TITLE]');
			}).mouseout(function(){
				short_share_url = ""
				addthis_close();
			}).click(function(){
				return addthis_sendto();
			});
		});
		
	} catch(err) {
		// log any failure
		console.log('Failed to load AddThis Script:' + err);
	}
}
 
init();
}
})
(jQuery);