// JavaScript Document
$(document).ready(function() {		
	//Lets get it ON!
	slideShow();
});

function slideShow() {

	$('#novSlide img').css({opacity: 0.0});
	$('#novSlide img:first').css({opacity: 1.0});
	setInterval('novSlide()',5000);
	
}

function novSlide(){
	var current = ($('#novSlide img.show')?  $('#novSlide img.show') : $('#novSlide img:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('description'))? $('#novSlide img:first') :current.next()) : $('#novSlide img:first'));	
	var description = next.find('img').attr('rel');	
	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);

	current.animate({opacity: 0.0}, 3000)
	.removeClass('show');
}
