
var jsitext = "";
var jsltext = "";

function imgact(id, act)
{
  if(document.images) {
    if (act == 1) {
      document.images[id].src = eval( "qimages." + id + "_ov.src");
      switch(id) {
        case "b1":
          document.getElementById("oreadout").innerHTML = "home page";
          break;
        case "b2":
          document.getElementById("oreadout").innerHTML = jsltext;
          break;
        case "b3":
          document.getElementById("oreadout").innerHTML = "contact Bruce";
          break;
        case "b4":
          document.getElementById("oreadout").innerHTML = jsitext;
          break;
      }
    }
    else {
      document.images[id].src = eval( "qimages." + id + "_df.src");
      //document.getElementById("divReadout").style.backgroundImage = "url(images/default.jpg)";
      document.getElementById("oreadout").innerHTML = "";
    }
  }
}

//------------------------------------------------------------------------------
// Function: popComment
// Purpose: Opens the Comment page in a popup window,
//          sending it the page parameter
// Parameters: isgal   0/1 wether this is a gallery comment
//             xid     integer gallery/photo ID
// Authoring: 9/16/2006 Bruce Quackenbush
//------------------------------------------------------------------------------
function popComment (isgal, xid) {
  var largeclosed = 0;

  // close the largeimage window if open
  if (window.feedwin != null && ! feedwin.closed) {
    feedwin.close();
    largeclosed = 1;
  }

  // open the feedwin window if closed
  if (window.feedwin == null || feedwin.closed || largeclosed) {
    feedwin = window.open("photo_comment.php?ig=" + isgal + "&xid=" + xid, "feedbackwin", "width=500,height=600,scrollbars=1,toolbar=0,menubar=0,status=0,resizable=1");
    if (window.feedwin != null) {
      feedwin.focus();
    }
  }

}
