var rotateQueue	= 1;

	function rotateNewsInterupt(cur, total) {
		var next = cur + 1;
		if (next > total) {
			next = 0;
		}
		showNews(cur, total);
		rotateQueue++;
		var recur_call = "rotateNews(" + next + ", " + total + ")";
		setTimeout(recur_call, 7000);
	}

	function rotateNews(cur, total, interupt) {
		rotateQueue--;
		if (rotateQueue == 0) {
			var next = cur + 1;
			if (next > total) {
				next = 0;
			}
			showNews(cur, total);
			rotateQueue++;
			var recur_call	= "rotateNews(" + next + ", " + total + ")";
			setTimeout(recur_call, 7000);
		}
	}
	
	function showNews(n, total) {
		var i;
		for (i = 0; i <= total; i++) {
			document.getElementById("news" + i).style.display="none";
		}
		Element.hide("homeNewsTickerArea");
		document.getElementById("news" + n).style.display="block";
		new Effect.Appear(document.getElementById("homeNewsTickerArea"));
	}
