(function($) {

$.fn.fadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
$.fn.slideFadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
};
})(jQuery);
$(function() {
	$('#content div.demo .collapse').hide(); 	   
    $('#content h4.expand').wrapInner('<a style="display:block" href="#" title="expand/collapse"></a>');
   
    //demo 1 - div.demo:eq(0) - Accordion slide effect with first section initially expanded
       $('#content div.demo:eq(0) h4.expand').click(function() {
        $(this).toggleClass('open').siblings().removeClass('open').end()
        .next('div.collapse').slideFadeToggle('slow').siblings('div.collapse:visible').slideFadeToggle('slow');
        return false;
    
     });

});
