function localInit() {
try {pageInit()} catch (e) {;}
//expecting filename megaphone_YYNN.htm
issueyear=endid.substr(0,2);
if (issueyear=="in") issueyear="";
document.getElementById("IDcontent").style.backgroundImage = "url(graphics/bkgnd" + issueyear + ".gif)";
}//end if the local initialisation

hi = 2;
lo = 2;
vibe = 0
function vibrate()	{setInterval(runvibrate,30)}
function runvibrate()	{
if (vibe == 0)	{
	document.getElementById("triumph").style.paddingTop = lo;
	document.getElementById("triumph").style.paddingBottom = hi;
	} else {
	document.getElementById("triumph").style.paddingTop = hi;
	document.getElementById("triumph").style.paddingBottom = lo;
	}
vibe = (vibe==0) ? 1:0 ;
}

function warn(warning)	{
newWindow=window.open('','code','width=200,height=100,top=200,left=300,menubar=no,toolbar=no,location=no,directories=no,scrollbars=no,status=no,resizable=no');
newWindow.document.writeln("<html><head><title>WARNING</title></head>");
newWindow.document.writeln("<body style='background:red;color:white'>");
newWindow.document.writeln("<center><p style='font:bold 18px sans-serif;'>" + warning + "</p></center>");
newWindow.document.writeln("</body></html>");
setTimeout('newWindow.close()',10000);
}

function megaContent() {

document.writeln("<hr class=main>");
document.writeln("<h2>Contents</h2>");
document.writeln("<table width=100% border=0 cellspacing=0>");

var indx = 300; // start searching menu_db from close to the start of the Megaphone section
while (menu_db[indx].split("|")[2].indexOf(endname) < 0) indx++;
var menulevel = parseInt(menu_db[indx].split("|")[0]);
indx++;
var pgno = 2;
while (menu_db[indx].split("|")[0] > menulevel) {
	var menuField = menu_db[indx].split("|");
	if (menuField[0] == menulevel+1) {
		document.writeln("<tr onmouseover=hilite(this) onmouseout=lolite(this) onclick=\"document.location=\'../" + menuField[2] + "\'\" style=cursor:hand; title=\'" + menuField[3] + "\'>");
		document.writeln("<td>" + menuField[1] + "</td>");
		document.writeln("<td>" + menuField[4] + "</td>");
		document.writeln("<td style=text-align:right;>" + pgno + "</td>");
		document.writeln("</tr>");
		pgno++;
		}
	indx++;
	}

document.writeln("</table>");

}
