(function(A){A.fn.accordion=function(B){var F={node:"div.node",heading:"h2",content:"div.content",open:"open",speed:"normal",update:[],forceClose:true};var D=A.extend(F,B);return A(this).each(function(){var I=A(D.node,this);var H=null;I.each(function(){var J=this;if(A(this).hasClass(D.open)&&!H){H=J;G(J,true)}else{A(this).removeClass(D.open);A(D.content,this).hide();G(J,false)}A(D.heading,this).css({cursor:"pointer"}).click(function(){if(typeof trackAccordianClick=="function"){trackAccordianClick(A(D.heading+" a",J).text(),A(D.heading+" h2",J).text())}if(H&&H!=J&&D.forceClose){E(H,function(){if(C(J)){H=J}})}else{if(C(J)){H=J;G(J,true)}}});A(this).find("a").css({display:"block"})})});function E(H,I){A(H).removeClass(D.open);A("*",H).css({position:"static"});A("div.infoPoint00",H).hide();A(D.content,H).slideUp(D.speed,I);G(H,false)}function G(I,J){for(var H=0;H<D.update.length;H++){A(D.update[H].selector,I).html(D.update[H].text[J?0:1]).click(function(K){K.preventDefault()})}}function C(I){A(I).toggleClass(D.open);A("*",I).css({position:"static"});A("div.infoPoint00",I).hide();A(D.content,I).slideToggle(D.speed,function(){A("*",I).css({position:""})});var H=A(I).hasClass(D.open);G(I,H);return H}}})(jQuery);
