var rotate=1;
	$(document).ready(function(){
		ImgTextRotator($("#page1"));
	});
	
	function ImgTextRotator(ContainerObj) {
		if (rotate>1) {
			var a=setTimeout(function(){
				$("div:eq(3)", ContainerObj).show();	
			}, 1300);
			var b=setTimeout(function(){
				$("div:last", ContainerObj).show();
				$("div:first", ContainerObj).hide();
				$("div:eq(1)", ContainerObj).show();
			}, 3000);
			var ResetTimeout=6000;
		} else {
			var ResetTimeout=3000;
		}
		
		
		var c=setTimeout(function(){
			ResetPage($("#page"+rotate));
			if (rotate==6) {
				rotate=2;
			} else {
				rotate++;
			}		
			$("#page"+rotate).show();
			ImgTextRotator($("#page"+rotate));
		}, ResetTimeout);
	}
	
	function ResetPage(ContainerObj) {
		ContainerObj.hide();
		$("div:first", ContainerObj).show();
		$("div:eq(1)", ContainerObj).hide();
		$("div:gt(2)", ContainerObj).hide();
	}
