I haven't actually read through your code because it isn't formatted and i shouldn't be expected to decifer that.
However, have you looked at any of the options provided by the jQuery UI accordion?
If you use the
fillSpace option the accordion will stretch to the height of it's parent allowing you to control the height of the accordion. At that point, if the content of one section doesn't fit within the given height, a scrollbar will be used.
-- Kevin