var _currentContentIndex = 0;
var _selector = "#SpecialAnnouncements .featArticle";
var _rotationTime = 9000;
var _showTime = 1000;
var _hideTime = 1000;
var _effect = "slide";

$j(_selector).ready(function() {

	$j(_selector).hide();  //start off by hiding all content items
	//$j(_selector + ":eq(" + _currentContentIndex + ")").show(_effect,{},_showTime); // show first item
	$j(_selector + ":eq(" + _currentContentIndex + ")").fadeIn("slow");

	// begin rotation
	window.setInterval("rotateContent()", _rotationTime);

});

function rotateContent() {

	/*$j(_selector + ":eq(" + _currentContentIndex + ")").hide(_effect,{},_hideTime, function() {

		if (_currentContentIndex >= $j(_selector).size() - 1 ) {
			_currentContentIndex = 0;
		} else {
			_currentContentIndex++;
		}
		$j(_selector + ":eq(" + _currentContentIndex + ")").show(_effect,{},_showTime);

	});*/

	$j(_selector + ":eq(" + _currentContentIndex + ")").fadeOut("slow",function() {
		//this.style.removeAttribute('filter');
		if (_currentContentIndex >= $j(_selector).size() - 1 ) {
			_currentContentIndex = 0;
		} else {
			_currentContentIndex++;
		}
		$j(_selector + ":eq(" + _currentContentIndex + ")").fadeIn("slow");
	});

}
