At client-side, you may use the expandAll() and collapseAll functions to make KoolSlideMenu expand/collapse all items.
span style="color: #ff0000;">"/KoolSlideMenu/koolslidemenu.php""ksm");
$ksm->scriptFolder = $KoolControlsFolder."/KoolSlideMenu";
$ksm->styleFolder = $KoolControlsFolder."KoolSlideMenu/styles/apple";
$ksm->addParent("root","company","Company");
$ksm->addChild("company","about","About Us");
$ksm->addChild("company","news","Company News");
$ksm->addChild("company","contact","Contact us");
$ksm->addParent("root","products","Products");
$ksm->addChild("products","koolajax","KoolAjax");
$ksm->addChild("products","kooltreeview","KoolTreeView");
$ksm->addChild("products","koolslidemenu","KoolSlideMenu");
$ksm->addParent("root","services","Services");
$ksm->addChild("services","outsourcing","Out-sourcing");
$ksm->addChild("services","freelancer","Free-lancer");
$ksm->width="200px""form1" method="post">
<style type="text/css"#DFF3FF;
#C6E1F2;
text-align:center;
}
.clear
{
clear:both;
}
#eventlog
"box""box focus">
<input type="button" value="Expand all" onclick="ksm.expandAll();" />
<input type="button" value="Collapse all" onclick="ksm.collapseAll();""clear"