/* Script: incMenu.js version: v1.0.2 */ // QVC CODE Change // addEvent was changed from 'domready' to 'load' to account for the rest of the DOM that's on the page $(window).load(function() { if ( get.id('divMenuHeader') ){ new RolloverMenu(($('#divMenuHeader').find('a')), $('.dropdown')); } } ); function RolloverMenu(rolloverElements, menuElements) { this.options = { mouseoverTimeout: 200, mouseoutTimeout: 200, rolloverClass: 'highlighted' }; this.setOptions(this.options); var self = this; var deactivate = function(){self.deactivate.apply(self,arguments);} // Bindings on mouseover and mouseout for each trigger and target rolloverElements.each(function (index, trigger) { self.rightTrigger = trigger; // the rightmost menu item var target = menuElements[index]; // set z-order in case it isn't set in css if ( target != null && target != 'undefined' ){ $(target).css({ 'z-index': -1000 }); var activate = function(){self.activate.apply(self,[trigger, target])}; var deactivate = function(){self.deactivate.apply(self, [])}; $(trigger).on('mouseover', activate); $(trigger).on('mouseout', deactivate); $(target).on('mouseover', activate); $(target).on('mouseout', deactivate); } }); // for ie6, create an iframe underneath the active target if (navigator.userAgent.indexOf("MSIE 6.0")>0 ) { this.mask = $('