/*

function preloadImage(){
mainBanner1= new Image(1024,262); 
mainBanner1.src="../images/index/front1.jpg";
mainBanner1.src="../images/index/front2.jpg";
mainBanner1.src="../images/index/front3.jpg";
mainBanner1.src="../images/index/front4.jpg";
mainBanner1.src="../images/index/front5.jpg";

}

function slideSwitch() {
	var $active = $('#indexPic IMG.active');

	if ( $active.length == 0 ) $active = $('#indexPic IMG:last');

	// use this to pull the images in the order they appear in the markup
	var $next =  $active.next().length ? $active.next()
		: $('#indexPic IMG:first');

	// uncomment the 3 lines below to pull the images in random order
	
	// var $sibs  = $active.siblings();
	// var rndNum = Math.floor(Math.random() * $sibs.length );
	// var $next  = $( $sibs[ rndNum ] );



	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 2000, function() {
			$active.removeClass('active last-active');
		});
	$active.addClass('last-active').animate({opacity:0.0}, 2000);

}
function bgChange(){
			setInterval(function(){
		  	$('#indexPic :first-child').fadeOut('slow')
				 .next('img').fadeIn('slow')
				 .end().appendTo('#indexPic');}, 
		  	12000);
			}
*/

// JavaScript Document

jQuery(document).ready(function(){



	jQuery('#indexPic img:gt(0)').hide();

	jQuery(function(){

		jQuery('#indexPic img:gt(0)').hide();

setInterval(function(){

	jQuery('#indexPic :first-child').fadeOut('slow')

.next('img').fadeIn('slow')

.end().appendTo('#indexPic');}, 

 5000);

});




});
