<!-- Rotating Banner -->
function theRotator() {
	$('#banner p').css({opacity: 0.0});
	$('#banner p:first').css({opacity: 1.0});
	setInterval('rotate()',5000); //1000=1 Second
}
function rotate() {	
	//Get the first image
	var current = ($('#banner p.show')?  $('#banner p.show') : $('#banner p:first'));
    if ( current.length == 0 ) current = $('#banner p:first');
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('#banner p:first') :current.next()) : $('#banner p:first'));
	//Un-comment the 3 lines below to get the images in random order
	//var sibs = current.siblings();
    //var rndNum = Math.floor(Math.random() * sibs.length );
    //var next = $( sibs[ rndNum ] );
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	//Hide the current image
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
};
$(document).ready(function() {		
	//Load the slideshow
	theRotator();
	$('#banner p:first').addClass('show')
	$('#banner p').css('position','absolute');
});

