// (function($) { $.fn.fadeIn = function(speed, callback) { return this.animate({opacity: 'show'}, speed, function() { if ( $.browser.msie ) { this.style.removeAttribute('filter'); } if ( $.isFunction(callback) ) { callback.call(this); } }); }; $.fn.fadeOut = function(speed, callback) { return this.animate({opacity: 'hide'}, speed, function() { if ( $.browser.msie ) { this.style.removeAttribute('filter'); } if ( $.isFunction(callback) ) { callback.call(this); } }); }; $.fn.fadeTo = function(speed, to, callback) { return this.animate({opacity: to}, speed, function() { if ( to == 1 && $.browser.msie ) { this.style.removeAttribute('filter'); } if ( $.isFunction(callback) ) { callback.call(this); } }); }; })(jQuery); /* handle expand/collapse of category intro sections */ //hide the sections initially jQuery(".cat_intro_body").hide(); //handle clicks on the header jQuery(".cat_intro_head").click(function() { jQuery(".cat_intro_body").slideToggle(600); jQuery("#cat_intro_head_sym").text("-"); }); /* handle expand/collapse of main text sections */ //hide the sections initially jQuery(".collapsed").hide(); //handle clicks on the header jQuery(".collapser").click(function() { /* jQuery(this).nextAll('.collapsed:first').slideToggle(600); */ jQuery(this).next('.collapsed').slideToggle(600); return false; }); }); // ]]>