(function(a){function g(b){return b&&b.constructor===Number?b+"px":b}a.fn.bgiframe=a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(b){b=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},b);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+b.src+'"style="display:block;position:absolute;z-index:-1;'+(b.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(b.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
g(b.top))+";left:"+(b.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":g(b.left))+";width:"+(b.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":g(b.width))+";height:"+(b.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":g(b.height))+';"/>';return this.each(function(){a(this).children("iframe.bgiframe").length===0&&this.insertBefore(document.createElement(c),this.firstChild)})}:function(){return this};a.fn.bgIframe=a.fn.bgiframe})(jQuery);
(function(a){a.fn.hoverIntent=function(g,b){var c={sensitivity:7,interval:100,timeout:0};c=a.extend(c,b?{over:g,out:b}:g);var h,m,i,j,l=function(d){h=d.pageX;m=d.pageY},o=function(d,e){e.hoverIntent_t=clearTimeout(e.hoverIntent_t);if(Math.abs(i-h)+Math.abs(j-m)<c.sensitivity){a(e).unbind("mousemove",l);e.hoverIntent_s=1;return c.over.apply(e,[d])}else{i=h;j=m;e.hoverIntent_t=setTimeout(function(){o(d,e)},c.interval)}},f=function(d,e){e.hoverIntent_t=clearTimeout(e.hoverIntent_t);e.hoverIntent_s=0;
return c.out.apply(e,[d])};g=function(d){for(var e=(d.type=="mouseover"?d.fromElement:d.toElement)||d.relatedTarget;e&&e!=this;)try{e=e.parentNode}catch(p){e=this}if(e==this)return false;var n=jQuery.extend({},d),k=this;if(k.hoverIntent_t)k.hoverIntent_t=clearTimeout(k.hoverIntent_t);if(d.type=="mouseover"){i=n.pageX;j=n.pageY;a(k).bind("mousemove",l);if(k.hoverIntent_s!=1)k.hoverIntent_t=setTimeout(function(){o(n,k)},c.interval)}else{a(k).unbind("mousemove",l);if(k.hoverIntent_s==1)k.hoverIntent_t=
setTimeout(function(){f(n,k)},c.timeout)}};return this.mouseover(g).mouseout(g)}})(jQuery);
(function(a){a.fn.superfish=function(b){var c=a.fn.superfish,h=c.c,m=a(['<span class="',h.arrowClass,'"> &#187;</span>'].join("")),i=function(){var f=a(this),d=l(f);clearTimeout(d.sfTimer);f.showSuperfishUl().siblings().hideSuperfishUl()},j=function(){var f=a(this),d=l(f),e=c.op;clearTimeout(d.sfTimer);d.sfTimer=setTimeout(function(){e.retainPath=a.inArray(f[0],e.$path)>-1;f.hideSuperfishUl();e.$path.length&&f.parents(["li.",e.hoverClass].join("")).length<1&&i.call(e.$path)},e.delay)},l=function(f){f=
f.parents(["ul.",h.menuClass,":first"].join(""))[0];c.op=c.o[f.serial];return f},o=function(f){f.addClass(h.anchorClass).append(m.clone())};return this.each(function(){var f=this.serial=c.o.length,d=a.extend({},c.defaults,b);d.$path=a("li."+d.pathClass,this).slice(0,d.pathLevels).each(function(){a(this).addClass([d.hoverClass,h.bcClass].join(" ")).filter("li:has(ul)").removeClass(d.pathClass)});c.o[f]=c.op=d;a("li:has(ul)",this)[a.fn.hoverIntent&&!d.disableHI?"hoverIntent":"hover"](i,j).each(function(){d.autoArrows&&
o(a(">a:first-child",this))}).not("."+h.bcClass).hideSuperfishUl();var e=a("a",this);e.each(function(p){var n=e.eq(p).parents("li");e.eq(p).focus(function(){i.call(n)}).blur(function(){j.call(n)})});d.onInit.call(this)}).each(function(){var f=[h.menuClass];c.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)&&f.push(h.shadowClass);a(this).addClass(f.join(" "))})};var g=a.fn.superfish;g.o=[];g.op={};g.IE7fix=function(){var b=g.op;a.browser.msie&&a.browser.version>6&&b.dropShadows&&b.animation.opacity!=
undefined&&this.toggleClass(g.c.shadowClass+"-off")};g.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};g.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var b=g.op,
c=b.retainPath===true?b.$path:"";b.retainPath=false;c=a(["li.",b.hoverClass].join(""),this).add(this).not(c).removeClass(b.hoverClass).find(">ul").hide().css("visibility","hidden");b.onHide.call(c);return this},showSuperfishUl:function(){var b=g.op,c=this.addClass(b.hoverClass).find(">ul:hidden").css("visibility","visible");g.IE7fix.call(c);b.onBeforeShow.call(c);c.animate(b.animation,b.speed,function(){g.IE7fix.call(c);b.onShow.call(c)});return this}})})(jQuery);
(function(a){a.fn.supersubs=function(g){var b=a.extend({},a.fn.supersubs.defaults,g);return this.each(function(){var c=a(this),h=a.meta?a.extend({},b,c.data()):b,m=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(c).width();a("#menu-fontsize").remove();$ULs=c.find("ul");$ULs.each(function(i){i=$ULs.eq(i);var j=i.children(),l=j.children("a"),o=j.css("white-space","nowrap").css("float"),f=i.add(j).add(l).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/
m;f+=h.extraWidth;if(f>h.maxWidth)f=h.maxWidth;else if(f<h.minWidth)f=h.minWidth;f+="em";i.css("width",f);j.css({"float":o,width:"100%","white-space":"normal"}).each(function(){var d=a(">ul",this),e=d.css("left")!==undefined?"left":"right";d.css(e,f)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);jQuery.noConflict();
jQuery(document).ready(function(){jQuery("ul.sf-menu").supersubs({minWidth:12,maxWidth:27,extraWidth:1}).superfish({delay:400,animation:{opacity:"show",height:"show"},speed:"fast",autoArrows:false,dropShadows:false})});

