

window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS5 = (bName == "Netscape" && bVer >= 5);
 var IE5 = (bName == "Microsoft Internet Explorer" && bVer >= 5);
 var NS4 = (bName == "Netscape" && ((bVer >= 4) && (bVer < 5)));
 var IE4 = (bName == "Microsoft Internet Explorer" && ((bVer >= 4) && (bVer < 5)));
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null
 var loaded = 0

// MENU MOUSE OVER  
function menuOver(itemName) {
 clearTimeout(timeOn)
 menuActive = 1
 }

// MENU MOUSE OUT 
function menuOut(itemName) {
 menuActive = 0 
 timeOn = setTimeout("hideLayer(onLayer)", 500)
 }
  
// MENU COLOR VARIABLE
var menuColor = "#ffffff"

// Show Layer
function showLayer(layerName){
if (NS4 || IE4 || IE5 || NS5) {
   if (timeOn != null) {
      clearTimeout(timeOn)
      hideLayer(onLayer)
   } // end inner if

   if (document.layers) { 
      document.layers[layerName].visibility = "show";
   } else if (document.all) { 
      document.all[layerName].style.visibility = "visible";
   } else if (document.getElementById) { 
      document.getElementById(layerName).style.visibility = "visible";
   }
 onLayer = layerName
 }  
}

// HIDE MENU
function hideLayer(layerName){
 if (menuActive == 0) {
   if (document.layers) { 
      document.layers[layerName].visibility = "hide";
   } else if (document.all) { 
      document.all[layerName].style.visibility = "hidden";
   } else if (document.getElementById) { 
      document.getElementById(layerName).style.visibility = "hidden";
   }
 }
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",500)
}

// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (menuActive == 0) {
  hideLayer(onLayer)
  }
}

// Creates menu object
function menuLink(title, url, pop) {
 this.title = title
 this.url = url
 this.pop = pop
}

// Builds menu table
function menuMaker(menuArray, cols) {
 n = ""
 vbar = ""
 k = 0
 m = 0
 j = eval(menuArray + ".length") - 1;
 topTable = "<div ID='" + eval(menuArray + ".id") + "'><table  WIDTH='215' border='0' bgcolor='" + menuColor +"' CLASS='menu'><tr><td><table width='100%' cellspacing='0' cellpadding='3' bgcolor=''" + menuColor +"'>"

 
 btmTable = "</table></td></tr></table></div>"
 
 n += topTable
 
 while (k <= j/cols){
 n += "<tr valign=top>"


  for( var i = k*cols; i < (k*cols)+cols; i++) {
   if (m > 0){ vbar = "<img  src='/images/spacer.gif' width=5 height=1><img src='/images/spacer.gif' alt='][' height=10>" }
   if (i<=j) {n += "<td width='100%' CLASS='jmenu'>" + vbar + "<img  src='/images/spacer.gif' width=5 height=1><a href='" + eval(menuArray + "[" + i + "].url") + "' onMouseOver='menuOver(\"" + eval(menuArray + ".imgname") + i + "\")' onMouseOut='menuOut(\"" + eval(menuArray + ".imgname") + i + "\")'" + eval(menuArray + "[" + i + "].pop") + " class='dl'>" + eval(menuArray + "[" + i + "].title") + "</a></td>"}
   m++
 }
 m = 0
 vbar = ""
 n += "</tr>"
 k++
 }
 n += btmTable
 return n
}


// Menu Arrays  
Array.prototype.id = "membership"
Array.prototype.imgname = "re"

membership = new Array(12)
membership.id = "membership"
membership[0] = new menuLink("History", "mem_history.html", "")
membership[1] = new menuLink("Officers List", "mem_offlist.html", "", "")
membership[2] = new menuLink("Application", "membership.html", "", "")
membership[3] = new menuLink("Membership Online", "under construction.gif", "", "")
// membership[3] = new menuLink("Membership Online", "https://www.inbftp.com/AMVETS/MemberApplication.asp", "", ""
membership[4] = new menuLink("Post Listing", "mem_postlist.html", "", "")
membership[5] = new menuLink("AMVETS Riders Listing", "AMVETS_Riders.html", "", "")
membership[6] = new menuLink("Membership Forms", "mem_forms.html", "", "")
membership[7] = new menuLink("Revalidation", "mem_revalidate.html", "", "")
membership[8] = new menuLink("Manuals", "mem_manuals.html", "", "")
membership[9] = new menuLink("Subsidiary Organizations", "under construction.gif", "", "")
membership[10] = new menuLink("Call To Action", "prog_action.html", "", "")
membership[11] = new menuLink("Membership Brochure", "under construction.gif", "", "")
membership[12] = new menuLink("Membership Reports", "mem_reports.html", "", "")

