$(document).ready(function(){
						   
	if ( $('.home').length>0 ){
		$('#ticker-wrapper').tweetable({username: 'Karina_Smirnoff', time: true, limit: 10 });	
		
		//$('.home #sidebar figure').html('<span class="anim"></span>')
		
		var img = new Image();
	  
		  // wrap our new image in jQuery, then:
		  $(img)
			// once the image has loaded, execute this code
			.load(function () {
			  // set the image hidden by default    
			  $(this).hide();
			
			 $('.home #sidebar figure').html('<span class="anim"></span>');
			 
			})
			
			// if there was an error loading the image, react accordingly
			.error(function () {
			  // notify the user that the image could not be loaded
			})
			
			// *finally*, set the src attribute of the new image to our image
			.attr('src', 'wp-content/themes/JeannieMai/images/Hm_anim.gif');
		
	}
	
});
