function init() {
 //Main Menu items:
 menus[0] = new menu(22, "horizontal", 10, 97, -2, -2, "#3333CC", "#CACAFF", 
     "Verdana,Helvetica", 9, "bold", "bold", "white", "black", 1, "gray", 2, 
     "rollover:tridown.gif:tridown.gif", false, true, true, false, 0, true, -3, 3, "gray");
 menus[0].addItem("#", "", 245, "center", "Services", 1);
 menus[0].addItem("#", "", 245, "center", "Free Advice", 2);
 menus[0].addItem("#", "", 245, "center", "About", 3);

 menus[1] = new menu(245, "vertical", 0, 0, 0, 0, "#CACAFF", "#3333CC", 
     "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "gray", 2, 
     "rollover:tri.gif:tri.gif", false, true, false, false, 0, true, -3, 3, "gray");
 menus[1].addItem("Contracting.htm", "", 22, "left", "Contracting", 0);
menus[1].addItem("WebsiteServices.htm", "", 22, "left", "Website Services", 0);
 menus[1].addItem("Consulting.htm", "", 22, "left", "Consulting", 0);
 
 menus[2] = new menu(245, "vertical", 0, 0, -5, -5, "#CACAFF", "#3333CC", 
     "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "gray", 2, 
     62, false, true, false, true, 6, true, -3, 3, "gray");
 menus[2].addItem("TenIssues.htm", "", 22, "left", "Website Issues", 0);
 menus[2].addItem("TenMistakes.htm", "", 22, "left", "Website Mistakes", 0);

 menus[3] = new menu(245, "vertical", 0, 0, 0, 0, "#CACAFF", "#3333CC", 
     "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "gray", 2, 
     ">>", false, true, false, false, 0, true, -3, 3, "gray");
 menus[3].addItem("AboutMe.htm", "", 22, "left", "About Me", 0);
 menus[3].addItem("ContactMe.htm", "", 22, "left", "Contact Me", 0);
 menus[3].addItem("Legal.htm", "", 22, "left", "Legal Notices", 0);
 menus[3].addItem("AboutSite.htm", "", 22, "left", "About This Site", 0);
}

function externalLinks() {
 //if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}

function mungAddress ( eman, niamod, linktext) {
  var aet = "@";
  var link = "<a href=\"" + "ma" + "il" + "to" + ":" + eman + aet + niamod + "\">" + linktext + "</a>";
  document.write(link);
}

function alterMyAddress() {
 if(arguments[0].nodeName == ("A" || "a")) {
  arguments[0].href = "mailto:" + arguments[0].firstChild.innerHTML + "@" +
   arguments[0].firstChild.nextSibling.nextSibling.innerHTML;
 }
}
