﻿function Scrambler() {

    if (document.getElementsByTagName) {
        var things = new Array(
            "@",
            "mail",
            "huiamasters",
            ".",
            "org",
            "nz",
            "to",
            ":"
        );

            
        var a = document.getElementsByTagName("a");
        for (var i = 0; i < a.length; ++i) {
            address_to_replace = a[i];
            if (address_to_replace.getAttribute("class") != "e")
                continue;
            real_address = address_to_replace.getAttribute("href");

            real_address = things[1] + things[6] + things[7] + real_address + things[0] + things[2] + things[3] + things[4] + things[3] + things[5];
            address_to_replace.setAttribute("href", real_address);
        }
    }
}



