title: "settings" is null or not an object (jquery ui datepicker)
body: <p>I've got a form that gets shown via a simplemodal popup and one of the form elements is a jquery ui datepicker. If you open the form, choose a date, close the modal, then open the form again and try and choose a date I get a javascript error (IE8) that's in the title of the post. I haven't tested it on other browsers as I am in work at the moment, but I need this working on IE8.</p>
  
  <p>An example of the code that throws this error can be found at <a href="http://jsbin.com/uzewi4/10" rel="nofollow">http://jsbin.com/uzewi4/10</a></p>
  
  <p>I'm not very good at javascript, but I'm assuming simplemodal is destroying or doing something weird when you close the modal, which causes the datepicker to break. Any ideas how I can fix this?</p>