countModules('left') || ($tmpTools->getParam(JA_TOOL_MENU) == 1); $ja_right = $this->countModules('right'); if ( $ja_left && $ja_right ) { $divid = ''; } elseif ( $ja_left ) { $divid = '-fr'; } elseif ( $ja_right ) { $divid = '-fl'; } else { $divid = '-f'; } $curidx = $tmpTools->getCurrentMenuIndex(); //if ($curidx) $curidx--; //Calculate the width of template $tmpWidth = ''; $tmpWrapMin = '100%'; switch ($tmpTools->getParam(JA_TOOL_SCREEN)){ case 'auto': $tmpWidth = '97%'; break; case 'fluid': $tmpWidth = intval($tmpTools->getParam('ja_screen_width')); $tmpWidth = $tmpWidth ? $tmpWidth.'%' : '90%'; break; case 'fix': $tmpWidth = intval($tmpTools->getParam('ja_screen_width')); $tmpWrapMin = $tmpWidth ? ($tmpWidth+1).'px' : '751px'; $tmpWidth = $tmpWidth ? $tmpWidth.'px' : '750px'; break; default: $tmpWidth = intval($tmpTools->getParam(JA_TOOL_SCREEN)); $tmpWrapMin = $tmpWidth ? ($tmpWidth+1).'px' : '751px'; $tmpWidth = $tmpWidth ? $tmpWidth.'px' : '750px'; break; } ?>