
  var i, x = 1, imgArray = new Array("us1.jpg", "us2.jpg");
  var photoStr = "Photo &nbsp;" + x + "&nbsp; of &nbsp;" + imgArray.length + " &nbsp;(click the picture for the next image)";;
  var browserIsIE;

// This function returns a true if the current browser is a Netscape browser
// otherwise, it returns false
function isNetscape() {
    result = true;
    if (navigator.appName != "Netscape") {
        result = false;
        }
    // Let's make extra sure!
    if (navigator.appVersion.indexOf("MSIE") != -1) {
        result = false;
        }
    return result;
    }

// This function returns a true if the current browser is Internet Explorer
// otherwise, it returns false
function isIE() {
    result = true;
    if (navigator.appName != "Microsoft Internet Explorer") {
        result = false;
        }
    // Let's make extra sure!
    if (navigator.appVersion.indexOf("MSIE") == -1) {
        result = false;
        }
    return result;
    }

function newImage() { 
  document.pix.src = "images/" + imgArray[x];
  x++;
  if(browserIsIE) {
    picLabel.innerHTML="Photo &nbsp;" + x + "&nbsp; of &nbsp;" + imgArray.length + " &nbsp;(click the picture for the next image)";
  }
  
  if (x > imgArray.length - 1){
    x = 0;

  }

}

//returns the ASCII value of the key that was pressed
function getkey(e){
if (window.event)
   return window.event.keyCode;
else if (e)
   return e.which;
else
   return null;
}

//if Ctrl+G was pressed, load gigstuff.htm
function showGigstuff(evnt){
  if(getkey(evnt)==7){
    window.location="gigstuff.htm";
    }
  }


//opens a new window.
function openPicWindow(page){
  window.open(page, 'shinbonephoto', 'width=660, height=640', menubar='no', toolbar='no')
  }

