// expand collapse hack if ($BrowserDOM==True) { if ((!isset($z)) or ($depth==1)) { $z=0; } else { $z++; }