// ajaxNavMenu.js

//  Rainbo Design's No-Frames Navigation System -  Version 1.0   March 24, 2003
//  Copyright (C) 2003 by Richard L. Trethewey  All Rights Reserved
//
//  Permission is granted to use this code in any application as long as this complete
//  notice is included and unchanged.  I'd also appreciate it if you also insert the following
//  link on your website:
//
//   <a href="http://www.rainbo.net/pub/">Rainbo Design's Scripts and Tools for Webmasters</a>
//
//  This software is provided "as-is" and without warranty of any kind.  Although it has been tested,
//  and its so simple I can't think of any problems it could cause, use it at your own risk.
//
//  Thanks and good luck!
//

function ajaxNavMenu(theFile) {


if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Your browser does not support XMLHTTP!");
  }

//  document.getElementById('nfNavMenu').innerHTML = '<p>Loading...</p>';
xmlhttp.open("GET", theFile);

xmlhttp.onreadystatechange=function() {
 if(xmlhttp.readyState==4) {
  response=xmlhttp.responseText;
  document.getElementById('nfNavMenu').innerHTML = response;
//  document.write(response);
  }

}

xmlhttp.send(null);

}

