10 document.addListener = function(type, fn){
11 if (this.addEventListener) this.addEventListener(type, fn, false);
12 else this.attachEvent('on' + type, fn);
16 document.removeListener = function(type, fn){
17 if (this.removeEventListener) this.removeEventListener(type, fn, false);
18 else this.detachEvent('on' + type, fn);
24 document.fireEvent = function(type){
25 if (type == 'domready')
26 for (var i = 0; i < domreadyCallbacks.length; ++i){
28 domreadyCallbacks[i]();
31 window.addEvent = function(){};
33 var Element = this.Element || {};