
var amu = function()
{
	
	var setUpOverlays = function()
	{
		$(".content img").each(function(){
			var img = $(this);
			img.wrap('<div class="img_wrapper"></div>');
			var desc = $('<p class="img_description">'+img.attr("alt")+'</p>').css( "width", img.attr("width")-20 );
			
			img.after(desc);
			
			desc.hide(); // safari needs the element to be attached to the dom before you can hide it.
			
			img.parent(".img_wrapper").hover(function(){
				desc.fadeIn();
			}, function(){
				if ( $(this).data("fixed") !== true )
				{
					desc.fadeOut('slow');					
				}
			});
			
		});
	};
	
	return {
		
		init : function()
		{
			if ( !$.browser.msie || ($.browser.msie && parseInt($.browser.version) >= 7) ) setUpOverlays();
		}
		
	};
	
}();

$(function(){ amu.init() });
