expandedTabs 
  |---ul
  |   |--li
  |   |--li
  |
  |---div
  |---div
get the number of div.
The API of jQuery ui 1.8 says length returns integer.(http://api.jqueryui.com/1.8/tabs/#method-length) but some times not. so use jQuery stuff.