  var topMenu = new Array();
  topMenu[topMenu.length] = "news";
  topMenu[topMenu.length] = "forum";
  topMenu[topMenu.length] = "search";
  topMenu[topMenu.length] = "e-active";
  topMenu[topMenu.length] = "contact";

  var sideMenu = new Array();
  sideMenu[sideMenu.length] = "home";
  sideMenu[sideMenu.length] = "startup";
  sideMenu[sideMenu.length] = "about";
  sideMenu[sideMenu.length] = "products";
  sideMenu[sideMenu.length] = "services";
  sideMenu[sideMenu.length] = "project";
  sideMenu[sideMenu.length] = "support";
  sideMenu[sideMenu.length] = "careers";

  var allSects = new Array();
  allSects = topMenu.concat(sideMenu);

  var thisSect = "about";

  var content = document.location.href.toLowerCase().substring(0,document.location.href.length-document.location.search.length);

  for (i=0; i<allSects.length; i++) {
    if (content.indexOf(allSects[i]) != -1) { thisSect = allSects[i]; break }
  }; // END for

// if (document.location.href.indexOf("google") < 0 ) {
// if (document.location.href.indexOf("FrontPageTempDir") < 0 ) {

if (document.location.href.indexOf("http://www.activetechnology.co.uk") >= 0 ) {

  if ((window == top) || (window.name != "content")) {

    top.location.replace(
        content.substring(0,content.indexOf("computer\/"))
      + thisSect
      + ".htm?"
      + content.substring(content.lastIndexOf("computer\/")+9));

  } else {

      var sectMenu = parent.frames[0].location.href.toLowerCase();
      var topBar = parent.parent.frames[0].location.href.toLowerCase();

      if (sectMenu.indexOf(thisSect) == -1) {
        parent.frames[0].location.replace(
            sectMenu.substring(0,sectMenu.lastIndexOf("\/")+1)
          + thisSect
          + sectMenu.substring(sectMenu.lastIndexOf("_")));
      }; // END if

      for (i=0; i<sideMenu.length; i++) {
        if (content.indexOf(sideMenu[i]) != -1) { thisSect = "home"; break }
      }; // END for

      if (topBar.indexOf(thisSect) == -1) {
        parent.parent.frames[0].location.replace(
            topBar.substring(0,topBar.lastIndexOf("_")+1)
          + thisSect
          + topBar.substring(topBar.lastIndexOf(".")));
      }; // END if

      parent.parent.document.title = document.title;

//      parent.parent.frames[2].frames[1].focus();

    } // END if else

}

window.onload = function() {
// Enhanced External links
if (!document.getElementsByTagName) void(0)
else {
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].href.match(/\.(mp3|m3u|pdf|doc|txt|xls)/)) {
      links[i].onclick = function() {
        var slash = "/";
        var myPath = this.pathname;
        if (myPath.substring(0,1)=="/") slash="";
        pageTracker._trackPageview(slash+myPath);
      }
    }
  }
}
}