/*********************************image transition***************************************************/
		(function($) {
		    $.fn.transit = function(o) {
		        var opt = $.extend({ index: 0, delay: 7000, run: 2000 }, o);
		        return this.each(function() {
		            var c = $(this);
		            var lastIndex = 0;
		            opt.length = $(">img", c).length;
		            $(">img", c).hide();
		            $(".mnquotetxt", $(c).next()).hide();
		            $(">img", c).eq(opt.index).fadeIn(opt.run, c.setnext);
		            $(".mnquotetxt", $(c).next()).eq(opt.index).fadeIn(opt.run);
					c.begin = function() {
						if (lastIndex != null) {
							$(">img", c).eq(lastIndex).delay(opt.delay).fadeOut(opt.run);
							$(".mnquotetxt", $(c).next()).eq(lastIndex).delay(opt.delay).fadeOut(opt.run / 2, function() {
							$(".mnquotetxt", $(c).next()).eq(opt.index).fadeIn(opt.run/2);
						});
						}
				else {
					$(".mnquotetxt", $(c).next()).eq(opt.index).delay(opt.delay).fadeIn(opt.run);
						}
					$(">img", c).eq(opt.index).delay(opt.delay).fadeIn(opt.run, c.setnext);
					}
		            c.setnext = function() {
		                lastIndex = opt.index;
		                opt.index++;
		                if (opt.index == opt.length) opt.index = 0;
		                c.begin();
		            }
		            c.setnext();
		        });
		    }
		})(jQuery);
$(document).ready(function() {
	$(".bannerhld").transit({});
})		
