window.onunload = function() {};
window.onload = basicLoad;

var myPix = new Array();
var thisPic = 0;

function basicLoad() {

  mainLoad();

  for(x=0;x<13;x++) {

    myPix[x] = "pics/slide/fam" + (x+1) + ".jpg";

  }

  document.getElementById("prevLink").onclick = processPrevious;
  document.getElementById("nextLink").onclick = processNext;
  document.getElementById("nextLink2").onclick = processNext;

  document.getElementById("prevLink").onmouseover = processMouseOver;
  document.getElementById("nextLink").onmouseover = processMouseOver;

  document.getElementById("prevLink").onmouseout = processMouseOut;
  document.getElementById("nextLink").onmouseout = processMouseOut;

}



function processPrevious() {

  if(thisPic == 0 ) {

    thisPic = myPix.length;

  }

  thisPic--;

  document.getElementById("myPicture").src = myPix[thisPic];

  return false;

}



function processNext() {

  thisPic++;

  if(thisPic == myPix.length) {

    thisPic = 0;

  }

  document.getElementById("myPicture").src = myPix[thisPic];

  return false;

}



function processMouseOver() {

  if(this.id == "prevLink") {

    document.getElementById("callt").src = "images/callt_on.gif";

  } else {

    document.getElementById("calrt").src = "images/calrt_on.gif";

  }

}



function processMouseOut() {

  if(this.id == "prevLink") {

    document.getElementById("callt").src = "images/callt.gif";

  } else {

    document.getElementById("calrt").src = "images/calrt.gif";

  }

}
