In order to have jQuery.expander working in WordPress put the plugin code inside the  "$(document).ready(function() " part.