if (document.images) {

var off = new Image();
off.src = "images/nav_graydot.gif";
var on = new Image();
on.src = "images/nav_whitedot.gif";

var archive = new Image();
archive.src = "images/nav_archive.gif";
var contact = new Image();
contact.src = "images/nav_contact.gif";
var random = new Image();
random.src = "images/nav_random.gif";
var book = new Image();
book.src = "images/nav_bookmark.gif";
var search = new Image();
search.src = "images/nav_advsearch.gif";
var tool = new Image();
tool.src = "images/nav_sitetools.gif";

}

function searchon() {
if (document.images)
document.images.sitetool.src = search.src;
document.images.one.src = on.src;
window.status = "Perform a detailed search";
}

function archiveon() {
if (document.images)
document.images.sitetool.src = archive.src;
document.images.two.src = on.src;
window.status = "Open the archive";
}

function bookon() {
if (document.images)
document.images.sitetool.src = book.src;
document.images.three.src = on.src;
window.status = "Bookmark this page";
}

function contacton() {
if (document.images)
document.images.sitetool.src = contact.src;
document.images.four.src = on.src;
window.status = "Compose an email message";
}

function searchoff() {
if (document.images)
document.images.sitetool.src = tool.src;
document.images.one.src = off.src;
window.status = "";
}

function archiveoff() {
if (document.images)
document.images.sitetool.src = tool.src;
document.images.two.src = off.src;
window.status = "";
}

function bookoff() {
if (document.images)
document.images.sitetool.src = tool.src;
document.images.three.src = off.src;
window.status = "";
}

function contactoff() {
if (document.images)
document.images.sitetool.src = tool.src;
document.images.four.src = off.src;
window.status = "";
}

function loadImages() {

  if (document.images) {
    if (typeof(document.Glassdog) == 'undefined'){
      document.Glassdog = new Object();
    }
    document.Glassdog.loadedImages = new Array();
    var argLength = loadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      document.Glassdog.loadedImages[arg] = new Image();
      document.Glassdog.loadedImages[arg].src = loadImages.arguments[arg];
    }
  }
}


function bookmark()
{
if ((navigator.appVersion.indexOf("MSIE") > 0) 
  && (parseInt(navigator.appVersion) >= 4))
  {
  window.external.AddFavorite(location.href, document.title);
  }

else location.replace("/catalog/bookmark.html");
}

function randomizer()
{
if (confirm("This is The Randomizer. If you continue, we'll select a new, random page at glassdog.com for you to read. You never know what will turn up. Feeling adventurous?"));
{
document.location = "/randomizer/rand_link.cgi";
}
}


