// JavaScript Document

// **** This piece of code opens and closes any divs
// Source: http://www.brenz.net/snippets/open_close_div.asp

function divOpen(divID, textClose) {
document.getElementById('childdiv_' + divID).style.display = "block";
document.getElementById('parentdiv_' + divID).innerHTML="<a href=\"javascript:divClose('" + divID + "','" + textClose + "');\">" + textClose + "...</a>";
}

function divClose(divID, textOpen) {
document.getElementById('childdiv_' + divID).style.display = "none";
document.getElementById('parentdiv_' + divID).innerHTML="<a href=\"javascript:divOpen('" + divID + "','" + textOpen + "');\">" + textOpen + "...</a>";
} 

// **** End of code 


function toggleDiv(id)
{
var divstyle = document.getElementById(id).style;
// starts out as nothing

if(divstyle.display == "none" || divstyle.display == "")
	{
		divstyle.display = "block";
	}
else
	{
		divstyle.display = "none";
	}
} 

// Shows and hides the chapter list for each commic
function displayChapters(id)
{
	// Hide both div's
	document.getElementById('ld_chapters').style.display="none";
	document.getElementById('fy_chapters').style.display="none";
	// display the passed in div
	document.getElementById(id).style.display="inline";
}










