$(document).ready(function() {
	setInterval(rotateBanner, 5000);
	
	$('#map li > a ').hover( function ( event ) {
		event.preventDefault();

		$('.addr').css('display','none');
		$(this).parent().children('.addr').css('display', 'block');
	});
		
});

$imgIndex = 1;
function rotateBanner()
{
	$hideIndex = $imgIndex;
	$imgIndex++;
	$imgIndex %= 5;
	$showIndex = $imgIndex;
	$('#banner img:eq('+$hideIndex+')').fadeOut(2000);
	$('#banner img:eq('+$showIndex+')').fadeIn(2000);
	
}
