/* ** STANDARDUI.JS **  */

// set gNasaURL to absolute URL of NASA's site
var gNasaURL = "http://www.larc.nasa.gov";

// NOTE: you will need to manually set the URLs of the Participating Universities in  
// function writeHeader, below (see "BottomHeader" map on line 62)

function initChaserBttns() {

	for (var i=0; i<gNumChaserBttns; i++) {
		eval('gChaserBttn'+ (i+1) + '= new buttonObj("menu'+ (i+1) +'", "chaserLyr");');
	}
	
	gBottomBttn = new buttonObj("menu_bottom", "chaserLyr");
	
	buildObjRef("chaserLyr").visibility = "visible";
}

function writeChaser() {

	var lWriteString = '';

	lWriteString += '<img src="../assets/images/menu_top.gif" width="'+ gChaserWH[0] +'" height="'+ gChaserWH[1] +'" name="menu_top" border="0">';
	
	for (var i=0; i<gNumChaserBttns; i++) {
		lWriteString += '<a href="' + gChaserMLocs[i] + '.html" onMouseOver="gChaserBttn'+ (i+1) +'.btnRoll()" onMouseOut="gChaserBttn'+ (i+1) +'.btnRoll()"><img src="../assets/images/menu'+ (i+1) +'_lo.gif" width="'+ gChaserWH[0] +'" height="'+ gChaserWH[1] +'" name="menu'+ (i+1) +'" border="0"></a>';
	}

	lWriteString += '<a href="#top_of_page" onMouseOver="gBottomBttn.btnRoll()" onMouseOut="gBottomBttn.btnRoll()"><img src="../assets/images/menu_bottom_lo.gif" width="'+ gChaserWH[0] +'" height="'+ gChaserWH[1] +'" name="menu_bottom" border="0"></a>';

	writeLnToDoc("chaserLyr",lWriteString);
}

function writeHeader() {

	var lWriteString = '';
	
	lWriteString += '<table cellspacing="0" cellpadding="0" border="0">';
	lWriteString += '  <tr>';
	lWriteString += '    <td height="67" valign="bottom"><a href="../index.html"><img src="../assets/images/logo_bimat.gif" width="250" height="75" border="0"></a><img src="../assets/images/header1.jpg" width="494" height="49" usemap="#TopHeader" border="0"></td>';
	lWriteString += '	 <td rowspan="3" width="100%" height="82" valign="top" background="../assets/images/back.jpg">&nbsp;</td>';
	lWriteString += '  </tr>';
	lWriteString += '  <tr>';
	lWriteString += '    <td width="744" height="14" colspan="2" valign="top"><img src="../assets/images/header2.jpg" width="744" height="18" usemap="#MidHeader" border="0"></td>';
	lWriteString += '  </tr>';
	lWriteString += '  <tr>';
	lWriteString += '    <td width="744" colspan="2" valign="top"> ';
	lWriteString += '      <p><img src="../assets/images/header3.jpg" width="744" height="96" usemap="#BottomHeader" border="0"></p>';
	lWriteString += '    </td>';
	lWriteString += '  </tr>';
	lWriteString += '</table>';

	lWriteString += '<map name="TopHeader">';
	lWriteString += '  <area shape="rect" coords="404,11,488,49" href="'+ gNasaURL +'" target="new">';
	lWriteString += '</map>';
	
	lWriteString += '<map name="MidHeader">';
	lWriteString += '  <area shape="rect" coords="659,0,734,18" href="'+ gNasaURL +'" target="new">';
	lWriteString += '</map>';
	
	lWriteString += '<map name="BottomHeader">';
	lWriteString += '  <area shape="rect" coords="652,0,738,35"   href="'+ gNasaURL +'" target="new">';
	lWriteString += '  <area shape="rect" coords="13,79,77,94"    href="http://www.princeton.edu"     target="new">';
	lWriteString += '  <area shape="rect" coords="81,79,248,94"   href="http://www.ucsb.edu"          target="new">';
	lWriteString += '  <area shape="rect" coords="252,79,343,94"  href="http://www.northwestern.edu"  target="new">';
	lWriteString += '  <area shape="rect" coords="347,79,441,94"  href="http://www.unc.edu"           target="new">';
  lWriteString += '  <area shape="rect" coords="445,79,476,94"  href="http://www.nianet.org"        target="new">';
	lWriteString += '</map>';
	
	writeLnToDoc("null",lWriteString);
}
