<!--

// Uncomment comments for testing

var agt = navigator.userAgent.toLowerCase();
var app = navigator.appVersion.toLowerCase();

//alert ('You are using ' + agt + ' ' + app);

if (agt.indexOf("mac")!=-1) {
        is_mac = 1;
//        alert ('You are using a Mac');
        } else {
        is_mac = 0
//        alert ('You are using something else');
        }

function open2() {
window.open("/Flybrain/html/Sitelens/flylens2.html", "Sitemap", "resizable=0,scrollbars=0,toolbar=0,location=0,menubar=0,status=1,width=650,height=650");
}

function open1() {
window.open("/Flybrain/html/Sitelens/flylens1.html", "Sitemap", "resizable=0,scrollbars=0,toolbar=0,location=0,menubar=0,status=1,width=650,height=650");
}

function launchNav(site) {
  window.name="HT";
  if (is_mac == 1) {
        if (app.indexOf("msie")!=-1) {
//        alert ('You have IE for Mac');
        open2();
        } else {
//        alert ('You have Netscape for Mac');
        open1();
        }
  } else {
//        alert ('You are using some other computer');
        open2();
  }
}

function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function launchRemote(site) {
  sitebase = "http://flybrain.neurobio.arizona.edu/Flybrain/bin/flycgi/";
  remotesite = sitebase + site;
  myRemote = launch(eval("remotesite"), "index", "height=400,width=400,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=1,scrollbars=1,status=0,toolbar=0", "flybrain");
}


// -->

