
var bannerArray = new Array();
var effectArray = new Array();
var myCount=0;
var options = {};

// Banner Code Assignment
bannerArray[0] = "#centerSplash1";
effectArray[0] = "fold";
bannerArray[1] = "#centerSplash2";
effectArray[1] = "blind";
bannerArray[2] = "#centerSplash3";
effectArray[2] = "drop";
bannerArray[3] = "#centerSplash4";
effectArray[3] = "explode";


$(window).load(function () {
	$(bannerArray[myCount]).fadeIn("slow");
	setTimeout("bannerRotate()", 6000);
});



function bannerRotate() {

	$(bannerArray[myCount]).hide(effectArray[myCount],options,"slow", showNextCenterImage);

}

function showNextCenterImage() {

	myCount++;
	if(myCount > 3){myCount=0;}

	$(bannerArray[myCount]).fadeIn("slow");

	setTimeout("bannerRotate()", 6000);

}
