(function(a){a.fn.hoverIntent=function(k,l){var b="mousemove",c={sensitivity:7,interval:100,timeout:0};c=a.extend(c,l?{over:k,out:l}:k);var e,f,g,h,d=function(a){e=a.pageX;f=a.pageY},j=function(k,i){i.hoverIntent_t=clearTimeout(i.hoverIntent_t);if(Math.abs(g-e)+Math.abs(h-f)<c.sensitivity){a(i).unbind(b,d);i.hoverIntent_s=1;return c.over.apply(i,[k])}else{g=e;h=f;i.hoverIntent_t=setTimeout(function(){j(k,i)},c.interval)}},m=function(b,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);a.hoverIntent_s=0;return c.out.apply(a,[b])},i=function(i){var f="mouseover",l=this,k=(i.type==f?i.fromElement:i.toElement)||i.relatedTarget;while(k&&k!=l)try{k=k.parentNode}catch(i){k=l}if(k==l)return false;var n=jQuery.extend({},i),e=l;if(e.hoverIntent_t)e.hoverIntent_t=clearTimeout(e.hoverIntent_t);if(i.type==f){g=n.pageX;h=n.pageY;a(e).bind(b,d);if(e.hoverIntent_s!=1)e.hoverIntent_t=setTimeout(function(){j(n,e)},c.interval)}else{a(e).unbind(b,d);if(e.hoverIntent_s==1)e.hoverIntent_t=setTimeout(function(){m(n,e)},c.timeout)}};return this.mouseover(i).mouseout(i)}})(jQuery);(function(a){a.fn.supersubs=function(c){var b=a.extend({},a.fn.supersubs.defaults,c);return this.each(function(){var d=a(this),c=a.meta?a.extend({},b,d.data()):b,e=a('<li id="menu-fontsize">—</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(d).width();a("#menu-fontsize").remove();$ULs=d.find("ul");$ULs.each(function(i){var f=$ULs.eq(i),d=f.children(),h=d.children("a"),g=d.css("white-space","nowrap").css("float"),b=f.add(d).add(h).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/e;b+=c.extraWidth;if(b>c.maxWidth)b=c.maxWidth;else if(b<c.minWidth)b=c.minWidth;b+="em";f.css("width",b);d.css({"float":g,width:"100%","white-space":"normal"}).each(function(){var c=a(">ul",this),d=c.css("left")!==undefined?"left":"right";c.css(d,b)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){var b="auto";if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:b,left:b,width:b,height:b,opacity:true,src:"javascript:false;"},c||{});var d=function(a){return a&&a.constructor==Number?a+"px":a},e='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top==b?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left==b?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width==b?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height==b?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){a("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(e),this.firstChild)})}return this}})(jQuery);
