﻿if (typeof (pwg) != "object")
    pwg = {};
if (!pwg.onload)
    pwg.onload = [];

pwg.liam =
    {
        key: "namtabmai",
        getKeyValue: function() {
            var mx = 0;
            for (var index = 0, key = pwg.liam.key, length = key.length; index < length; index++)
                mx += key.charCodeAt(index);
            return mx;
        },
        decode: function(value) {
            var mx = pwg.liam.getKeyValue();
            var retval = '';
            for (var index = 0, length = value.length; index < length; index++)
                retval += String.fromCharCode(Math.round(value[index] * mx));
            return retval;
        },
        code: [0.1162046908315565, 0.10341151385927505, 0.11194029850746269, 0.11513859275053305, 0.12366737739872068, 0.11833688699360341, 0.06183368869936034, 0.10980810234541578, 0.10341151385927505, 0.12153518123667377, 0.12899786780383796, 0.11087420042643924, 0.11194029850746269, 0.11513859275053305, 0.11513859275053305, 0.06823027718550106, 0.10554371002132196, 0.10767590618336886, 0.10980810234541578, 0.10341151385927505, 0.04904051172707889, 0.10554371002132196, 0.11833688699360341, 0.1162046908315565],
        onclick: function() {
            window.location.href = pwg.liam.decode(pwg.liam.code);
            return false;
        }
        /*,encode: function(value){var mx=pwg.liam.getKeyValue();var retval=[];for(index=0,length=value.length;index<length;index++) retval.push(value.charCodeAt(index)/mx); return retval;}*/
    };