var jFader = {
	setOrderZIndex : function ()
	{
		$('#banner img')
			.each( function ()
	    		{
	    		    $(this).css('z-index', $(this).index())
	    		}
			);
	},
	initiate : function ()
	{
		this.setOrderZIndex();
		$('#banner img')
			.removeClass('active')
			.first()
			.addClass('active');
		$('#banner img')
			.hide()
			.filter('.active')
			.show();
	},
	reinitiate : function ()
	{
		$('#banner img')
			//.filter(':not(.active)')
			.filter('.active')
			.prevAll()
			.hide()
			.appendTo( $('#banner img').parent() );
		jFader.initiate();
	},
	fade : function ()
	{
		$('#banner img')
			.filter('.active')
			.removeClass('active')
			.css('opacity', 1)
			.next()
			.addClass('active')
			.css('opacity', 0)
			.show()
			.fadeTo( 2000, 1, jFader.reinitiate ); //2000
	}
};

$(document).ready( function ()
	{
		jFader.initiate();
		setInterval( jFader.fade, 4500 ); //4500
	}
);
