// utils.js

// globals

var nImg = -1;
var images = new Array();

// functions

function h_g() {
	window.location.href = "h&g.htm";
}

function advedit() {
  window.location.href = "advedit.htm";
}

function portraits() {
  window.location.href = "portraits.htm";
}

function personal() {
  window.location.href = "personal.htm";
}

function info() {
  window.location.href = "info.htm";
}

function highlight(oTD) {
  oTD.className = "clickLabelHigh";
}

function unHighlight(oTD) {
  oTD.className = "clickLabel";
}

function setClass(oElem, sClassName) {
  oElem.className = sClassName;
}

function home() {
  window.location.href = "home.htm";
}

/*function next(n) {
  nMaxImgs = images.length;
  nImg += n;
  if (nImg > nMaxImgs-1)
    nImg = 0;
  else if (nImg < 0)
    nImg = nMaxImgs-1;
  document.getElementById("img1").src=images[nImg].src;
  document.getElementById("sImgNo").innerHTML = nImg + 1;
  document.getElementById("sMaxImgNo").innerHTML = nMaxImgs;
}

function initImage() {
  next(1); // load the first image
  document.getElementById("sMsg").style.display = "none"; // get rid of the initial message
  document.getElementById("img1").style.display = ""; // and switch on the image
}*/