var isie5 = false;
var iindex;
var sietest = navigator.appName.toLowerCase();
if (sietest.indexOf('microsoft internet explorer') != -1) {
  sietest = navigator.userAgent.toLowerCase();
  if (sietest.indexOf('opera') == -1) isie5 = true;
  }

function buildcsbtn(zsprompt, zsmode) {
  document.write('<TD><TABLE BGCOLOR=#6B00FE BORDER=0>');
  if (isie5) {
    document.write('<TR onmouseover="mseover()" onmouseout="mseout()" onClick="setmode(\'' + zsmode + '\')">');
    document.write('<TD><FONT FACE="ARIEL" COLOR=#FFFF00><B>' + zsprompt + '</B></TD></TR></TABLE></TD>');
    }
  else {
    document.write('<TD><A HREF="" onClick="return setmode(\'' + zsmode + '\')">');
    document.write('<FONT FACE="ARIEL" COLOR=#FFFF00><B>[' + zsprompt + ']</B></A></TD></TABLE></TD>');
    }
  }

function buildhrefbtn(zsprompt, zslink) {
  document.write('<TD><TABLE BGCOLOR=#6B00FE BORDER=0>');
  if (isie5) {
    document.write('<TR onmouseover="mseover()" onmouseout="mseout()">');
    document.write('<TD><A HREF="' + zslink + '">');
    document.write('<FONT FACE="ARIEL" COLOR=#FFFF00><B>' + zsprompt + '</B></A></TD></TR></TABLE></TD>');
    }
  else {
    document.write('<TD><A HREF="' + zslink + '">');
    document.write('<FONT FACE="ARIEL" COLOR=#FFFF00><B>[' + zsprompt + ']</B></A></TD></TABLE></TD>');
    }
  }

function mseover(x) {
  if (x == null) x = window;
  x.event.srcElement.style.background = "#FFFF00"
  x.event.srcElement.style.color = "#6B00FE"
  x.event.srcElement.style.cursor = "hand"
  }

function mseout(x) {
  if (x == null) x = window;
  x.event.srcElement.style.background = "#6B00FE"
  x.event.srcElement.style.color = "#FFFF00"
  x.event.srcElement.style.cursor = "default"
  }

function setmode(zsmode) {
  document.forms[0].hmode.value = zsmode
  document.forms[0].submit();
  return false;
  }

document.writeln('<STYLE>A{TEXT-DECORATION: none}</STYLE>');
document.writeln('<CENTER><TABLE BORDER=0><TR>');
var stemp = document.title;
var i = stemp.indexOf('[');
var j = stemp.indexOf(']');
if ((i > 0) && (j > i)) stemp = stemp.substring(i + 1, j);
stemp = stemp.toUpperCase(stemp);
if (stemp != 'ARCH') buildcsbtn("Architecture", "1");
//if (stemp != 'CONTACT') buildcsbtn("ContactUs", "2");
if (stemp != 'DATA') buildcsbtn("Database", "3");
if (stemp != 'GOALS') buildcsbtn("Goals", "4");
buildhrefbtn("Introduction", "../../portfolio/surfserv/default.htm");
buildhrefbtn("FutureWare!", "http://www.futurewaredc.com");
if (stemp != 'SECURE') buildcsbtn("Security", "5");
if (stemp != 'TOOLS') buildcsbtn("Tools", "6");
if (stemp != 'WORK') buildcsbtn("WorkSheet", "7");
document.write('</FONT></TR></TABLE></CENTER>');

