update to theme template.php to move variables to preprocess_page to speed things up. Adding code for collapse/expand all buttons and styles.