var iDetailsText = 8;

var buttonDetailsDivisionNamePrefix = "jttDetails";

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function writeButtonDetailsLink(num)
{
	if (typeof(buttons[num][iDetailsText]) == "undefined")
		return;
	var bdet = buttons[num][iDetailsText];
	if (bdet.length == 0)
		return;

	var divName = buttonDetailsDivisionNamePrefix + num;

	var bdldiv =
		"<div id='" + divName + "'>\n" +
		makeButtonDetailsLink(num) +
		"</div>\n";

	document.write(bdldiv);
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function showButtonDetailsText(num)
{
	var bdet = "";

//	bdet += "<table border='1' cellpadding='6' noshade><tr><td>\n";

	bdet += "<div class='details'>\n";

	bdet += buttons[num][iDetailsText];

	bdet += "\n<center>(<a href='javascript: dismissButtonDetailsText(" +
		num + ")'>hide details</a>)</center>"

//	bdet += "\n</td></tr></table>\n";
	bdet += "\n</div>\n";

	var divName = buttonDetailsDivisionNamePrefix + num;

	document.getElementById(divName).innerHTML = bdet;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function dismissButtonDetailsText(num)
{
	var divName = buttonDetailsDivisionNamePrefix + num;

	var bdl = makeButtonDetailsLink(num);

	document.getElementById(divName).innerHTML = bdl;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function makeButtonDetailsLink(num)
{
	var bdl =
		"<center><a href='javascript: showButtonDetailsText(" + num +
		")'>Details..</a></center>\n";

	return bdl;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