programs = new Array(11)
programs.id = "programs"
programs[0] = new menuLink("Grants", "under construction.gif", "")
//programs[0] = new menuLink("Grants", "prog_grants.html", "")
programs[1] = new menuLink("Scholarships", "under construction.gif", "", "")
//programs[1] = new menuLink("Scholarships", "prog_scholarships.html", "", "")
programs[2] = new menuLink("Dreams Unlimited", "under construction.gif", "", "")
//programs[2] = new menuLink("Dreams Unlimited", "prog_dreams.html", "", "")
programs[3] = new menuLink("Honors &amp; Awards", "under construction.gif", "", "")
//programs[3] = new menuLink("Honors &amp; Awards", "prog_honors.html", "", "")
programs[4] = new menuLink("Program Reporting", "prog_reporting.html", "", "")
programs[5] = new menuLink("State Programs Manual", "prog_manual.html", "", "")
programs[6] = new menuLink("Call To Action", "prog_action.html", "", "")
programs[7] = new menuLink("Volunteer Program", "under construction.gif", "", "")
//programs[7] = new menuLink("Volunteer Program", "prog_volunteer.html", "", "")
programs[8] = new menuLink("Americanism Program", "prog_americanism.html", "", "")
programs[9] = new menuLink("Earl Lee's RECA Program", "prog_reca.html", "", "")
programs[10] = new menuLink("Sad Sacks", "prog_sadsacks.html", "", "")
events = new Array(5)
events.id = "events"
events[0] = new menuLink("State Meetings", "events_stmeets.html", "")
events[1] = new menuLink("National Meetings", "events_natmeets.html", "", "")
events[2] = new menuLink("Upcoming AMVETS' Events", "under construction.gif", "", "")
//events[2] = new menuLink("Upcoming AMVETS' Events", "events_upcoming.html", "", "")
events[3] = new menuLink("Convention Forms", "under construction.gif", "", "")
//events[3] = new menuLink("Convention Forms", "events_conv06.html", "", "")
events[4] = new menuLink("Submit An AMVETS' Event", "under construction.gif", "", "")
//events[4] = new menuLink("Submit An AMVETS' Event", "events_upcoming_form.html", "", "")

claims = new Array(5)
claims.id = "claims"
claims[0] = new menuLink("Veterans' Services", "claims_services.html", "")
claims[1] = new menuLink("Veterans' Benefits", "claims_benefits.html", "")
claims[2] = new menuLink("Service Officers", "claims_officers.html", "")
claims[3] = new menuLink("VA Links", "claims_links.html", "")
claims[4] = new menuLink("Call To Action", "prog_action.html", "", "")


pubrel = new Array(10)
pubrel.id = "pubrel"
pubrel[0] = new menuLink("Current PR", "under construction.gif", "")
//pubrel[0] = new menuLink("Current PR", "pr_current.html", "")
pubrel[1] = new menuLink("National Legislative Services", "under construction.gif", "")
//pubrel[1] = new menuLink("National Legislative Services", "pr_leg.html", "")
pubrel[2] = new menuLink("Memorium Notices", "under construction.gif", "")
//pubrel[2] = new menuLink("Memorium Notices", "pr_memorials.html", "")
pubrel[3] = new menuLink("PR Strategies", "under construction.gif", "")
//pubrel[3] = new menuLink("PR Strategies", "pr_strategies.html", "")
pubrel[4] = new menuLink("Posts Media List", "under construction.gif", "")
//pubrel[4] = new menuLink("Posts Media List", "pr_medialist.html", "")
pubrel[5] = new menuLink("PR Forms", "under construction.gif", "")
//pubrel[5] = new menuLink("PR Forms", "pr_forms.html", "")
pubrel[6] = new menuLink("Email Notices", "under construction.gif", "")
//pubrel[6] = new menuLink("Email Notices", "pr_notices.html", "")
//pubrel[7] = new menuLink("California AMVETS Newspapers", "under construction.gif", "")
pubrel[7] = new menuLink("California AMVETS Voice Newspapers", "pr_papers.html", "")
pubrel[8] = new menuLink("Call To Action", "prog_action.html", "", "")
pubrel[9] = new menuLink("Publications", "under construction.gif", "", "")
//pubrel[9] = new menuLink("Publications", "pr_pubs.html", "", "")

found = new Array(6)
found.id = "found"
found[0] = new menuLink("History", "under construction.gif", "")
//found[0] = new menuLink("History", "found_history.html", "")
found[1] = new menuLink("Presidents", "under construction.gif", "")
//found[1] = new menuLink("Presidents", "found_presidents.html", "")
found[2] = new menuLink("Board of Directors", "under construction.gif", "")
//found[2] = new menuLink("Board of Directors", "found_directors.html", "")
found[3] = new menuLink("Service Officers", "claims_officers.html", "")
//found[4] = new menuLink("Annual Report", "found_anreport.html", "")
found[4] = new menuLink("Grants Awarded", "under construction.gif", "")
//found[3] = new menuLink("Grants Awarded", "found_grants.html", "")
found[5] = new menuLink("Thrift Store Locations", "found_locations.html", "")
//found[4] = new menuLink("Annual Report", "found_anreport.html", "")

donate = new Array(5)
donate.id = "donate"
donate[0] = new menuLink("Dropoff Sites", "found_locations.html", "")
//donate[0] = new menuLink("Dropoff Sites", "donate_dropoff.html", "")
donate[1] = new menuLink("Pickup", "found_locations.html", "")
//donate[1] = new menuLink("Pickup", "donate_pickup.html", "")
donate[2] = new menuLink("Bequests", "under construction.gif", "")
//donate[2] = new menuLink("Bequests", "donate_bequests.html", "")
donate[3] = new menuLink("Monetary Donations", "under construction.gif", "")
//donate[3] = new menuLink("Monetary Donations", "donate_monetary.html", "")
donate[4] = new menuLink("Call To Action", "prog_action.html", "", "")

