var addEvent = function(){ (document.addEventListener || document.attachEvent).apply(document, arguments) }