// JavaScript Document
$s=jQuery.noConflict();
var timer = 5;

//To change the slide delay time, change the number of seconds of the timer on the line below.

$s(document).ready(function() {		
	slideShow();
});

function slideShow() {
	$s('#headimg .slide').css({opacity: 0.0});
	$s('#headimg img').removeClass('initial');
	$s('#headimg div.show').animate({opacity: 1.0}, 1000);	
	changeImage = setInterval('changePics()',timer * 1000);
}



function changePics() {
	
	var curImg = $s('#headimg div.show');
	var nextImg = ((curImg.next().length) ? (curImg.next()) : $s('#headimg .slide:first'));	
	nextImg.css({opacity: 0.0}).addClass('show').animate({opacity: 1.0}, 1000);
	curImg.animate({opacity: 0.0}, 1000).removeClass('show');	
   
}
