<!-- Hide from older browsers
// indexesLevel2.js  02/08/2009

// The default works well for IE
var gMenuTop = 81;

// This is exactly as used to open B pages since 2000
function wopen1() {
  open("","win1","toolbar=no,resizable=yes,scrollbars=yes,width=575,height=400,screenX=10,screenY=10");
}

function onMouseOverTopBanner(){
  document.b1.src ="../pics/TopBanner1B.gif";
}

function onMouseOutTopBanner(){
  document.b1.src ="../pics/TopBanner1A.gif";
}

function onMouseOverBottomBanner(){
  document.b2.src ="../pics/TopBanner1B.gif";
}

function onMouseOutBottomBanner(){
  document.b2.src ="../pics/TopBanner1A.gif";
}

function hideMenu(inMenu){ 
  var menuStyle=document.getElementById(inMenu).style; 
  menuStyle.display="none"; 
}

function getExactBrowserName(){
  var exactName="";
  var agent = navigator.userAgent;
  var browsers = new Array("Firefox","Chrome","Netscape","Opera","Safari", "AOL ");

  if(navigator.appName == "Microsoft Internet Explorer")
  {
    exactName="Internet Explorer";
    return exactName;
  }
  else
  {
    var i = 0;
    for (i = 0; i < browsers.length; i++)
    {
      if (-1 != agent.indexOf(browsers[i]))
      {
        exactName=browsers[i];
        return exactName;
      }
    }
  }
  // if all the tests above failed, the returned string is empty
  return exactName;
}

function setgMenuTopVariable(){
  var exactBrowser = getExactBrowserName();

  // do the default for IE
  gMenuTop=81;

  if(exactBrowser == "Firefox"){
    gMenuTop=72;
  }
  else if(exactBrowser == "Safari"){
    gMenuTop=72;
  }
  else if(exactBrowser == "Chrome"){
    gMenuTop=72;
  }
  else if(exactBrowser == "Opera"){
    gMenuTop=72;
  }
  else if(exactBrowser == "Netscape"){
    gMenuTop=72;
  }
  else{
    // IE 
    gMenuTop=81;
  }
}

function showMenu(inMenu) {
  var menuStyle=document.getElementById(inMenu).style; 
  menuStyle.top=gMenuTop;
  menuStyle.display="block";
}

function onLoadPageIndexL2(){
  hideMenu('indexL2Menu1');
  hideMenu('indexL2Menu2');
  setgMenuTopVariable();
}

function onUnloadPageIndexL2(){
  //var message="The page has been UN loaded";
  //window.alert(message);
}

function showOutOfService(){
  window.open("../docs/outofservice.htm","outofservice",
      "toolbar=no,resizable=yes,scrollbars=no,width=440,height=180,screenX=10,screenY=10");
}

function showPrivacyPolicy(){
  window.open("../js/privacy.htm","privacy",
      "toolbar=no,resizable=yes,scrollbars=yes,width=550,height=580,screenX=10,screenY=10");
  return false;
}

function WriteJSIndexL2Menus(){
 //TOP BANNER
 var someText='<a href="../index.html"><img border="0" src="../pics/TopBanner1A.gif" name="b1" width="620"'+
  ' height="32" alt="To the home page of The Virtual Wall (TM)&reg;"'+
  ' onmouseout="onMouseOutTopBanner();" onmouseover="onMouseOverTopBanner();"></a><br>';
 document.writeln(someText);

 // FIND A NAME MENU
 someText= '<table width=620 border=0 cellpadding=0 cellspacing=0><tbody><tr>'+
  '<td style="vertical-align:top; width:310px;" onmouseout="hideMenu(\'indexL2Menu1\');" '+
  'onmouseover="showMenu(\'indexL2Menu1\'); hideMenu(\'indexL2Menu2\');"> '+
  '<img src="../pics/Nav_IndexFindA.gif" width="310" height="32" alt="Find A Name"> ';
 document.writeln(someText);

 someText= '<br><div id=indexL2Menu1 class=indexL2menu1Style>'+
  '<a href="../iAlpha.htm">&nbsp;By Last Name</a><br>'+
  '<a href="../iPanels.htm">&nbsp;By Wall Panel</a><br>'+
  '<a href="../iStates.htm">&nbsp;By State and City</a><br>'+
  '<a href="../iunits.htm">&nbsp;By Military Unit</a><br>'+
  '<a href="../faces/index.html">&nbsp;Faces Of Freedom</a><br>'+
  '<a href="../valor.htm">&nbsp;Height of Valor</a><br>'+
  '<a href="../pmsea.htm">&nbsp;POW/MIA Status</a><br>'+
  '<a href="../units.htm">&nbsp;Groups and Battles</a><br>'+
  '&nbsp;<br>'+
  '</div></td>';
 document.writeln(someText);

// The Virtual Wall Menu
 someText= '<td style="vertical-align: top; width: 310px;" onmouseout="hideMenu(\'indexL2Menu2\');" '+
  'onmouseover="showMenu(\'indexL2Menu2\'); hideMenu(\'indexL2Menu1\'); "> '+
  '<img src="../pics/Nav_IndexTVWA.gif" width="310" height="32" alt="The Virtual Wall&reg;"> ';
 document.writeln(someText);

 someText= '<br><div id=indexL2Menu2 class=indexL2menu1Style>'+
  '<a href="../index.html">&nbsp;Home: The Virtual Wall&reg;</a><br>'+
  '<a href="../aboutWal.htm">&nbsp;About The Wall in Washington</a><br>'+
  '<a href="../about.htm">&nbsp;About The Virtual Wall&reg;</a><br>'+
  '<a href="../docs/faqs.htm">&nbsp;Frequently Asked Questions</a><br>'+
  '<a href="../docs/nps.htm">&nbsp;The National Park Service</a><br>'+
  '<a href="../whoweare/index.htm">&nbsp;Who We Are</a><br>'+
  '<a href="../docs/trademark.htm">&nbsp;Our Registered Trademarks&reg;</a><br>'+
  '<a href="../docs/copyright.htm">&nbsp;Copyright and Attribution</a><br>'+
  '<a href="../docs/vwdbase.htm">&nbsp;Coffelt Database</a><br>'+
  '<a href="../linksvw.htm">&nbsp;Helpful Links</a><br>'+
  '<a href="../map.htm">&nbsp;Web Site Map: More</a><br>'+
  '<a href="../contactus.htm">&nbsp;Contact Us</a><br>'+
  '<a href="#" onclick="return showPrivacyPolicy();">&nbsp;Privacy Policy</a><br>'+
  '&nbsp;<br>'+
  '</div></td>' +
  '</tr></tbody></table>';
 document.writeln(someText);

}



// End hiding -->
