(function($) {
	$.fn.listTransparent = function(userArgs) {
		if(!this.length) return false;
		if(!this.is('ul') && !this.is('ol')) return this;
		
		var args = {
			duration:4000,
			speed:1000
		}
		$.extend(true, args, userArgs);
		
		var frame = this.css({'position':'relative','overflow':'hidden','padding':0});
		var currentItem = 0;
		var itemTotal = frame.find('li').length;
		
		$(window).load(function() {
			frame.find('li').each( function(index) {
				$(this).css({'position':'absolute','top':0,'left':0,'opacity':0});
			});
			frame.find('li').eq(0).animate({'opacity':1}, args.speed);
			
			var timer = setInterval(function() {
				changeItem();
			}, args.duration);
		
		});
		
		function changeItem() {
			frame.find('li').eq(currentItem).stop(true,true).animate({'opacity':0}, args.speed);
			currentItem++;
			if(currentItem >= itemTotal) currentItem = 0;
			frame.find('li').eq(currentItem).stop(true,true).animate({'opacity':1}, args.speed);
			return false;
		}
		
		return this;
	}
})(jQuery);
