<!--
/* Web Design and Programming by Cube Connection Ltd, Copyright 2001 - www.CubeConnection.co.uk */

//---START MENU ROUTINES---//
//---pre-load images
MenuBar = new MakeImageArray(6);
MenuBar[0].src="../images/menu/home-on.gif";
MenuBar[1].src="../images/menu/products-on.gif";
MenuBar[2].src="../images/menu/technology-on.gif";
MenuBar[3].src="../images/menu/profile-on.gif";
MenuBar[4].src="../images/menu/news-on.gif";
MenuBar[5].src="../images/menu/location-on.gif";

function MakeImageArray(n) {
  var i = 0;
  this.length = n;
  for (i = 0; i < n; i++) {
    this[i] = new Image();
  }
  return this;
}

function DisplayMenu(menulink) {
  document.images["menu"+menulink.toString()].src = MenuBar[menulink].src;
  return true;
}

function ClearMenu(menulink,offimage) {
  document.images["menu"+menulink.toString()].src = offimage;
  return true;
}
//---END MENU ROUTINES---//

function processdetail(browse, obj) {
  if (document.getElementById(obj).style.display == 'none') {
    document.getElementById(obj).style.display='inline';
    document.getElementById(browse).src='../images/icons/close.gif';
  }
  else {
    document.getElementById(obj).style.display='none';
    document.getElementById(browse).src='../images/icons/open.gif';
  }
}

function showemail(username, hostname, friendlyname, displaystyle) {
  var linktext;
  if (friendlyname == "")
    if (displaystyle == "") {
      linktext = username + "@" + hostname;
      document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + linktext + "</a>")
    }
    else {
      linktext = username + "@" + hostname;
      document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + " class='" + displaystyle + "'>" + linktext + "</a>")
    }
  else {
    if (displaystyle == "") {
      linktext = username + "@" + hostname;
      document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + friendlyname + "</a>")
    }
    else {
      linktext = username + "@" + hostname;
      document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + " class='" + displaystyle + "'>" + friendlyname + "</a>")
    }
  }
  return true;
}

//-->
