Object.extend = function(d, s) {
for (var x in s) { d[x] = s[x]; }
return d;
};
if ((typeof ASJS) == 'undefined')  { ASJS = {}; }
Object.extend(ASJS, {
webRoot: '',
isDevice: false,
isInApp: false,
hasAudio: false,
onload_list: [],
onload: function(f) { ASJS.onload_list.push(f); },
onload_orig: window.onload,
onready_list: [],
onready: function(f) { ASJS.onready_list.push(f); },
onfired: function(event) {
var a = ASJS['on' + event + '_list'];
for (var i=0; i < a.length; ++i) { a[i](); }
a.length = 0;
a = ASJS['on' + event + '_orig'];
if (a)  { a(); }
}
})
window.onload = function() {
ASJS.onfired('load');
Object.extend(ASJS, {
WORDS: {
UNITS: {"experience_symbol": "Exp"},
PHRASES: {"Lead_Notice": "Success", "Lead_Error": "Failure", "Lead_Assist": "Note"},
VERBS: {"lost": "lost", "won": "won"},
NOUNS: {"cash": "gold", "health": "health", "fight": "fight", "income": "collect", "cashflow": "royalty", "stamina": "strength", "energy": "blood"}
}
});
window.setTimeout(function() {
if ((typeof Prototype) == 'undefined')  { return; }
ASJS.onfired('ready');
}, 0)
}
