//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 QRP Home Page", "<a href="+relPos+"home.htm>GW4ALG's QRP Home Page</a>")
newItem(1, "Antennas", "<a href="+relPos+"ant.htm>Antennas</a>")
newItem(2, "Delta Loop", "<a href="+relPos+"loop.htm>Delta Loop</a>")
newItem(2, "Experimental Vertical", "<a href="+relPos+"experi_vert.htm>Experimental Vertical</a>")
newItem(2, "Doublet Antenna", "<a href="+relPos+"g5rv.htm>Doublet Antenna</a>")
newItem(1, "Equipment", "<a href="+relPos+"equip.htm>Equipment</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, "FT101E", "<a href="+relPos+"ft101e.htm>FT101E</a>")
newItem(2, "FT707", "<a href="+relPos+"ft707.htm>FT707</a>")
newItem(2, "IC756PRO", "<a href="+relPos+"ic756pro.htm>IC756PRO</a>")
newItem(2, "K2", "<a href="+relPos+"k2.htm>K2</a>")
newItem(2, "Portable ATU", "<a href="+relPos+"port_atu.htm>Portable ATU</a>")
newItem(2, "Super-Sixty TX/RX Combo", "<a href="+relPos+"60m_tx.htm>Super-Sixty TX/RX Combo</a>")
newItem(2, "80 m Transceiver", "<a href="+relPos+"80txr.htm>80 m Transceiver</a>")
newItem(1, "Introduction", "<a href="+relPos+"intro.htm>Introduction</a>")
newItem(2, "Articles", "<a href="+relPos+"articles.htm>QRP Articles</a>")
newItem(2, "Definitions", "<a href="+relPos+"defins.htm>Definitions</a>")
newItem(2, "Publications", "<a href="+relPos+"pubs.htm>Publications</a>")
newItem(1, "Links", "<a href="+relPos+"links.htm>Links</a>")
newItem(1, "Logbook", "<a href="+relPos+"log.htm>Logbook</a>")
newItem(2, "6m Log", "<a href="+relPos+"6m_log.htm>6m Log</a>")
newItem(2, "10m Log", "<a href="+relPos+"10m_log.htm>10m Log</a>")
newItem(2, "12m Log", "<a href="+relPos+"12m_log.htm>12m Log</a>")
newItem(2, "15m Log", "<a href="+relPos+"15m_log.htm>15m Log</a>")
newItem(2, "17m Log", "<a href="+relPos+"17m_log.htm>17m Log</a>")
newItem(2, "20m Log", "<a href="+relPos+"20m_log.htm>20m Log</a>")
newItem(2, "30m Log", "<a href="+relPos+"30m_log.htm>30m Log</a>")
newItem(2, "40m Log", "<a href="+relPos+"40m_log.htm>40m Log</a>")
newItem(2, "60m Log", "<a href="+relPos+"60m_log.htm>60m Log</a>")
newItem(2, "80m Log", "<a href="+relPos+"80m_log.htm>80m Log</a>")
newItem(2, "160m Log", "<a href="+relPos+"160m_log.htm>160m Log</a>")
newItem(2, "2200m Log", "<a href="+relPos+"2km_log.htm>2200m Log</a>")
newItem(1, "Operating", "<a href="+relPos+"op.htm>Operating</a>")
newItem(2, "Bicycle Portable", "<a href="+relPos+"bike_p.htm>Bicycle Portable</a>")
newItem(2, "NFD 2000", "<a href="+relPos+"nfd_00.htm>NFD 2000</a>")
newItem(2, "HB9/GW4ALG/P", "<a href="+relPos+"hb_p.htm>HB9/GW4ALG/P</a>")
newItem(1, "Station Summary", "<a href="+relPos+"qrpstn.htm>Station Summary</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=""
}