function loadImg2(src) {
	var img = new Image();

	// with the holding div #loader, apply:
	$('#loader').addClass('loading');

	// wrap our new image in jQuery, then:
	$(img)
		.load(function () {
		$(this).hide();
	
		$('#loader').removeClass('loading');
		
		$('#fullImage').append(this);

	  // fade our image in to create a nice effect
	  $(this).fadeIn();
	})
	
	// 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', src);
}

function loadImg(src, link) {
	$('.fullImage').attr('src', src);
	$('.square').removeClass('active');
	$(link).parent().parent().addClass('active');
}

$(document).ready(function() {
	$('.entrytext').jScrollPane();
});	

