
function contact()
{
  var s = this.name;

  if (this.email != '')
    s = '<A HREF="mailto:'+this.email+'murdoch.edu.au">' + s + '<\/a>';
  if (this.name2 != '')
  {
    if (this.email2 != '')
      s = s + ' \& <A HREF="mailto:' + this.email2 + 'murdoch.edu.au">' + this.name2 + '<\/a>';
    else
      s = s + ' \& ' + this.name2;
  }
  if (this.position != '')
    s = s + ', ' + this.position;
  if (this.location != '')
    s = s + ', ' + this.location;
  return s;
}


function Person()
{
  this.name = '';
  this.name2 = '';
  this.email = '';
  this.email2 = '';
  this.position = '';
  this.location = '';
  this.modified = '';
  this.contact = contact;
}

var Author = new Person;
var LastUpdate = new Person;
var Authority = new Person;
var Technical = new Person;
var Today = new Date();

Authority.name = "Prof. Tom Lyons";
 Authority.email = "T.Lyons@";
Authority.location = "Environmental Science";

Technical.name = "Philip Good"
Technical.email = "P.Good@";


function footer()
{
  if (LastUpdate.modified == '')
    LastUpdate.modified = document.lastModified;

  document.writeln('<p><div class="footer"><hr noshade size="1">');
  document.writeln('Original HTML by: ', Author.contact(), ', Document creation: ', Author.modified, '<BR>');
  document.writeln('HTML last modified: ', LastUpdate.modified, '<BR>');
  document.writeln('Modified by: ', LastUpdate.contact(), ', Technical Support: ', Technical.contact(), '<BR>');
  document.writeln('Authorised by: ', Authority.contact(), '<BR>');
  document.writeln('<A HREF="http://www.murdoch.edu.au/copy/copy.html" TARGET="_top">');
  document.writeln('Disclaimer &amp; Copyright Notice<\/A> &copy; 1998'); 
  document.writeln('<A HREF="http://www.murdoch.edu.au/about/murdoch.html" TARGET="_top">');
  document.writeln('Murdoch University<\/A><BR>');
  document.writeln('Registered Provider Code: <A href=http://cricos.detya.gov.au/asp/InstitutionDetails.asp?PVID=125>00125J<\/A><br>');
  document.writeln('URL: <A HREF=', document.URL,'>', document.URL, '<\/A></div> </p>');
}


function buttons(level)
{
  var rootdir = '';
  var imgdir;

  for (var i = level; i > 0; i--)
    rootdir += '../';

  imgdir = rootdir + 'images/';

  document.writeln('<p><a href="', rootdir, './"><img border="0" src="', imgdir, 'home.gif" alt="Met Station Home"></a><br>');
  document.writeln('<a href="', rootdir, 'sensors.php"><img border="0" src="', imgdir, 'sensors.gif" width="110" height="28" alt="All Sensor Readings"></a> <br>');
  document.writeln('<a href="', rootdir, 'trends.php"><img border="0" src="', imgdir, 'trends.gif" width="110" height="28" alt="Weather Trends"></a> <br>');
  document.writeln('<a href="', rootdir, 'downloads.htm"><img border="0" src="', imgdir, 'downloads.gif" width="110" height="28" alt="Downloads"></a> <br>');
  document.writeln('<a href="', rootdir, 'rainfall.php"><img border="0" src="', imgdir, 'rainfall.gif" width="110" height="28" alt="Total Rainfall"></a> <br>');
  document.writeln('<a href="', rootdir, 'links.htm"><img border="0" src="', imgdir, 'links.gif" width="110" height="28" alt="Useful Links"></a> <br>');
  document.writeln('<a href="', rootdir, 'about.htm"><img border="0" src="', imgdir, 'about.gif" width="110" height="28" alt="About This Web Site"></a> </p>');
  document.writeln('<p><a href="http://www.dse.murdoch.edu.au/"><img border="0" img src="', imgdir, '/scieng.gif" width="110" height="28" alt="Division of Science and Engineering"></a> <br>');
  document.writeln('<a href="http://www.murdoch.edu.au/"><img border=0 img src="', imgdir, 'c_home_large.gif" width="110" height="28" alt="CWIS Home"></a> </p>');
}
