
var announ_count = 5;
var current_announ = 1;

function announ_hover(index) {
	if (window.change_announ != index) {
		return 0;
	}
	for (i=1; i <= announ_count ; i++ ) {
		document.getElementById('announ_content' + i).style.display = 'none';
		document.getElementById('announ_bar' + i).style.display = 'block';
	/*		
		if (i != index) {
			document.getElementById('announ_content' + i).style.display = 'none';
			document.getElementById('announ_bar' + i).style.display = 'block';
		} else {
			document.getElementById('announ_content' + i).style.display = 'block';
			document.getElementById('announ_bar' + i).style.display = 'none';
		}
	*/
	}
	
	document.getElementById('announ_bar' + index).style.display = 'none';
	document.getElementById('announ_content'+index).style.display = 'block';
}

function announ_prep(index) {
	window.change_announ = index;
	var timerD = setTimeout('announ_hover("'+index+'")', 250);
}

function announ_cancel(index) {
	window.change_announ = 'no';
}

function announ_init () {
	window.change_announ = current_announ;
	announ_hover(current_announ);
}