var array1 = [];
var a = 0;

function startShow() {
	$(array1[a]).fadeOut(3000);

	if(a == array1.length - 1) {
		a = 0;
	} else {
		a++;
	}

	$(array1[a]).fadeIn(3000, function() {
		setTimeout("startShow()", 5000);
	});
}


(function($) {
	$(document).ready(function() {
		$('.banner_click').click(function() {
			$('.banner_content').removeClass('bcshow');
			$(this).next().addClass('bcshow');
		});

		if($('.bphoto')) {
			$(".bphoto").each(function() { array1.push(this); });
			setTimeout("startShow()", 5000);
		}
	});
})(jQuery);
