// empty functions in case user rolls over buttons before the page has finished loading
function showMenu(){}
function hideMenu(){}

// browser check
is_dom = (document.getElementById) ? true : false;
is_ns4 = (document.layers) ? true : false;
is_ie = (document.all) ? true : false;
is_ie4 = is_ie && !is_dom;
is_mac = (navigator.appVersion.indexOf("Mac") != -1);
is_ie5m = is_ie && is_dom && is_mac;
is_ie4m = is_ie4 && is_mac;
is_ns4m = is_ns4 && is_mac;
is_opera = (navigator.userAgent.indexOf("Opera")!=-1);
is_konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);
spawnMenu = !is_ie5m && !is_opera && !is_konqueror && !is_ie4m && !is_ns4m && (is_dom || is_ns4 || is_ie4);

// reload on resize for NS4
if (is_ns4) {
  origWidth = innerWidth;
  origHeight = innerHeight;
}

function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight) {
  location.reload();
  }
}

if (is_ns4 && parseInt(navigator.appVersion) != 5) {
  onresize = reDo;
}




<!--
if (document.layers) {
  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"cde/home_ns.css\">")
} else {
  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"cde/home_ie.css\">")
}
//-->





function popup(mypage, myname, w, h, scroll) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',status=yes,scrollbars='+scroll+',resizable=no'
    if (navigator.appName.indexOf('Netscape') != -1 && parseInt(navigator.appVersion) > 4 && mypage.indexOf('https') != -1) 
     mypage = 'http' + mypage.substring(5);
    win = window.open(mypage, myname, winprops)
    //if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  }



<!--
    // JavaScript to interpolate random images into a page.
    var ic = 34;     // Number of alternative images
    var xoxo = new Array(ic);  // Array to hold filenames
        
xoxo[0] = "images/n01_image.jpg";
xoxo[1] = "images/n02_image.jpg";
xoxo[2] = "images/n03_image.jpg";
xoxo[3] = "images/n04_image.jpg";
xoxo[4] = "images/n05_image.jpg";
xoxo[5] = "images/n06_image.jpg";
xoxo[6] = "images/n07_image.jpg";
xoxo[7] = "images/n08_image.jpg";
xoxo[8] = "images/n09_image.jpg";
xoxo[9] = "images/n10_image.jpg";
xoxo[10] = "images/n11_image.jpg";
xoxo[11] = "images/n12_image.jpg";
xoxo[12] = "images/n13_image.jpg";
xoxo[13] = "images/n14_image.jpg";
xoxo[14] = "images/n15_image.jpg";
xoxo[15] = "images/n16_image.jpg";
xoxo[16] = "images/n17_image.jpg";
xoxo[17] = "images/n18_image.jpg";
xoxo[18] = "images/n19_image.jpg";
xoxo[19] = "images/n20_image.jpg";
xoxo[20] = "images/n21_image.jpg";
xoxo[21] = "images/n22_image.jpg";
xoxo[22] = "images/n23_image.jpg";
xoxo[23] = "images/n24_image.jpg";
xoxo[24] = "images/n25_image.jpg";
xoxo[25] = "images/n26_image.jpg";
xoxo[26] = "images/n27_image.jpg";
xoxo[27] = "images/n28_image.jpg";
xoxo[28] = "images/n29_image.jpg";
xoxo[29] = "images/n30_image.jpg";
xoxo[30] = "images/n31_image.jpg";
xoxo[31] = "images/n32_image.jpg";
xoxo[32] = "images/n33_image.jpg";
xoxo[33] = "images/n34_image.jpg";

function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
// Write out an IMG tag, using a randomly-chosen image name.
var choice = pickRandom(ic);
// -->


function PhotoWindow(page) 
	{
     window.open(page,"Photos","menubar=no,resizable=no,scrollbars=no,height=356,width=490");
     }



function OpenWindow (URL, WinName, Features) {
	window.open(URL, WinName, Features);
}
function stopError() { 
	return true;
} 

window.onerror = stopError;

function swapImage()
{
browserName = navigator.appName;
     browserVer = parseInt(navigator.appVersion);
     if (browserName == "Netscape"  && browserVer >= 3) version = "n3";
    else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4.0) version = "n3";
         else version = "n2";
             if (version == "n3")
                         {
  var i,theObj,j=0,swapArray=new Array,oldArray=document.swapImgData;
  for (i=0; i < (swapImage.arguments.length-2); i+=3) {
    theObj = eval(swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1])
    if (theObj != null) {
      swapArray[j++] = theObj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=theObj)?theObj.src:oldArray[j];
      theObj.src = swapImage.arguments[i+2];
  } }
  document.swapImgData = swapArray; 
}
}

function swapImgRestore() {
  if (document.swapImgData != null)
    for (var i=0; i<(document.swapImgData.length-1); i+=2)
      document.swapImgData[i].src = document.swapImgData[i+1];
}

function preloadImages() {
    if (document.images) {
        if (typeof document.wd == 'undefined'){
            document.wd = new Object();
        }
        document.wd.loadedImages = new Array();
        var argLength = preloadImages.arguments.length;
        for(arg=0;arg<argLength;arg++) {
            document.wd.loadedImages[arg] = new Image();
            document.wd.loadedImages[arg].src =  preloadImages.arguments[arg];}
        }
}

var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array(
"January","February","March","April","May","June","July","August","September","October","November","December");

var now = new Date();
var year = now.getYear()
if (year < 2000){
	year = year + 1900
}
var new_year = 'year + '
var out_date = ('<FONT FACE="Verdana, Arial, Helvetica" SIZE="1" COLOR="#999999">' + dayNames[now.getDay()] + ', ' + monthNames[now.getMonth()] + ' ' + now.getDate() + ', ' + year + '</FONT>');
