;(function($) {	$.fn.dqFader = function(options)	{	  		// default configuration properties		var defaults = {			speed      : 2000,			delay      : 6000		}; 				var options = $.extend(defaults, options);  		var mainObject;				return this.each(function() 		{			mainObject = $(this); 							$("li", mainObject).css('position', 'absolute'); 			$("li", mainObject).hide();			$("li", mainObject).first().show().addClass("dq_fader_shown");						//setInterval(function() { run(); }, options.delay);						clearTimeout( mainObject.data('timeout'));			play();		});				function play ()		{			mainObject.data('timeout', setTimeout(function(){ run(); play();} , options.delay ));		}				function run()		{			var obj1 = $("li.dq_fader_shown", mainObject);			var obj2 = $("li.dq_fader_shown", mainObject).next();						if ($(obj2).length == 0) obj2 = $("li", mainObject).first();			$(obj1).removeClass("dq_fader_shown").fadeOut(options.speed);			$(obj2).addClass("dq_fader_shown").fadeIn(options.speed);						//setTimeout(function() { run(); }, options.delay);		}	}})(jQuery);
