<!--
//===============================================================================
// oumcf.js -- oumcf javascript functions
//  4 Dec 2003...jeg
//
//===============================================================================

//   var last_update = "17 Feb 2004";
//  var last_update = "20 Apr 2004";     //add mouse colonization
  var last_update = "3 Dec 2004";     //chg address, add group picture
  var menu_name = new Array();
  var menu_href = new Array();
  var menu_size = 8;

  menu_name[0]  = "OUMCF Home";
  menu_name[1]  = "<em>E. coli</em> GenExp DB";
  menu_name[2]  = "Mouse Colonization DB";
  menu_name[3]  = "Membrane <br>Array Tools";
  menu_name[4]  = "<em>E. coli</em> Projects";
  menu_name[5]  = "Microarray DB";
  menu_name[6]  = "Publications";
  menu_name[7]  = "Links";
  menu_name[8]  = "Lab Group";
  menu_name[9]  = "Contact Us";

  menu_href[0]  = "http://www.ou.edu/microarray";
  menu_href[1]  = "http://chase.ou.edu/macro";
  menu_href[2]  = "http://chase.ou.edu/macro/mouse_index.php";
  menu_href[3]  = "http://www.ou.edu/microarray/oumcf/protosoft.htm";
  menu_href[4]  = "http://www.ou.edu/microarray/oumcf/ecoprojects.htm";
  menu_href[5]  = "http://chase.ou.edu/micro/microdb";
  menu_href[6]  = "http://www.ou.edu/microarray/oumcf/pubs.htm";
  menu_href[7]  = "http://www.ou.edu/microarray/oumcf/links.htm";
  menu_href[8]  = "http://www.ou.edu/microarray/oumcf/labgroup.htm";
  menu_href[9]  = "http://www.ou.edu/microarray/oumcf/contacts.htm";

function onmenu(f,bgcolor,color,loc)
  {
  f.style.backgroundColor = bgcolor;
  f.style.color = color;
  self.status = loc;
  }

function offmenu(f,bgcolor,color)
  {
  f.style.backgroundColor = bgcolor;
  f.style.color = color;
  self.status = '';
  }

function fourdigits(number)
  {
  return (number < 1000) ? number + 1900 : number;
  }

function show_date()
  {
  var now = new Date();
  var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
  var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
  var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
  today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear()));
  document.write("<font face=verdana,arial size=1 color=gray> &nbsp;&nbsp;" + today + "</font>");
  }

function header()
  {
  document.write('<table width="100%" bgcolor="black">');
  document.write('<tr><td width="100%" background="http://www.ou.edu/microarray/oumcf/oumcf_bg_logo.png"><a href="http://www.ou.edu/microarray"><img src="http://www.ou.edu/microarray/oumcf/oumcf_hd_logo.png" alt="Microarray Core Facility at the University of Oklahoma" border="0"></a></td></tr>');
  document.write('</table>');
  show_date();
  }

function menu()
  {
  document.write('<table  width="168" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid black; text-align: center; background: white; color: black; cursor: pointer; font-weight: bold; font-family: arial">');
  document.write('<tr><td bgcolor=black><font color=white>Sections</font></td></tr>');
  document.write('</table>');
  document.write('<table  border="0" cellspacing="0" cellpadding="8" style="border: 1px solid black; text-align: center; background: white; color: black; cursor: pointer; font-weight: bold; font-family: arial">');

  for (i=0; i<=menu_size; i++)
    {
    if (i == 0)
      document.write('<tr><td onClick="location.href=\''+menu_href[i]+'\'" onMouseover="onmenu(this,\'black\',\'yellow\',\''+menu_href[i]+'\')" onMouseout="offmenu(this,\'white\',\'red\')"><font size=2 color=red>' + menu_name[i] + '</font></td></tr>');
    else
      document.write('<tr><td onClick="location.href=\''+menu_href[i]+'\'" onMouseover="onmenu(this,\'black\',\'yellow\',\''+menu_href[i]+'\')" onMouseout="offmenu(this,\'white\',\'black\')">' + menu_name[i] + '</td></tr>');
    }

//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray\'"                       onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'red\'"><font size=2 color=red> OUMCF Home </font></td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/Macroarray\'"            onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'"><em>E. coli</em> GenExp DB</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/oumcf/protosoft.htm\'"   onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'">Membrane <br>Array Tools</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/oumcf/ecoprojects.htm\'" onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'"><em>E. coli</em> Projects</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://chase.ou.edu/micro/microdb\'"                  onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'">Microarray DB</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/oumcf/pubs.htm\'"        onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'">Publications</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/oumcf/links.htm\'"       onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'">Links</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/oumcf/labgroup.htm\'"    onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'">Lab Group</td></tr>');
//   document.write('<tr><td onClick="location.href=\'http://www.ou.edu/microarray/oumcf/contacts.htm\'"    onMouseover="this.style.backgroundColor=\'black\'; this.style.color=\'yellow\'" onMouseout="this.style.backgroundColor=\'white\'; this.style.color=\'black\'">Contact Us</td></tr>');

  document.write('</table>');

  document.write('<br>');
  document.write('<table width="150" border="0" cellspacing="8" cellpadding="8" style="text-align: center">');
  document.write('<tr><td>');
  document.write('<a href="http://www.ou.edu/microarray"><img src="http://www.ou.edu/microarray/oumcf/oumcflogo.jpg" width="60" height="59" align="center" alt="Microarray Core Facility at the University of Oklahoma"></a>');
  document.write('</td></tr>');
  document.write('</table>');

  document.write('<table style="border: 0px; font-size: small;">');
  document.write('<tr><td>');
  document.write('Best viewed with Microsoft<br>IE v5.5 or Netscape v6.0');
  document.write('</td></tr>');
  document.write('</table>');

  document.write('<br>');
  document.write('<table style="border: 0px; font-size: xx-small;">');
  document.write('<tr><td>');
  document.write('<a style="text-decoration: underline" href="http://www.ou.edu/disclaimer/copyright.html" class="sm_white1" target="_blank">Copyright</a> © 2003<br>The Board of Regents of the<br>University of Oklahoma.');
  document.write('</td></tr>');
  document.write('</table>');

  document.write('<table style="border: 0px; font-size: xx-small;">');
  document.write('<tr><td>');
  document.write('Last update: '+ last_update);
  document.write('</td></tr>');
  document.write('</table>');
  }
-->