(function($){$.fn.HoverAccordian=function(opt){var self=this;self.options={collapsedWidth:0,expandedWidth:0,speed:200,hideDelay:100};if(opt){self.options=$.extend(self.options,opt)}return this.each(function(){var elem=$(this);elem.timer;elem.current=null;elem.animating=false;$("#tabDefault").css("z-index",2);$("li",elem).hoverIntent(function(){clearTimeout(elem.timer);if(elem.animating)return;elem.animating=true;$("#tabDefault").css("z-index",1);if(elem.current!=null){var old=elem.current;$(this,elem).animate({width:self.options.expandedWidth+"px"},{step:function(n,fx){var nextWidth=(self.options.expandedWidth-(n-self.options.collapsedWidth));if(!$.browser.mozilla){nextWidth=Math.ceil(nextWidth)}old.width(nextWidth);$("#tabDefault").css("z-index",1)},complete:function(){elem.current=$(this);elem.animating=false},duration:self.options.speed,easing:"linear"})}else{$(this,elem).animate({width:self.options.expandedWidth+"px"},{duration:self.options.speed,easing:"linear",complete:function(){elem.current=$(this);elem.animating=false;$("#tabDefault").css("z-index",1)}})}},function(){elem.timer=setTimeout(function(){elem.stop();elem.find("li").animate({width:self.options.collapsedWidth},{easing:"linear",duration:self.options.speed,complete:function(){$("#tabDefault").css("z-index",2)}});elem.animating=false;elem.current=null},self.options.hideDelay)})})}})(jQuery);