<!-- Hide from browsers that do not support JavaScript

// Function that displays status bar messages.

var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.MM_returnValue = false;
  if (showMsg) {
     window.status = msgStr;
     document.MM_returnValue = true;
  }
}

function preloadImages() {
    if (document.images) {
       var imgFiles = preloadImages.arguments;
       var preloadArray = new Array();

        for (var i=0; i<imgFiles.length; i++) {
            preloadArray[i] = new Image;
            preloadArray[i].src = imgFiles[i];
        }
    }
}

/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

// Function to open new window

function showSun() {
  var newWindow = open("http://members.madasafish.com/~shed-sun/index.html", "frontWindow", "scrollbars, status, toolbar, titlebar, width='800', height='640', resizable");
}

// Functions to load multiple frames

function loadHeadCont(headURL, infoURL, contentURL) {
  parent.head.location.href=headURL;
  parent.info.location.href=infoURL;
  parent.content.location.href=contentURL;
}

function loadInfoCont(infoURL, contentURL) {
  parent.info.location.href=infoURL;
  parent.content.location.href=contentURL;
}

function loadLocoList(leftURL, headURL, contentURL) {
  parent.leftnav.location.href=leftURL;
  parent.head.location.href=headURL;
  parent.content.location.href=contentURL;
}

function reloadFrames(leftURL, headURL, infoURL, contentURL) {
  parent.head.location.href=headURL;
  parent.info.location.href=infoURL;
  parent.leftnav.location.href=leftURL;
  parent.content.location.href=contentURL;
}

//  End hiding -->

