function getMailtext()
{
    var data = [217, 213, 221, 216, 192, 219, 142, 195, 
                209, 214, 217, 213, 199, 192, 209, 198, 
                244, 195, 221, 218, 208, 199, 219, 218, 
                211, 154, 208, 209, 217, 219, 218, 154, 
                215, 219, 154, 193, 223, 180, 217, 213, 
                221, 216, 148, 217, 209, 180, 195, 209, 
                214, 217, 213, 199, 192, 209, 198, 244, 
                195, 221, 218, 208, 199, 219, 218, 211, 
                154, 208, 209, 217, 219, 218, 154, 215, 
                219, 154, 193, 223, 180];
    var idx = 0, n = data[data.length - 1];
    var mailtext =  '<a href = "';
    while (data[idx] !== n) {
        mailtext = mailtext + '&#' + (data[idx++] ^ n) + ';';
    }
    idx++;
    mailtext = mailtext + '" title = "';
    while (data[idx] !== n) {
        mailtext = mailtext + '&#' + (data[idx++] ^ n) + ';';
    }
    idx++;
    mailtext = mailtext + '">';
    while (data[idx] !== n) {
        mailtext = mailtext + '&#' + (data[idx++] ^ n) + ';';
    }
    idx++;
    mailtext = mailtext + '</a>';
    return mailtext;
}

function doMailFor(who)
{
    var data = [217, 213, 221, 216, 192, 219, 142, 195, 
                209, 214, 217, 213, 199, 192, 209, 198, 
                244, 195, 221, 218, 208, 199, 219, 218, 
                211, 154, 208, 209, 217, 219, 218, 154, 
                215, 219, 154, 193, 223, 180, 217, 213, 
                221, 216, 148, 217, 209, 180, 195, 209, 
                214, 217, 213, 199, 192, 209, 198, 244, 
                195, 221, 218, 208, 199, 219, 218, 211, 
                154, 208, 209, 217, 219, 218, 154, 215, 
                219, 154, 193, 223, 180];
    if (!document.layers)
    {
        var p  =  document.getElementById('mailtag');
        if (!p) 
        {
            return;
        }
        p.style.textAlign  =  "center";

        p.removeChild(p.firstChild);
        p.appendChild(
        document.createTextNode(unescape(who)));
        p.appendChild(document.createElement('a'));

        var idx = 0, n = data[data.length - 1];
        var mailtext =  '';
        while (data[idx] !== n) {
            mailtext += String.fromCharCode(data[idx++] ^ n);
        }
        idx++;

        p.lastChild.setAttribute('href', mailtext);

        mailtext =  '';
        while (data[idx] !== n) 
        {
            mailtext += String.fromCharCode(data[idx++] ^ n);
        }
        idx++;

        p.lastChild.setAttribute('title', mailtext);

        mailtext =  '';
        while (data[idx] !== n) 
        {
            mailtext += String.fromCharCode(data[idx++] ^ n);
        }
        idx++;

        p.lastChild.appendChild(document.createTextNode(mailtext));
    }
}

function doMail()
{
		doMailFor('This document maintained by domain webmaster \u2014 ');
    }



/* 
createElement function found at http://simon.incutio.com/archive/2003/06/15/javascriptWithXML
*/
function createElement(element) {
	if (typeof document.createElementNS  !==  'undefined') {
		return document.createElementNS('http://www.w3.org/1999/xhtml', element);
	}
	if (typeof document.createElement  !==  'undefined') {
		return document.createElement(element);
	}
	return false;
}

function doCopyright() 
{
    var p  =  createElement("p");
    if (p) 
    {
        var year  =  new Date().getFullYear();
        var text  =  "Content copyright \u00A9 Steve Gilham 1997\u2013" + year;
        var t  =  document.createTextNode(text);
        p.appendChild(t);
        p.style.textAlign  =  "center";
        document.body.appendChild(p);
    }
}

window.pre_tines_onload  =  window.onload;
window.onload  =  function ()
{
    doMail();
    doCopyright();
    if (window.pre_tines_onload) 
    {
        window.pre_tines_onload();
    }
};
