

jQuery.fn.faq = function(optionalOptions){
    return this.each(
        function() {
            var id = $(this).attr('id');
            
            var question = $(this).find('.question');
            var answer   = question.next('.answer');
            
            answer.css('display', 'none');
            
            question.wrap('<a href="#" onclick="$(\'#' + id + ' .answer\').slideUp(\'fast\'); $(this).next(\'.answer\').slideDown(\'fast\'); return false;"></a>');
            
            // $(this).find('a').click(
            //                 function() {                    
            //                     $('#' + id + ' .answer').hide();
            //                     
            //                     $(this).next('.answer').show();
            //                     
            //                     return false;
            //                 }
            //             );    
        }
    );
}