(function($)
{
	$.fn.t4mclick = function(options)
	{
		options = $.extend({
		}, options);	
		$(this).each(function()
		{
			var root = $(this);
			var img = root.find('.img');
			if(options.first == null)
			{
				options.first = root;
				root.find('.text').css('display','block');
			}
			else
			{
				root.find('.text').css('display','none');
			}
			img.css('cursor','pointer');
			img.bind(
					{
						click:function()
						{		
							$('#geschichtetext .text').fadeOut(400);
							
							$('#text'+root.attr('id')).fadeIn(800);			
						}
					}
			);
		});		
	}
	
}
)(jQuery);
