(function($){

	$.fn.introSlide = function(settings){

		var conf = {
			'event': 'click',
			'speed': 'fast'
		};
		if (settings) $.extend(conf, settings);
		
		var elem = $(this);
		var divs = $('div',elem);
		
		this.each(function(){
		
			var img = $('> li > img',this);
			img.css('cursor','pointer');
			
			img.bind(conf.event, function(){
				divs.stop().animate({bottom:'-300px'}, conf.speed, "swing");
				var div = $(this).parent().children('div');
				div.append('<a class="close" href=""></a>').stop().animate({bottom:'0px'}, conf.speed, "linear");
				return false;
			});

			$('.close').live(conf.event, function(){
				var div = $(this).parent('div');
				div.stop().animate({bottom:'-300px'}, conf.speed, "swing");
				$(this).remove();
				return false;
			});
		
		});
		return false;
	};

})(jQuery);

