<!-- Mouseover Tab Color Begin -->
function tab(tdTab,on){//subnav function ns6,ie4+
	if(on){
		tdTab.style.cursor="hand";
	}
}

activeTabColor = "#993300"
inactiveTabColor = "#cc3300"
activeTabText = "white"
inactiveTabText = "white"
<!-- Mouseover Tab Color End -->

<!-- Set Image Begin -->
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function showPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
   }
}
<!-- Set Image End -->

<!-- Copyright Roman Numerals Begin -->
var LMDate = new Date( document.lastModified );
year = LMDate.getYear();
if (year < 1900) { year +=1900; }

function Init() {
this.length = Init.arguments.length;
for ( var i = 0; i < this.length; i++ ) this[ i + 1 ] = Init.arguments[ i ];
}
function Roman(number) {
if (number < 1) { alert(number+" is too small\nMinumum value is 1"); number = 1; }
if (number > 5999) { alert(number+" it too big\nMaximum value is 5999"); number = 5999; }
var roman_unit = new Init("","I","II","III","IV","V","VI","VII","VIII","IX");
var roman_tens = new Init("","X","XX","XXX","XL","L","LX","LXX","LXXX","XC");
var roman_hund = new Init("","C","CC","CCC","CD","D","DC","DCC","DCCC","CM");
var roman_thou = new Init("","M","MM","MMM","MMMM","MMMMM");

var v = 0; var w = 0; var x = 0; var y = 0;
v = ((number - (number % 1000)) / 1000) + 1;
number = (number % 1000);
w = ((number - (number % 100)) / 100) + 1;
number = (number % 100);
x = ((number - (number % 10)) / 10) + 1;
y = (number % 10) + 1;
return ("&copy; " + roman_thou[v] + roman_hund[w] + roman_tens[x] + roman_unit[y]);
}
<!-- Copyright Roman Numerals End -->

<!-- Depressable Button Script -->
img1=new Image()
img1.src="images/arrowu1.gif"
img2=new Image()
img2.src="images/arrowd1.gif"
<!-- Depressable Button Script -->

<!-- Begin Popup Window Script -->
function openWindow (doc, win, width, height, title)
{
winHeight = height + 20;
winWidth = width + 20;
newWin = window.open ('', win, 'resizable=no,toolbar=no,menubar=no,width=' + winWidth + ',height=' + winHeight );
newWin.document.writeln ('<HEAD><TITLE>' + title + '</TITLE></HEAD>');
newWin.document.writeln ('<BODY BGCOLOR="BLACK" MARGINWIDTH="8" MARGINHEIGHT="8" LEFTMARGIN="8" TOPMARGIN="8"><TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER"><TR><TD><A HREF="javascript:window.parent.close();"><IMG SRC="' + doc + '" WIDTH="' + width + '" HEIGHT="' + height + '" HSPACE="0" VSPACE="0" BORDER="0" ALT="' + title + ' (click to close)"></A></TD></TR></TABLE>');
}
<!-- End Popup Window Script -->

<!-- Begin Better Popup Window Script -->
// PanicScript (C) 1999-2001 Panic Inc.
// Used without Panic Inc.'s permission

var isNav4, isIE4, isMac, isNav6;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
  isNav4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) != 5) ? true : false
  isNav6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 5) ? true : false
  isIE4  = (navigator.appName.indexOf("Microsoft") != -1) ? true : false
  isMac  = (navigator.platform.indexOf("Mac") != -1) ? true : false
}


var oldX, oldY, movingStatus, layerClicked, testTarget, what, lastUp, altWhat, keepOpen;

keepOpen = 0;

function showPreview(name) {
  if (isNav4 || isNav6) {
    if (isNav6) {
      theObj = document.getElementById("PreviewImage");
      theObj.setAttribute("src", "images/indoor/"+name+".jpg");
    }
  }
  else {
    document.all['Face'].document.images['Face.titlebar'].src = "images/indoor/"+name+".jpg";
  }
  if (keepOpen == 0) {
    winDeal('Face');
  }
  keepOpen = 1;
}

