//file containing customisation of menu.js for each list
var border="border=1"

//Part 1: adding elements to list
//        using fuction: newItem(Indent, Name, Html)  (name is optional)
//Note: at the moment menu.js (v3) only setup for three levels of items
newItem(1, "GW4ALG's 136kHz Home Page", "<a href="+relPos+"home.htm>136kHz Home Page</a>")
newItem(1, "Antennas", "<a href="+relPos+"ant.htm>Antennas</a>")
newItem(2, "Experimental Vertical", "<a href="+relPos+"experi_vert.htm>Experimental Vertical Antenna</a>")
newItem(3, "Loading Coils", "<a href="+relPos+"file:///c:/FrontPageWebs/136khzpages/ldg_coil.htm>Loading Coils</a>")
newItem(3, "Matching Transformer", "<a href="+relPos+"ant_xformer.htm>Matching Transformer</a>")
newItem(2, "Loop Antenna", "<a href="+relPos+"loop.htm>Loop Antenna</a>")
newItem(1, "Equipment", "<a href="+relPos+"equip.htm>Equipment</a>")
newItem(2, "100 W P.A.", "<a href="+relPos+"100w_pa.htm>100 W PA</a>")
newItem(2, "400 W P.A.", "<a href="+relPos+"400w_pa.htm>400 W PA</a>")
newItem(3, "Output Transformer", "<a href="+relPos+"op_xformer.htm>Output Transformer</a>")
newItem(3, "Neutralisation", "<a href="+relPos+"neut.htm>Neutralisation</a>")
newItem(2, "Audio Filter", "<a href="+relPos+"af_filter.htm>Audio Filter</a>")
newItem(2, "Components", "<a href="+relPos+"comps.htm>Components</a>")
newItem(2, "Loop ATU", "<a href="+relPos+"loop_atu.htm>Loop ATU</a>")
newItem(2, "Noise Canceller", "<a href="+relPos+"noise_can.htm>Noise Canceller</a>")
newItem(2, "QRP TX", "<a href="+relPos+"qrptx.htm>QRP TX</a>")
newItem(2, "Receive Pre-selector", "<a href="+relPos+"pre_sel.htm>Receive Pre-selector</a>")
newItem(2, "Remote Controlled Tuner", "<a href="+relPos+"rem_vario.htm>Remote Controlled Tuner</a>")
newItem(2, "SWR Bridge", "<a href="+relPos+"lf_swr.htm>SWR Bridge</a>")
newItem(2, "Transverter", "<a href="+relPos+"transvtr.htm>Transverter</a>")
newItem(1, "For Sale", "<a href="+relPos+"forsale.htm>For Sale</a>")
newItem(1, "Links", "<a href="+relPos+"links.htm>Links</a>")
newItem(1, "Logbook", "<a href="+relPos+"log.htm>Log book</a>")
newItem(1, "Introduction", "<a href="+relPos+"intro.htm>Introduction</a>")
newItem(2, "Articles", "<a href="+relPos+"articles.htm>LF articles</a>")
newItem(2, "Farewell", "<a href="+relPos+"farewell.htm>Steve says 'farewell'</a>")
newItem(2, "Publications", "<a href="+relPos+"pubs.htm>Publications</a>")
newItem(2, "News Reports", "<a href="+relPos+"news.htm>136 kHz in the News</a>")
newItem(2, "Definitions", "<a href="+relPos+"defins.htm>Definitions</a>")
newItem(1, "Station Summary", "<a href="+relPos+"136stn.htm>Station Summary</a>")
newItem(2, "QSOs Over 1000 km", "<a href="+relPos+"136stn_a1.htm>QSOs Over 1000 km</a>")

//Part 2(a): customisation of the appearance of menu
//
function menustyle() {
if (isNav4){ 
	container = new Layer(250)
	container.top = 7;
        container.left = 7;
	container.visibility = "hide";
	container.document.bgColor = "#05E4B3"
	}else{
	myDiv.style.backgroundColor = "#05E4B3"
	myDiv.style.visibility = "hidden";
	myDiv.style.pixelTop = 5;
	myDiv.style.pixelLeft = 7;
	myDiv.style.width = 250;
	}

}

//Part 2(b):
//
function redraw(index) {
  if (menu_load == false) return
  self.status = "writing list...";
   str = " <table NOWRAP width=\"270\"><tr><td><font  face=\"Arial\" color=\"#FF3399\"><big><center>Pop-up Contents</center></big></font></td></tr><tr align=\"right\"><td><a TARGET=\"_self\" href=\"javascript:menu();\">Hide Contents</a><br></td></tr>";
  //add the cells row by row
  for( i = 1; i < Items; i++) {
     if (visable[i]) { 	
	onclick = " onclick=\"itemClicked("+i+")\" "
 	if (indent[i +1] > indent[i]) {
		image = " <A TARGET='_self' HREF=\"javascript:expand2("+i+");\"><IMG SRC=\""+relPos+"closed.gif\" BORDER=0></A> "
		if (visable[i+1] == true) image =" <A TARGET='_self' HREF=\"javascript:expand2("+i+");\"><IMG SRC=\""+relPos+"open.gif\" BORDER=0></A> "
	}else{
		image = " <IMG BORDER=0 SRC=\""+relPos+"page.gif\"> "}
	if (indent[i] ==1) {
		str += "<tr><TD "+onclick+" ><b> &nbsp;&nbsp;&nbsp;&nbsp; "+text2[i]+image+text[i]+" </b></TD></tr> ";
	}else{  
		str += "<tr><TD "+onclick+" > &nbsp;&nbsp;&nbsp;&nbsp; "+text2[i]+image+text[i]+" </TD></tr> "; 
	}     
     }
  }
  str += "<tr><td>Click on a book to expand/collapse sub-headings<br></td></tr></table>";
  if(isNav4) {
	container.document.open();
	container.document.write(str);
	container.document.close();
	} else { myDiv.innerHTML = str }
  self.status=""
}
