function rotateImage () {
	if (!window.rotateVal) {
		rotateVal = 1;
	} else {
		if (rotateVal == 3) {
			rotateVal = 1;
		} else {
			rotateVal = rotateVal+1;
		}
	}

	switch (rotateVal) {
		case 1:
		 $("#homePic3").fadeOut(1000);
		break;
		case 2:
		 $("#homePic2").fadeOut(1000);
		break;
		case 3:
		 $("#homePic3").fadeIn(1000,function(){
		 	$("#homePic2").show();
	 	 });
		
		break;
	}
}




$(document).ready(function() {
	setInterval("rotateImage()", 5000);	


});
