!function(global){var a=function(a){var b=0;return a.wheelDelta?b=a.wheelDelta:a.detail&&(b=-a.detail),a.preventDefault&&a.preventDefault(),b},b=(new Date).getTime(),c=0,d=function(d){if(global.needMouseWheel===!0){var e=a(d);c+=e;var f=(new Date).getTime();if(f-b>40){var g=global.getFlashMovie();g.externalMouseWheel(c),c=0,b=f}}};global.addEventListener&&global.addEventListener("DOMMouseScroll",d,!1),global.onmousewheel=global.document.onmousewheel=d}(window);