

// BEGIN EXPANDABLE MENU SCRIPT
function cioCategory(CatIDStr) {
	var txtObj = document.getElementById('div_' + CatIDStr);
	var imgObj = document.getElementById('img_' + CatIDStr);

	if (txtObj.style.display == 'none'){
		txtObj.style.display = 'block';
		imgObj.src = '/images/minus.gif';}
	else{
		txtObj.style.display = 'none';
		imgObj.src = '/images/plus.gif';}

}

function cioExpand() {

	for (i=1; i < cioCount+1; i++){
		var txtObj = document.getElementById('div_' + i);
		var imgObj = document.getElementById('img_' + i);

		txtObj.style.display = 'block';
		imgObj.src = '/images/minus.gif';}
}

function cioCollapse() {
	for (i=1; i < cioCount+1; i++){
		var txtObj = document.getElementById('div_' + i);
		var imgObj = document.getElementById('img_' + i);

		txtObj.style.display = 'none';
		imgObj.src = '/images/plus.gif';}
}
// END



//BEGIN cioPOP THAT CLOSES ALL OPEN MENU ITEMS WHEN A NEW ITEM IS EXPANDED
function cioCloseAllThenOpenOne(CatIDStr) {
	for (i=1; i < cioCount+1; i++){
		var txtObj = document.getElementById('div_' + i);
		var imgObj = document.getElementById('img_' + i);

		txtObj.style.display = 'none';
		imgObj.src = '/images/plus.gif';}
	
	var txtObj = document.getElementById('div_' + CatIDStr);
	var imgObj = document.getElementById('img_' + CatIDStr);

	if (txtObj.style.display == 'none'){
		txtObj.style.display = 'block';
		imgObj.src = '/images/minus.gif';}
	else{
		txtObj.style.display = 'none';
		imgObj.src = '/images/plus.gif';}


}
//END
//BEGIN cioPOP THAT CLOSES ALL OPEN left MENU ITEMS WHEN A NEW ITEM IS EXPANDED -- be sure to fully path so that the search engine doesn't choke

function cioMenu(CatIDStr) {
	
	for (i=1; i < cioMenuCount+1; i++){
		var txtObj = document.getElementById('div_' + i);
		var imgObj = document.getElementById('img_' + i);

		txtObj.style.display = 'none';
		imgObj.src = 'http://cio.idaho.gov/images/menu_spacer.gif';}
	
	var txtObj = document.getElementById('div_' + CatIDStr);
	var imgObj = document.getElementById('img_' + CatIDStr);

	if (txtObj.style.display == 'none'){
		txtObj.style.display = 'block';
		imgObj.src = 'http://cio.idaho.gov/images/menu_spacer.gif';}
	else{
		txtObj.style.display = 'none';
		imgObj.src = 'http://cio.idaho.gov/images/menu_spacer.gif';}


}
//END

