public static function menuBox($heading, $contents) { self::$table_data_parameters = 'class="menuBoxHeading"'; if (isset($heading[0]['link'])) { self::$table_data_parameters .= ' onmouseover="this.style.cursor=\'pointer\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"'; $heading[0]['text'] = ' <a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a> '; } else { $heading[0]['text'] = ' ' . $heading[0]['text'] . ' '; } self::$heading = parent::constructor($heading); self::$table_data_parameters = 'class="menuBoxContent"'; self::$contents = parent::constructor($contents); return self::$heading . self::$contents; }