function flipimage(inId, inToSrc) {

  var objImg = document.getElementById(inId);
  objImg.src = "/images/" + inToSrc + ".gif";
}

function cyclepicture() {
  var imgObj  = document.getElementById("picture");
  
  if (imgObj) {
    activePicture = (activePicture>=pictures.length-2)?(0):(activePicture+1);
    imgObj.src    = pictures[activePicture][0];
    
    setTimeout("cyclepicture();", pictureTimeout);
  }
}

function picturetoproject() {
  location.href = "?page=project&id=" + pictures[activePicture][2];
}

function setdisplay(inObjId, inTo) {
  var obj = document.getElementById(inObjId);
  obj.style.display = inTo;
}

function setpicture(inUrl) {
  var imgObj  = document.getElementById("picture");
  
  if (imgObj) {
    imgObj.src = inUrl;
  }
}

var lastUnderline = null;
function underline(inObj) {
  lastUnderline = (!lastUnderline)?(document.getElementById("firstlink")):(lastUnderline);
  lastUnderline.className = "";
  lastUnderline = inObj;
  lastUnderline.className = "selectedlink";
}