var hrcSlider = {
	lastVal : 0,
	curVal : 0,
	firstVal : 0,
	intv : null,
	intervalId : null,
	init: function(){
		hrcSlider.firstVal = 0;
//		hrcSlider.intervalId = window.setInterval(function(){hrcSlider.moveit();}, 5000);			
	},
	moveit: function(){
		var numPanels = $(".featured").length;
		var featured = $(".featured");
		var curPage = hrcSlider.lastVal;
		var stop = 0;
		var last = featured[hrcSlider.lastVal];
		var current = featured[hrcSlider.curVal];
		last.style.display="none";
		$(current).fadeIn("slow");
		if( curPage == 4 ){
			hrcSlider.lastVal = hrcSlider.curVal;
			hrcSlider.curVal=1;
			window.clearInterval(hrcSlider.intervalId);
		}else{
			hrcSlider.lastVal = hrcSlider.curVal;
			hrcSlider.curVal++;	//	not back at beginning
			window.clearInterval(hrcSlider.intervalId);
			hrcSlider.intervalId = window.setInterval(function(){hrcSlider.moveit();}, 5000);	
		}
	}
};
