
var HandBook = 'http://handbook.murdoch.edu.au/'; 

function unit(code)
{
  self.location = HandBook + 'cgi-bin/unit.acgi?goto=' + code;
}


function foundation()
{
  self.location = HandBook + 'units/foundation.html';
}


function elective()
{
  self.location = HandBook + 'units/';
}


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;


function footer(level)
{
  var rootdir = '';

  for (var i = level; i > 0; i--)
    rootdir += '../';
  var navdir = rootdir + 'images/navigate/';

  if (LastUpdate.modified == '<!--#echo var="LAST_MODIFIED" -->')
    LastUpdate.modified = document.lastModified;

  document.writeln('<P><HR NOSHADE>');
  document.writeln('<a href="http://www.eepe.murdoch.edu.au/" TARGET="_top">');
  document.writeln('<img src="',navdir,'home.gif" width="85" height="28" align=bottom border=0 alt="[ACP Home Page]"><\/a>')
  document.writeln('<a href="http://www.dse.murdoch.edu.au/" TARGET="_top">');
  document.writeln('<img src="',navdir,'div.gif" width="85" height="28" align=bottom alt="[Division of Science]" border=0><\/a>');
  document.writeln('<a href="http://www.murdoch.edu.au/" TARGET="_top">');
  document.writeln('<img src="',navdir,'c_home.gif" width="85" height="28" align=bottom border=0 alt="[CWIS Home]"><\/a>');
  document.writeln('<a href="http://www.murdoch.edu.au/apps/follow/cwisindex/matoz.ndx" TARGET="_top">');
  document.writeln('<img src="',navdir,'index.gif" width="85" height="28" align=bottom border=0 alt="[Index]"><\/a>');
  document.writeln('<a href="http://www.murdoch.edu.au/apps/follow/srch/musearch.html" TARGET="_top">');
  document.writeln('<img src="',navdir,'search.gif" width="85" height="28" align=bottom alt="[Search]" border=0><\/a><BR>');
  document.writeln('<FONT SIZE="-2">');
  document.writeln('Original HTML by: ', Author.contact(), '<BR>');
  document.writeln('HTML last modified: ', LastUpdate.modified, '<BR>');
  document.writeln('Modified by: ', LastUpdate.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-2004'); 
  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>');
  document.writeln('<\/FONT>');
/*
  if (self.location == top.location)
  {
    var path = self.location.href;
    var page = path.substring((path.toLowerCase()).indexOf('acp/'), path.length);
    
    self.location.replace('../' + rootdir + 'index.html?' + page);
  }
*/
}


function selectButton(name)
{
  if (window.name == 'main')
  {
    if (name == '' || window.parent.frames[0].document.images[name])
      window.parent.frames[0].navbar.menuItemSelOn(name);      
  }
}

function genLoad(filename)
{
  var  url;

  url = new String(self.location);
  url = '../' + filename;
  self.location.replace(url);
}
/*
function acreLoad(filename)
{
  var wwwdoc, url;

  url = new String(self.location);
//  wwwdoc = (url.indexOf('wwwphys') >= 0);

  url = 'energystudies/' + filename;
//  if (!wwwdoc)
//    url = '..' + url;
  self.location.replace(url);
 
}
*/