hideElement = function(){
	var bannerDiv = document.getElementById('banner').getElementsByTagName('div');

		for (var i = 0; i < bannerDiv.length; i++) {
			bannerDiv[i].style.display = 'block';
		}
};
window.onload = hideElement;

jQuery(function($) {
	var index = 0;
	$('#banner').hover(function() {
		if (MyTime) {
			clearInterval(MyTime);
		}
	},
	function() {
		MyTime = setInterval(function() {
			ShowjQueryFlash(index);
			index++;
			if (index == document.getElementById('banner').getElementsByTagName('div').length) {
				index = 0;
			}
		},
		3000);
	});
	var MyTime = setInterval(function() {
		ShowjQueryFlash(index);
		index++;
		if (index == document.getElementById('banner').getElementsByTagName('div').length) {
			index = 0;
		}
	},
	3000);
});
function ShowjQueryFlash(i) {
	$("#banner div").eq(i).animate({
		opacity: 1
	},
	1000).css({
		"z-index": "1"
	}).siblings().animate({
		opacity: 0
	},
	1000).css({
		"z-index": "0"
	});
}