function winDeal(what) {
   if (isNav4 || isNav6) {
     if (isNav4) {
       if (document.layers[what].visibility == "hide") {
         if ((xWin+300) > window.innerWidth) {
           xWin = xWin - ((xWin + 345) - window.innerWidth);
         }
         document.layers[what].left = xWin + 5;
         document.layers[what].top = yWin - 10;
         document.layers[what].visibility = "show";
       } else {
         document.layers[what].visibility = "hide";
       }
     }
     if (isNav6) {
       theObj = document.getElementById(what);
       if (theObj.style.visibility == "hidden" || theObj.style.visibility == "") {
         if ((xWin+300) > window.innerWidth) {
           xWin = xWin - ((xWin + 345) - window.innerWidth);
         }
         theObj.style.left = xWin + 5;
         theObj.style.top = yWin - 10;
         theObj.style.visibility = "visible";
       } else {
         theObj.style.visibility = "hidden";
       }
     }
   }
   else {
     if (document.all[what].style.visibility == "hidden" || document.all[what].style.visibility == "") {
       if ((xWin+300) > document.body.clientWidth) {
         xWin = xWin - ((xWin + 345) - document.body.clientWidth);
       }
       document.all[what].style.pixelLeft = xWin + 5;
       document.all[what].style.pixelTop  = yWin - 10;
       document.all[what].style.visibility = "visible";
     } else {
       document.all[what].style.visibility = "hidden";
     }
   }
}

function doDown(e) {

  if (isNav4 || isNav6) {
    theTarget = e.target;
    xWin = e.pageX;
    yWin = e.pageY;
  }
  if (isIE4) {
    theTarget = window.event.srcElement;
    xWin = window.event.clientX;
    yWin = window.event.clientY + document.body.scrollTop;
  }
    
  if (theTarget.name && theTarget != "") {
    if (theTarget.name.indexOf("titlebar") != -1) {
    
      keepOpen = 1;
    
      layerClicked = theTarget.name.substring(0,theTarget.name.indexOf("."));
      if (isNav6) theLayer = document.getElementById(layerClicked);
            
      if (isNav4 || isNav6) {
      	xCoord = e.layerX;
        yCoord = e.layerY;
      }
      else {
        if (isMac) {
          // On windows, the Y is not relative to page scroll, so compensate
          xCoord = window.event.offsetX;
          yCoord = window.event.offsetY + document.body.scrollTop;
        }
        else {
          xCoord = window.event.offsetX;
          yCoord = window.event.offsetY;
        }
      }
      
      // window.status = "Offset event on "+xCoord+"/"+yCoord;
      
      if (isNav4 || isNav6) {
        theButton = e.which;
      }
      else {
        theButton = event.button;
      }
      if (theButton == 1) {
          // Start Drag
      
          movingStatus = "drag";
	      if (isNav4 || isNav6) { 
  	        document.captureEvents(Event.MOUSEMOVE);
  	        if (isNav4) {
              oldX=e.pageX;
              oldY=e.pageY;
            }
            if (isNav6) {
              oldX = e.clientX;
              oldY = e.clientY;
              startX=parseInt(theLayer.style.left)
	          startY=parseInt(theLayer.style.top)
            }
            // window.status = "Drag Start: " + oldX + " / " + oldY;
          }
	      else {
	        oldX=window.event.offsetX;
	        oldY=window.event.offsetY;
          }
	      document.onmousemove = drag;
          return false;
      }
    }
  }

  // Clicked outside of the face, so reset keepOpen

  if (keepOpen == 1) {
    winDeal('Face');
    keepOpen = 0;
  }
  
  return true;
}

function doUp(e) {
  if (movingStatus == "drag") {
    movingStatus = "false";
    document.onmousemove = null;
    if (isNav4) {
      document.releaseEvents(Event.MOUSEMOVE);
    }
    return false;
  }
  if (movingStatus == "closebox") {
    winDeal(layerClicked);
    movingStatus = "false";
    return false;
  }
}

function drag(e) {
  if (movingStatus == "drag") {
    if (isNav4 || isNav6) {
      if (isNav4) {
        // Nav4: Track the difference, and move the offset by it.
        document.eval(layerClicked).offset(e.pageX - oldX, e.pageY - oldY);
        oldX=e.pageX;
        oldY=e.pageY;
      }
      if (isNav6) {
        // Nav6: Track the difference, and add the starting position to it  
        theLayer.style.left = startX + e.clientX - oldX;
        theLayer.style.top = startY + e.clientY - oldY;
      }
    }
    else {
      if (isMac) {
        document.all[layerClicked].style.pixelLeft = window.event.clientX - oldX;
        document.all[layerClicked].style.pixelTop  = window.event.clientY - oldY;
      }
      else {
        // On windows, the Y is fixed not relative to page scroll, so compensate
        document.all[layerClicked].style.pixelLeft = window.event.clientX - oldX;
        document.all[layerClicked].style.pixelTop  = (window.event.clientY - oldY) + document.body.scrollTop;
      }
    }
    return false;
  }
}

if (isNav4) {
  document.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
}

document.onmousedown=doDown;
document.onmouseup=doUp;


function resizeFire() {
  if (isIE4) {
    bh = document.body.clientHeight - 101;
    stretcher.style.height=''+bh+'px';
  }
}

window.onresize=resizeFire;

// -->
<!-- End Better Popup Window Script -->