(function(A){A.fn.bgIframe=A.fn.bgiframe=function(C){if(A.browser.msie&&/6.0/.test(navigator.userAgent)){C=A.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},C||{});var D=function(E){return E&&E.constructor==Number?E+"px":E},B='<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=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":D(C.top))+";left:"+(C.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":D(C.left))+";width:"+(C.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":D(C.width))+";height:"+(C.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":D(C.height))+';"/>';return this.each(function(){if(A("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(B),this.firstChild)}})}return this}})(jQuery);(function(B){B.dimensions={version:"@VERSION"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.is(":visible")?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(jQuery);(function(A){var B=function(D,F,C,E){this.x1=D;this.x2=C;this.y1=F;this.y2=E};B.prototype.contains=function(C){return(this.x1<=C.x1&&C.x2<=this.x2)&&(this.y1<=C.y1&&C.y2<=this.y2)};B.prototype.transform=function(C,D){return new B(this.x1+C,this.y1+D,this.x2+C,this.y2+D)};A.fn.positionBy=function(I){var K=new Date();if(this.length==0){return this}var I=A.extend({target:null,targetPos:null,elementPos:null,x:null,y:null,positions:null,addClass:false,force:false,container:window,hideAfterPosition:false},I);if(I.x!=null){var F=I.x;var G=I.y;var E=0;var J=0}else{var C=A(A(I.target)[0]);var E=C.outerWidth();var J=C.outerHeight();var H=C.offset();var F=H.left;var G=H.top}var D=F+E;var L=G+J;return this.each(function(){var Z=A(this);if(!Z.is(":visible")){Z.css({left:-3000,top:-3000}).show()}var a=Z.outerWidth();var Y=Z.outerHeight();var R=[];var Q=[];R[0]=new B(D,G,D+a,G+Y);Q[0]=[1,7,4];R[1]=new B(D,L-Y,D+a,L);Q[1]=[0,6,4];R[2]=new B(D,L,D+a,L+Y);Q[2]=[1,3,10];R[3]=new B(D-a,L,D,L+Y);Q[3]=[1,6,10];R[4]=new B(F,L,F+a,L+Y);Q[4]=[1,6,9];R[5]=new B(F-a,L,F,L+Y);Q[5]=[6,4,9];R[6]=new B(F-a,L-Y,F,L);Q[6]=[7,1,4];R[7]=new B(F-a,G,F,G+Y);Q[7]=[6,0,4];R[8]=new B(F-a,G-Y,F,G);Q[8]=[7,9,4];R[9]=new B(F,G-Y,F+a,G);Q[9]=[0,7,4];R[10]=new B(D-a,G-Y,D,G);Q[10]=[0,7,3];R[11]=new B(D,G-Y,D+a,G);Q[11]=[0,10,3];R[12]=new B(D-a,G,D,G+Y);Q[12]=[13,7,10];R[13]=new B(D-a,L-Y,D,L);Q[13]=[12,6,3];R[14]=new B(F,L-Y,F+a,L);Q[14]=[15,1,4];R[15]=new B(F,G,F+a,G+Y);Q[15]=[14,0,9];if(I.positions!==null){var W=I.positions[0]}else{if(I.targetPos!=null&&I.elementPos!=null){var W=[];W[0]=[];W[0][0]=15;W[0][1]=7;W[0][2]=8;W[0][3]=9;W[1]=[];W[1][0]=0;W[1][1]=12;W[1][2]=10;W[1][3]=11;W[2]=[];W[2][0]=2;W[2][1]=3;W[2][2]=13;W[2][3]=1;W[3]=[];W[3][0]=4;W[3][1]=5;W[3][2]=6;W[3][3]=14;var W=W[I.targetPos][I.elementPos]}}var P=R[W];var O=W;if(!I.force){$window=A(window);var X=$window.scrollLeft();var V=$window.scrollTop();var M=new B(X,V,X+$window.width(),V+$window.height());var U;if(I.positions){U=I.positions}else{U=[W]}var T=[];while(U.length>0){var N=U.shift();if(T[N]){continue}T[N]=true;if(!M.contains(R[N])){if(I.positions===null){U=jQuery.merge(U,Q[N])}}else{P=R[N];break}}}Z.parents().each(function(){var c=A(this);if(c.css("position")!="static"){var b=c.offset();P=P.transform(-b.left,-b.top);return false}});var S={left:P.x1,top:P.y1};if(I.hideAfterPosition){S.display="none"}Z.css(S);if(I.addClass){Z.removeClass("positionBy0 positionBy1 positionBy2 positionBy3 positionBy4 positionBy5 positionBy6 positionBy7 positionBy8 positionBy9 positionBy10 positionBy11 positionBy12 positionBy13 positionBy14 positionBy15").addClass("positionBy"+N)}})}})(jQuery);$(function(){$("ul.jMenu").jdMenu()});(function(D){function C(E){var F=D.data(D(E).parents().andSelf().filter("ul.jMenu")[0],"jdMenuSettings");D("> li",E).bind("mouseenter.jdmenu mouseleave.jdmenu",function(G){var H=D("> ul",this);if(H.length==1){clearTimeout(this.$jdTimer);var J=(G.type=="mouseenter");var I=(J?B:A);this.$jdTimer=setTimeout(function(){I(H[0],F.onAnimate,F.isVertical)},J?F.showDelay:F.hideDelay)}}).bind("click.jdmenu",function(H){var I=D("> ul",this);if(I.length==1&&(F.disableLinks==true||D(this).hasClass("accessible"))){B(I,F.onAnimate,F.isVertical);return false}if(H.target==this){var J=D("> a",H.target).not(".accessible");if(J.length>0){var G=J[0];if(!G.onclick){window.open(G.href,G.target||"_self")}else{D(G).trigger("click")}}}if(F.disableLinks||(!F.disableLinks&&!D(this).parent().hasClass("jMenu"))){D(this).parent().jdMenuHide();H.stopPropagation()}}).find("> a").bind("focus.jdmenu blur.jdmenu",function(G){var H=D(this).parents("li:eq(0)");if(G.type=="focus"){}else{}}).filter(".accessible").bind("click.jdmenu",function(G){G.preventDefault()})}function B(H,G,F){var H=D(H);if(H.is(":visible")){return }H.bgiframe();var E=H.parent();H.trigger("jdMenuShow").positionBy({target:E[0],targetPos:(F===true||!E.parent().hasClass("jMenu")?1:3),elementPos:0,hideAfterPosition:true});if(!H.hasClass("jdm_events")){C(H)}E.addClass("jdm_active").siblings("li").find("> ul:eq(0):visible").each(function(){A(this)});if(G===undefined){H.show()}else{G.apply(H[0],[true])}}function A(F,E){var F=D(F);D(".bgiframe",F).remove();F.filter(":not(.jMenu)").find("> li > ul:eq(0):visible").each(function(){A(this)}).end();if(E===undefined){F.hide()}else{E.apply(F[0],[false])}F.trigger("jdMenuHide").parents("li:eq(0)").end().find("> li")}D.fn.jdMenu=function(E){var E=D.extend({showDelay:200,hideDelay:400,disableLinks:false},E);if(!D.isFunction(E.onAnimate)){E.onAnimate=undefined}return this.filter("ul.jMenu").each(function(){D.data(this,"jdMenuSettings",D.extend({isVertical:D(this).hasClass("vertical")},E));C(this)})};D.fn.jdMenuUnbind=function(){D("ul.jdm_events",this).unbind(".jdmenu").find("> a").unbind(".jdmenu")};D.fn.jdMenuHide=function(){return this.filter("ul").each(function(){A(this)})};D(window).bind("click.jdmenu",function(){D("ul.jMenu ul:visible").jdMenuHide()})})(jQuery);