(function(C){var D=[];C.tools=C.tools||{};C.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(E,G,F){B[E]=[G,F]}};var B={toggle:[function(F){var G=this.getConf(),H=this.getTip(),E=G.opacity;if(E<1){H.css({opacity:E})}H.show();F.call()},function(E){this.getTip().hide();E.call()}],fade:[function(E){this.getTip().fadeIn(this.getConf().fadeInSpeed,E)},function(E){this.getTip().fadeOut(this.getConf().fadeOutSpeed,E)}]};function A(N,O){var L=this,G=C(this);N.data("tooltip",L);var H=N.next();if(O.tip){H=C(O.tip);if(H.length>1){H=N.nextAll(O.tip).eq(0);if(!H.length){H=N.parent().nextAll(O.tip).eq(0)}}}function K(T){var S=O.relative?N.position().top:N.offset().top,R=O.relative?N.position().left:N.offset().left,U=O.position[0];S-=H.outerHeight()-O.offset[0];R+=N.outerWidth()+O.offset[1];var V=H.outerHeight()+N.outerHeight();if(U=="center"){S+=V/2}if(U=="bottom"){S+=V}U=O.position[1];var Q=H.outerWidth()+N.outerWidth();if(U=="center"){R-=Q/2}if(U=="left"){R-=Q}return{top:S,left:R}}var E=N.is(":input"),M=E&&N.is(":checkbox, :radio, select, :button"),P=N.attr("type"),J=O.events[P]||O.events[E?(M?"widget":"input"):"def"];J=J.split(/,\s*/);if(J.length!=2){throw"Tooltip: bad events configuration for "+P}N.bind(J[0],function(Q){if(O.oneInstance){C.each(D,function(){this.hide()})}var R=H.data("trigger");if(R&&R[0]!=this){H.hide().stop(true,true)}Q.target=this;L.show(Q);J=O.events.tooltip.split(/,\s*/);H.bind(J[0],function(){L.show(Q)});if(J[1]){H.bind(J[1],function(){L.hide(Q)})}});N.bind(J[1],function(Q){L.hide(Q)});if(!C.browser.msie&&!E&&!O.predelay){N.mousemove(function(){if(!L.isShown()){N.triggerHandler("mouseover")}})}if(O.opacity<1){H.css("opacity",O.opacity)}var I=0,F=N.attr("title");if(F&&O.cancelDefault){N.removeAttr("title");N.data("title",F)}C.extend(L,{show:function(Q){if(Q){N=C(Q.target)}clearTimeout(H.data("timer"));if(H.is(":animated")||H.is(":visible")){return L}function R(){H.data("trigger",N);var T=K(Q);if(O.tip&&F){H.html(N.data("title"))}Q=Q||C.Event();Q.type="onBeforeShow";G.trigger(Q,[T]);if(Q.isDefaultPrevented()){return L}T=K(Q);H.css({position:"absolute",top:T.top,left:T.left});var S=B[O.effect];if(!S){throw'Nonexistent effect "'+O.effect+'"'}S[0].call(L,function(){Q.type="onShow";G.trigger(Q)})}if(O.predelay){clearTimeout(I);I=setTimeout(R,O.predelay)}else{R()}return L},hide:function(Q){clearTimeout(H.data("timer"));clearTimeout(I);if(!H.is(":visible")){return}function R(){Q=Q||C.Event();Q.type="onBeforeHide";G.trigger(Q);if(Q.isDefaultPrevented()){return}B[O.effect][1].call(L,function(){Q.type="onHide";G.trigger(Q)})}if(O.delay&&Q){H.data("timer",setTimeout(R,O.delay))}else{R()}return L},isShown:function(){return H.is(":visible, :animated")},getConf:function(){return O},getTip:function(){return H},getTrigger:function(){return N},bind:function(R,Q){G.bind(R,Q);return L},onHide:function(Q){return this.bind("onHide",Q)},onBeforeShow:function(Q){return this.bind("onBeforeShow",Q)},onShow:function(Q){return this.bind("onShow",Q)},onBeforeHide:function(Q){return this.bind("onBeforeHide",Q)},unbind:function(Q){G.unbind(Q);return L}});C.each(O,function(R,Q){if(C.isFunction(Q)){L.bind(R,Q)}})}C.prototype.tooltip=function(E){var F=this.eq(typeof E=="number"?E:0).data("tooltip");if(F){return F}var G=C.extend(true,{},C.tools.tooltip.conf);if(C.isFunction(E)){E={onBeforeShow:E}}else{if(typeof E=="string"){E={tip:E}}}E=C.extend(true,G,E);if(typeof E.position=="string"){E.position=E.position.split(/,?\s/)}if(E.lazy!==false&&(E.lazy===true||this.length>20)){this.one("mouseover",function(H){F=new A(C(this),E);F.show(H);D.push(F)})}else{this.each(function(){F=new A(C(this),E);D.push(F)})}return E.api?F:this}})(jQuery);(function(B){B.tools=B.tools||{};B.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var C;function A(J,H){var Q=this,O=B(this),L=!H.vertical,M=J.children(),F=0,D;if(!C){C=Q}B.each(H,function(S,T){if(B.isFunction(T)){O.bind(S,T)}});if(M.length>1){M=B(H.items,J)}function G(T){var S=B(T);return H.globalNav?S:J.parent().find(T)}J.data("finder",G);var N=G(H.prev),R=G(H.next),K=G(H.prevPage),I=G(H.nextPage);B.extend(Q,{getIndex:function(){return F},getClickIndex:function(){var S=Q.getItems();return S.index(S.filter("."+H.activeClass))},getConf:function(){return H},getSize:function(){return Q.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/H.size)},getPageIndex:function(){return Math.ceil(F/H.size)},getNaviButtons:function(){return N.add(R).add(K).add(I)},getRoot:function(){return J},getItemWrap:function(){return M},getItems:function(){return M.children(H.item)},getVisibleItems:function(){return Q.getItems().slice(F,F+H.size)},seekTo:function(S,W,T){if(S<0){S=0}if(F===S){return Q}if(B.isFunction(W)){T=W}if(S>Q.getSize()-H.size){return H.loop?Q.begin():this.end()}var U=Q.getItems().eq(S);if(!U.length){return Q}var V=B.Event("onBeforeSeek");O.trigger(V,[S]);if(V.isDefaultPrevented()){return Q}if(W===undefined||B.isFunction(W)){W=H.speed}function X(){if(T){T.call(Q,S)}O.trigger("onSeek",[S])}if(L){M.animate({left:-U.position().left},W,H.easing,X)}else{M.animate({top:-U.position().top},W,H.easing,X)}C=Q;F=S;V=B.Event("onStart");O.trigger(V,[S]);if(V.isDefaultPrevented()){return Q}N.add(K).toggleClass(H.disabledClass,S===0);R.add(I).toggleClass(H.disabledClass,S>=Q.getSize()-H.size);return Q},move:function(U,T,S){D=U>0;return this.seekTo(F+U,T,S)},next:function(T,S){return this.move(1,T,S)},prev:function(T,S){return this.move(-1,T,S)},movePage:function(W,V,U){D=W>0;var S=H.size*W;var T=F%H.size;if(T>0){S+=(W>0?-T:H.size-T)}return this.move(S,V,U)},prevPage:function(T,S){return this.movePage(-1,T,S)},nextPage:function(T,S){return this.movePage(1,T,S)},setPage:function(T,U,S){return this.seekTo(T*H.size,U,S)},begin:function(T,S){D=false;return this.seekTo(0,T,S)},end:function(T,S){D=true;var U=this.getSize()-H.size;return U>0?this.seekTo(U,T,S):Q},reload:function(){O.trigger("onReload");return Q},focus:function(){C=Q;return Q},click:function(U){var V=Q.getItems().eq(U),S=H.activeClass,T=H.size;if(U<0||U>=Q.getSize()){return Q}if(T==1){if(H.loop){return Q.next()}if(U===0||U==Q.getSize()-1){D=(D===undefined)?true:!D}return D===false?Q.prev():Q.next()}if(T==2){if(U==F){U--}Q.getItems().removeClass(S);V.addClass(S);return Q.seekTo(U,time,fn)}if(!V.hasClass(S)){Q.getItems().removeClass(S);V.addClass(S);var X=Math.floor(T/2);var W=U-X;if(W>Q.getSize()-T){W=Q.getSize()-T}if(W!==U){return Q.seekTo(W)}}return Q},bind:function(S,T){O.bind(S,T);return Q},unbind:function(S){O.unbind(S);return Q}});B.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(S,T){Q[T]=function(U){return Q.bind(T,U)}});N.addClass(H.disabledClass).click(function(){Q.prev()});R.click(function(){Q.next()});I.click(function(){Q.nextPage()});if(Q.getSize()<H.size){R.add(I).addClass(H.disabledClass)}K.addClass(H.disabledClass).click(function(){Q.prevPage()});var E=H.hoverClass,P="keydown."+Math.random().toString().substring(10);Q.onReload(function(){if(E){Q.getItems().hover(function(){B(this).addClass(E)},function(){B(this).removeClass(E)})}if(H.clickable){Q.getItems().each(function(S){B(this).unbind("click.scrollable").bind("click.scrollable",function(T){if(B(T.target).is("a")){return}return Q.click(S)})})}if(H.keyboard){B(document).unbind(P).bind(P,function(S){if(S.altKey||S.ctrlKey){return}if(H.keyboard!="static"&&C!=Q){return}var T=H.keyboardSteps;if(L&&(S.keyCode==37||S.keyCode==39)){Q.move(S.keyCode==37?-T:T);return S.preventDefault()}if(!L&&(S.keyCode==38||S.keyCode==40)){Q.move(S.keyCode==38?-T:T);return S.preventDefault()}return true})}else{B(document).unbind(P)}});Q.reload()}B.fn.scrollable=function(D){var E=this.eq(typeof D=="number"?D:0).data("scrollable");if(E){return E}var F=B.extend({},B.tools.scrollable.conf);D=B.extend(F,D);D.keyboardSteps=D.keyboardSteps||D.size;this.each(function(){E=new A(B(this),D);B(this).data("scrollable",E)});return D.api?E:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};B.fn.circular=function(E){var D=B.extend({},A.plugins.circular.conf),C;B.extend(D,E);this.each(function(){var F=B(this).scrollable(),K=F.getItems(),H=F.getConf(),L=F.getItemWrap(),G=0;if(F){C=F}if(K.length<H.size){return false}K.slice(0,H.size).each(function(O){B(this).clone().appendTo(L).click(function(){F.click(K.length+O)}).addClass(D.clonedClass)});var I=B.makeArray(K.slice(-H.size)).reverse();B(I).each(function(O){B(this).clone().prependTo(L).click(function(){F.click(-O-1)}).addClass(D.clonedClass)});var J=L.children(H.item);var N=H.hoverClass;if(N){J.hover(function(){B(this).addClass(N)},function(){B(this).removeClass(N)})}function M(O){var P=J.eq(O);if(H.vertical){L.css({top:-P.position().top})}else{L.css({left:-P.position().left})}}M(H.size);B.extend(F,{move:function(P,O,T,U){var R=G+P+H.size;var Q=R>F.getSize()-H.size;if(R<=0||Q){var S=G+H.size+(Q?-K.length:K.length);M(S);R=S+P}if(U){J.removeClass(H.activeClass).eq(R+Math.floor(H.size/2)).addClass(H.activeClass)}if(R===G+H.size){return self}return F.seekTo(R,O,T)},begin:function(P,O){return this.seekTo(H.size,P,O)},end:function(P,O){return this.seekTo(K.length,P,O)},click:function(R,O,S){if(!H.clickable){return self}if(H.size==1){return this.next()}var P=R-G,Q=H.activeClass;P-=Math.floor(H.size/2);return this.move(P,O,S,true)},getIndex:function(){return G},setPage:function(P,Q,O){return this.seekTo(P*H.size+H.size,Q,O)},getPageAmount:function(){return Math.ceil(K.length/H.size)},getPageIndex:function(){if(G<0){return this.getPageAmount()-1}if(G>=K.length){return 0}var O=(G+H.size)/H.size-1;return O},getVisibleItems:function(){var O=G+H.size;return J.slice(O,O+H.size)}});F.onStart(function(P,O){G=O-H.size;return false});F.getNaviButtons().removeClass(H.disabledClass)});return D.api?C:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};B.fn.autoscroll=function(D){if(typeof D=="number"){D={interval:D}}var E=B.extend({},A.plugins.autoscroll.conf),C;B.extend(E,D);this.each(function(){var I=B(this).scrollable();if(I){C=I}var G,H,F=true;I.play=function(){if(G){return}F=false;G=setInterval(function(){I.move(E.steps)},E.interval);I.move(E.steps)};I.pause=function(){G=clearInterval(G)};I.stop=function(){I.pause();F=true};if(E.autopause){I.getRoot().add(I.getNaviButtons()).hover(function(){I.pause();clearInterval(H)},function(){if(!F){H=setTimeout(I.play,E.interval)}})}if(E.autoplay){setTimeout(I.play,E.interval)}});return E.api?C:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};B.fn.navigator=function(D){var E=B.extend({},A.plugins.navigator.conf),C;if(typeof D=="string"){D={navi:D}}D=B.extend(E,D);this.each(function(){var I=B(this).scrollable(),K=I.getRoot(),L=K.data("finder").call(null,D.navi),F=null,G=I.getNaviButtons();if(I){C=I}I.getNaviButtons=function(){return G.add(L)};function J(){if(!L.children().length||L.data("navi")==I){L.empty();L.data("navi",I);for(var M=0;M<I.getPageAmount();M++){L.append(B("<"+(D.naviItem||"a")+"/>"))}F=L.children().each(function(N){var O=B(this);O.click(function(P){I.setPage(N);return P.preventDefault()});if(D.indexed){O.text(N)}if(D.idPrefix){O.attr("id",D.idPrefix+N)}})}else{F=D.naviItem?L.find(D.naviItem):L.children();F.each(function(N){var O=B(this);O.click(function(P){I.setPage(N);return P.preventDefault()})})}F.eq(0).addClass(D.activeClass)}I.onStart(function(O,N){var M=D.activeClass;F.removeClass(M).eq(I.getPageIndex()).addClass(M)});I.onReload(function(){J()});J();var H=F.filter("[href="+location.hash+"]");if(H.length){I.move(F.index(H))}});return D.api?C:this}})(jQuery);(function(B){B.fn.wheel=function(E){return this[E?"bind":"trigger"]("wheel",E)};B.event.special.wheel={setup:function(){B.event.add(this,D,C,{})},teardown:function(){B.event.remove(this,D,C)}};var D=!B.browser.mozilla?"mousewheel":"DOMMouseScroll"+(B.browser.version<"1.9"?" mousemove":"");function C(E){switch(E.type){case"mousemove":return B.extend(E.data,{clientX:E.clientX,clientY:E.clientY,pageX:E.pageX,pageY:E.pageY});case"DOMMouseScroll":B.extend(E,E.data);E.delta=-E.detail/3;break;case"mousewheel":E.delta=E.wheelDelta/120;break}E.type="wheel";return B.event.handle.call(this,E,E.delta)}var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};B.fn.mousewheel=function(F){var G=B.extend({},A.plugins.mousewheel.conf),E;if(typeof F=="number"){F={speed:F}}F=B.extend(G,F);this.each(function(){var H=B(this).scrollable();if(H){E=H}H.getRoot().wheel(function(I,J){H.move(J<0?1:-1,F.speed||50);return false})});return F.api?E:this}})(jQuery);(function(C){C.tools=C.tools||{};C.tools.overlay={version:"1.1.2",addEffect:function(E,F,G){B[E]=[F,G]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var B={};C.tools.overlay.addEffect("default",function(E){this.getOverlay().fadeIn(this.getConf().speed,E)},function(E){this.getOverlay().fadeOut(this.getConf().closeSpeed,E)});var D=[];function A(N,G){var K=this,I=C(this),J=C(window),F,E,O,L=G.expose&&C.tools.expose.version;var M=G.target||N.attr("rel");E=M?C(M):null||N;if(!E.length){throw"Could not find Overlay: "+M}if(N&&N.index(E)==-1){N.click(function(P){K.load(P);return P.preventDefault()})}C.each(G,function(P,Q){if(C.isFunction(Q)){I.bind(P,Q)}});C.extend(K,{load:function(S){if(K.isOpened()){return K}var P=B[G.effect];if(!P){throw'Overlay: cannot find effect : "'+G.effect+'"'}if(G.oneInstance){C.each(D,function(){this.close(S)})}S=S||C.Event();S.type="onBeforeLoad";I.trigger(S);if(S.isDefaultPrevented()){return K}O=true;if(L){E.expose().load(S)}var R=G.top;var Q=G.left;var T=E.outerWidth({margin:true});var U=E.outerHeight({margin:true});if(typeof R=="string"){R=R=="center"?Math.max((J.height()-U)/2,0):parseInt(R,10)/100*J.height()}if(Q=="center"){Q=Math.max((J.width()-T)/2,0)}if(!G.absolute){R+=J.scrollTop();Q+=J.scrollLeft()}E.css({top:R,left:Q,position:"absolute"});S.type="onStart";I.trigger(S);P[0].call(K,function(){if(O){S.type="onLoad";I.trigger(S)}});if(G.closeOnClick){C(document).bind("click.overlay",function(W){if(!K.isOpened()){return}var V=C(W.target);if(V.parents(E).length>1){return}C.each(D,function(){this.close(W)})})}if(G.closeOnEsc){C(document).unbind("keydown.overlay").bind("keydown.overlay",function(V){if(V.keyCode==27){C.each(D,function(){this.close(V)})}})}return K},close:function(Q){if(!K.isOpened()){return K}Q=Q||C.Event();Q.type="onBeforeClose";I.trigger(Q);if(Q.isDefaultPrevented()){return}O=false;B[G.effect][1].call(K,function(){Q.type="onClose";I.trigger(Q)});var P=true;C.each(D,function(){if(this.isOpened()){P=false}});if(P){C(document).unbind("click.overlay").unbind("keydown.overlay")}return K},getContent:function(){return E},getOverlay:function(){return E},getTrigger:function(){return N},getClosers:function(){return F},isOpened:function(){return O},getConf:function(){return G},bind:function(P,Q){I.bind(P,Q);return K},unbind:function(P){I.unbind(P);return K}});C.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(P,Q){K[Q]=function(R){return K.bind(Q,R)}});if(L){if(typeof G.expose=="string"){G.expose={color:G.expose}}C.extend(G.expose,{api:true,closeOnClick:G.closeOnClick,closeOnEsc:false});var H=E.expose(G.expose);H.onBeforeClose(function(P){K.close(P)});K.onClose(function(P){H.close(P)})}F=E.find(G.close||".close");if(!F.length&&!G.close){F=C('<div class="close"></div>');E.prepend(F)}F.click(function(P){K.close(P)})}C.fn.overlay=function(E){var F=this.eq(typeof E=="number"?E:0).data("overlay");if(F){return F}if(C.isFunction(E)){E={onBeforeLoad:E}}var G=C.extend({},C.tools.overlay.conf);E=C.extend(true,G,E);this.each(function(){F=new A(C(this),E);D.push(F);C(this).data("overlay",F)});return E.api?F:this}})(jQuery);(function(B){B.tools=B.tools||{};B.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function A(){if(B.browser.msie){var E=B(document).height(),D=B(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,E-D<20?D:E]}return[B(window).width(),B(document).height()]}function C(F,J){var H=this,E=B(this),G=null,I=false,D=0;B.each(J,function(K,L){if(B.isFunction(L)){E.bind(K,L)}});B(window).resize(function(){H.fit()});B.extend(this,{getMask:function(){return G},getExposed:function(){return F},getConf:function(){return J},isLoaded:function(){return I},load:function(L){if(I){return H}D=F.eq(0).css("zIndex");if(J.maskId){G=B("#"+J.maskId)}if(!G||!G.length){var N=A();G=B("<div/>").css({position:"absolute",top:0,left:0,width:N[0],height:N[1],display:"none",opacity:0,zIndex:J.zIndex});if(J.maskId){G.attr("id",J.maskId)}B("body").append(G);var M=G.css("backgroundColor");if(!M||M=="transparent"||M=="rgba(0, 0, 0, 0)"){G.css("backgroundColor",J.color)}if(J.closeOnEsc){B(document).bind("keydown.unexpose",function(O){if(O.keyCode==27){H.close()}})}if(J.closeOnClick){G.bind("click.unexpose",function(O){H.close(O)})}}L=L||B.Event();L.type="onBeforeLoad";E.trigger(L);if(L.isDefaultPrevented()){return H}B.each(F,function(){var O=B(this);if(!/relative|absolute|fixed/i.test(O.css("position"))){O.css("position","relative")}});F.css({zIndex:Math.max(J.zIndex+1,D=="auto"?0:D)});var K=G.height();if(!this.isLoaded()){G.css({opacity:0,display:"block"}).fadeTo(J.loadSpeed,J.opacity,function(){if(G.height()!=K){G.css("height",K)}L.type="onLoad";E.trigger(L)})}I=true;return H},close:function(K){if(!I){return H}K=K||B.Event();K.type="onBeforeClose";E.trigger(K);if(K.isDefaultPrevented()){return H}G.fadeOut(J.closeSpeed,function(){K.type="onClose";E.trigger(K);F.css({zIndex:B.browser.msie?D:null})});I=false;return H},fit:function(){if(G){var K=A();G.css({width:K[0],height:K[1]})}},bind:function(K,L){E.bind(K,L);return H},unbind:function(K){E.unbind(K);return H}});B.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(K,L){H[L]=function(M){return H.bind(L,M)}})}B.fn.expose=function(D){var E=this.eq(typeof D=="number"?D:0).data("expose");if(E){return E}if(typeof D=="string"){D={color:D}}var F=B.extend({},B.tools.expose.conf);D=B.extend(F,D);this.each(function(){E=new C(B(this),D);B(this).data("expose",E)});return D.api?E:this}})(jQuery);
document.write('<link rel="stylesheet" type="text/css" href="'+dotdotpath+'/styles/RandA/css/got-js.css" />');
var swfobject=function(){var Aq="undefined",Az="object",Aa="Shockwave Flash",Ae="ShockwaveFlash.ShockwaveFlash",Ay="application/x-shockwave-flash",Z="SWFObjectExprInst",Au="onreadystatechange",Am=window,AH=document,AB=navigator,Ab=false,Ac=[AF],AM=[],Al=[],Ag=[],AJ,Y,Ar,Ao,Ah=false,AN=false,AL,At,AK=true,Ak=function(){var C=typeof AH.getElementById!=Aq&&typeof AH.getElementsByTagName!=Aq&&typeof AH.createElement!=Aq,G=AB.userAgent.toLowerCase(),J=AB.platform.toLowerCase(),H=J?/win/.test(J):/win/.test(G),A=J?/mac/.test(J):/mac/.test(G),B=/webkit/.test(G)?parseFloat(G.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,I=!+"\v1",E=[0,0,0],F=null;if(typeof AB.plugins!=Aq&&typeof AB.plugins[Aa]==Az){F=AB.plugins[Aa].description;if(F&&!(typeof AB.mimeTypes!=Aq&&AB.mimeTypes[Ay]&&!AB.mimeTypes[Ay].enabledPlugin)){Ab=true;I=false;F=F.replace(/^.*\s+(\S+\s+\S+$)/,"$1");E[0]=parseInt(F.replace(/^(.*)\..*$/,"$1"),10);E[1]=parseInt(F.replace(/^.*\.(.*)\s.*$/,"$1"),10);E[2]=/[a-zA-Z]/.test(F)?parseInt(F.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof Am.ActiveXObject!=Aq){try{var D=new ActiveXObject(Ae);if(D){F=D.GetVariable("$version");if(F){I=true;F=F.split(" ")[1].split(",");E=[parseInt(F[0],10),parseInt(F[1],10),parseInt(F[2],10)]}}}catch(K){}}}return{w3:C,pv:E,wk:B,ie:I,win:H,mac:A}}(),AI=function(){if(!Ak.w3){return}if((typeof AH.readyState!=Aq&&AH.readyState=="complete")||(typeof AH.readyState==Aq&&(AH.getElementsByTagName("body")[0]||AH.body))){AS()}if(!Ah){if(typeof AH.addEventListener!=Aq){AH.addEventListener("DOMContentLoaded",AS,false)}if(Ak.ie&&Ak.win){AH.attachEvent(Au,function(){if(AH.readyState=="complete"){AH.detachEvent(Au,arguments.callee);AS()}});if(Am==top){(function(){if(Ah){return}try{AH.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,0);return}AS()})()}}if(Ak.wk){(function(){if(Ah){return}if(!/loaded|complete/.test(AH.readyState)){setTimeout(arguments.callee,0);return}AS()})()}AA(AS)}}();function AS(){if(Ah){return}try{var D=AH.getElementsByTagName("body")[0].appendChild(Ap("span"));D.parentNode.removeChild(D)}catch(A){return}Ah=true;var B=Ac.length;for(var C=0;C<B;C++){Ac[C]()}}function Ai(A){if(Ah){A()}else{Ac[Ac.length]=A}}function AA(B){if(typeof Am.addEventListener!=Aq){Am.addEventListener("load",B,false)}else{if(typeof AH.addEventListener!=Aq){AH.addEventListener("load",B,false)}else{if(typeof Am.attachEvent!=Aq){AG(Am,"onload",B)}else{if(typeof Am.onload=="function"){var A=Am.onload;Am.onload=function(){A();B()}}else{Am.onload=B}}}}}function AF(){if(Ab){Ad()}else{Af()}}function Ad(){var B=AH.getElementsByTagName("body")[0];var A=Ap(Az);A.setAttribute("type",Ay);var D=B.appendChild(A);if(D){var C=0;(function(){if(typeof D.GetVariable!=Aq){var E=D.GetVariable("$version");if(E){E=E.split(" ")[1].split(",");Ak.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)]}}else{if(C<10){C++;setTimeout(arguments.callee,10);return}}B.removeChild(A);D=null;Af()})()}else{Af()}}function Af(){var F=AM.length;if(F>0){for(var C=0;C<F;C++){var K=AM[C].id;var G=AM[C].callbackFn;var D={success:false,id:K};if(Ak.pv[0]>0){var I=AP(K);if(I){if(As(AM[C].swfVersion)&&!(Ak.wk&&Ak.wk<312)){AE(K,true);if(G){D.success=true;D.ref=Aw(K);G(D)}}else{if(AM[C].expressInstall&&An()){var B={};B.data=AM[C].expressInstall;B.width=I.getAttribute("width")||"0";B.height=I.getAttribute("height")||"0";if(I.getAttribute("class")){B.styleclass=I.getAttribute("class")}if(I.getAttribute("align")){B.align=I.getAttribute("align")}var H={};var J=I.getElementsByTagName("param");var A=J.length;for(var E=0;E<A;E++){if(J[E].getAttribute("name").toLowerCase()!="movie"){H[J[E].getAttribute("name")]=J[E].getAttribute("value")}}X(B,H,K,G)}else{Ax(I);if(G){G(D)}}}}}else{AE(K,true);if(G){var L=Aw(K);if(L&&typeof L.SetVariable!=Aq){D.success=true;D.ref=L}G(D)}}}}}function Aw(A){var B=null;var C=AP(A);if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=Aq){B=C}else{var D=C.getElementsByTagName(Az)[0];if(D){B=D}}}return B}function An(){return !AN&&As("6.0.65")&&(Ak.win||Ak.mac)&&!(Ak.wk&&Ak.wk<312)}function X(B,D,F,H){AN=true;Ar=H||null;Ao={success:false,id:F};var E=AP(F);if(E){if(E.nodeName=="OBJECT"){AJ=AT(E);Y=null}else{AJ=E;Y=F}B.id=Z;if(typeof B.width==Aq||(!/%$/.test(B.width)&&parseInt(B.width,10)<310)){B.width="310"}if(typeof B.height==Aq||(!/%$/.test(B.height)&&parseInt(B.height,10)<137)){B.height="137"}AH.title=AH.title.slice(0,47)+" - Flash Player Installation";var C=Ak.ie&&Ak.win?"ActiveX":"PlugIn",A="MMredirectURL="+Am.location.toString().replace(/&/g,"%26")+"&MMplayerType="+C+"&MMdoctitle="+AH.title;if(typeof D.flashvars!=Aq){D.flashvars+="&"+A}else{D.flashvars=A}if(Ak.ie&&Ak.win&&E.readyState!=4){var G=Ap("div");F+="SWFObjectNew";G.setAttribute("id",F);E.parentNode.insertBefore(G,E);E.style.display="none";(function(){if(E.readyState==4){E.parentNode.removeChild(E)}else{setTimeout(arguments.callee,10)}})()}AC(B,D,F)}}function Ax(B){if(Ak.ie&&Ak.win&&B.readyState!=4){var A=Ap("div");B.parentNode.insertBefore(A,B);A.parentNode.replaceChild(AT(B),A);B.style.display="none";(function(){if(B.readyState==4){B.parentNode.removeChild(B)}else{setTimeout(arguments.callee,10)}})()}else{B.parentNode.replaceChild(AT(B),B)}}function AT(F){var A=Ap("div");if(Ak.win&&Ak.ie){A.innerHTML=F.innerHTML}else{var C=F.getElementsByTagName(Az)[0];if(C){var E=C.childNodes;if(E){var B=E.length;for(var D=0;D<B;D++){if(!(E[D].nodeType==1&&E[D].nodeName=="PARAM")&&!(E[D].nodeType==8)){A.appendChild(E[D].cloneNode(true))}}}}}return A}function AC(B,F,K){var J,D=AP(K);if(Ak.wk&&Ak.wk<312){return J}if(D){if(typeof B.id==Aq){B.id=K}if(Ak.ie&&Ak.win){var H="";for(var I in B){if(B[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){F.movie=B[I]}else{if(I.toLowerCase()=="styleclass"){H+=' class="'+B[I]+'"'}else{if(I.toLowerCase()!="classid"){H+=" "+I+'="'+B[I]+'"'}}}}}var C="";for(var E in F){if(F[E]!=Object.prototype[E]){C+='<param name="'+E+'" value="'+F[E]+'" />'}}D.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+H+">"+C+"</object>";Al[Al.length]=B.id;J=AP(B.id)}else{var L=Ap(Az);L.setAttribute("type",Ay);for(var A in B){if(B[A]!=Object.prototype[A]){if(A.toLowerCase()=="styleclass"){L.setAttribute("class",B[A])}else{if(A.toLowerCase()!="classid"){L.setAttribute(A,B[A])}}}}for(var G in F){if(F[G]!=Object.prototype[G]&&G.toLowerCase()!="movie"){AR(L,G,F[G])}}D.parentNode.replaceChild(L,D);J=L}}return J}function AR(D,B,C){var A=Ap("param");A.setAttribute("name",B);A.setAttribute("value",C);D.appendChild(A)}function Av(B){var A=AP(B);if(A&&A.nodeName=="OBJECT"){if(Ak.ie&&Ak.win){A.style.display="none";(function(){if(A.readyState==4){AO(B)}else{setTimeout(arguments.callee,10)}})()}else{A.parentNode.removeChild(A)}}}function AO(C){var B=AP(C);if(B){for(var A in B){if(typeof B[A]=="function"){B[A]=null}}B.parentNode.removeChild(B)}}function AP(C){var A=null;try{A=AH.getElementById(C)}catch(B){}return A}function Ap(A){return AH.createElement(A)}function AG(C,A,B){C.attachEvent(A,B);Ag[Ag.length]=[C,A,B]}function As(C){var B=Ak.pv,A=C.split(".");A[0]=parseInt(A[0],10);A[1]=parseInt(A[1],10)||0;A[2]=parseInt(A[2],10)||0;return(B[0]>A[0]||(B[0]==A[0]&&B[1]>A[1])||(B[0]==A[0]&&B[1]==A[1]&&B[2]>=A[2]))?true:false}function AD(F,C,E,G){if(Ak.ie&&Ak.mac){return}var A=AH.getElementsByTagName("head")[0];if(!A){return}var B=(E&&typeof E=="string")?E:"screen";if(G){AL=null;At=null}if(!AL||At!=B){var D=Ap("style");D.setAttribute("type","text/css");D.setAttribute("media",B);AL=A.appendChild(D);if(Ak.ie&&Ak.win&&typeof AH.styleSheets!=Aq&&AH.styleSheets.length>0){AL=AH.styleSheets[AH.styleSheets.length-1]}At=B}if(Ak.ie&&Ak.win){if(AL&&typeof AL.addRule==Az){AL.addRule(F,C)}}else{if(AL&&typeof AH.createTextNode!=Aq){AL.appendChild(AH.createTextNode(F+" {"+C+"}"))}}}function AE(C,A){if(!AK){return}var B=A?"visible":"hidden";if(Ah&&AP(C)){AP(C).style.visibility=B}else{AD("#"+C,"visibility:"+B)}}function Aj(B){var C=/[\\\"<>\.;]/;var A=C.exec(B)!=null;return A&&typeof encodeURIComponent!=Aq?encodeURIComponent(B):B}var AQ=function(){if(Ak.ie&&Ak.win){window.attachEvent("onunload",function(){var E=Ag.length;for(var F=0;F<E;F++){Ag[F][0].detachEvent(Ag[F][1],Ag[F][2])}var D=Al.length;for(var A=0;A<D;A++){Av(Al[A])}for(var C in Ak){Ak[C]=null}Ak=null;for(var B in swfobject){swfobject[B]=null}swfobject=null})}}();return{registerObject:function(E,B,A,D){if(Ak.w3&&E&&B){var C={};C.id=E;C.swfVersion=B;C.expressInstall=A;C.callbackFn=D;AM[AM.length]=C;AE(E,false)}else{if(D){D({success:false,id:E})}}},getObjectById:function(A){if(Ak.w3){return Aw(A)}},embedSWF:function(F,G,H,E,J,C,K,D,B,A){var I={success:false,id:G};if(Ak.w3&&!(Ak.wk&&Ak.wk<312)&&F&&G&&H&&E&&J){AE(G,false);Ai(function(){H+="";E+="";var M={};if(B&&typeof B===Az){for(var Q in B){M[Q]=B[Q]}}M.data=F;M.width=H;M.height=E;var P={};if(D&&typeof D===Az){for(var L in D){P[L]=D[L]}}if(K&&typeof K===Az){for(var N in K){if(typeof P.flashvars!=Aq){P.flashvars+="&"+N+"="+K[N]}else{P.flashvars=N+"="+K[N]}}}if(As(J)){var O=AC(M,P,G);if(M.id==G){AE(G,true)}I.success=true;I.ref=O}else{if(C&&An()){M.data=C;X(M,P,G,A);return}else{AE(G,true)}}if(A){A(I)}})}else{if(A){A(I)}}},switchOffAutoHideShow:function(){AK=false},ua:Ak,getFlashPlayerVersion:function(){return{major:Ak.pv[0],minor:Ak.pv[1],release:Ak.pv[2]}},hasFlashPlayerVersion:As,createSWF:function(C,B,A){if(Ak.w3){return AC(C,B,A)}else{return undefined}},showExpressInstall:function(D,A,B,C){if(Ak.w3&&An()){X(D,A,B,C)}},removeSWF:function(A){if(Ak.w3){Av(A)}},createCSS:function(A,D,C,B){if(Ak.w3){AD(A,D,C,B)}},addDomLoadEvent:Ai,addLoadEvent:AA,getQueryParamValue:function(A){var D=AH.location.search||AH.location.hash;if(D){if(/\?/.test(D)){D=D.split("?")[1]}if(A==null){return Aj(D)}var C=D.split("&");for(var B=0;B<C.length;B++){if(C[B].substring(0,C[B].indexOf("="))==A){return Aj(C[B].substring((C[B].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(AN){var A=AP(Z);if(A&&AJ){A.parentNode.replaceChild(AJ,A);if(Y){AE(Y,true);if(Ak.ie&&Ak.win){AJ.style.display="block"}}if(Ar){Ar(Ao)}}AN=false}}}}();
if(typeof asual=="undefined"){var asual={}}if(typeof asual.util=="undefined"){asual.util={}}asual.util.Browser=new function(){var B=navigator.userAgent.toLowerCase(),A=/webkit/.test(B),E=/opera/.test(B),C=/msie/.test(B)&&!/opera/.test(B),D=/mozilla/.test(B)&&!/(compatible|webkit)/.test(B),F=parseFloat(C?B.substr(B.indexOf("msie")+4):(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]);this.toString=function(){return"[class Browser]"};this.getVersion=function(){return F};this.isMSIE=function(){return C};this.isSafari=function(){return A};this.isOpera=function(){return E};this.isMozilla=function(){return D}};asual.util.Events=new function(){var F="DOMContentLoaded",B="onstop",C=window,K=document,E=[],D=asual.util,H=D.Browser,G=H.isMSIE(),J=H.isSafari();this.toString=function(){return"[class Events]"};this.addListener=function(M,N,L){E.push({o:M,t:N,l:L});if(!(N==F&&(G||J))){if(M.addEventListener){M.addEventListener(N,L,false)}else{if(M.attachEvent){M.attachEvent("on"+N,L)}}}};this.removeListener=function(O,L,M){for(var P=0,N;N=E[P];P++){if(N.o==O&&N.t==L&&N.l==M){E.splice(P,1);break}}if(!(L==F&&(G||J))){if(O.removeEventListener){O.removeEventListener(L,M,false)}else{if(O.detachEvent){O.detachEvent("on"+L,M)}}}};var A=function(){for(var L=0,M;M=E[L];L++){if(M.t!=F){D.Events.removeListener(M.o,M.t,M.l)}}};var I=function(){if(K.readyState=="interactive"){function L(){K.detachEvent(B,L);A()}K.attachEvent(B,L);C.setTimeout(function(){K.detachEvent(B,L)},0)}};if(G||J){(function(){try{if((G&&K.body)||!/loaded|complete/.test(K.readyState)){K.documentElement.doScroll("left")}}catch(L){return setTimeout(arguments.callee,0)}for(var M=0,L;L=E[M];M++){if(L.t==F){L.l.call(null)}}})()}if(G){C.attachEvent("onbeforeunload",I)}this.addListener(C,"unload",A)};asual.util.Functions=new function(){this.toString=function(){return"[class Functions]"};this.bind=function(F,B,E){for(var C=2,D,A=[];D=arguments[C];C++){A.push(D)}return function(){return F.apply(B,A)}}};var SWFAddressEvent=function(D){this.toString=function(){return"[object SWFAddressEvent]"};this.type=D;this.target=[SWFAddress][0];this.value=SWFAddress.getValue();this.path=SWFAddress.getPath();this.pathNames=SWFAddress.getPathNames();this.parameters={};var C=SWFAddress.getParameterNames();for(var B=0,A=C.length;B<A;B++){this.parameters[C[B]]=SWFAddress.getParameter(C[B])}this.parameterNames=C};SWFAddressEvent.INIT="init";SWFAddressEvent.CHANGE="change";SWFAddressEvent.INTERNAL_CHANGE="internalChange";SWFAddressEvent.EXTERNAL_CHANGE="externalChange";var SWFAddress=new function(){var _getHash=function(){var index=_l.href.indexOf("#");return index!=-1?_ec(_dc(_l.href.substr(index+1))):""};var _getWindow=function(){try{top.document;return top}catch(e){return window}};var _strictCheck=function(value,force){if(_opts.strict){value=force?(value.substr(0,1)!="/"?"/"+value:value):(value==""?"/":value)}return value};var _ieLocal=function(value,direction){return(_msie&&_l.protocol=="file:")?(direction?_value.replace(/\?/,"%3F"):_value.replace(/%253F/,"?")):value};var _searchScript=function(el){if(el.childNodes){for(var i=0,l=el.childNodes.length,s;i<l;i++){if(el.childNodes[i].src){_url=String(el.childNodes[i].src)}if(s=_searchScript(el.childNodes[i])){return s}}}};var _titleCheck=function(){if(_d.title!=_title&&_d.title.indexOf("#")!=-1){_d.title=_title}};var _listen=function(){if(!_silent){var hash=_getHash();var diff=!(_value==hash);if(_safari&&_version<523){if(_length!=_h.length){_length=_h.length;if(typeof _stack[_length-1]!=UNDEFINED){_value=_stack[_length-1]}_update.call(this,false)}}else{if(_msie&&diff){if(_version<7){_l.reload()}else{this.setValue(hash)}}else{if(diff){_value=hash;_update.call(this,false)}}}if(_msie){_titleCheck.call(this)}}};var _bodyClick=function(e){if(_popup.length>0){var popup=window.open(_popup[0],_popup[1],eval(_popup[2]));if(typeof _popup[3]!=UNDEFINED){eval(_popup[3])}}_popup=[]};var _swfChange=function(){for(var i=0,id,obj,value=SWFAddress.getValue(),setter="setSWFAddressValue";id=_ids[i];i++){obj=document.getElementById(id);if(obj){if(obj.parentNode&&typeof obj.parentNode.so!=UNDEFINED){obj.parentNode.so.call(setter,value)}else{if(!(obj&&typeof obj[setter]!=UNDEFINED)){var objects=obj.getElementsByTagName("object");var embeds=obj.getElementsByTagName("embed");obj=((objects[0]&&typeof objects[0][setter]!=UNDEFINED)?objects[0]:((embeds[0]&&typeof embeds[0][setter]!=UNDEFINED)?embeds[0]:null))}if(obj){obj[setter](value)}}}else{if(obj=document[id]){if(typeof obj[setter]!=UNDEFINED){obj[setter](value)}}}}};var _jsDispatch=function(type){this.dispatchEvent(new SWFAddressEvent(type));type=type.substr(0,1).toUpperCase()+type.substr(1);if(typeof this["on"+type]==FUNCTION){this["on"+type]()}};var _jsInit=function(){if(_util.Browser.isSafari()){_d.body.addEventListener("click",_bodyClick)}_jsDispatch.call(this,"init")};var _jsChange=function(){_swfChange();_jsDispatch.call(this,"change")};var _update=function(internal){_jsChange.call(this);if(internal){_jsDispatch.call(this,"internalChange")}else{_jsDispatch.call(this,"externalChange")}_st(_functions.bind(_track,this),10)};var _track=function(){var value=(_l.pathname+(/\/$/.test(_l.pathname)?"":"/")+this.getValue()).replace(/\/\//,"/").replace(/^\/$/,"");var fn=_t[_opts.tracker];if(typeof fn==FUNCTION){fn(value)}else{if(typeof _t.pageTracker!=UNDEFINED&&typeof _t.pageTracker._trackPageview==FUNCTION){_t.pageTracker._trackPageview(value)}else{if(typeof _t.urchinTracker==FUNCTION){_t.urchinTracker(value)}}}};var _htmlWrite=function(){var doc=_frame.contentWindow.document;doc.open();doc.write("<html><head><title>"+_d.title+"</title><script>var "+ID+' = "'+_getHash()+'";</script></head></html>');doc.close()};var _htmlLoad=function(){var win=_frame.contentWindow;var src=win.location.href;_value=(typeof win[ID]!=UNDEFINED?win[ID]:"");if(_value!=_getHash()){_update.call(SWFAddress,false);_l.hash=_ieLocal(_value,TRUE)}};var _load=function(){if(!_loaded){_loaded=TRUE;if(_msie&&_version<8){var frameset=_d.getElementsByTagName("frameset")[0];_frame=_d.createElement((frameset?"":"i")+"frame");if(frameset){frameset.insertAdjacentElement("beforeEnd",_frame);frameset[frameset.cols?"cols":"rows"]+=",0";_frame.src="javascript:false";_frame.noResize=true;_frame.frameBorder=_frame.frameSpacing=0}else{_frame.src="javascript:false";_frame.style.display="none";_d.body.insertAdjacentElement("afterBegin",_frame)}_st(function(){_events.addListener(_frame,"load",_htmlLoad);if(typeof _frame.contentWindow[ID]==UNDEFINED){_htmlWrite()}},50)}else{if(_safari){if(_version<418){_d.body.innerHTML+='<form id="'+ID+'" style="position:absolute;top:-9999px;" method="get"></form>';_form=_d.getElementById(ID)}if(typeof _l[ID]==UNDEFINED){_l[ID]={}}if(typeof _l[ID][_l.pathname]!=UNDEFINED){_stack=_l[ID][_l.pathname].split(",")}}}_st(_functions.bind(function(){_jsInit.call(this);_jsChange.call(this);_track.call(this)},this),1);if(_msie&&_version>=8){_d.body.onhashchange=_functions.bind(_listen,this);_si(_functions.bind(_titleCheck,this),50)}else{_si(_functions.bind(_listen,this),50)}}};var ID="swfaddress",FUNCTION="function",UNDEFINED="undefined",TRUE=true,FALSE=false,_util=asual.util,_browser=_util.Browser,_events=_util.Events,_functions=_util.Functions,_version=_browser.getVersion(),_msie=_browser.isMSIE(),_mozilla=_browser.isMozilla(),_opera=_browser.isOpera(),_safari=_browser.isSafari(),_supported=FALSE,_t=_getWindow(),_d=_t.document,_h=_t.history,_l=_t.location,_si=setInterval,_st=setTimeout,_dc=decodeURI,_ec=encodeURI,_frame,_form,_url,_title=_d.title,_length=_h.length,_silent=FALSE,_loaded=FALSE,_justset=TRUE,_juststart=TRUE,_ref=this,_stack=[],_ids=[],_popup=[],_listeners={},_value=_getHash(),_opts={history:TRUE,strict:TRUE};if(_msie&&_d.documentMode&&_d.documentMode!=_version){_version=_d.documentMode!=8?7:8}_supported=(_mozilla&&_version>=1)||(_msie&&_version>=6)||(_opera&&_version>=9.5)||(_safari&&_version>=312);if(_supported){if(_opera){history.navigationMode="compatible"}for(var i=1;i<_length;i++){_stack.push("")}_stack.push(_getHash());if(_msie&&_l.hash!=_getHash()){_l.hash="#"+_ieLocal(_getHash(),TRUE)}_searchScript(document);var _qi=_url?_url.indexOf("?"):-1;if(_qi!=-1){var param,params=_url.substr(_qi+1).split("&");for(var i=0,p;p=params[i];i++){param=p.split("=");if(/^(history|strict)$/.test(param[0])){_opts[param[0]]=(isNaN(param[1])?/^(true|yes)$/i.test(param[1]):(parseInt(param[1])!=0))}if(/^tracker$/.test(param[0])){_opts[param[0]]=param[1]}}}if(_msie){_titleCheck.call(this)}if(window==_t){_events.addListener(document,"DOMContentLoaded",_functions.bind(_load,this))}_events.addListener(_t,"load",_functions.bind(_load,this))}else{if((!_supported&&_l.href.indexOf("#")!=-1)||(_safari&&_version<418&&_l.href.indexOf("#")!=-1&&_l.search!="")){_d.open();_d.write('<html><head><meta http-equiv="refresh" content="0;url='+_l.href.substr(0,_l.href.indexOf("#"))+'" /></head></html>');_d.close()}else{_track()}}this.toString=function(){return"[class SWFAddress]"};this.back=function(){_h.back()};this.forward=function(){_h.forward()};this.up=function(){var path=this.getPath();this.setValue(path.substr(0,path.lastIndexOf("/",path.length-2)+(path.substr(path.length-1)=="/"?1:0)))};this.go=function(delta){_h.go(delta)};this.href=function(url,target){target=typeof target!=UNDEFINED?target:"_self";if(target=="_self"){self.location.href=url}else{if(target=="_top"){_l.href=url}else{if(target=="_blank"){window.open(url)}else{_t.frames[target].location.href=url}}}};this.popup=function(url,name,options,handler){try{var popup=window.open(url,name,eval(options));if(typeof handler!=UNDEFINED){eval(handler)}}catch(ex){}_popup=arguments};this.getIds=function(){return _ids};this.getId=function(index){return _ids[0]};this.setId=function(id){_ids[0]=id};this.addId=function(id){this.removeId(id);_ids.push(id)};this.removeId=function(id){for(var i=0;i<_ids.length;i++){if(id==_ids[i]){_ids.splice(i,1);break}}};this.addEventListener=function(type,listener){if(typeof _listeners[type]==UNDEFINED){_listeners[type]=[]}_listeners[type].push(listener)};this.removeEventListener=function(type,listener){if(typeof _listeners[type]!=UNDEFINED){for(var i=0,l;l=_listeners[type][i];i++){if(l==listener){break}}_listeners[type].splice(i,1)}};this.dispatchEvent=function(event){if(this.hasEventListener(event.type)){event.target=this;for(var i=0,l;l=_listeners[event.type][i];i++){l(event)}return TRUE}return FALSE};this.hasEventListener=function(type){return(typeof _listeners[type]!=UNDEFINED&&_listeners[type].length>0)};this.getBaseURL=function(){var url=_l.href;if(url.indexOf("#")!=-1){url=url.substr(0,url.indexOf("#"))}if(url.substr(url.length-1)=="/"){url=url.substr(0,url.length-1)}return url};this.getStrict=function(){return _opts.strict};this.setStrict=function(strict){_opts.strict=strict};this.getHistory=function(){return _opts.history};this.setHistory=function(history){_opts.history=history};this.getTracker=function(){return _opts.tracker};this.setTracker=function(tracker){_opts.tracker=tracker};this.getTitle=function(){return _d.title};this.setTitle=function(title){if(!_supported){return null}if(typeof title==UNDEFINED){return}if(title=="null"){title=""}title=_dc(title);_st(function(){_title=_d.title=title;if(_juststart&&_frame&&_frame.contentWindow&&_frame.contentWindow.document){_frame.contentWindow.document.title=title;_juststart=FALSE}if(!_justset&&_mozilla){_l.replace(_l.href.indexOf("#")!=-1?_l.href:_l.href+"#")}_justset=FALSE},10)};this.getStatus=function(){return _t.status};this.setStatus=function(status){if(!_supported){return null}if(typeof status==UNDEFINED){return}if(status=="null"){status=""}status=_dc(status);if(!_safari){status=_strictCheck((status!="null")?status:"",TRUE);if(status=="/"){status=""}if(!(/http(s)?:\/\//.test(status))){var index=_l.href.indexOf("#");status=(index==-1?_l.href:_l.href.substr(0,index))+"#"+status}_t.status=status}};this.resetStatus=function(){_t.status=""};this.getValue=function(){if(!_supported){return null}return _dc(_strictCheck(_ieLocal(_value,FALSE),FALSE))};this.setValue=function(value){if(!_supported){return null}if(typeof value==UNDEFINED){return}if(value=="null"){value=""}value=_ec(_dc(_strictCheck(value,TRUE)));if(value=="/"){value=""}if(_value==value){return}_justset=TRUE;_value=value;_silent=TRUE;_update.call(SWFAddress,true);_stack[_h.length]=_value;if(_safari){if(_opts.history){_l[ID][_l.pathname]=_stack.toString();_length=_h.length+1;if(_version<418){if(_l.search==""){_form.action="#"+_value;_form.submit()}}else{if(_version<523||_value==""){var evt=_d.createEvent("MouseEvents");evt.initEvent("click",TRUE,TRUE);var anchor=_d.createElement("a");anchor.href="#"+_value;anchor.dispatchEvent(evt)}else{_l.hash="#"+_value}}}else{_l.replace("#"+_value)}}else{if(_value!=_getHash()){if(_opts.history){_l.hash="#"+_dc(_ieLocal(_value,TRUE))}else{_l.replace("#"+_dc(_value))}}}if((_msie&&_version<8)&&_opts.history){_st(_htmlWrite,50)}if(_safari){_st(function(){_silent=FALSE},1)}else{_silent=FALSE}};this.getPath=function(){var value=this.getValue();if(value.indexOf("?")!=-1){return value.split("?")[0]}else{if(value.indexOf("#")!=-1){return value.split("#")[0]}else{return value}}};this.getPathNames=function(){var path=this.getPath(),names=path.split("/");if(path.substr(0,1)=="/"||path.length==0){names.splice(0,1)}if(path.substr(path.length-1,1)=="/"){names.splice(names.length-1,1)}return names};this.getQueryString=function(){var value=this.getValue(),index=value.indexOf("?");if(index!=-1&&index<value.length){return value.substr(index+1)}};this.getParameter=function(param){var value=this.getValue();var index=value.indexOf("?");if(index!=-1){value=value.substr(index+1);var p,params=value.split("&"),i=params.length,r=[];while(i--){p=params[i].split("=");if(p[0]==param){r.push(p[1])}}if(r.length!=0){return r.length!=1?r:r[0]}}};this.getParameterNames=function(){var value=this.getValue();var index=value.indexOf("?");var names=[];if(index!=-1){value=value.substr(index+1);if(value!=""&&value.indexOf("=")!=-1){var params=value.split("&"),i=0;while(i<params.length){names.push(params[i].split("=")[0]);i++}}}return names};this.onInit=null;this.onChange=null;this.onInternalChange=null;this.onExternalChange=null;(function(){var _args;if(typeof FlashObject!=UNDEFINED){SWFObject=FlashObject}if(typeof SWFObject!=UNDEFINED&&SWFObject.prototype&&SWFObject.prototype.write){var _s1=SWFObject.prototype.write;SWFObject.prototype.write=function(){_args=arguments;if(this.getAttribute("version").major<8){this.addVariable("$swfaddress",SWFAddress.getValue());((typeof _args[0]=="string")?document.getElementById(_args[0]):_args[0]).so=this}var success;if(success=_s1.apply(this,_args)){_ref.addId(this.getAttribute("id"))}return success}}if(typeof swfobject!=UNDEFINED){var _s2r=swfobject.registerObject;swfobject.registerObject=function(){_args=arguments;_s2r.apply(this,_args);_ref.addId(_args[0])};var _s2c=swfobject.createSWF;swfobject.createSWF=function(){_args=arguments;var swf=_s2c.apply(this,_args);if(swf){_ref.addId(_args[0].id)}return swf};var _s2e=swfobject.embedSWF;swfobject.embedSWF=function(){_args=arguments;if(typeof _args[8]==UNDEFINED){_args[8]={}}if(typeof _args[8].id==UNDEFINED){_args[8].id=_args[1]}_s2e.apply(this,_args);_ref.addId(_args[8].id)}}if(typeof UFO!=UNDEFINED){var _u=UFO.create;UFO.create=function(){_args=arguments;_u.apply(this,_args);_ref.addId(_args[0].id)}}if(typeof AC_FL_RunContent!=UNDEFINED){var _a=AC_FL_RunContent;AC_FL_RunContent=function(){_args=arguments;_a.apply(this,_args);for(var i=0,l=_args.length;i<l;i++){if(_args[i]=="id"){_ref.addId(_args[i+1])}}}}})()};
jQuery.extend(jQuery.easing,{easein:function(A,B,C,D,E){return D*(B/=E)*B+C},easeinout:function(A,B,D,E,F){if(B<F/2){return 2*E*B*B/(F*F)+D}var C=B-F/2;return -2*E*C*C/(F*F)+2*E*C/F+E/2+D},easeout:function(A,B,C,D,E){return -D*B*B/(E*E)+2*D*B/E+C},expoin:function(A,B,C,D,E){var F=1;if(D<0){F*=-1;D*=-1}return F*(Math.exp(Math.log(D)/E*B))+C},expoout:function(A,B,C,D,E){var F=1;if(D<0){F*=-1;D*=-1}return F*(-Math.exp(-Math.log(D)/E*(B-E))+D+1)+C},expoinout:function(A,B,C,D,E){var F=1;if(D<0){F*=-1;D*=-1}if(B<E/2){return F*(Math.exp(Math.log(D/2)/(E/2)*B))+C}return F*(-Math.exp(-2*Math.log(D/2)/E*(B-E))+D+1)+C},bouncein:function(A,B,C,D,E){return D-jQuery.easing["bounceout"](A,E-B,0,D,E)+C},bounceout:function(A,B,C,D,E){if((B/=E)<(1/2.75)){return D*(7.5625*B*B)+C}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+C}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+C}else{return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+C}}}},bounceinout:function(A,B,C,D,E){if(B<E/2){return jQuery.easing["bouncein"](A,B*2,0,D,E)*0.5+C}return jQuery.easing["bounceout"](A,B*2-E,0,D,E)*0.5+D*0.5+C},elasin:function(A,H,C,D,E){var G=1.70158;var F=0;var B=D;if(H==0){return C}if((H/=E)==1){return C+D}if(!F){F=E*0.3}if(B<Math.abs(D)){B=D;var G=F/4}else{var G=F/(2*Math.PI)*Math.asin(D/B)}return -(B*Math.pow(2,10*(H-=1))*Math.sin((H*E-G)*(2*Math.PI)/F))+C},elasout:function(A,H,C,D,E){var G=1.70158;var F=0;var B=D;if(H==0){return C}if((H/=E)==1){return C+D}if(!F){F=E*0.3}if(B<Math.abs(D)){B=D;var G=F/4}else{var G=F/(2*Math.PI)*Math.asin(D/B)}return B*Math.pow(2,-10*H)*Math.sin((H*E-G)*(2*Math.PI)/F)+D+C},elasinout:function(A,H,C,D,E){var G=1.70158;var F=0;var B=D;if(H==0){return C}if((H/=E/2)==2){return C+D}if(!F){F=E*(0.3*1.5)}if(B<Math.abs(D)){B=D;var G=F/4}else{var G=F/(2*Math.PI)*Math.asin(D/B)}if(H<1){return -0.5*(B*Math.pow(2,10*(H-=1))*Math.sin((H*E-G)*(2*Math.PI)/F))+C}return B*Math.pow(2,-10*(H-=1))*Math.sin((H*E-G)*(2*Math.PI)/F)*0.5+D+C},backin:function(A,B,C,D,E){var F=1.70158;return D*(B/=E)*B*((F+1)*B-F)+C},backout:function(A,B,C,D,E){var F=1.70158;return D*((B=B/E-1)*B*((F+1)*B+F)+1)+C},backinout:function(A,B,C,D,E){var F=1.70158;if((B/=E/2)<1){return D/2*(B*B*(((F*=(1.525))+1)*B-F))+C}return D/2*((B-=2)*B*(((F*=(1.525))+1)*B+F)+2)+C}});
(function(AH){function Au(B,C){C=C==="x"?AE.width():AE.height();return typeof B==="string"?Math.round(B.match(/%/)?C/100*parseInt(B,10):parseInt(B,10)):B}function Ah(B){B=AH.isFunction(B)?B.call(AA):B;return AG.photo||B.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function G(){for(var B in AG){if(AH.isFunction(AG[B])&&B.substring(0,2)!=="on"){AG[B]=AG[B].call(AA)}}AG.rel=AG.rel||AA.rel;AG.href=AG.href||AA.href;AG.title=AG.title||AA.title}function L(B){AA=B;AG=AH.extend({},AH(AA).data(At));G();if(AG.rel&&AG.rel!=="nofollow"){AJ=AH(".cboxElement").filter(function(){return(AH(this).data(At).rel||this.rel)===AG.rel});AK=AJ.index(AA);if(AK<0){AJ=AJ.add(AA);AK=AJ.length-1}}else{AJ=AH(AA);AK=0}if(!Ak){Al=Ak=AF;Ai=AA;Ai.blur();AH(document).bind("keydown.cbox_close",function(C){if(C.keyCode===27){C.preventDefault();AI.close()}}).bind("keydown.cbox_arrows",function(C){if(AJ.length>1){if(C.keyCode===37){C.preventDefault();Am.click()}else{if(C.keyCode===39){C.preventDefault();An.click()}}}});AG.overlayClose&&Av.css({cursor:"pointer"}).one("click",AI.close);AH.event.trigger(AB);AG.onOpen&&AG.onOpen.call(AA);Av.css({opacity:AG.opacity}).show();AG.w=Au(AG.initialWidth,"x");AG.h=Au(AG.initialHeight,"y");AI.position(0);Aj&&AE.bind("resize.cboxie6 scroll.cboxie6",function(){Av.css({width:AE.width(),height:AE.height(),top:AE.scrollTop(),left:AE.scrollLeft()})}).trigger("scroll.cboxie6")}b.add(Am).add(An).add(Aw).add(d).hide();f.html(AG.close).show();AI.slideshow();AI.load()}var At="colorbox",Ao="hover",AF=true,AI,Ap=AH.browser.msie&&!AH.support.opacity,Aj=Ap&&AH.browser.version<7,AB="cbox_open",Ad="cbox_load",h="cbox_complete",o="resize.cbox_resize",Av,AC,Ax,As,Aa,Ab,Ac,A,AJ,AE,AD,Ae,Af,Ag,d,b,Aw,An,Am,f,Aq,Ar,Ay,Az,AA,Ai,AK,AG,Ak,Al,AL={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:AF,scrolling:AF,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:AF,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayClose:AF,slideshow:false,slideshowAuto:AF,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};AI=AH.fn.colorbox=function(B,D){var C=this;if(!C.length){if(C.selector===""){C=AH("<a/>");B.open=AF}else{return this}}C.each(function(){var E=AH.extend({},AH(this).data(At)?AH(this).data(At):AL,B);AH(this).data(At,E).addClass("cboxElement");if(D){AH(this).data(At).onComplete=D}});B&&B.open&&L(C);return this};AI.init=function(){function B(C){return AH('<div id="cbox'+C+'"/>')}AE=AH(window);AC=AH('<div id="colorbox"/>');Av=B("Overlay").hide();Ax=B("Wrapper");As=B("Content").append(AD=B("LoadedContent").css({width:0,height:0}),Af=B("LoadingOverlay"),Ag=B("LoadingGraphic"),d=B("Title"),b=B("Current"),Aw=B("Slideshow"),An=B("Next"),Am=B("Previous"),f=B("Close"));Ax.append(AH("<div/>").append(B("TopLeft"),Aa=B("TopCenter"),B("TopRight")),AH("<div/>").append(Ab=B("MiddleLeft"),As,Ac=B("MiddleRight")),AH("<div/>").append(B("BottomLeft"),A=B("BottomCenter"),B("BottomRight"))).children().children().css({"float":"left"});Ae=AH("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");AH("body").prepend(Av,AC.append(Ax,Ae));if(Ap){AC.addClass("cboxIE");Aj&&Av.css("position","absolute")}As.children().bind("mouseover mouseout",function(){AH(this).toggleClass(Ao)}).addClass(Ao);Aq=Aa.height()+A.height()+As.outerHeight(AF)-As.height();Ar=Ab.width()+Ac.width()+As.outerWidth(AF)-As.width();Ay=AD.outerHeight(AF);Az=AD.outerWidth(AF);AC.css({"padding-bottom":Aq,"padding-right":Ar}).hide();An.click(AI.next);Am.click(AI.prev);f.click(AI.close);As.children().removeClass(Ao);AH(".cboxElement").live("click",function(C){if(C.button!==0&&typeof C.button!=="undefined"){return AF}else{L(this);return false}})};AI.position=function(C,E){function D(H){Aa[0].style.width=A[0].style.width=As[0].style.width=H.style.width;Ag[0].style.height=Af[0].style.height=As[0].style.height=Ab[0].style.height=Ac[0].style.height=H.style.height}var F=AE.height();F=Math.max(F-AG.h-Ay-Aq,0)/2+AE.scrollTop();var B=Math.max(document.documentElement.clientWidth-AG.w-Az-Ar,0)/2+AE.scrollLeft();C=AC.width()===AG.w+Az&&AC.height()===AG.h+Ay?0:C;Ax[0].style.width=Ax[0].style.height="9999px";AC.dequeue().animate({width:AG.w+Az,height:AG.h+Ay,top:F,left:B},{duration:C,complete:function(){D(this);Al=false;Ax[0].style.width=AG.w+Az+Ar+"px";Ax[0].style.height=AG.h+Ay+Aq+"px";E&&E()},step:function(){D(this)}})};AI.resize=function(E){function H(){AG.w=AG.w||AD.width();AG.w=AG.mw&&AG.mw<AG.w?AG.mw:AG.w;return AG.w}function F(){AG.h=AG.h||AD.height();AG.h=AG.mh&&AG.mh<AG.h?AG.mh:AG.h;return AG.h}function I(J){AI.position(J,function(){if(Ak){if(Ap){C&&AD.fadeIn(100);AC[0].style.removeAttribute("filter")}if(AG.iframe){AD.append("<iframe id='cboxIframe'"+(AG.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+AG.href+"' "+(Ap?"allowtransparency='true'":"")+" />")}AD.show();d.show().html(AG.title);if(AJ.length>1){b.html(AG.current.replace(/\{current\}/,AK+1).replace(/\{total\}/,AJ.length)).show();An.html(AG.next).show();Am.html(AG.previous).show();AG.slideshow&&Aw.show()}Af.hide();Ag.hide();AH.event.trigger(h);AG.onComplete&&AG.onComplete.call(AA);AG.transition==="fade"&&AC.fadeTo(B,1,function(){Ap&&AC[0].style.removeAttribute("filter")});AE.bind(o,function(){AI.position(0)})}})}if(Ak){var D,C,B=AG.transition==="none"?0:AG.speed;AE.unbind(o);if(E){AD.remove();AD=AH('<div id="cboxLoadedContent"/>').html(E);AD.hide().appendTo(Ae).css({width:H(),overflow:AG.scrolling?"auto":"hidden"}).css({height:F()}).prependTo(As);AH("#cboxPhoto").css({cssFloat:"none"});Aj&&AH("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit"});AG.transition==="fade"&&AC.fadeTo(B,0,function(){I(0)})||I(B);if(AG.preloading&&AJ.length>1){E=AK>0?AJ[AK-1]:AJ[AJ.length-1];D=AK<AJ.length-1?AJ[AK+1]:AJ[0];D=AH(D).data(At).href||D.href;E=AH(E).data(At).href||E.href;Ah(D)&&AH("<img />").attr("src",D);Ah(E)&&AH("<img />").attr("src",E)}}else{setTimeout(function(){var J=AD.wrapInner("<div style='overflow:auto'></div>").children();AG.h=J.height();AD.css({height:AG.h});J.replaceWith(J.children());AI.position(B)},1)}}};AI.load=function(){var B,D,C,E=AI.resize;Al=AF;AA=AJ[AK];AG=AH.extend({},AH(AA).data(At));G();AH.event.trigger(Ad);AG.onLoad&&AG.onLoad.call(AA);AG.h=AG.height?Au(AG.height,"y")-Ay-Aq:AG.innerHeight?Au(AG.innerHeight,"y"):false;AG.w=AG.width?Au(AG.width,"x")-Az-Ar:AG.innerWidth?Au(AG.innerWidth,"x"):false;AG.mw=AG.w;AG.mh=AG.h;if(AG.maxWidth){AG.mw=Au(AG.maxWidth,"x")-Az-Ar;AG.mw=AG.w&&AG.w<AG.mw?AG.w:AG.mw}if(AG.maxHeight){AG.mh=Au(AG.maxHeight,"y")-Ay-Aq;AG.mh=AG.h&&AG.h<AG.mh?AG.h:AG.mh}B=AG.href;Af.show();Ag.show();if(AG.inline){AH('<div id="cboxInlineTemp" />').hide().insertBefore(AH(B)[0]).bind(Ad+" cbox_cleanup",function(){AH(this).replaceWith(AD.children())});E(AH(B))}else{if(AG.iframe){E(" ")}else{if(AG.html){E(AG.html)}else{if(Ah(B)){D=new Image;D.onload=function(){var F;D.onload=null;D.id="cboxPhoto";AH(D).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(AG.scalePhotos){C=function(){D.height-=D.height*F;D.width-=D.width*F};if(AG.mw&&D.width>AG.mw){F=(D.width-AG.mw)/D.width;C()}if(AG.mh&&D.height>AG.mh){F=(D.height-AG.mh)/D.height;C()}}if(AG.h){D.style.marginTop=Math.max(AG.h-D.height,0)/2+"px"}E(D);AJ.length>1&&AH(D).css({cursor:"pointer"}).click(AI.next);if(Ap){D.style.msInterpolationMode="bicubic"}};D.src=B}else{AH("<div />").appendTo(Ae).load(B,function(F,H){H==="success"?E(this):E(AH("<p>Request unsuccessful.</p>"))})}}}}};AI.next=function(){if(!Al){AK=AK<AJ.length-1?AK+1:0;AI.load()}};AI.prev=function(){if(!Al){AK=AK>0?AK-1:AJ.length-1;AI.load()}};AI.slideshow=function(){function B(){Aw.text(AG.slideshowStop).bind(h,function(){C=setTimeout(AI.next,AG.slideshowSpeed)}).bind(Ad,function(){clearTimeout(C)}).one("click",function(){D();AH(this).removeClass(Ao)});AC.removeClass(E+"off").addClass(E+"on")}var D,C,E="cboxSlideshow_";Aw.bind("cbox_closed",function(){Aw.unbind();clearTimeout(C);AC.removeClass(E+"off "+E+"on")});D=function(){clearTimeout(C);Aw.text(AG.slideshowStart).unbind(h+" "+Ad).one("click",function(){B();C=setTimeout(AI.next,AG.slideshowSpeed);AH(this).removeClass(Ao)});AC.removeClass(E+"on").addClass(E+"off")};if(AG.slideshow&&AJ.length>1){AG.slideshowAuto?B():D()}};AI.close=function(){AH.event.trigger("cbox_cleanup");AG.onCleanup&&AG.onCleanup.call(AA);Ak=false;AH(document).unbind("keydown.cbox_close keydown.cbox_arrows");AE.unbind(o+" resize.cboxie6 scroll.cboxie6");Av.css({cursor:"auto"}).fadeOut("fast");AC.stop(AF,false).fadeOut("fast",function(){AH("#colorbox iframe").attr("src","about:blank");AD.remove();AC.css({opacity:1});try{Ai.focus()}catch(B){}AH.event.trigger("cbox_closed");AG.onClosed&&AG.onClosed.call(AA)})};AI.element=function(){return AH(AA)};AI.settings=AL;AH(AI.init)})(jQuery);
(function(A){A.fn.hoverIntent=function(I,J){var C={sensitivity:7,interval:100,timeout:0};C=A.extend(C,J?{over:I,out:J}:I);var B,E,D,F;var K=function(M){B=M.pageX;E=M.pageY};var G=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);if((Math.abs(D-B)+Math.abs(F-E))<C.sensitivity){A(N).unbind("mousemove",K);N.hoverIntent_s=1;return C.over.apply(N,[M])}else{D=B;F=E;N.hoverIntent_t=setTimeout(function(){G(M,N)},C.interval)}};var H=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);N.hoverIntent_s=0;return C.out.apply(N,[M])};var L=function(O){var P=(O.type=="mouseover"?O.fromElement:O.toElement)||O.relatedTarget;while(P&&P!=this){try{P=P.parentNode}catch(O){P=this}}if(P==this){return false}var M=jQuery.extend({},O);var N=this;if(N.hoverIntent_t){N.hoverIntent_t=clearTimeout(N.hoverIntent_t)}if(O.type=="mouseover"){D=M.pageX;F=M.pageY;A(N).bind("mousemove",K);if(N.hoverIntent_s!=1){N.hoverIntent_t=setTimeout(function(){G(M,N)},C.interval)}}else{A(N).unbind("mousemove",K);if(N.hoverIntent_s==1){N.hoverIntent_t=setTimeout(function(){H(M,N)},C.timeout)}}};return this.mouseover(L).mouseout(L)}})(jQuery);
(function(B){B.ui={plugin:{add:function(F,G,D){var E=B.ui[F].prototype;for(var H in D){E.plugins[H]=E.plugins[H]||[];E.plugins[H].push([G,D[H]])}},call:function(G,E,F){var D=G.plugins[E];if(!D){return}for(var H=0;H<D.length;H++){if(G.options[D[H][0]]){D[H][1].apply(G.element,F)}}}},cssCache:{},css:function(D){if(B.ui.cssCache[D]){return B.ui.cssCache[D]}var E=B('<div class="ui-gen">').addClass(D).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");B.ui.cssCache[D]=!!((!(/auto|default/).test(E.css("cursor"))||(/^[1-9]/).test(E.css("height"))||(/^[1-9]/).test(E.css("width"))||!(/none/).test(E.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor"))));try{B("body").get(0).removeChild(E.get(0))}catch(F){}return B.ui.cssCache[D]},disableSelection:function(D){B(D).attr("unselectable","on").css("MozUserSelect","none")},enableSelection:function(D){B(D).attr("unselectable","off").css("MozUserSelect","")},hasScroll:function(F,D){var E=/top/.test(D||"top")?"scrollTop":"scrollLeft",G=false;if(F[E]>0){return true}F[E]=1;G=F[E]>0?true:false;F[E]=0;return G}};var A=B.fn.remove;B.fn.remove=function(){B("*",this).add(this).triggerHandler("remove");return A.apply(this,arguments)};function C(D,G,E){var F=B[D][G].getter||[];F=(typeof F=="string"?F.split(/,?\s+/):F);return(B.inArray(E,F)!=-1)}B.widget=function(E,F){var D=E.split(".")[0];E=E.split(".")[1];B.fn[E]=function(J){var H=(typeof J=="string"),G=Array.prototype.slice.call(arguments,1);if(H&&C(D,E,J)){var I=B.data(this[0],E);return(I?I[J].apply(I,G):undefined)}return this.each(function(){var K=B.data(this,E);if(H&&K&&B.isFunction(K[J])){K[J].apply(K,G)}else{if(!H){B.data(this,E,new B[D][E](this,J))}}})};B[D][E]=function(H,I){var G=this;this.widgetName=E;this.widgetBaseClass=D+"-"+E;this.options=B.extend({},B.widget.defaults,B[D][E].defaults,I);this.element=B(H).bind("setData."+E,function(L,K,J){return G.setData(K,J)}).bind("getData."+E,function(K,J){return G.getData(J)}).bind("remove",function(){return G.destroy()});this.init()};B[D][E].prototype=B.extend({},B.widget.prototype,F)};B.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(D){return this.options[D]},setData:function(E,D){this.options[E]=D;if(E=="disabled"){this.element[D?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};B.widget.defaults={disabled:false};B.ui.mouse={mouseInit:function(){var D=this;this.element.bind("mousedown."+this.widgetName,function(E){return D.mouseDown(E)});if(B.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);(B.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(F){(this._mouseStarted&&this.mouseUp(F));this._mouseDownEvent=F;var E=this,D=(F.which==1),G=(typeof this.options.cancel=="string"?B(F.target).parents().add(F.target).filter(this.options.cancel).length:false);if(!D||G||!this.mouseCapture(F)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){E._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(F)&&this.mouseDelayMet(F)){this._mouseStarted=(this.mouseStart(F)!==false);if(!this._mouseStarted){F.preventDefault();return true}}this._mouseMoveDelegate=function(H){return E.mouseMove(H)};this._mouseUpDelegate=function(H){return E.mouseUp(H)};B(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(D){if(B.browser.msie&&!D.button){return this.mouseUp(D)}if(this._mouseStarted){this.mouseDrag(D);return false}if(this.mouseDistanceMet(D)&&this.mouseDelayMet(D)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,D)!==false);(this._mouseStarted?this.mouseDrag(D):this.mouseUp(D))}return !this._mouseStarted},mouseUp:function(D){B(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(D)}return false},mouseDistanceMet:function(D){return(Math.max(Math.abs(this._mouseDownEvent.pageX-D.pageX),Math.abs(this._mouseDownEvent.pageY-D.pageY))>=this.options.distance)},mouseDelayMet:function(D){return this._mouseDelayMet},mouseStart:function(D){},mouseDrag:function(D){},mouseStop:function(D){},mouseCapture:function(D){return true}};B.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
(function(A){A.widget("ui.tabs",{init:function(){this.options.event+=".tabs";this.tabify(true)},setData:function(C,B){if((/^selected/).test(C)){this.select(B)}else{this.options[C]=B;this.tabify()}},length:function(){return this.$tabs.length},tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},ui:function(C,B){return{options:this.options,tab:C,panel:B,index:this.$tabs.index(C)}},tabify:function(E){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var N=this,F=this.options;this.$tabs.each(function(R,Q){if(Q.hash&&Q.hash.replace("#","")){N.$panels=N.$panels.add(Q.hash)}else{if(A(Q).attr("href")!="#"){A.data(Q,"href.tabs",Q.href);A.data(Q,"load.tabs",Q.href);var S=N.tabId(Q);Q.href="#"+S;var T=A("#"+S);if(!T.length){T=A(F.panelTemplate).attr("id",S).addClass(F.panelClass).insertAfter(N.$panels[R-1]||N.element);T.data("destroy.tabs",true)}N.$panels=N.$panels.add(T)}else{F.disabled.push(R+1)}}});if(E){this.element.addClass(F.navClass);this.$panels.each(function(){var Q=A(this);Q.addClass(F.panelClass)});if(F.selected===undefined){if(location.hash){this.$tabs.each(function(T,R){if(R.hash==location.hash){F.selected=T;if(A.browser.msie||A.browser.opera){var S=A(location.hash),Q=S.attr("id");S.attr("id","");setTimeout(function(){S.attr("id",Q)},500)}scrollTo(0,0);return false}})}else{if(F.cookie){var H=parseInt(A.cookie("ui-tabs"+A.data(N.element)),10);if(H&&N.$tabs[H]){F.selected=H}}else{if(N.$lis.filter("."+F.selectedClass).length){F.selected=N.$lis.index(N.$lis.filter("."+F.selectedClass)[0])}}}}F.selected=F.selected===null||F.selected!==undefined?F.selected:0;F.disabled=A.unique(F.disabled.concat(A.map(this.$lis.filter("."+F.disabledClass),function(Q,R){return N.$lis.index(Q)}))).sort();if(A.inArray(F.selected,F.disabled)!=-1){F.disabled.splice(A.inArray(F.selected,F.disabled),1)}this.$panels.addClass(F.hideClass);this.$lis.removeClass(F.selectedClass);if(F.selected!==null){this.$panels.eq(F.selected).show().removeClass(F.hideClass);this.$lis.eq(F.selected).addClass(F.selectedClass);var I=function(){A(N.element).triggerHandler("tabsshow",[N.fakeEvent("tabsshow"),N.ui(N.$tabs[F.selected],N.$panels[F.selected])],F.show)};if(A.data(this.$tabs[F.selected],"load.tabs")){this.load(F.selected,I)}else{I()}}A(window).bind("unload",function(){N.$tabs.unbind(".tabs");N.$lis=N.$tabs=N.$panels=null})}for(var B=0,C;C=this.$lis[B];B++){A(C)[A.inArray(B,F.disabled)!=-1&&!A(C).hasClass(F.selectedClass)?"addClass":"removeClass"](F.disabledClass)}if(F.cache===false){this.$tabs.removeData("cache.tabs")}var O,G,K={"min-width":0,duration:1},D="normal";if(F.fx&&F.fx.constructor==Array){O=F.fx[0]||K,G=F.fx[1]||K}else{O=G=F.fx||K}var P={display:"",overflow:"",height:""};if(!A.browser.msie){P.opacity=""}function M(S,R,Q){R.animate(O,O.duration||D,function(){R.addClass(F.hideClass).css(P);if(A.browser.msie&&O.opacity){R[0].style.filter=""}if(Q){J(S,Q,R)}})}function J(S,Q,R){if(G===K){Q.css("display","block")}Q.animate(G,G.duration||D,function(){Q.removeClass(F.hideClass).css(P);if(A.browser.msie&&G.opacity){Q[0].style.filter=""}A(N.element).triggerHandler("tabsshow",[N.fakeEvent("tabsshow"),N.ui(S,Q[0])],F.show)})}function L(S,Q,R,T){Q.addClass(F.selectedClass).siblings().removeClass(F.selectedClass);M(S,R,T)}this.$tabs.unbind(".tabs").bind(F.event,function(){var Q=A(this).parents("li:eq(0)"),R=N.$panels.filter(":visible"),T=A(this.hash);if((Q.hasClass(F.selectedClass)&&!F.unselect)||Q.hasClass(F.disabledClass)||A(this).hasClass(F.loadingClass)||A(N.element).triggerHandler("tabsselect",[N.fakeEvent("tabsselect"),N.ui(this,T[0])],F.select)===false){this.blur();return false}N.options.selected=N.$tabs.index(this);if(F.unselect){if(Q.hasClass(F.selectedClass)){N.options.selected=null;Q.removeClass(F.selectedClass);N.$panels.stop();M(this,R);this.blur();return false}else{if(!R.length){N.$panels.stop();var S=this;N.load(N.$tabs.index(this),function(){Q.addClass(F.selectedClass).addClass(F.unselectClass);J(S,T)});this.blur();return false}}}if(F.cookie){A.cookie("ui-tabs"+A.data(N.element),N.options.selected,F.cookie)}N.$panels.stop();if(T.length){var S=this;N.load(N.$tabs.index(this),R.length?function(){L(S,Q,R,T)}:function(){Q.addClass(F.selectedClass);J(S,T)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return false});if(!(/^click/).test(F.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,H,F){if(F==undefined){F=this.$tabs.length}var B=this.options;var I=A(B.tabTemplate.replace(/#\{href\}/g,E).replace(/#\{label\}/g,H));I.data("destroy.tabs",true);var C=E.indexOf("#")==0?E.replace("#",""):this.tabId(A("a:first-child",I)[0]);var D=A("#"+C);if(!D.length){D=A(B.panelTemplate).attr("id",C).addClass(B.hideClass).data("destroy.tabs",true)}D.addClass(B.panelClass);if(F>=this.$lis.length){I.appendTo(this.element);D.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[F]);D.insertBefore(this.$panels[F])}B.disabled=A.map(B.disabled,function(J,K){return J>=F?++J:J});this.tabify();if(this.$tabs.length==1){I.addClass(B.selectedClass);D.removeClass(B.hideClass);var G=A.data(this.$tabs[0],"load.tabs");if(G){this.load(F,G)}}this.element.triggerHandler("tabsadd",[this.fakeEvent("tabsadd"),this.ui(this.$tabs[F],this.$panels[F])],B.add)},remove:function(E){var C=this.options,B=this.$lis.eq(E).remove(),D=this.$panels.eq(E).remove();if(B.hasClass(C.selectedClass)&&this.$tabs.length>1){this.select(E+(E+1<this.$tabs.length?1:-1))}C.disabled=A.map(A.grep(C.disabled,function(F,G){return F!=E}),function(F,G){return F>=E?--F:F});this.tabify();this.element.triggerHandler("tabsremove",[this.fakeEvent("tabsremove"),this.ui(B.find("a")[0],D[0])],C.remove)},enable:function(D){var C=this.options;if(A.inArray(D,C.disabled)==-1){return}var B=this.$lis.eq(D).removeClass(C.disabledClass);if(A.browser.safari){B.css("display","inline-block");setTimeout(function(){B.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(E,F){return E!=D});this.element.triggerHandler("tabsenable",[this.fakeEvent("tabsenable"),this.ui(this.$tabs[D],this.$panels[D])],C.enable)},disable:function(D){var C=this,B=this.options;if(D!=B.selected){this.$lis.eq(D).addClass(B.disabledClass);B.disabled.push(D);B.disabled.sort();this.element.triggerHandler("tabsdisable",[this.fakeEvent("tabsdisable"),this.ui(this.$tabs[D],this.$panels[D])],B.disable)}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event)},load:function(G,M){var K=this,D=this.options,B=this.$tabs.eq(G),F=B[0],E=M==undefined||M===false,I=B.data("load.tabs");M=M||function(){};if(!I||!E&&A.data(F,"cache.tabs")){M();return}var L=function(N){var P=A(N),O=P.find("*:last");return O.length&&O.is(":not(img)")&&O||P};var C=function(){K.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){L(this).parent().html(L(this).data("label.tabs"))}});K.xhr=null};if(D.spinner){var J=L(F).html();L(F).wrapInner("<em></em>").find("em").data("label.tabs",J).html(D.spinner)}var H=A.extend({},D.ajaxOptions,{url:I,success:function(N,O){A(F.hash).html(N);C();if(D.cache){A.data(F,"cache.tabs",true)}A(K.element).triggerHandler("tabsload",[K.fakeEvent("tabsload"),K.ui(K.$tabs[G],K.$panels[G])],D.load);D.ajaxOptions.success&&D.ajaxOptions.success(N,O);M()}});if(this.xhr){this.xhr.abort();C()}B.addClass(D.loadingClass);setTimeout(function(){K.xhr=A.ajax(H)},0)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},destroy:function(){var B=this.options;this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(F,E){D.removeData(E+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.unselectClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}})},fakeEvent:function(B){return A.event.fix({type:B,target:this.element[0]})}});A.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};A.ui.tabs.getter="length";A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,E){E=E||false;var F=this,G=this.options.selected;function D(){F.rotation=setInterval(function(){G=++G<F.$tabs.length?G:0;F.select(G)},C)}function B(H){if(!H||H.clientX){clearInterval(F.rotation)}}if(C){D();if(!E){this.$tabs.bind(this.options.event,B)}else{this.$tabs.bind(this.options.event,function(){B();G=F.options.selected;D()})}}else{B();this.$tabs.unbind(this.options.event,B)}}})})(jQuery);
jQuery.autocomplete=function(g,S){var H=this;var c=jQuery(g).attr("autocomplete","off");if(S.inputClass){c.addClass(S.inputClass)}var F=document.createElement("div");var I=jQuery(F);I.hide().addClass(S.resultsClass).css("position","absolute");if(S.width>0){I.css("width",S.width)}jQuery("body").append(F);g.autocompleter=H;var L=null;var Y="";var N=-1;var U={};var W=false;var Z=false;var e=null;function K(){U={};U.data={};U.length=0}K();if(S.data!=null){var b="",R={},O=[];if(typeof S.url!="string"){S.cacheLength=1}for(var V=0;V<S.data.length;V++){O=((typeof S.data[V]=="string")?[S.data[V]]:S.data[V]);if(O[0].length>0){b=O[0].substring(0,1).toLowerCase();if(!R[b]){R[b]=[]}R[b].push(O)}}for(var X in R){S.cacheLength++;C(X,R[X])}}c.keydown(function(i){e=i.keyCode;switch(i.keyCode){case 38:i.preventDefault();n(-1);break;case 40:i.preventDefault();n(1);break;case 9:case 13:if(d()){}break;default:N=-1;if(L){clearTimeout(L)}L=setTimeout(function(){D()},S.delay);break}}).focus(function(){Z=true}).blur(function(){Z=false;j()});m();function D(){if(e==46||(e>8&&e<32)){return I.hide()}var i=c.val();if(i==Y){return}Y=i;if(i.length>=S.minChars){c.addClass(S.loadingClass);h(i)}else{c.removeClass(S.loadingClass);I.hide()}}function n(i){var k=jQuery("li",F);if(!k){return}N+=i;if(N<0){N=0}else{if(N>=k.size()){N=k.size()-1}}k.removeClass("ac_over");jQuery(k[N]).addClass("ac_over")}function d(){var i=jQuery("li.ac_over",F)[0];if(!i){var k=jQuery("li",F);if(S.selectOnly){if(k.length==1){i=k[0]}}else{if(S.selectFirst){i=k[0]}}}if(i){B(i);if(jQuery.isFunction(S.onSelect)){S.onSelect()}this.onSelect(0);return true}else{return false}}function B(i){if(!i){i=document.createElement("li");i.extra=[];i.selectValue=""}var k=jQuery.trim(i.selectValue?i.selectValue:i.innerHTML);g.lastSelected=k;Y=k;I.html("");c.val(k);m();if(S.onItemSelect){setTimeout(function(){S.onItemSelect(i)},1)}}function f(k,o){var p=c.get(0);if(p.createTextRange){var i=p.createTextRange();i.collapse(true);i.moveStart("character",k);i.moveEnd("character",o);i.select()}else{if(p.setSelectionRange){p.setSelectionRange(k,o)}else{if(p.selectionStart){p.selectionStart=k;p.selectionEnd=o}}}p.focus()}function J(i){if(e!=8){c.val(c.val()+i.substring(Y.length));f(Y.length,i.length)}}function M(){var k=a(g);var p=(S.width>0)?S.width:c.width();var i=(k.y+g.offsetHeight)+7;var o=k.x-40;if(jQuery.browser.msie){o=o+1}I.css({top:i+"px",left:o+"px"}).show()}function j(){if(L){clearTimeout(L)}L=setTimeout(m,200)}function m(){if(L){clearTimeout(L)}c.removeClass(S.loadingClass);if(I.is(":visible")){I.hide()}if(S.mustMatch){var i=c.val();if(i!=g.lastSelected){B(null)}}}function Q(k,i){if(i){c.removeClass(S.loadingClass);F.innerHTML="";if(jQuery.browser.msie){I.append(document.createElement("iframe"))}F.appendChild(E(i));if(S.autoFill&&(c.val().toLowerCase()==k.toLowerCase())){J(i[0][0])}M()}else{m()}}function A(r){if(!r){return null}if(S.parse){return S.parse(r)}var p=[];var q=r.split(S.lineSeparator);for(var o=0;o<q.length;o++){var k=jQuery.trim(q[o]);if(k){p[p.length]=k.split(S.cellSeparator)}}return p}function E(p){var s=document.createElement("ul");var q=p.length;if((S.maxItemsToShow>0)&&(S.maxItemsToShow<q)){q=S.maxItemsToShow}for(var k=0;k<q;k++){var r=p[k];if(!r){continue}var t=document.createElement("li");if(S.formatItem){t.innerHTML=S.formatItem(r,k,q);t.selectValue=r[0]}else{t.innerHTML=r;t.selectValue=r}var u=null;if(r.length>1){u=[];for(var o=1;o<r.length;o++){u[u.length]=r[o]}}t.extra=u;s.appendChild(t);jQuery(t).hover(function(){jQuery("li",s).removeClass("ac_over");jQuery(this).addClass("ac_over");N=jQuery("li",s).indexOf(jQuery(this).get(0))},function(){jQuery(this).removeClass("ac_over")}).click(function(i){i.preventDefault();i.stopPropagation();B(this)})}return s}function h(i){if(!S.matchCase){i=i.toLowerCase()}if((typeof S.url=="string")&&(S.url.length>0)){jQuery.get(T(i),function(k){k=A(k);C(i,k);Q(i,k)})}else{c.removeClass(S.loadingClass)}}function T(o){var k=S.qName?S.qName:"q";var i=S.url+"&"+k+"="+encodeURI(o);return i}function P(t){if(!t){return null}if(U.data[t]){return U.data[t]}if(S.matchSubset){for(var k=t.length-1;k>=S.minChars;k--){var u=t.substr(0,k);var r=U.data[u];if(r){var p=[];for(var o=0;o<r.length;o++){var v=r[o];var s=v[0];if(G(s,t)){p[p.length]=v}}return p}}}return null}function G(o,k){if(!S.matchCase){o=o.toLowerCase()}var p=o.indexOf(k);if(p==-1){return false}return p==0||S.matchContains}this.flushCache=function(){K()};this.setExtraParams=function(i){S.extraParams=i};this.findValue=function(){var k=c.val();if(!S.matchCase){k=k.toLowerCase()}var i=S.cacheLength?P(k):null;if(i){l(k,i)}else{if((typeof S.url=="string")&&(S.url.length>0)){jQuery.get(T(k),function(o){o=A(o);C(k,o);l(k,o)})}else{l(k,null)}}};function l(s,p){if(p){c.removeClass(S.loadingClass)}var t=(p)?p.length:0;var u=null;for(var k=0;k<t;k++){var r=p[k];if(r[0].toLowerCase()==s.toLowerCase()){u=document.createElement("li");if(S.formatItem){u.innerHTML=S.formatItem(r,k,t);u.selectValue=r[0]}else{u.innerHTML=r[0];u.selectValue=r[0]}var v=null;if(r.length>1){v=[];for(var o=1;o<r.length;o++){v[v.length]=r[o]}}u.extra=v}}if(S.onFindValue){setTimeout(function(){S.onFindValue(u)},1)}}function C(k,i){if(!i||!k||!S.cacheLength){return}if(!U.length||U.length>S.cacheLength){K();U.length++}else{if(!U[k]){U.length++}}U.data[k]=i}function a(o){var i=o.offsetLeft||0;var k=o.offsetTop||0;while(o=o.offsetParent){i+=o.offsetLeft;k+=o.offsetTop}return{x:i,y:k}}};jQuery.fn.autocomplete=function(A,B,C){B=B||{};B.url=A;B.data=((typeof C=="object")&&(C.constructor==Array))?C:null;B.inputClass=B.inputClass||"ac_input";B.resultsClass=B.resultsClass||"ac_results";B.lineSeparator=B.lineSeparator||"\n";B.cellSeparator=B.cellSeparator||"|";B.minChars=B.minChars||1;B.delay=B.delay||400;B.matchCase=B.matchCase||0;B.matchSubset=B.matchSubset||1;B.matchContains=B.matchContains||0;B.cacheLength=B.cacheLength||1;B.mustMatch=B.mustMatch||0;B.extraParams=B.extraParams||{};B.loadingClass=B.loadingClass||"ac_loading";B.selectFirst=B.selectFirst||false;B.selectOnly=B.selectOnly||false;B.maxItemsToShow=B.maxItemsToShow||-1;B.autoFill=B.autoFill||false;B.width=parseInt(B.width,10)||0;this.each(function(){var D=this;new jQuery.autocomplete(D,B)});return this};jQuery.fn.autocompleteArray=function(B,A){return this.autocomplete(null,A,B)};jQuery.fn.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1};
(function(B){B.ui=B.ui||{};B.fn.extend({accordion:function(H,I){var G=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof H=="string"){var J=B.data(this,"ui-accordion");J[H].apply(J,G)}else{if(!B(this).is(".ui-accordion")){B.data(this,"ui-accordion",new B.ui.accordion(this,H))}}this.className="basic"})},activate:function(G){return this.accordion("activate",G)}});B.ui.accordion=function(I,K){this.options=K=B.extend({},B.ui.accordion.defaults,K);this.element=I;B(I).addClass("ui-accordion");if(K.navigation){var H=B(I).find("a").filter(K.navigationFilter);if(H.length){if(H.filter(K.header).length){K.active=H}else{K.active=H.parent().parent().prev();H.addClass("current")}}}K.headers=B(I).find(K.header);K.active=F(K.headers,K.active);if(K.fillSpace){var G=B(I).parent().height();K.headers.each(function(){G-=B(this).outerHeight()});var J=0;K.headers.next().each(function(){J=Math.max(J,B(this).innerHeight()-B(this).height())}).height(G-J)}else{if(K.autoheight){var G=0;K.headers.next().each(function(){G=Math.max(G,B(this).outerHeight())}).height(G)}}K.headers.not(K.active||"").next().hide();K.active.parent().andSelf().addClass(K.selectedClass);if(K.event){B(I).bind((K.event)+".ui-accordion",D)}};B.ui.accordion.prototype={activate:function(G){D.call(this.element,{target:F(this.options.headers,G)[0]})},enable:function(){this.options.disabled=false},disable:function(){this.options.disabled=true},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoheight){this.options.headers.next().css("height","")}B.removeData(this.element,"ui-accordion");B(this.element).removeClass("ui-accordion").unbind(".ui-accordion")}};function E(H,G){return function(){return H.apply(G,arguments)}}function C(I){if(!B.data(this,"ui-accordion")){return}var G=B.data(this,"ui-accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return}if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""})}B(this).triggerHandler("change.ui-accordion",[H.data],H.change);if(!this.lastindex){this.className="basic lasttab"}}function A(K,H,M,J,I){var L=B.data(this,"ui-accordion").options;L.toShow=K;L.toHide=H;L.data=M;var G=E(C,this);L.running=H.size()==0?K.size():H.size();if(L.animated){if(!L.alwaysOpen&&J){B.ui.accordion.animations[L.animated]({toShow:jQuery([]),toHide:H,complete:G,down:I,autoheight:L.autoheight})}else{B.ui.accordion.animations[L.animated]({toShow:K,toHide:H,complete:G,down:I,autoheight:L.autoheight})}}else{if(!L.alwaysOpen&&J){K.toggle()}else{H.hide();K.show()}G(true)}}function D(I){var G=B.data(this,"ui-accordion").options;if(G.disabled){return false}if(!I.target&&!G.alwaysOpen){G.active.parent().andSelf().toggleClass(G.selectedClass);var N=G.active.next(),J={instance:this,options:G,newHeader:jQuery([]),oldHeader:G.active,newContent:jQuery([]),oldContent:N},H=G.active=B([]);A.call(this,H,N,J);return false}var K=B(I.target);if(K.parents(G.header).length){while(!K.is(G.header)){K=K.parent()}}var L=K[0]==G.active[0];if(G.running||(G.alwaysOpen&&L)){return false}if(!K.is(G.header)){return}G.active.parent().andSelf().toggleClass(G.selectedClass);if(!L){K.parent().andSelf().addClass(G.selectedClass)}var H=K.next(),N=G.active.next(),J={instance:this,options:G,newHeader:K,oldHeader:G.active,newContent:H,oldContent:N},M=G.headers.index(G.active[0])>G.headers.index(K[0]);if((G.headers.length-1)==G.headers.index(K[0])){this.className="basic";this.lastindex=true}else{this.lastindex=false}G.active=L?B([]):K;A.call(this,H,N,J,L,M);return false}function F(H,G){return G!=undefined?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?B([]):H.filter(":eq(0)")}B.extend(B.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:false,event:"click",header:"a.calendarblock",autoheight:false,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(I,G){I=B.extend({easing:"swing",duration:2000},I,G);if(!I.toHide.size()){I.toShow.animate({height:"show"},I);return}var K=I.toHide.height(),H=I.toShow.height(),J=H/K;I.toShow.css({height:0,overflow:"hidden"}).show();I.toHide.filter(":hidden").each(I.complete).end().filter(":visible").animate({height:"hide"},{step:function(M){var L=(K-M)*J;if(B.browser.msie||B.browser.opera){L=Math.ceil(L)}I.toShow.height(L)},duration:I.duration,easing:I.easing,complete:function(){if(!I.autoheight){I.toShow.css("height","auto")}I.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"bounceout":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}})})(jQuery);
var GlobalSearchDefaultText="";var isLoggedIn=false;jQuery(document).ready(function(){jQuery("#superdrop_btn").click(function(){toggleSuperdrop()});jQuery("#global_search").focus(function(){if(jQuery("#global_search").val()==GlobalSearchDefaultText){jQuery("#global_search").val("")}});jQuery("#global_search").blur(function(){if(jQuery("#global_search").val()==""){jQuery("#global_search").val(GlobalSearchDefaultText)}});if(jQuery("#global_search").length>0){GlobalSearchDefaultText=jQuery("#global_search").val()}jQuery(".lang_select ul a").click(function(){if(jQuery("#login").is(":visible")){jQuery("#login").slideUp("fast",function(){jQuery("#langsel").slideDown("normal",function(){jQuery(".lang_select ul a").addClass("active")})})}else{if(jQuery("#langsel").is(":hidden")){jQuery("#langsel").slideDown("normal",function(){jQuery(".lang_select ul a").addClass("active")})}else{jQuery("#langsel").slideUp("normal",function(){jQuery(".lang_select ul a").removeClass("active")})}}});jQuery("#langsel").mouseenter(function(){if(typeof(lt)!="undefined"){clearTimeout(lt)}});jQuery(".lang_select ul a").mouseleave(function(){lt=setTimeout("closeSelector()",1500)});jQuery(".lang_select ul a").mouseenter(function(){if(typeof(lt)!="undefined"){clearTimeout(lt)}});jQuery("#langsel").mouseleave(function(){lt=setTimeout("closeSelector()",1500)});var B=jQuery("#global_select").width();jQuery("#global_select").sSelect();jQuery(".newListSelected").css({width:B+10+"px"});jQuery(".newList").css({width:B+10+"px",top:"25px"});var A=jQuery(".g_search_select").width()+200;jQuery(".globalsearch .rel").css({width:A+"px",margin:"auto",visibility:"visible"});jQuery(".newList").mouseleave(function(){selecttimer=setTimeout("closeSelect()",1500)});jQuery(".newList").mouseenter(function(){if(typeof(selecttimer)!="undefined"){clearTimeout(selecttimer)}})});function resolveLoginState(){if(isLoggedIn==false){jQuery("#login_btn").click(function(){if(jQuery("#langsel").is(":visible")){jQuery("#langsel").slideUp("fast",function(){jQuery("#login").slideDown("normal",function(){jQuery("#login_btn").addClass("active");jQuery("#txtemail").focus()})})}else{if(jQuery("#login").is(":hidden")){jQuery("#login").slideDown("normal",function(){jQuery("#login_btn").addClass("active");jQuery("#txtemail").focus()})}else{jQuery("#login").slideUp("normal",function(){jQuery("#login_btn").removeClass("active")})}}});jQuery("#login").mouseenter(function(){if(typeof(lgt)!="undefined"){clearTimeout(lgt)}});var A=function(){lgt=setTimeout("closeLogin()",1500)};jQuery("#login").bind("mouseleave",A);jQuery("#login_btn").mouseenter(function(){if(typeof(lgt)!="undefined"){clearTimeout(lgt)}});jQuery("#login_form #txtemail").focus(function(){jQuery("#login").unbind("mouseleave",A)});jQuery("#login_form #txtemail").blur(function(){jQuery("#login").bind("mouseleave",A)});jQuery("#login_form #txtpwd").focus(function(){jQuery("#login").unbind("mouseleave",A)});jQuery("#login_form #txtpwd").blur(function(){jQuery("#login").bind("mouseleave",A)})}}function closeSelector(){jQuery("#langsel").slideUp("normal",function(){jQuery(".lang_select ul a").removeClass("active");clearTimeout(lt)})}function closeLogin(){jQuery("#login").slideUp("normal",function(){jQuery("#login_btn").removeClass("active");clearTimeout(lgt)})}function toggleSuperdrop(){if(jQuery(".globaldrop").is(":hidden")){jQuery(".globaldrop").slideDown("slow",function(){jQuery("#superdrop_btn").addClass("active")})}else{jQuery(".globaldrop").slideUp("slow",function(){jQuery("#superdrop_btn").removeClass("active")})}}function closeSelect(){if(typeof(selecttimer)!="undefined"){clearTimeout(selecttimer)}jQuery(".newList").hide()}function selectReplacement(G){G.className+=" replaced";var F=document.createElement("ul");F.className="selectReplacement";var A=G.options;for(var E=0;E<A.length;E++){var C;if(A[E].selected){C=E;break}else{C=0}}for(var E=0;E<A.length;E++){var D=document.createElement("li");var B=document.createTextNode(A[E].text);D.appendChild(B);D.selIndex=A[E].index;D.selectID=G.id;D.onclick=function(){selectMe(this)};if(E==C){D.className="selected";D.onclick=function(){this.parentNode.className+=" selectOpen";this.onclick=function(){selectMe(this)}}}if(window.attachEvent){D.onmouseover=function(){this.className+=" hover"};D.onmouseout=function(){this.className=this.className.replace(new RegExp(" hover\\b"),"")}}F.appendChild(D)}G.parentNode.insertBefore(F,G)}function selectMe(C){var B=C.parentNode.getElementsByTagName("li");for(var A=0;A<B.length;A++){if(B[A]!=C){B[A].className="";B[A].onclick=function(){selectMe(this)}}else{setVal(C.selectID,C.selIndex);C.className="selected";C.parentNode.className=C.parentNode.className.replace(new RegExp(" selectOpen\\b"),"");C.onclick=function(){C.parentNode.className+=" selectOpen";this.onclick=function(){selectMe(this)}}}}}function setVal(B,A){var C=document.getElementById(B);C.selectedIndex=A}function setForm(B){var A=document.getElementById(B);selectReplacement(A)}function executeFunctionOnEnter(B,C){B=B||window.event;var A=B.keyCode||B.which;if(A==13){C();return false}else{return true}};
var FindARuleDefaultText="";var CloseText="";var OfText="";jQuery(document).ready(function(){bindEvents()});function bindEvents(){function O(){jQuery(".nav_main a.main[title]").tooltip({tip:".nav_tooltip",effect:"fade",fadeOutSpeed:100,predelay:200,position:"top center",offset:[-4,0]})}O();function M(){jQuery(this).addClass("hovering");var S=jQuery(this).find("a.main");S.addClass("megaactive")}function B(){jQuery(this).removeClass("hovering");var S=jQuery(this).find("a.main");S.removeClass("megaactive")}var Q={interval:400,sensitivity:4,over:M,timeout:400,out:B};jQuery("li.mega").hoverIntent(Q);if(jQuery("#mpu").length>0){jQuery("#mpu").tabs({fx:{opacity:"toggle",duration:"slow"}}).tabs("option","disabled",false)}jQuery("#mpu").tabs("rotate",8000,true);jQuery(".ui-tabs-panel").hover(function(){jQuery("#mpu").tabs("rotate",0,true)},function(){jQuery("#mpu").tabs("rotate",8000,true)});var G=jQuery("div.championship_items").scrollable({size:1,clickable:false,api:true,keyboard:false});var N=0;var K=0;var J="";if(jQuery(".championship_items div.items").length>0){K=jQuery(".championship_items div.items")[0].children.length;J=jQuery(".championships_panel .counter .pages")[0].innerHTML;if(K>0){N=1}jQuery(".championships_panel a.nextPage").click(function(){if(N<K){N++;A()}});jQuery(".championships_panel a.prevPage").click(function(){if(N>1){N--;A()}})}function A(){jQuery(".championships_panel .counter .pages").text(N+" "+J+" "+K)}A();jQuery("div.latestnews_items").scrollable({size:1,clickable:false,api:true});$("#nextQuestionBtn").click(function(S){if(typeof(selectedAnswerId)=="undefined"){S.preventDefault()}});var P=0;var E=0;var R="";if(jQuery(".latestnews_items div.items").length>0){E=jQuery(".latestnews_items div.items")[0].children.length;R=jQuery(".latestnews_panel .latestnews_counter .pages")[0].innerHTML;if(E>1){P=1}else{jQuery(".latestnews_panel .latestnews_counter").addClass("hide");jQuery(".latestnews_panel .latestnews_counter").removeClass("latestnews_counter")}jQuery(".latestnews_panel a.nextPage").click(function(){if(P<E){P++;D()}});jQuery(".latestnews_panel a.prevPage").click(function(){if(P>1){P--;D()}})}function D(){jQuery(".latestnews_panel .latestnews_counter .pages").text(P+" "+R+" "+E)}D();jQuery("#shop_promo").scrollable({hoverClass:"hover",size:1,clickable:false,keyboard:false}).circular().navigator().autoscroll({steps:1,interval:6000,speed:"slow"});var I=["Facebook","Follow The R&A on Twitter","Stumble","Newsvine","RSS"];jQuery(".share_icons li a").each(function(S){S=S+1;S=S-1;jQuery(this).hover(function(){jQuery("#share_text").text(jQuery("span",this).text())},function(){jQuery("#share_text").text("")})});jQuery("#hp_playing_golf .tabs a").each(function(T){var S=jQuery("#hp_playing_golf .tabs a").length;T=T+1;jQuery(this).click(function(){jQuery("#hp_playing_golf .tabs a").removeClass("active");jQuery(this).addClass("active");for(a=1;a<=S;a++){if(a==T){if(navigator.userAgent.indexOf("MSIE 6")==-1){jQuery(".tab_"+a).show()}else{jQuery(".tab_"+a).show("fast")}}else{jQuery(".tab_"+a).hide()}}})});jQuery("#tabs_arrow_init .tabs_arrow a").each(function(T){var S=jQuery("#tabs_arrow_init .tabs_arrow a").length;T=T+1;jQuery(this).click(function(){jQuery("#tabs_arrow_init .tabs_arrow a").removeClass("active");jQuery(this).addClass("active");for(a=1;a<=S;a++){if(a==T){if(navigator.userAgent.indexOf("MSIE 6")==-1){jQuery(".tab_"+a).show()}else{jQuery(".tab_"+a).show("fast")}}else{jQuery(".tab_"+a).hide()}}})});jQuery("#tabs_arrow_init .letter_tabs a").each(function(T){var S=jQuery("#tabs_arrow_init .letter_tabs a").length;T=T+1;if(jQuery(this).attr("class")!="disabled"){jQuery(this).click(function(){jQuery("#tabs_arrow_init .letter_tabs a").removeClass("active");jQuery(this).addClass("active");for(a=1;a<=S;a++){if(a==T){if(navigator.userAgent.indexOf("MSIE 6")==-1){jQuery(".tab_"+a).show()}else{jQuery(".tab_"+a).show("fast")}}else{jQuery(".tab_"+a).hide()}}})}});var L=jQuery("#hp_latest_news .latestnews li a:first");jQuery("#hp_latest_news .latestnews li a").each(function(T){var S=jQuery("#hp_latest_news .latestnews li a").length;T=T+1;jQuery(this).hover(function(){for(a=1;a<=S;a++){if(a==T){jQuery(this).addClass("active");jQuery("#hp_latest_news .latestnews .img_"+a).show();L=jQuery(this)}else{jQuery("#hp_latest_news .latestnews li a").removeClass("active");jQuery("#hp_latest_news .latestnews .img_"+a).hide()}}},function(){})});jQuery("#hp_latest_news .links_block").mouseleave(function(){L.addClass("active")});var C=jQuery("#news_features .features li a:first");jQuery("#news_features .features li a").each(function(T){var S=jQuery("#news_features .features li a").length;T=T+1;jQuery(this).hover(function(){for(a=1;a<=S;a++){if(a==T){jQuery(this).addClass("active");jQuery("#news_features .features .img_"+a).show();C=jQuery(this)}else{jQuery("#news_features .features li a").removeClass("active");jQuery("#news_features .features .img_"+a).hide()}}},function(){})});jQuery("#news_features .links_block ul li a").mouseleave(function(){C.addClass("active")});jQuery("#news_features .features li a:first").addClass("active");jQuery("#news_features .features .img_1").show();jQuery("#hp_ranking_table table tr.datarow").hover(function(){jQuery(this).addClass("hovering")},function(){jQuery(this).removeClass("hovering")});jQuery("#hp_ranking_table table tr.datarow").each(function(S){S=S+1;jQuery(this).click(function(){window.open(jQuery("#wagrPlayerLink").text()+jQuery("span",this).text())})});jQuery("#findarule").focus(function(){if(jQuery("#findarule").val()==FindARuleDefaultText){jQuery("#findarule").val("")}});jQuery("#findarule").blur(function(){if(jQuery("#findarule").val()==""){jQuery("#findarule").val(FindARuleDefaultText)}});initMenu();jQuery(".sp_subnav").mouseleave(function(){t=setTimeout("closeSubNav()",1500)});jQuery(".sp_subnav").mouseenter(function(){if(typeof(t)!="undefined"){clearTimeout(t)}});function H(){extraWidth=jQuery("#cboxPrevious").outerWidth()+jQuery("#cboxCurrent").outerWidth()+jQuery("#cboxNext").outerWidth()+105+jQuery("#cboxTitle").textWidth()-jQuery("#cboxContent").outerWidth();if(extraWidth>0){jQuery("#cboxContent").css({width:(jQuery("#cboxContent").width()+extraWidth)+"px"});jQuery("#cboxTopCenter").css({width:(jQuery("#cboxTopCenter").width()+extraWidth)+"px"});jQuery("#cboxBottomCenter").css({width:(jQuery("#cboxBottomCenter").width()+extraWidth)+"px"});jQuery("#colorbox").css({width:(jQuery("#colorbox").width()+extraWidth)+"px"});jQuery("#cboxWrapper").css({width:(jQuery("#cboxWrapper").width()+extraWidth)+"px"})}}jQuery.fn.textWidth=function(){var T=jQuery("<div/>").css({margin:0,padding:0});T.css("font-size","1.2em");T.css("font-weight","bold");T.css("width","auto");T.css("position","absolute");T.text(jQuery(this).text());jQuery("#cboxOverlay").append(T);var S=T.outerWidth();T.remove();return S};jQuery("a[rel='photogroup_equipment']").colorbox();jQuery(".img_wrapper a[rel]").prepend('<div class="lbox"></div>');jQuery(".img_block_equipment_wrapper a[rel]").prepend('<div class="img_block_equipment_lbox"></div>');jQuery("a[rel='photogroup']").each(function(){var S=jQuery(this).parent().parent().find(".img_caption").html();jQuery(this).colorbox({photo:true,opacity:"0.85",previous:"",next:"",close:CloseText,current:"{current} "+OfText+" {total}",title:S,onComplete:function(){H()}})});jQuery("a[rel='photogroup_equipment']").each(function(){var S=jQuery(this).parent().parent().find(".img_block_equipment_caption").html();jQuery(this).colorbox({photo:true,opacity:"0.85",previous:"",next:"",close:CloseText,current:"{current} "+OfText+" {total}",title:S,onComplete:function(){H()}})});if(jQuery("#findarule").length>0){FindARuleDefaultText=jQuery("#findarule").val()}jQuery("a.calendarblock").click(function(){var S=jQuery(this).parent().parent();var V=jQuery(this);var W=V.next();var U=S.find(".open");if(U.length>0){if(W.hasClass("open")){W.removeClass("open").mycloseClasses().slideUp("100");return false}U.removeClass("open").mycloseClasses().slideUp("100",T)}else{T()}function T(){V.addClass("active");var Y=V.find(".plus");if(Y.length>0){W.addClass("open").slideDown()}else{W.addClass("open")}Y.addClass("minus")}jQuery.fn.mycloseClasses=function X(){var Z=jQuery(this).parent().parent();var Y=Z.find(".minus");Z.find(".active").removeClass("active");Y.removeClass("minus");return this}}).hover(function(){var S=jQuery(this).find(".plus");if(S.hasClass("minus")){return}else{S.addClass("plus_hover")}},function(){jQuery(this).find(".plus").removeClass("plus_hover")});jQuery(".centenary_bar a").click(function(){var T=jQuery(this);var S=jQuery(".centenaries_showhide");if(T.hasClass("active")){S.slideUp();T.removeClass("active")}else{S.slideDown();T.addClass("active")}});jQuery("a.affiliatesblock").click(function(){var X=jQuery(this).parent().parent();var T=jQuery(this);var W=T.next();var U=X.find(".open");if(U.length>0){if(W.hasClass("open")){W.removeClass("open").mycloseClasses().slideUp("100");return false}U.removeClass("open").mycloseClasses().slideUp("100",S)}else{S()}function S(){T.addClass("active");var Y=T.find(".plus");if(Y.length>0){W.addClass("open").slideDown()}else{W.addClass("open")}Y.addClass("minus")}jQuery.fn.mycloseClasses=function V(){var Y=jQuery(this).parent().parent();var Z=Y.find(".minus");Y.find(".active").removeClass("active");Z.removeClass("minus");return this}}).hover(function(){var S=jQuery(this).find(".plus");if(S.hasClass("minus")){return}else{S.addClass("plus_hover")}},function(){jQuery(this).find(".plus").removeClass("plus_hover")});jQuery("a.quiz_rule").click(function(){var V=jQuery(this).parent();var S=jQuery(this);var T=S.next();var W=V.find(".open");if(W.length>0){if(T.hasClass("open")){T.removeClass("open").mycloseClasses().slideUp("100");return false}W.removeClass("open").mycloseClasses().slideUp("100",U)}else{U()}function U(){var Y=S.find(".arrow");T.addClass("open").slideDown();S.addClass("quiz_rule_active");S.find("span.arrow").html(closeRuleText);Y.addClass("arrow_active")}jQuery.fn.mycloseClasses=function X(){var Y=jQuery(this).parent().parent();var Z=Y.find(".arrow_active");Y.find(".quiz_rule_active").removeClass("quiz_rule_active");Z.removeClass("arrow_active");S.find("span.arrow").html(viewRuleText);return this}});jQuery("#quiz_form").click(function(){F()});jQuery(".quiz_answer_abc a").click(function(){jQuery(".quiz_answer_abc a").removeClass("active");jQuery(this).addClass("active")});jQuery(".quiz_answer_tf a").click(function(){jQuery(".quiz_answer_tf a").removeClass("active");jQuery(this).addClass("active")});function F(){if(jQuery(".quizform").is(":hidden")){jQuery(".quizform").slideDown("slow",function(){jQuery("#quiz_form").addClass("quiz_form_button_active")})}else{jQuery(".quizform").slideUp("slow",function(){jQuery("#quiz_form").removeClass("quiz_form_button_active")})}}jQuery(".rounds_list a").click(function(){jQuery(".rounds_list a").removeClass("active");jQuery(".linksbox div:first").removeClass().addClass(jQuery(this).find("span:first").attr("class"));jQuery(this).addClass("active")});jQuery(".team_toggle a").click(function(){var T=jQuery(this);var S=jQuery("#teams");if(S.is(":visible")){S.slideUp("normal",function(){T.html("Show Teams");T.addClass("closed")})}else{S.slideDown("normal",function(){T.html("Hide Teams");T.removeClass("closed")})}});jQuery(".scorecard").colorbox({},function(){});checkForWrap()}function QuestionSelected(A){selectedAnswerId=A}function SetQuizAnswer(){var A=jQuery("input[name=questionid]").val();var D=A+"="+selectedAnswerId;var B=getMyCookie("quizanswers");if(B==null){setMyCookie("quizanswers",D)}else{var C=B.indexOf(A+"=");if(C>-1){B=B.substring(0,C-1)}B=B+"|"+D;setMyCookie("quizanswers",B)}}function getMyCookie(B){var C=document.cookie.split("; ");for(var D=0;D<C.length;D++){var A=C[D].split("=");if(A[0]==escape(B)){return unescape(A[1])}}return null}function setMyCookie(A,E,F,B,C,D){if(!A){return false}if(F=="delete"){F=-10}document.cookie=escape(A)+"="+escape(E)+(F?";expires="+(new Date((new Date()).getTime()+(1000*F))).toGMTString():"")+(B?";path="+B:"")+(C?";domain="+C:"")+(D?";secure":"");if(F<0){if(typeof(getMyCookie(A))=="string"){return false}return true}if(typeof(getMyCookie(A))=="string"){return true}return false}function deleteMyCookie(A){setMyCookie(A,"","delete")}function showQuizResults(){var B=getMyCookie("quizanswers");var C=getMyCookie("quizcorrectanswers");if(C==null){return}var F=C.split("|");var H=0;var A;if(B!=null){A=B.split("|");for(var D=0;D<A.length;D++){for(var E=0;E<F.length;E++){var I=A[D].split("=");var G=F[E].split("=");var J=document.getElementById(I[1]);if(I[0]==G[0]){if(I[1]==G[1]){H=H+1;jQuery(J).removeClass("q_num");jQuery(J).addClass("correct")}else{jQuery(J).removeClass("q_num");jQuery(J).addClass("incorrect")}}}}}for(var E=0;E<F.length;E++){var G=F[E].split("=");var K=document.getElementById(G[1]);jQuery(K).removeClass("q_num");jQuery(K).addClass("correct")}if(H>=F.length/2){if(H==F.length/2){jQuery(".quiz_result_container").addClass("quiz_result_amber")}else{jQuery(".quiz_result_container").addClass("quiz_result_green")}jQuery(".quiz_result_c2 .quiz_result_title").text(jQuery("input[name=congratulationtext]").val());jQuery(".quiz_result_c2 .quiz_result_subtitle").text(jQuery("input[name=congratulationsubtext]").val())}else{jQuery(".quiz_result_container").addClass("quiz_result_red");jQuery(".quiz_result_c2 .quiz_result_title").text(jQuery("input[name=sorrytext]").val());jQuery(".quiz_result_c2 .quiz_result_subtitle").text(jQuery("input[name=sorrysubtext]").val())}jQuery(".quiz_result_c1 .quiz_result_container .result_text_top").text(H);jQuery(".quiz_result_c1 .quiz_result_container .result_text_bottom").text(F.length);deleteMyCookie("quizQuestions");deleteMyCookie("quizanswers");deleteMyCookie("quizcorrectanswers")}function closeSubNav(){if(typeof(t)!="undefined"){clearTimeout(t)}var A=jQuery("ul.subnav ul:visible").not(".active, .subopen");A.slideUp()}var subnavintent={interval:50,sensitivity:4,over:activate,out:subnavout};function activate(){var B=jQuery(this).next();if((B.is("ul"))&&(!B.is(":visible"))){var A=jQuery("ul.subnav ul:visible").not(".active, .subopen");A.slideUp();B.slideDown("slow",function(){});return false}}function subnavout(){}function initMenu(){jQuery("ul.subnav li a").not("ul.subnav ul li a, .subopen").hoverIntent(subnavintent)}function loadChampionship(A,B){jQuery("#championship_"+A).load("homepage-modules/championships.htm #c_ship_"+B,function(){})}function popup(D,C,A,E,F){if(!(isNaN(A)||isNaN(E))){var G=parseInt((screen.width-A)/2);var B=parseInt((screen.height-E)/2);if(G<0){G=0}if(B<0){B=0}if(F!=null&&F!=""){F=","+F}else{F=""}F="left="+G+",top="+B+",width="+A+",height="+E+F}window.open(D,C,F)}function helpMe(){popup(dotdotpath+"help","",900,700,"")}function checkForWrap(){jQuery(".blockofthree .module_244").each(function(){var A=jQuery(this).find(".module_title").height();if(A>20){jQuery(".blockofthree .module_244 .module_title").addClass("dbl_title")}})}function executeFunctionOnEnter(B,C){B=B||window.event;var A=B.keyCode||B.which;if(A==13){C();return false}else{return true}}var loadingSelect="<select disabled><option>Loading...</option></select>";function clubType_OnChange(){if(jQuery("#clubType").val()!="-1"){var A=new Date();jQuery("#c2").html(loadingSelect);jQuery.get(baseUrl,{guid:A.getTime(),action:"getManufacturer",search:jQuery("#search").val(),clubType:jQuery("#clubType").val()},function(B){jQuery("#c2").html(B);jQuery("#c3").html(modelAll)})}else{jQuery("#c2").html(manufacturerAll);jQuery("#c3").html(modelAll)}}function manufacturer_OnChange(){if(jQuery("#manufacturer").val()!="-1"){var A=new Date();jQuery("#c3").html(loadingSelect);jQuery.get(baseUrl,{guid:A.getTime(),action:"getModel",search:jQuery("#search").val(),clubType:jQuery("#clubType").val(),manufacturer:jQuery("#manufacturer").val()},function(B){jQuery("#c3").html(B)})}else{jQuery("#c3").html(modelAll)}}function model_OnChange(){}function resolveSort(D){var B=jQuery.query.get("orderDirection");var C=jQuery.query.get("orderBy");var A;switch(B){case"":B="asc";break;case"asc":B=C==D?"desc":"asc";break;case"desc":B="asc";break}if(B!=""){A=jQuery.query.set("orderBy",D).set("orderDirection",B)}else{A=jQuery.query.remove("orderDirection").remove("orderBy")}window.location=baseUrl+A.toString()}function readFromQueryString(A){var B=decodeURIComponent(getParameterByName(A).replace(/\+/g," "));if(B!="-1"&&B!="none"){jQuery("#"+A).val(B)}}function getParameterByName(A){A=A.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var B="[\\?&]"+A+"=([^&#]*)";var C=new RegExp(B);var D=C.exec(window.location.href);if(D==null){return"none"}else{return D[1]}}function equipmentSearch_OnClick(){var H=jQuery("#type").attr("value");var F=jQuery("#manufacturer").attr("value");var B=jQuery("#model").attr("value");var G=jQuery("#clubType").attr("value");var A=jQuery("#pole").attr("value");var D=jQuery("#seem").attr("value");var E=jQuery("#search").attr("value");var C="";if(H!="-1"&&H!=undefined){C=C+"type="+encodeURIComponent(H)+"&"}if(F!="-1"&&F!=undefined){C=C+"manufacturer="+encodeURIComponent(F)+"&"}if(B!="-1"&&B!=undefined){C=C+"model="+encodeURIComponent(B)+"&"}if(G!="-1"&&G!=undefined){C=C+"clubType="+encodeURIComponent(G)+"&"}if(D!="-1"&&D!=undefined){C=C+"seem="+encodeURIComponent(D)+"&"}if(A!=""&&A!=undefined){C=C+"pole="+encodeURIComponent(A)+"&"}if(E!=""&&E!=undefined){C=C+"search="+encodeURIComponent(E)+"&"}C=C+"action=search";window.location=baseUrl+"?"+C}function btnSearch_OnClick(){var A=jQuery("#search").attr("value");if(A!=""){window.location=baseUrl+"?search="+encodeURIComponent(A)}else{window.location=baseUrl}}function updateValuesFromQueryString(){readFromQueryString("type");readFromQueryString("manufacturer");readFromQueryString("model");readFromQueryString("clubType");readFromQueryString("search");readFromQueryString("pole");readFromQueryString("seem")}function updateSortArrow(){var B=jQuery.query.get("orderDirection");if(B!=""){var A="#sort_"+jQuery.query.get("orderBy")+" span";jQuery(A).addClass(B)}}jQuery.urlParam=function(A){var B=new RegExp("[\\?&]"+A+"=([^&#]*)").exec(window.location.href);if(!B){return 0}return B[1]||0};function sortTeamMatch(){var A=jQuery.urlParam("sorttype");var C=jQuery.urlParam("sortby");var D=jQuery.urlParam("sortorder");var B="desc";if(D==1){B="asc"}switch(A){case"s":switch(C){case"match":jQuery("#singleMatch").addClass(B);break;case"teetime":jQuery("#singleTeetime").addClass(B);break;case"hole":jQuery("#singleHole").addClass(B);break;case"points1":jQuery("#singlePoints1").addClass(B);break;case"points2":jQuery("#singlePoints2").addClass(B);break}break;case"f":switch(C){case"match":jQuery("#foresomeMatch").addClass(B);break;case"teetime":jQuery("#foresomeTeetime").addClass(B);break;case"hole":jQuery("#foresomeHole").addClass(B);break;case"points1":jQuery("#foresomePoints1").addClass(B);break;case"points2":jQuery("#foresomePoints2").addClass(B);break}break;case"sum":switch(C){case"country":jQuery("#sumCountry").addClass(B);break;case"points":jQuery("#sumPoints").addClass(B);break}break;case"sumall":switch(C){case"againstteam":jQuery("#sumAllTeam").addClass(B);break;case"won":jQuery("#sumAllWon").addClass(B);break;case"lost":jQuery("#sumAllLost").addClass(B);break;case"points":jQuery("#sumAllPoints").addClass(B);break}break;default:jQuery("#foresomeTeetime").addClass(B);jQuery("#singleTeetime").addClass(B);break}}function sortStrokePlay(D){var F=jQuery.urlParam("view");var E=jQuery.urlParam("sortby");var B=jQuery.urlParam("sortorder");var C="desc";if(B==1){C="asc"}if(F=="teetime"){switch(E){case"game":jQuery("#tgame").addClass(C);break;case"teetime":jQuery("#tteetime").addClass(C);break;case"player":jQuery("#tplayer").addClass(C);break;case"club":jQuery("#tclub").addClass(C);break;case"score":jQuery("#tscore").addClass(C);break;default:}}else{switch(E){case"pos":jQuery("#spos").addClass(C);break;case"player":jQuery("#splayer").addClass(C);break;case"club":jQuery("#sclub").addClass(C);break;case"total":jQuery("#stotal").addClass(C);break;case"topar":jQuery("#stopar").addClass(C);break;default:}for(var A=0;A<D;A++){if(E=="round_"+(A+1)){jQuery("#sround_"+(A+1)).addClass(C);return}}}}function validateEmailAddress(A){if(A.length==0){return true}if(A.indexOf("@")==-1||A.indexOf("@")==A.length-1||A.indexOf("@")!=A.lastIndexOf("@")||A.indexOf("@")>A.lastIndexOf(".")){return false}if(A.indexOf(".")==0||A.indexOf(".")==A.length-1||A.indexOf("..")!=-1||A.indexOf("@.")!=-1||A.indexOf(".@")!=-1){return false}return true};
jQuery(document).ready(function(){initGallery()});function initGallery(){jQuery("div.scrolly").scrollable({size:5,keyboard:false});galleryPageSeparatorOf=jQuery(".gallery .counter .pages").html();totalImages=jQuery(".items img").length;currentImage=1;jQuery(".items img").each(function(A){A=A+1;jQuery(this).click(function(){currentImage=A;jQuery(".gall_desc_bg .subtitle").html("");jQuery(".gall_desc_bg .img_info").html("");var E=jQuery(this).attr("src").substring(0,jQuery(this).attr("src").indexOf("?"));var C=500;var F=jQuery(this).attr("alt");var D=jQuery(this).attr("title");var G=jQuery("#image_wrap").animate({opacity:0.8},C,function(){jQuery(".lrg_img_cont").find("img").attr("src",E)});var B=new Image();B.onload=function(){G.animate({opacity:0},C,function(){jQuery(".gall_desc_bg .subtitle").html(F);jQuery(".gall_desc_bg .img_info").html(D)})};B.src=E;UpdateGalleryCounter()})});if(typeof(selectedIndex)!="undefined"){jQuery(jQuery(".items img")[selectedIndex]).click()}jQuery(".gallery .counter a.nextPage").click(function(){var A=currentImage+1;if(A>totalImages){jQuery("#thumbholder #img1 img").click()}else{jQuery("#thumbholder #img"+A+" img").click()}});jQuery(".gallery .counter a.prevPage").click(function(){var A=currentImage-1;if(A==0){jQuery("#thumbholder #img"+totalImages+" img").click()}else{jQuery("#thumbholder #img"+A+" img").click()}});jQuery(".gallery .showall a").click(function(){currentPos=jQuery("#thumbholder").css("left");var B=jQuery(".gallery #gallery_scroller");var D=jQuery(".gallery_scroll_cont #thumbholder");var A=jQuery(".gallery_scroll_cont .left_btn");var C=jQuery(".gallery_scroll_cont .right_btn");if(D.attr("class")=="items"){B.removeClass("scrolly").addClass("scrolly2");D.removeClass("items").addClass("items2");A.hide();C.hide();jQuery(this).html(hideAllText)}else{B.removeClass("scrolly2").addClass("scrolly");D.removeClass("items2").addClass("items").css({left:currentPos});jQuery("#thumbholder #img"+currentImage+" img").click();A.show();C.show();jQuery(this).html(showAllText)}})}function UpdateGalleryCounter(){jQuery(".gallery .counter .pages").html(currentImage+" "+galleryPageSeparatorOf+" "+totalImages)};
function checkregister(){var A=new v8();A.setlabel("first_name","First Name");A.setlabel("last_name","Last Name");A.setlabel("email_address","Email");A.setlabel("email_confirm","Email Confirm");A.setlabel("dob_D","Date of Birth Day");A.setlabel("dob_M","Date of Birth Month");A.setlabel("dob_Y","Date of Birth Year");A.setlabel("country","Country");A.setlabel("gender","Gender");A.setlabel("password1","Password");A.setlabel("password_confirm","Password Confirm");A.setlabel("accept_terms","Terms");A.setIntro(incorrectText);A.setOutro(pleaseCorrectText);A.setmessage("accept_terms","required",agreeTermsText);A.setmessage("email_confirm","compare",emailsMustMatchText);A.setmessage("password_confirm","compare",passworsMustMatchText);A.setmessage("first_name","required",firstNameRequiredText);A.setmessage("last_name","required",lastNameRequiredText);A.setmessage("email_address","required",emailRequiredText);A.setmessage("email_confirm","required",emailConfirmRequiredText);A.setmessage("country","required",countryRequiredText);A.setmessage("gender","required",genderRequiredText);A.setmessage("password1","required",passwordRequiredText);A.setmessage("password_confirm","required",passwordConfirmRequiredText);A.setmessage("email_address","email",invalidEmailAddressText);A.addtest("first_name","required");A.addtest("last_name","required");A.addtest("email_address","required");A.addtest("email_address","email");A.addtest("email","string","0","200");A.addtest("email_confirm","required");A.addtest("email_confirm","email");A.addtest("email_confirm","string","0","200");A.addtest("email_confirm","compare","email_address","equal");A.addtest("dob_D","required");A.addtest("dob_M","required");A.addtest("dob_Y","required");A.addtest("country","required");A.addtest("gender","required");A.addtest("password1","required");A.addtest("password_confirm","required");A.addtest("password_confirm","compare","password1","equal");A.addtest("accept_terms","required");A.test();A.alert("alert","alerttext");return A.valid()}function checklogin(){var A=new v8();A.setlabel("emailLogin","Email");A.setlabel("passwordLogin","Password");A.setmessage("emailLogin","required",loginEmailRequiredText);A.setmessage("emailLogin","email",loginInvalidEmailAddressText);A.setmessage("passwordLogin","required",loginPasswordRequiredText);A.addtest("emailLogin","required");A.addtest("passwordLogin","required");A.addtest("emailLogin","email");A.addtest("emailLogin","string","0","200");A.test();A.alert("alertLogin","alerttextLogin");return A.valid()}function checkSendQuizEmail(){var A=new v8();A.setlabel("yourname","Your Name");A.setlabel("friendname","Friend Name");A.setlabel("email","Email");A.setlabel("friendemail","Friend Email");A.setmessage("yourname","required",quizNameRequiredText);A.setmessage("friendname","required",quizFriendNameRequiredText);A.setmessage("email","required",quizEmailRequiredText);A.setmessage("email","email",quizInvalidEmailAddressText);A.setmessage("friendemail","required",quizFriendEmailRequiredText);A.setmessage("friendemail","email",quizInvalidFriendEmailAddressText);A.addtest("yourname","required");A.addtest("friendname","required");A.addtest("email","required");A.addtest("email","email");A.addtest("friendemail","required");A.addtest("friendemail","email");A.removeLabelsHighlight();A.test();A.alertHalfRow("alertSendEmail","alerttextSendEmail");return A.valid()};
function v8(){this.label_array=new Array();this.test_array=new Array();this.custommessage_array=new Array();this.name_array=new Array();this.message_array=new Array();this.invalid_label_array=new Array()}v8.prototype.message_obj=new Object();v8.prototype.message_obj.intro="The following fields are incomplete or incorrect:";v8.prototype.message_obj.outro="Please correct and resubmit form.";v8.prototype.message_obj.notfound="{field} was not found";v8.prototype.message_obj.invalid="{field} is invalid";v8.prototype.message_obj.required="{field} is required";v8.prototype.message_obj.email="{field} must be a valid email address";v8.prototype.message_obj.url="{field} must be a valid url";v8.prototype.message_obj.number="{field} must be a number";v8.prototype.message_obj.number_fix="{field} must be a number equal to {minimum}";v8.prototype.message_obj.number_min="{field} must be a number greater than or equal to {minimum}";v8.prototype.message_obj.number_max="{field} must be a number less than or equal to {maximum}";v8.prototype.message_obj.number_minandmax="{field} must be a number between {minimum} and {maximum}";v8.prototype.message_obj.string="{field} must be a greater than or equal to {minimum} characters";v8.prototype.message_obj.string_fix="{field} must be a equal to {minimum} characters";v8.prototype.message_obj.string_min="{field} must be a greater than or equal to {minimum} characters";v8.prototype.message_obj.string_max="{field} must be a less than or equal to {maximum} characters";v8.prototype.message_obj.string_minandmax="{field} must be a between {minimum} and {maximum} characters";v8.prototype.message_obj.datetime="{field} must be a valid date/time";v8.prototype.message_obj.date="{field} must be a valid date";v8.prototype.message_obj.time="{field} must be a valid time";v8.prototype.message_obj.allow="{field} contains invalid characters";v8.prototype.message_obj.deny="{field} contains invalid characters";v8.prototype.message_obj.mask="{field} is not in the correct format";v8.prototype.message_obj.guid="{field} is not in the correct format";v8.prototype.message_obj.compare_equal="{field} must be equal to {field2}";v8.prototype.message_obj.compare_notequal="{field} must not be equal to {field2}";v8.prototype.setlabel=function(C,A){var B=new Object();B.name=C;B.label=A;this.label_array.push(B)};v8.prototype.setmessage=function(D,C,B){var A=new Object();A.name=D;A.test=C;A.message=B;switch(A.test){case"r":case"required":case"req":A.test="required";break;case"email":case"emailaddress":A.test="email";break;case"guid":case"uniqueidentifier":A.test="guid";break}this.custommessage_array.push(A)};v8.prototype.addtest=function(E,D){var A="";for(var C=0;C<this.label_array.length;C++){if(this.label_array[C].name==E){A=this.label_array[C].label;break}}if(A==""){A=E}var B=new Object();B.name=E;B.test=D.toLowerCase();B.label=A;B.data=new Array();B.data[0]=(arguments.length<2)?"":arguments[2];B.data[1]=(arguments.length<3)?"":arguments[3];B.testmessage=B.test;switch(B.test){case"r":case"required":case"req":B.test="required";B.testmessage=B.test;break;case"email":case"emailaddress":B.test="email";B.testmessage=B.test;break;case"guid":case"uniqueidentifier":B.test="guid";B.testmessage=B.test;break;case"compare":if(B.data[0]!=""&&B.data[1]!=""){B.testmessage+="_"+B.data[1]}break;case"date":case"time":B.test="datetime";break;case"number":case"string":if(B.data[0]!=""&&B.data[1]!=""){if(B.data[0]==B.data[1]){B.testmessage+="_fix"}else{B.testmessage+="_minandmax"}}else{if(B.data[0]!=""&&B.data[1]==""){B.testmessage+="_min"}else{if(B.data[0]==""&&B.data[1]!=""){B.testmessage+="_max"}}}break}this.test_array.push(B)};v8.prototype.setIntro=function(A){this.message_obj.intro=A};v8.prototype.setOutro=function(A){this.message_obj.outro=A};v8.prototype.test=function(){this.name_array=new Array();this.message_array=new Array();for(var C=0;C<this.test_array.length;C++){this.highlight(this.test_array[C].name,false);this.trimvalue(this.test_array[C].name);var A=this.getvalue(this.test_array[C].name);switch(this.test_array[C].test){case"required":if(A==""){this.invalid(this.test_array[C])}break;case"email":if(!this.validate_emailaddress(A)){this.invalid(this.test_array[C])}break;case"url":if(!this.validate_url(A)){this.invalid(this.test_array[C])}break;case"datetime":if(!this.validate_datetime(A)){this.invalid(this.test_array[C])}break;case"guid":if(!this.validate_guid(A)){this.invalid(this.test_array[C])}break;case"number":if(!this.validate_number(A,this.test_array[C].data[0],this.test_array[C].data[1])){this.invalid(this.test_array[C])}break;case"string":if(!this.validate_string(A,this.test_array[C].data[0],this.test_array[C].data[1])){this.invalid(this.test_array[C])}break;case"allow":if(!this.validate_charactercheck(A,this.test_array[C].data[0],"")){this.invalid(this.test_array[C])}break;case"deny":if(!this.validate_charactercheck(A,"",this.test_array[C].data[0])){this.invalid(this.test_array[C])}break;case"mask":if(!this.validate_mask(A,this.test_array[C].data[0])){this.invalid(this.test_array[C])}break;case"compare":var B=this.getvalue(this.test_array[C].data[0]);this.test_array[C].label2=this.test_array[C].data[0];for(var D=0;D<this.label_array.length;D++){if(this.label_array[D].name==this.test_array[C].data[0]){this.test_array[C].label2=this.label_array[D].label;break}}if(!this.validate_compare(A,B,this.test_array[C].data[1])){this.invalid(this.test_array[C])}break;case"custom":this.invalid(this.test_array[C])}}};v8.prototype.alert=function(A,D){var B=document.getElementById(A);var E=document.getElementById(D);if(this.name_array.length>0){window.scroll(0,0);this.focusto(this.name_array[0]);for(var C=0;C<this.name_array.length;C++){this.highlight(this.name_array[C],true)}if(B&&E){E.innerHTML="<p>"+this.message_obj.intro+"</p><ul><li>"+this.message_array.join("</li><li>")+"</li></ul><p>"+this.message_obj.outro+"</p>";B.style.display=""}else{alert(this.message_obj.intro+"\r\n"+this.message_array.join("\r\n")+"\r\n\r\n"+this.message_obj.outro)}}else{if(B){B.style.display="none"}}};v8.prototype.alertHalfRow=function(A,D){var B=document.getElementById(A);var E=document.getElementById(D);if(this.name_array.length>0){window.scroll(0,0);this.focusto(this.name_array[0]);this.getinvalidlabels();for(var C=0;C<this.invalid_label_array.length;C++){this.highlightHalfRow(this.invalid_label_array[C],true)}if(B&&E){E.innerHTML="<p>"+this.message_obj.intro+"</p><ul><li>"+this.message_array.join("</li><li>")+"</li></ul><p>"+this.message_obj.outro+"</p>";B.style.display=""}else{alert(this.message_obj.intro+"\r\n"+this.message_array.join("\r\n")+"\r\n\r\n"+this.message_obj.outro)}}else{if(B){B.style.display="none"}}};v8.prototype.valid=function(){return(this.name_array==0)};v8.prototype.invalid=function(C){for(var B=0;B<this.name_array.length;B++){if(this.name_array[B]==C.name){return}}this.name_array.push(C.name);var A=this.message_obj.invalid;if(this.message_obj[C.testmessage]){A=this.message_obj[C.testmessage]}for(var B=0;B<this.custommessage_array.length;B++){if(this.custommessage_array[B].name==C.name&&this.custommessage_array[B].test==C.test){A=this.custommessage_array[B].message}}A=A.replace("{field}",C.label);if(C.label2){A=A.replace("{field2}",C.label2)}A=A.replace("{minimum}",C.data[0]);A=A.replace("{maximum}",C.data[1]);this.message_array.push(A)};v8.prototype.getfield=function(D){for(var B=0;B<document.forms.length;B++){for(var C=0;C<document.forms[B].length;C++){var A=document.forms[B][C];if(A.name==D){return A}}}};v8.prototype.getfieldarray=function(E){var B=new Array();for(var C=0;C<document.forms.length;C++){for(var D=0;D<document.forms[C].length;D++){var A=document.forms[C][D];if(A.name==E){B.push(A)}}}return B};v8.prototype.getvalue=function(D){var A=this.getfield(D);if(!A){return""}switch(A.type){case"text":case"password":case"file":case"hidden":case"textarea":return A.value;case"select-one":return A.options[A.selectedIndex].value;case"select-multiple":var B=new Array();var A=A.options;for(var C=0;C<A.length;C++){if(A[C].selected){B.push(A[C].value)}}return B.join(",");case"radio":case"checkbox":var B=new Array();var A=this.getfieldarray(D);for(var C=0;C<A.length;C++){if(A[C].checked){B.push(A[C].value)}}return B.join(",")}return""};v8.prototype.trimvalue=function(B){var A=this.getfield(B);if(!A){return""}switch(A.type){case"text":case"password":case"file":case"hidden":case"textarea":A.value=trim(A.value)}};v8.prototype.highlight=function(E,A){var B=this.getfield(E);if(!B){return}try{for(var C=0;C<20;C++){if(B.nodeName=="DIV"&&B.className.indexOf("row")>-1){if(A){B.className+=" v8"}else{B.className=B.className.replace("v8","")}break}B=B.parentNode}}catch(D){}};v8.prototype.highlightHalfRow=function(B,A){try{for(var C=0;C<20;C++){if(B.nodeName=="DIV"&&B.className.indexOf("half_row")>-1){if(A){B.className+=" v8"}else{B.className=B.className.replace("v8","")}break}B=B.parentNode}}catch(D){}};v8.prototype.getinvalidlabels=function(){var C=document.getElementsByTagName("label"),B;for(B=0;B<C.length;B++){for(j=0;j<this.name_array.length;j++){var A=this.getfield(this.name_array[j]);if(C[B].htmlFor==A.id){this.invalid_label_array.push(C[B]);break}}}};v8.prototype.removeLabelsHighlight=function(){var B=document.getElementsByTagName("label"),A;for(A=0;A<B.length;A++){this.highlightHalfRow(B[A],false)}};v8.prototype.focusto=function(C){var A=this.getfield(C);if(!A){return}if(A.type=="hidden"){var A=this.getfield(C+"d");if(!A||A.type=="hidden"){return}}try{A.focus()}catch(B){}};v8.prototype.validate_datetime=function(A){var B=new Date(A);if(isNaN(B)){return false}return true};v8.prototype.validate_string=function(A,C,B){if(C!=""&&A.length<C){return false}else{if(B!=""&&A.length>B){return false}}return true};function trim(A){return A.replace(/^\s+|\s+$/g,"")}v8.prototype.validate_number=function(A,C,B){if(!isNumber(A)){return false}A=Math.floor(A);if(isNumber(C)&&A<Math.floor(C)){return false}else{if(B!=""&&A>Math.floor(B)){return false}}return true};v8.prototype.validate_guid=function(A){return true};v8.prototype.validate_charactercheck=function(A,C,D){if(C.length>0){for(var B=0;B<A.length;B++){if(C.indexOf(A.charAt(B))==-1){return false}}}for(var B=0;B<D.length;B++){if(A.indexOf(D.charAt(B))!=-1){return false}}return true};v8.prototype.validate_emailaddress=function(A){if(A.length==0){return true}if(A.indexOf("@")==-1||A.indexOf("@")==A.length-1||A.indexOf("@")!=A.lastIndexOf("@")||A.indexOf("@")>A.lastIndexOf(".")){return false}if(A.indexOf(".")==0||A.indexOf(".")==A.length-1||A.indexOf("..")!=-1||A.indexOf("@.")!=-1||A.indexOf(".@")!=-1){return false}return true};v8.prototype.validate_url=function(A){if(A.substr(0,7)!="http://"&&A.substr(0,8)!="https://"&&A.substr(0,6)!="ftp://"){return false}return true};v8.prototype.validate_mask=function(A,B){if(REFindNoCase(B,A,1,false)==1){return true}return false};v8.prototype.validate_compare=function(A,B,C){switch(C){case"equal":if(A!=B){return false}break;case"notequal":if(A==B){return false}break}return true};function isNumber(A){var B=String(A);return((B.length>0)&&!isNaN(Math.floor(B)))};
(function(A){A("html").addClass("stylish-select");Array.prototype.indexOf=function(C,D){for(var B=(D||0);B<this.length;B++){if(this[B]==C){return B}}};A.fn.extend({getSetSSValue:function(B){if(B){A(this).val(B).change();return this}else{return A(this).find(":selected").val()}},resetSS:function(){var B=A(this).data("ssOpts");$this=A(this);$this.next().remove();$this.unbind().sSelect(B)}});A.fn.sSelect=function(B){return this.each(function(){var N={defaultText:"Please select",animationSpeed:0,ddMaxHeight:""};var Q=A.extend(N,B),W=A(this),O=A('<div class="selectedTxt"></div>'),G=A('<div class="newListSelected" tabindex="0"></div>'),D=A('<ul class="newList"></ul>'),I=-1,V=-1,R=[],L=false,K=false,Z;A(this).data("ssOpts",B);G.insertAfter(W);O.prependTo(G);D.appendTo(G);W.hide();if(W.children("optgroup").length==0){W.children().each(function(b){var c=A(this).text();var a=A(this).val();R.push(c.charAt(0).toLowerCase());if(A(this).attr("selected")==true){Q.defaultText=c;V=b}D.append(A("<li value="+a+'><a href="JavaScript:void(0);" >'+c+"</a></li>").data("key",a))});Z=D.children().children()}else{W.children("optgroup").each(function(){var a=A(this).attr("label"),c=A('<li class="newListOptionTitle">'+a+"</li>");c.appendTo(D);var b=A("<ul></ul>");b.appendTo(c);A(this).children().each(function(){++I;var e=A(this).text();var d=A(this).val();R.push(e.charAt(0).toLowerCase());if(A(this).attr("selected")==true){Q.defaultText=e;V=I}b.append(A('<li><a href="JavaScript:void(0);">'+e+"</a></li>").data("key",d))})});Z=D.find("ul li a")}var T=D.height(),S=G.height(),C=Z.length;if(V!=-1){M(V,true)}else{O.text(Q.defaultText)}function E(){var b=G.offset().top,a=jQuery(window).height(),c=jQuery(window).scrollTop();if(T>parseInt(Q.ddMaxHeight)){T=parseInt(Q.ddMaxHeight)}b=b-c;if(b+T>=a){D.css({top:"-"+T+"px",height:T});W.onTop=true}else{D.css({top:S+"px",height:T});W.onTop=false}}E();A(window).resize(function(){E()});A(window).scroll(function(){E()});function H(){G.css("position","relative")}function U(){G.css("position","static")}O.click(function(a){a.stopPropagation();A(".newList").not(A(this).next()).hide().parent().removeClass("newListSelFocus");D.toggle();H();Z.eq(V).focus()});Z.click(function(b){var a=A(b.target);V=Z.index(a);K=true;M(V);D.hide();G.css("position","static")});Z.hover(function(b){var a=A(b.target);a.addClass("newListHover")},function(b){var a=A(b.target);a.removeClass("newListHover")});function M(a,d){Z.removeClass("hiLite").eq(a).addClass("hiLite");if(D.is(":visible")){Z.eq(a).focus()}var c=Z.eq(a).text();var b=Z.eq(a).parent().data("key");if(d==true){W.val(b);O.text(c);return false}W.val(b);W.change();O.text(c)}W.change(function(a){$targetInput=A(a.target);if(K==true){K=false;return false}$currentOpt=$targetInput.find(":selected");V=$targetInput.find("option").index($currentOpt);M(V,true)});function F(a){a.onkeydown=function(d){var c;if(d==null){c=event.keyCode}else{c=d.which}K=true;switch(c){case 40:case 39:J();return false;break;case 38:case 37:P();return false;break;case 33:case 36:Y();return false;break;case 34:case 35:X();return false;break;case 13:case 27:D.hide();U();return false;break}keyPressed=String.fromCharCode(c).toLowerCase();var b=R.indexOf(keyPressed);if(typeof b!="undefined"){++V;V=R.indexOf(keyPressed,V);if(V==-1||V==null||L!=keyPressed){V=R.indexOf(keyPressed)}M(V);L=keyPressed;return false}}}function J(){if(V<(C-1)){++V;M(V)}}function P(){if(V>0){--V;M(V)}}function Y(){V=0;M(V)}function X(){V=C-1;M(V)}G.click(function(){F(this)});G.focus(function(){A(this).addClass("newListSelFocus");F(this)});G.blur(function(){A(this).removeClass("newListSelFocus")});A("body").click(function(){G.removeClass("newListSelFocus");D.hide();U()});O.hover(function(b){var a=A(b.target);a.parent().addClass("newListSelHover")},function(b){var a=A(b.target);a.parent().removeClass("newListSelHover")});D.css("left","0").hide()})}})(jQuery);
new function(B){var E=B.separator||"&";var G=true;var A=B.suffix===false?"":"[]";var F=B.prefix===false?false:true;var D=F?B.hash===true?"#":"?":"";var C=B.numbers===false?false:true;jQuery.query=new function(){var K=function(L,M){return L!=undefined&&L!==null&&(!!M?L.constructor==M:true)};var H=function(P){var L,N=/\[([^[]*)\]/g,O=/^([^[]+)(\[.*\])?$/.exec(P),M=O[1],Q=[];while(L=N.exec(O[2])){Q.push(L[1])}return[M,Q]};var I=function(S,O,Q){var M,P=O.shift();if(typeof S!="object"){S=null}if(P===""){if(!S){S=[]}if(K(S,Array)){S.push(O.length==0?Q:I(null,O.slice(0),Q))}else{if(K(S,Object)){var L=0;while(S[L++]!=null){}S[--L]=O.length==0?Q:I(S[L],O.slice(0),Q)}else{S=[];S.push(O.length==0?Q:I(null,O.slice(0),Q))}}}else{if(P&&P.match(/^\s*[0-9]+\s*$/)){var N=parseInt(P,10);if(!S){S=[]}S[N]=O.length==0?Q:I(S[N],O.slice(0),Q)}else{if(P){var N=P.replace(/^\s*|\s*$/g,"");if(!S){S={}}if(K(S,Array)){var R={};for(var L=0;L<S.length;++L){R[L]=S[L]}S=R}S[N]=O.length==0?Q:I(S[N],O.slice(0),Q)}else{return Q}}}return S};var J=function(L){var M=this;M.keys={};if(L.queryObject){jQuery.each(L.get(),function(N,O){M.SET(N,O)})}else{jQuery.each(arguments,function(){var N=""+this;N=N.replace(/^[?#]/,"");N=N.replace(/[;&]$/,"");if(G){N=N.replace(/[+]/g," ")}jQuery.each(N.split(/[&;]/),function(){var O=decodeURIComponent(this.split("=")[0]||"");var P=decodeURIComponent(this.split("=")[1]||"");if(!O){return}if(C){if(/^[+-]?[0-9]+\.[0-9]*$/.test(P)){P=parseFloat(P)}else{if(/^[+-]?[0-9]+$/.test(P)){P=parseInt(P,10)}}}P=(!P&&P!==0)?true:P;if(P!==false&&P!==true&&typeof P!="number"){P=P}M.SET(O,P)})})}return M};J.prototype={queryObject:true,has:function(M,N){var L=this.get(M);return K(L,N)},GET:function(M){if(!K(M)){return this.keys}var P=H(M),L=P[0],O=P[1];var N=this.keys[L];while(N!=null&&O.length!=0){N=N[O.shift()]}return typeof N=="number"?N:N||""},get:function(L){var M=this.GET(L);if(K(M,Object)){return jQuery.extend(true,{},M)}else{if(K(M,Array)){return M.slice(0)}}return M},SET:function(M,R){var L=!K(R)?null:R;var Q=H(M),N=Q[0],P=Q[1];var O=this.keys[N];this.keys[N]=I(O,P.slice(0),L);return this},set:function(L,M){return this.copy().SET(L,M)},REMOVE:function(L){return this.SET(L,null).COMPACT()},remove:function(L){return this.copy().REMOVE(L)},EMPTY:function(){var L=this;jQuery.each(L.keys,function(N,M){delete L.keys[N]});return L},load:function(N){var L=N.replace(/^.*?[#](.+?)(?:\?.+)?$/,"$1");var M=N.replace(/^.*?[?](.+?)(?:#.+)?$/,"$1");return new J(N.length==M.length?"":M,N.length==L.length?"":L)},empty:function(){return this.copy().EMPTY()},copy:function(){return new J(this)},COMPACT:function(){function L(M){var O=typeof M=="object"?K(M,Array)?[]:{}:M;if(typeof M=="object"){function N(Q,R,P){if(K(Q,Array)){Q.push(P)}else{Q[R]=P}}jQuery.each(M,function(Q,P){if(!K(P)){return true}N(O,Q,L(P))})}return O}this.keys=L(this.keys);return this},compact:function(){return this.copy().COMPACT()},toString:function(){var P=0,R=[],L=[],O=this;var N=function(S){S=S+"";if(G){S=S.replace(/ /g,"+")}return encodeURIComponent(S)};var Q=function(T,U,S){if(!K(S)||S===false){return}var V=[N(U)];if(S!==true){V.push("=");V.push(N(S))}T.push(V.join(""))};var M=function(U,S){var T=function(V){return !S||S==""?[V].join(""):[S,"[",V,"]"].join("")};jQuery.each(U,function(W,V){if(typeof V=="object"){M(V,T(W))}else{Q(L,T(W),V)}})};M(this.keys);if(L.length>0){R.push(D)}R.push(L.join(E));return R.join("")}};return new J(location.search,location.hash)}}(jQuery.query||{});
jQuery.cookie=function(H,D,A){if(typeof D!="undefined"){A=A||{};if(D===null){D="";A.expires=-1}var G="";if(A.expires&&(typeof A.expires=="number"||A.expires.toUTCString)){var B;if(typeof A.expires=="number"){B=new Date();B.setTime(B.getTime()+(A.expires*60*60*1000))}else{B=A.expires}G="; expires="+B.toUTCString()}var K=A.path?"; path="+(A.path):"";var C=A.domain?"; domain="+(A.domain):"";var I=A.secure?"; secure":"";document.cookie=[H,"=",encodeURIComponent(D),G,K,C,I].join("")}else{var F=null;if(document.cookie&&document.cookie!=""){var L=document.cookie.split(";");for(var J=0;J<L.length;J++){var E=jQuery.trim(L[J]);if(E.substring(0,H.length+1)==(H+"=")){F=decodeURIComponent(E.substring(H.length+1));break}}}return F}};
