(function($){$.fn.expandCollapseAll=function(_1){var _2=$.extend({},$.fn.expandCollapseAll.defaults,_1);return this.each(function(){$this=$(this);var o=$.meta?$.extend({},_2,$this.data()):_2;_3(o,$(this));});};function _4(_5){if(_5){var _6=_5.split("/");return _5.replace(/^http:\/\/[\w\.]+/,"");}else{return false;}};function _3(o,_7){var _8=false;var _9=document.location.href?document.location.href:document.location;var _a=_4(_9);if(_a){$kids=_7.next("ul").find("li a");$.each($kids,function(){$kid=$(this);var _b=_4($kid.attr("href"));if(_a==_b){_8=true;$ancestors=$kid.parents("ul");$.each($ancestors,function(){$ancestor=$(this);if($ancestor.attr("id")==""){$span=$ancestor.prev("span");$span.addClass(o.currGroupClass);$kid.addClass(o.currPageClass);}});}});}if(!_8){_7.next("ul").hide();_7.mouseover(function(){$(this).addClass(o.mouseoverClass);});_7.mouseout(function(){$(this).removeClass(o.mouseoverClass);});_7.click(function(){$(this).toggleClass(o.expandedClass);$(this).next("ul").toggle(o.toggleSpeed);});}};$.fn.expandCollapseAll.defaults={mouseoverClass:"mouseover",expandedClass:"expanded",currGroupClass:"on",currPageClass:"underline",toggleSpeed:"fast"};})(jQuery);
