# Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved. # @license - Copyrighted Commercial Software # Author: J.O.O.M Solutions Co., Ltd # Websites: http://www.joomlart.com - http://www.joomlancers.com # This file may not be redistributed in whole or significant part. -------------------------------------------------------------------------*/ // 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';