browser = navigator.appName;
ie = "Microsoft Internet Explorer";
ns = "Netscape";

if( browser == ns )
  document.write('<link rel=stylesheet type="text/css" href="ns.css">');
else
  document.write('<link rel=stylesheet type="text/css" href="ie.css">');

tdigroll = new Object();
tdigroll[0] = "_df"
tdigroll[1] = "_ov"
function tdigimgact(id, act)
{
	if(document.images) document.images[id].src = eval( "tdigimages." + id + tdigroll[act] + ".src");
}

function openContact() {
  var contactWin;
  var agt = navigator.userAgent.toLowerCase();

  if (agt.indexOf("aol") != -1) { return true; }
  if (agt.indexOf("msie") != -1) { 
    var major = parseInt(navigator.appVersion);
    if (major < 4) { return true; }
  }

  contactWin = window.open('contact/index.php3','contact','width=550,height=410');
  if (contactWin == null) {
    return true;
  }
  return false;
}
function show(section) {
  if (browser == ns) {
    document.layers[section].visibility = 'show';
  } else {
    document.all[section].style.visibility = 'visible';
  }
}  

function hide(section) {
  if (browser == ns) {
    document.layers[section].visibility = 'hide';
  } else {
    document.all[section].style.visibility = 'hidden';
  }
}  

function display(index) {
  var i;
  index = index - 1;
  
  // turn on the given section, and off the others
  for( i=0; i < sections.length; i++ ) {

    if( i == index ) {
      show(sections[i]);
    } else {
      hide(sections[i]);
    }
  }
}
