
jQuery(document).ready(function() {
//jQuery(function() {
  jQuery("#tree").treeview({
    collapsed: true,
    animated: "fast",
    persist: "cookie",
    //persist: "location"
    unique: true
  });
//      });
  jQuery("dd:not(:first)").hide();
  jQuery("dt a").click(function() {
    if (jQuery(this).parent().next().is(":hidden")) {
      jQuery("dd:visible").slideUp();
      jQuery(this).parent().next().slideDown();
    }
    return false;
  });

});

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}
animatedcollapse.addDiv('login','hide=1,fade=0')
animatedcollapse.addDiv('forgot','hide=0,fade=0')
animatedcollapse.init()
