//This is the master JavaScript file for the HTML Help documentation.
var L_COLLAPSE_TEXT="Hide All";
var L_EXPAND_TEXT="Show All";

function ExpandAll()
{
// Expand all 
	var iSpan
	var oSpan
	var sAction
  

	sAction="";
	
	doExp(document.getElementById('HideAll'));
	doExp(document.getElementById('ExpandAll'));
		

	// Execute the action for all expand DIVs	
	for (iSpan=0; iSpan < document.getElementsByTagName('DIV').length; iSpan++)
		{	
			oSpan=document.getElementsByTagName('DIV').item(iSpan);
			
			//if (oSpan.id=="ExpCol")
			if (oSpan.className=="expara")
			{
				//document.all.tags("DIV").item(iSpan).className=sAction;
				document.getElementsByTagName('DIV').item(iSpan).style.display=sAction;
			}
			else if (oSpan.className=="exparah")
			{
				document.getElementsByTagName('DIV').item(iSpan).style.display="none";
			}
		}

}
function HideAll()
{
// Hide all 
	var iSpan
	var oSpan
	var sAction
  

	sAction="none";
	
	doExp(document.getElementById('HideAll'));
	doExp(document.getElementById('ExpandAll'));
		

	// Execute the action for all expand DIVs	
	for (iSpan=0; iSpan < document.getElementsByTagName('DIV').length; iSpan++)
		{	
			oSpan=document.getElementsByTagName('DIV').item(iSpan);
			
			//if (oSpan.id=="ExpCol")
			if (oSpan.className=="expara")
			{
				//document.all.tags("DIV").item(iSpan).className=sAction;
				document.getElementsByTagName('DIV').item(iSpan).style.display=sAction;
			}else if (oSpan.className=="exparah")
			{
				document.getElementsByTagName('DIV').item(iSpan).style.display="";
			}
			
		}

}

/* These functions (doSection, noSection) are used to make sidebars appear and disappear.
*/
/*
function doSection (secNum, secNum2){
	//display the section if it's not displayed; hide it if it is displayed
	if (secNum.style.display=="none"){secNum.style.display=""}else{secNum.style.display="none"}
	if (secNum2.style.display=="none"){secNum2.style.display=""}else{secNum2.style.display="none"}
}
*/
function doSection (secNum, secNum2){
	//display the section if it's not displayed; hide it if it is displayed
	if (document.getElementById(secNum).style.display=="none"){document.getElementById(secNum).style.display=""}else{document.getElementById(secNum).style.display="none"}
	if (document.getElementById(secNum2).style.display=="none"){document.getElementById(secNum2).style.display=""}else{document.getElementById(secNum2).style.display="none"}
}
/*
function noSection (secNum, secNum2){
	//remove the section when user clicks in the opened DIV
	if (secNum.style.display==""){secNum.style.display="none"}
	if (secNum2.style.display=="none"){secNum2.style.display=""}
}
*/
function noSection (secNum, secNum2){
	//remove the section when user clicks in the opened DIV
	if (document.getElementById(secNum).style.display==""){document.getElementById(secNum).style.display="none"}
	if (document.getElementById(secNum2).style.display=="none"){document.getElementById(secNum2).style.display=""}
}

function doExp(paraNum){
	//expand the paragraph; collapse it back
	if (paraNum.style.display=="none"){paraNum.style.display=""}else{paraNum.style.display="none"}
}

//These functions control the behavior of the homepage go arrows.
function liteGo(spNo){
	spNo.style.background="#00cc33";
	spNo.style.color="#FFFFFF";
}

function liteOff(spNo){
	spNo.style.background="transparent";
	spNo.style.color="#000000";
}

//Insert new functions here. Please use unique identifiers and comment liberally.

function ExpandAllComment()
{
// Expand all 
	var iSpan
	var oSpan
	var sAction
  

	sAction="";
	
	doExp(document.getElementById('HideAllC'));
	doExp(document.getElementById('ExpandAllC'));
		

	// Execute the action for all expand DIVs	
	for (iSpan=0; iSpan < document.getElementsByTagName('DIV').length; iSpan++)
		{	
			oSpan=document.getElementsByTagName('DIV').item(iSpan);
			
			//if (oSpan.id=="ExpCol")
			if (oSpan.className=="exparac")
			{
				//document.all.tags("DIV").item(iSpan).className=sAction;
				document.getElementsByTagName('DIV').item(iSpan).style.display=sAction;
			}
			else if (oSpan.className=="exparahc")
			{
				document.getElementsByTagName('DIV').item(iSpan).style.display="none";
			}
		}

}
function HideAllComment()
{
// Hide all 
	var iSpan
	var oSpan
	var sAction
  

	sAction="none";
	
	doExp(document.getElementById('HideAllC'));
	doExp(document.getElementById('ExpandAllC'));
		

	// Execute the action for all expand DIVs	
	for (iSpan=0; iSpan < document.getElementsByTagName('DIV').length; iSpan++)
		{	
			oSpan=document.getElementsByTagName('DIV').item(iSpan);
			
			//if (oSpan.id=="ExpCol")
			if (oSpan.className=="exparac")
			{
				//document.all.tags("DIV").item(iSpan).className=sAction;
				document.getElementsByTagName('DIV').item(iSpan).style.display=sAction;
			}else if (oSpan.className=="exparahc")
			{
				document.getElementsByTagName('DIV').item(iSpan).style.display="";
			}
			
		}

}
