$(function() {
	
	var	xwidth = ($('.image-popout img').width());
	var	xheight = 64;
	
	$('.image-popout img').css(
			{'width': xwidth, 'height': xheight}
	); //By default set the width and height of the image.
	
	$('.image-popout img').parent().css(
			{'width': 50, 'height': 100}
	);
	
	$('.image-popout img').hover(
		function() {
			$(this).stop().animate( {
				width   : xwidth * 2,
				height  : xheight * 2,
				}, 200
			); //END FUNCTION
			
			$(this).addClass('image-popout-shadow');
			
		}, //END HOVER IN
		function() {
			$(this).stop().animate( {
				width   : xwidth,
				height  : xheight,
				margin : 0
				}, 200, function() {
					$(this).removeClass('image-popout-shadow');
		}); //END FUNCTION
			
		}
	);
	
});
