-------------------------------------------------------------------------*/ // no direct access defined('_JEXEC') or die('Restricted access'); include_once dirname(__FILE__) . DS . '/ja_templatetools_1.5.php'; $mainframe =& JFactory::getApplication('site'); if (defined('_DEMO_MODE_')) { $tmpTools = new JA_Tools($this, array(JA_TOOL_MENU, JA_TOOL_COLOR)); } else { $tmpTools = new JA_Tools($this); } $tmpTools->setScreenSizes(array('wide', 'narrow')); $tmpTools->setColorThemes(array('default', 'cyan', 'blue', 'red')); # Auto Collapse Divs Functions ########## $ja_left = $this->countModules('left'); $ja_right = $this->countModules('right'); if ($tmpTools->isContentEdit()) { $ja_right = $ja_left = 0; } if ($ja_left && $ja_right) { $divid = ''; } elseif ($ja_left) { $divid = '-fr'; } elseif ($ja_right) { $divid = '-fl'; } else { $divid = '-f'; } //Main navigation $ja_menutype = $tmpTools->getParam(JA_TOOL_MENU); $jamenu = null; if ($ja_menutype != 'none') {