
// --- include the startnews() function in the header or body onload
// --- this creates a var called opennews which stores the current open pop-up, initially set to zero (all closed)
// --- this also limits the pop-ups to one open at a time.
// --- you"ll need to duplicate these functions to allow separate recent work and nav column pop-ups.

function startNews()
{
	var openNews;
	document.openNews = "none";
}

// --- the news href for the pop-up should then be the same as you already have it...

function showNews(id) {

// --- closes the item if its open...

	if (id==document.openNews) {
		blocktoclose = document.getElementById("faqItem_"+id);
		blocktoclose.style.display = "none";
		
		// --- sets opennews to zero again
		document.openNews = "none";
	}
	else
	{
		var previousid = document.openNews;		
        
		// --- opens the new item		
		blocktoopen = document.getElementById("faqItem_"+id);
		blocktoopen.style.display = "block";
		document.openNews=id;		
        
		// --- closes the previous one
		if(previousid != "none")
		{
			blocktoclose = document.getElementById("faqItem_"+previousid );
			blocktoclose.style.display = "none";
		}
	}
}

// --- controls the pop up window for the user guide. ---
function openpopup() {
	var popurl="/guide/index.html";
	winpops = window.open(popurl,"","width=680,height=580,")
}

function openpopupbusiness() {
	var popurl="/guide/index.html";
	winpops = window.open(popurl,"","width=680,height=580,")
}

