(function() { Window.addListener('ready', function() { if (OS.isMac && Browser.isFirefox) { $$('#mainContent, #mainCol, #mainCol .right, #mainCol ul, #mainCol a') .invoke(Element.prototype.setCSS, { opacity: '1', background: 'transparent' }); $$('#mainCol .right') .invoke(Element.prototype.setCSS, { background: 'url(resources/images/whitepx.png)' }); $$('#mainCol ul ul li') .invoke(Element.prototype.setCSS, { background: 'url(resources/images/whitepx80.png)' }); $$('#mainCol .menu li').each(function() { this.addListener('mouseover', function() { this.setCSS({background: 'url(resources/images/'+((this.getAncestor('li'))? 'd9px80.png' : 'd9px.png')+')'}); if (this.$$('ul').isEmpty()) this.$$('> a').invoke(Element.prototype.setCSS, { background: 'url(resources/images/'+ ((this.getAncestor('li'))? 'line-line2.png' : 'line-line95.png') +') no-repeat center 50%' }); else this.$$('> a').invoke(Element.prototype.setCSS, { background: 'url(resources/images/line-arrow95.png) no-repeat center 50%' }); }); this.addListener('mouseout', function() { this .setCSS({background: ((this.getAncestor('li'))? 'url(resources/images/whitepx80.png)' : 'transparent') }) .$$('> a').invoke(Element.prototype.setCSS, {background: 'transparent'}); }); }); } }); })();