function menuname() { $id = getCurrentMenuIndex(); $database =& JFactory::getDBO(); }
} # Auto Collapse Divs Functions ########## $ja_left = mosCountModules('left') || mosCountModules('user4'); $ja_right = mosCountModules('right'); if ($ja_left && $ja_right) { $divid = ''; } elseif ($ja_left) { $divid = '-fr'; } elseif ($ja_right) { $divid = '-fl'; } else { $divid = '-f'; } $ja_headerimg = "sh06"; if ($ja_header_type == 1) { $ja_headerimg = $ja_header_images[getCurrentMenuIndex() % count($ja_header_images)]; if (!is_file("{$ja_template_absolute_path}/images/headers/{$ja_headerimg}-bg1.jpg")) { $ja_headerimg = $ja_header_images[0]; } } if ($ja_header_type == 2) { $ja_headerimg = $ja_header_images[rand(0, count($ja_header_images) - 1)]; if (!is_file("{$ja_template_absolute_path}/images/headers/{$ja_headerimg}-bg1.jpg")) { $ja_headerimg = $ja_header_images[0]; } } $ja_tool_left = 0; switch ($ja_tool) { case 0: $ja_tool_left = 0; break;