function SWFMacMouseWheel(swfObject)
{this.so=swfObject;var isMac=navigator.appVersion.toLowerCase().indexOf("mac")!=-1;if(isMac)this.init();}
SWFMacMouseWheel.prototype={init:function()
{SWFMacMouseWheel.instance=this;if(window.addEventListener)
{window.addEventListener('DOMMouseScroll',SWFMacMouseWheel.instance.wheel,false);}
window.onmousewheel=document.onmousewheel=SWFMacMouseWheel.instance.wheel;},handle:function(delta)
{document[this.so.getAttribute('id')].externalMouseEvent(delta);},wheel:function(event){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120;if(window.opera)delta=-delta;}else if(event.detail){delta=-event.detail/3;}
if(/AppleWebKit/.test(navigator.userAgent)){delta/=3;}
if(delta)
SWFMacMouseWheel.instance.handle(delta);if(event.preventDefault)event.preventDefault();event.returnValue=false;}};
