jQuery.fn.fadeToggle = function(speed, easing, callback) {
	return this.animate({opacity: 'toggle'}, speed, easing, callback);	
}; 
$(function(){
	$("#share").click(function () {
		$("#socialpanel").fadeToggle();
		pageTracker._trackEvent('Share', 'Click');
	});
	$("#share").toggle(function(){
		$(this).css("background-position","0 -28px");
	},function(){
		$(this).css("background-position","0 0");
	});
	$("img").lazyload({ 
		effect : "fadeIn" 
	});
	$("#navigation .prev a").aToolTip({  
		clickIt: false,                     // set to true for click activated tooltip  
		fixed: true,                       // Set true to activate fixed position  
		inSpeed: 200,                       // Speed tooltip fades in  
		outSpeed: 50,                      // Speed tooltip fades out  
		toolTipClass: 'tooltip',           // Set custom class for tooltip  
		xOffset: -420,                         // x Position  
		yOffset: -14                          // y position  
	}); 
	$("#navigation .next a").aToolTip({  
		clickIt: false,                     // set to true for click activated tooltip  
		fixed: true,                       // Set true to activate fixed position  
		inSpeed: 200,                       // Speed tooltip fades in  
		outSpeed: 50,                      // Speed tooltip fades out  
		toolTipClass: 'tooltip',           // Set custom class for tooltip  
		xOffset: -350,                         // x Position  
		yOffset: -14                          // y position  
	}); 
	// tracking image load
	$('.vcard .photo').load(function() {
	  pageTracker._trackEvent('Scrolled', 'Load');
	}); 
});