<!--
//Set up variable for use with dynamic link selection
// option selected in link options frame - with default
// This variable also keeps a tab on which image(s) to display
// in this frame
// efb 01/99
var optionSelected = 0;

// An array of links
var visPagesArr = new Array(11);
var newWind;

self.name = 'homePage';

function initArrs()
{
	// Get information from Cookie
	
	visPagesArr[0] = 'tao/tao_ver3/frames99to00.html';
	visPagesArr[1] = 'sebscc/start_sebscc.html';
	visPagesArr[2] = 'global/etopo.html';
	visPagesArr[3] = 'vents/vents.wrl';
	visPagesArr[4] = 'hermann/shelikof/lag-multipath-87-morph.wrl';
	visPagesArr[5] = 'arcinfo/ice90/demo.html';
	visPagesArr[6] = 'global/earth.wrl';
	visPagesArr[7] = 'gccp/frames.html';
	visPagesArr[8] = 'http://www.pmel.noaa.gov/~hermann';
	visPagesArr[9] = 'http://www.pmel.noaa.gov/sebscc';
	visPagesArr[10] = 'http://www.pmel.noaa.gov/toga-tao/vis/vrml/';
	visPagesArr[11] = 'tao/tao_ver3/frames98to99.html';
	
} // end initarrs()
	
function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function changeOptions(theObject, choice)
{
	var i = 0;
	
	if (choice == 0)
	{
		theObject.linkoptone.src="images/but_on.gif";
		theObject.linkopttwo.src="images/but_off.gif";
		theObject.linkoptthree.src="images/but_off.gif";
		theObject.linkoptfour.src="images/but_off.gif";
		MM_showHideLayers('document.layers[\'bsoptsel\']','document.all[\'bsoptsel\']','hide');
		goTo(4);
	}
	else if (choice == 1)
	{
		theObject.linkopttwo.src="images/but_on.gif";
		theObject.linkoptone.src="images/but_off.gif";
		theObject.linkoptthree.src="images/but_off.gif";
		theObject.linkoptfour.src="images/but_off.gif";
		MM_showHideLayers('document.layers[\'bsoptsel\']','document.all[\'bsoptsel\']','hide');
		goTo(8);
	}
	else if (choice == 2)
	{
		theObject.linkoptone.src="images/but_off.gif";
		theObject.linkopttwo.src="images/but_off.gif";
		theObject.linkoptthree.src="images/but_on.gif";
		theObject.linkoptfour.src="images/but_off.gif";
		MM_showHideLayers('document.layers[\'bsoptsel\']','document.all[\'bsoptsel\']','hide');
		goTo(1);
	}
	else
	{
		theObject.linkoptone.src="images/but_off.gif";
		theObject.linkopttwo.src="images/but_off.gif";
		theObject.linkoptthree.src="images/but_off.gif";
		theObject.linkoptfour.src="images/but_on.gif";
		MM_showHideLayers('document.layers[\'bsoptsel\']','document.all[\'bsoptsel\']','hide');
		goTo(9);
	}
	
}

function changeOptionsFerret(theObject, choice)
{
	var i = 0;
	
	if (choice == 0)
	{
		theObject.linkoptone.src="images/but_on.gif";
		theObject.linkopttwo.src="images/but_off.gif";
		MM_showHideLayers('document.layers[\'ferretoptsel\']','document.all[\'ferretoptsel\']','hide');
		goTo(6);
	}
	else
	{
		theObject.linkoptone.src="images/but_off.gif";
		theObject.linkopttwo.src="images/but_on.gif";
		MM_showHideLayers('document.layers[\'ferretoptsel\']','document.all[\'ferretoptsel\']','hide');
		goTo(2);
	}
	
}

function changeOptionsTao(theObject, choice)
{
	var i = 0;
	
	if (choice == 0)
	{
		theObject.linkoptone.src="images/but_on.gif";
		theObject.linkopttwo.src="images/but_off.gif";
		theObject.linkoptthree.src="images/but_off.gif";
		MM_showHideLayers('document.layers[\'taooptsel\']','document.all[\'taooptsel\']','hide');
		goTo(0);
	}
	else if (choice == 1)
	{
		theObject.linkoptone.src="images/but_off.gif";
		theObject.linkopttwo.src="images/but_on.gif";
		theObject.linkoptthree.src="images/but_off.gif";
		MM_showHideLayers('document.layers[\'taooptsel\']','document.all[\'taooptsel\']','hide');
		goTo(11);
	}
	else
	{
		theObject.linkoptone.src="images/but_off.gif";
		theObject.linkopttwo.src="images/but_off.gif";
		theObject.linkoptthree.src="images/but_on.gif";
		MM_showHideLayers('document.layers[\'taooptsel\']','document.all[\'taooptsel\']','hide');
		goTo(10);
	}
	
}

function MM_showHideLayers() { //v2.0
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
  } }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  newWind = window.open(theURL,winName,features);
  if (newWind.opener == null) {
  	newWind.opener = self;
	}
 }

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v2.0
  var newURL = '', version = parseFloat(navigator.appVersion);
  if (navigator.appName.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL = (NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL = (NSnoPass==1)?URL:altURL;}
  } else if (navigator.appName.indexOf('Microsoft') != -1) {
    if (version >= IEvers) {if (IEpass>0) newURL = (IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL = (IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL = (OBpass==1)?URL:altURL;
  if (newURL) {
    window.location = unescape(newURL);
    document.MM_returnValue = false;
  }
}

// Takes the user to the selected page
function goTo(ID)
{
  window.open(visPagesArr[ID],'temp','width=770,height=700,resizable=yes,toolbar=yes,location=yes,menubar=yes');
}
//-->


















