// 2010.08.18
// Grendelfly - A Division of SC&G Technology Solutions
//
// Requires JQuery: jquery-1.4.2.min.js



$(function(){
$(document).ready(function() {

// Rotating Picture Funtion

	var target = '#flash img'
	var pnl = 0;
	var lng = $(target).length;
	var fTimer = setInterval(function(){fRotate()}, 5000); // timed at 5 seconds per rotation
	
	$(target).each( function(x,e){
		if(x == pnl){ $(e).fadeIn(800) };
		});
							
	function fRotate(){
		pnl++; if(pnl == lng){pnl = 0};
		$(target).fadeOut(1800);
		$(target).each( function(x,e){
			if(x == pnl){ $(e).fadeIn(1800) };
			});
		}; // function fRotate()


}); // $(document).ready(function()
}); // $(function()


