function showLevel( argLevelId, argImgId )
{

	var thisLevel = $("#" + argLevelId);
	var thisImg = $("#" + argImgId);

	var isVisible = thisLevel.is(":visible");

	var state = "";

	if (!isVisible) {

		thisLevel.show("slow");

		state = "block";
		
		thisImg.removeClass('open').addClass('closed');

		}
	else {
		thisLevel.hide("slow");

		thisImg.removeClass('closed').addClass('open');

		state = "none";
		
		}

	return state;

		}

function toggleToc(toc, nav)
{
	var state = showLevel(toc, nav);

	// method must reside in parent document
	if (self.updateTocState)
	{
		updateTocState(toc, state);
	}

}

function officerPortalLoginClick(url)
{
	var officerPortalWindow = window.open(url, "officerPortalWindow");

	if (officerPortalWindow.focus)
	{
		officerPortalWindow.focus();
	}

}


