(function(A){A.ajaxHistory=new function(){var K="historyReset";var C=location.hash;var J=null;var H;this.update=function(){};var G=function(){A(".remote-output").empty()};A(document).bind(K,G);if(A.browser.msie){var I,D=false;A(function(){I=A('<iframe style="display: none;"></iframe>').appendTo(document.body).get(0);var M=I.contentWindow.document;M.open();M.close();if(C&&C!="#"){M.location.hash=C.replace("#","")}});this.update=function(N){C=N;var M=I.contentWindow.document;M.open();M.close();M.location.hash=N.replace("#","")};H=function(){var N=I.contentWindow.document;var M=N.location.hash;if(M!=C){C=M;if(M&&M!="#"){A('a[@href$="'+M+'"]').click();location.hash=M}else{if(D){location.hash="";A(document).trigger(K)}}}D=true}}else{if(A.browser.mozilla||A.browser.opera){this.update=function(M){C=M};H=function(){if(location.hash){if(C!=location.hash){C=location.hash;A('a[@href$="'+C+'"]').click()}}else{if(C){C="";A(document).trigger(K)}}}}else{if(A.browser.safari){var L,B,F;A(function(){L=[];L.length=history.length;B=[]});var E=false,D=false;F=function(M){L.push(M);B.length=0;E=false};this.update=function(M){C=M;F(C)};H=function(){var M=history.length-L.length;if(M){E=false;if(M<0){for(var N=0;N<Math.abs(M);N++){B.unshift(L.pop())}}else{for(var N=0;N<M;N++){L.push(B.shift())}}var O=L[L.length-1];A('a[@href$="'+O+'"]').click();C=location.hash}else{if(L[L.length-1]==undefined&&!E){if(document.URL.indexOf("#")>=0){A('a[@href$="#'+document.URL.split("#")[1]+'"]').click()}else{if(D){A(document).trigger(K)}}E=true}}D=true}}}}this.initialize=function(M){if(typeof M=="function"){A(document).unbind(K,G).bind(K,M)}if(location.hash&&typeof F=="undefined"){A('a[@href$="'+location.hash+'"]').trigger("click")}if(H&&J==null){J=setInterval(H,200)}}};A.fn.remote=function(B,C,E){E=E||function(){};if(typeof C=="function"){E=C}C=A.extend({hashPrefix:"remote-"},C||{});var D=A(B).size()&&A(B)||A("<div></div>").appendTo("body");D.addClass("remote-output");return this.each(function(H){var G=this.href,I="#"+(this.title&&this.title.replace(/\s/g,"_")||C.hashPrefix+(H+1)),F=this;this.href=I;A(this).click(function(J){if(!D.locked){if(J.clientX){A.ajaxHistory.update(I)}D.load(G,function(){D.locked=null;E.apply(F)})}})})};A.fn.history=function(B){return this.click(function(C){if(C.clientX){A.ajaxHistory.update(this.hash)}typeof B=="function"&&B()})}})(jQuery);(function(B){B.extend({tabs:{remoteCount:0}});B.fn.tabs=function(D,E){if(typeof D=="object"){E=D}E=B.extend({initial:(D&&typeof D=="number"&&D>0)?--D:0,disabled:null,bookmarkable:B.ajaxHistory?true:false,remote:false,spinner:"Loading&#8230;",hashPrefix:"remote-tab-",fxFade:null,fxSlide:null,fxShow:null,fxHide:null,fxSpeed:"normal",fxShowSpeed:null,fxHideSpeed:null,fxAutoHeight:false,onClick:null,onHide:null,onShow:null,navClass:"tabs-nav",selectedClass:"tabs-selected",disabledClass:"tabs-disabled",containerClass:"tabs-container",hideClass:"tabs-hide",loadingClass:"tabs-loading",tabStruct:"div"},E||{});B.browser.msie6=B.browser.msie&&(B.browser.version&&B.browser.version<7||/MSIE 6.0/.test(navigator.userAgent));function F(){scrollTo(0,0)}return this.each(function(){var P=this;var N=B("ul."+E.navClass,P);N=N.size()&&N||B(">ul:eq(0)",P);var Y=B("a",N);if(E.remote){Y.each(function(){var b=E.hashPrefix+(++B.tabs.remoteCount),a="#"+b,Z=this.href;this.href=a;B('<div id="'+b+'" class="'+E.containerClass+'"></div>').appendTo(P);B(this).bind("loadRemoteTab",function(g,h){var c=B(this).addClass(E.loadingClass),d=B("span",this)[0],f=d.innerHTML;if(E.spinner){d.innerHTML="<em>"+E.spinner+"</em>"}setTimeout(function(){B(a).load(Z,function(){if(E.spinner){d.innerHTML=f}c.removeClass(E.loadingClass);h&&h()})},0)})})}var R=B("div."+E.containerClass,P);R=R.size()&&R||B(">"+E.tabStruct,P);N.is("."+E.navClass)||N.addClass(E.navClass);R.each(function(){var Z=B(this);Z.is("."+E.containerClass)||Z.addClass(E.containerClass)});var L=B("li",N).index(B("li."+E.selectedClass,N)[0]);if(L>=0){E.initial=L}if(location.hash){Y.each(function(a){if(this.hash==location.hash){E.initial=a;if((B.browser.msie||B.browser.opera)&&!E.remote){var Z=B(location.hash);var b=Z.attr("id");Z.attr("id","");setTimeout(function(){Z.attr("id",b)},500)}F();return false}})}if(B.browser.msie){F()}R.filter(":eq("+E.initial+")").show().end().not(":eq("+E.initial+")").addClass(E.hideClass);B("li",N).removeClass(E.selectedClass).eq(E.initial).addClass(E.selectedClass);Y.eq(E.initial).trigger("loadRemoteTab").end();if(E.fxAutoHeight){var X=function(Z){var a=B.map(R.get(),function(c){var b,d=B(c);if(Z){if(B.browser.msie6){c.style.removeExpression("behaviour");c.style.height="";c.minHeight=null}b=d.css({"min-height":""}).height()}else{b=d.height()}return b}).sort(function(d,c){return c-d});if(B.browser.msie6){R.each(function(){this.minHeight=a[0]+"px";this.style.setExpression("behaviour",'this.style.height = this.minHeight ? this.minHeight : "1px"')})}else{R.css({"min-height":a[0]+"px"})}};X();var O=P.offsetWidth;var W=P.offsetHeight;var I=B("#tabs-watch-font-size").get(0)||B('<span id="tabs-watch-font-size">M</span>').css({display:"block",position:"absolute",visibility:"hidden"}).appendTo(document.body).get(0);var Q=I.offsetHeight;setInterval(function(){var a=P.offsetWidth;var b=P.offsetHeight;var Z=I.offsetHeight;if(b>W||a!=O||Z!=Q){X((a>O||Z<Q));O=a;W=b;Q=Z}},50)}var J={},S={},H=E.fxShowSpeed||E.fxSpeed,M=E.fxHideSpeed||E.fxSpeed;if(E.fxSlide||E.fxFade){if(E.fxSlide){J.height="show";S.height="hide"}if(E.fxFade){J.opacity="show";S.opacity="hide"}}else{if(E.fxShow){J=E.fxShow}else{J["min-width"]=0;H=1}if(E.fxHide){S=E.fxHide}else{S["min-width"]=0;M=1}}var K=E.onClick,G=E.onHide,T=E.onShow;Y.bind("triggerTab",function(){var Z=B(this).parents("li:eq(0)");if(P.locked||Z.is("."+E.selectedClass)||Z.is("."+E.disabledClass)){return false}var b=this.hash;if(B.browser.msie){B(this).trigger("click");if(E.bookmarkable){B.ajaxHistory.update(b);location.hash=b.replace("#","")}}else{if(B.browser.safari){var a=B('<form action="'+b+'"><div><input type="submit" value="h" /></div></form>').get(0);a.submit();B(this).trigger("click");if(E.bookmarkable){B.ajaxHistory.update(b)}}else{if(E.bookmarkable){location.hash=b.replace("#","")}else{B(this).trigger("click")}}}});Y.bind("disableTab",function(){var Z=B(this).parents("li:eq(0)");if(B.browser.safari){Z.animate({opacity:0},1,function(){Z.css({opacity:""})})}Z.addClass(E.disabledClass)});if(E.disabled&&E.disabled.length){for(var V=0,U=E.disabled.length;V<U;V++){Y.eq(--E.disabled[V]).trigger("disableTab").end()}}Y.bind("enableTab",function(){var Z=B(this).parents("li:eq(0)");Z.removeClass(E.disabledClass);if(B.browser.safari){Z.animate({opacity:1},1,function(){Z.css({opacity:""})})}});Y.bind("click",function(d){var j=d.clientX;var f=this,k=B(this).parents("li:eq(0)"),a=B(this.hash),g=R.filter(":visible");if(P.locked||k.is("."+E.selectedClass)||k.is("."+E.disabledClass)||typeof K=="function"&&K(this,a[0],g[0])===false){this.blur();return false}P.locked=true;if(a.size()){if(B.browser.msie&&E.bookmarkable){var Z=this.hash.replace("#","");a.attr("id","");setTimeout(function(){a.attr("id",Z)},0)}var c={display:"",overflow:"",height:""};if(!B.browser.msie){c.opacity=""}function b(){if(E.bookmarkable&&j){B.ajaxHistory.update(f.hash)}g.animate(S,M,function(){B(f).parents("li:eq(0)").addClass(E.selectedClass).siblings().removeClass(E.selectedClass);g.addClass(E.hideClass).css(c);if(typeof G=="function"){G(f,a[0],g[0])}if(!(E.fxSlide||E.fxFade||E.fxShow)){a.css("display","block")}a.animate(J,H,function(){a.removeClass(E.hideClass).css(c);if(B.browser.msie){g[0].style.filter="";a[0].style.filter=""}if(typeof T=="function"){T(f,a[0],g[0])}P.locked=null})})}if(!E.remote){b()}else{B(f).trigger("loadRemoteTab",[b])}}else{alert("There is no such container.")}var i=window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft||0;var h=window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop||0;setTimeout(function(){window.scrollTo(i,h)},0);this.blur();return E.bookmarkable&&!!j});if(E.bookmarkable){B.ajaxHistory.initialize(function(){Y.eq(E.initial).trigger("click").end()})}})};var C=["triggerTab","disableTab","enableTab"];for(var A=0;A<C.length;A++){B.fn[C[A]]=(function(D){return function(E){return this.each(function(){var G=B("ul.tabs-nav",this);G=G.size()&&G||B(">ul:eq(0)",this);var F;if(!E||typeof E=="number"){F=B("li a",G).eq((E&&E>0&&E-1||0))}else{if(typeof E=="string"){F=B('li a[@href$="#'+E+'"]',G)}}F.trigger(D)})}})(C[A])}B.fn.activeTab=function(){var D=[];this.each(function(){var F=B("ul.tabs-nav",this);F=F.size()&&F||B(">ul:eq(0)",this);var E=B("li",F);D.push(E.index(E.filter(".tabs-selected")[0])+1)});return D[0]}})(jQuery);(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N])}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N])};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode}catch(P){O=this}}if(O==this){return false}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)},J.timeout)}}};return this.mouseover(B).mouseout(B)}})(jQuery);(function(B){B.fn.superfish=function(J){var F=B.fn.superfish,I=F.c,E=B(['<span class="',I.arrowClass,'"> &#187;</span>'].join("")),H=function(){var K=B(this),L=C(K);clearTimeout(L.sfTimer);K.showSuperfishUl().siblings().hideSuperfishUl()},D=function(){var K=B(this),M=C(K),L=F.op;clearTimeout(M.sfTimer);M.sfTimer=setTimeout(function(){L.retainPath=(B.inArray(K[0],L.$path)>-1);K.hideSuperfishUl();if(L.$path.length&&K.parents(["li.",L.hoverClass].join("")).length<1){H.call(L.$path)}},L.delay)},C=function(K){var L=K.parents(["ul.",I.menuClass,":first"].join(""))[0];F.op=F.o[L.serial];return L},G=function(K){K.addClass(I.anchorClass).append(E.clone())};return this.each(function(){var K=this.serial=F.o.length;var M=B.extend({},F.defaults,J);M.$path=B("li."+M.pathClass,this).slice(0,M.pathLevels).each(function(){B(this).addClass([M.hoverClass,I.bcClass].join(" ")).filter("li:has(ul)").removeClass(M.pathClass)});F.o[K]=F.op=M;B("li:has(ul)",this)[(B.fn.hoverIntent&&!M.disableHI)?"hoverIntent":"hover"](H,D).each(function(){if(M.autoArrows){G(B(">a:first-child",this))}}).not("."+I.bcClass).hideSuperfishUl();var L=B("a",this);L.each(function(N){var O=L.eq(N).parents("li");L.eq(N).focus(function(){H.call(O)}).blur(function(){D.call(O)})});M.onInit.call(this)}).each(function(){var K=[I.menuClass];if(F.op.dropShadows&&!(B.browser.msie&&B.browser.version<7)){K.push(I.shadowClass)}B(this).addClass(K.join(" "))})};var A=B.fn.superfish;A.o=[];A.op={};A.IE7fix=function(){var C=A.op;if(B.browser.msie&&B.browser.version>6&&C.dropShadows&&C.animation.opacity!=undefined){this.toggleClass(A.c.shadowClass+"-off")}};A.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};A.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(){}};B.fn.extend({hideSuperfishUl:function(){var E=A.op,D=(E.retainPath===true)?E.$path:"";E.retainPath=false;var C=B(["li.",E.hoverClass].join(""),this).add(this).not(D).removeClass(E.hoverClass).find(">ul").hide().css("visibility","hidden");E.onHide.call(C);return this},showSuperfishUl:function(){var E=A.op,D=A.c.shadowClass+"-off",C=this.addClass(E.hoverClass).find(">ul:hidden").css("visibility","visible");A.IE7fix.call(C);E.onBeforeShow.call(C);C.animate(E.animation,E.speed,function(){A.IE7fix.call(C);E.onShow.call(C)});return this}})})(jQuery);(function(A){A.fn.supersubs=function(B){var C=A.extend({},A.fn.supersubs.defaults,B);return this.each(function(){var D=A(this);var E=A.meta?A.extend({},C,D.data()):C;var F=A('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(D).width();A("#menu-fontsize").remove();$ULs=D.find("ul");$ULs.each(function(K){var J=$ULs.eq(K);var I=J.children();var G=I.children("a");var L=I.css("white-space","nowrap").css("float");var H=J.add(I).add(G).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/F;H+=E.extraWidth;if(H>E.maxWidth){H=E.maxWidth}else{if(H<E.minWidth){H=E.minWidth}}H+="em";J.css("width",H);I.css({"float":L,width:"100%","white-space":"normal"}).each(function(){var N=A(">ul",this);var M=N.css("left")!==undefined?"left":"right";N.css(M,H)})})})};A.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);$(function(){$("#container").tabs({fxFade:true,fxSpeed:"fast"});$("ul.sf-menu").supersubs({minWidth:12,maxWidth:27,extraWidth:1}).superfish({delay:500,animation:{opacity:"show",height:"show"},dropShadows:true})});