list($width, $height, $type, $attr) = getimagesize($imgIcon);
                    list($width, $height) = CLimage::getJPG_NewSize($CONF['photos']['mid']['max_width'], $CONF['photos']['mid']['max_height'], $width, $height);
                    $imgStr = "<img src='{$imgIconRel}'  onmouseover=\"trailOn('{$imgIconRel}','','','','','','1','{$width}','{$height}','','.');\" onmouseout=\"hidetrail();\"  class=\"photos\" border=\"0\">";
                } else {
                    $imgStr = "&nbsp;";
                }
            }
            $imagesHtml .= "<a class='shadowBox imgBox' href='{$imgBigRel}' target=_blank>{$imgStr}</a>";
        }
    }
}
// add support for google maps
// see the config options
$localMap = "";
$googleMap = "";
if (is_file($flight->getMapFilename())) {
    $localMap = "<img src='" . $flight->getMapRelPath() . "' border=0>";
}
if ($CONF_google_maps_track == 1 && $PREFS->googleMaps) {
    $flight->createEncodedPolyline();
    if ($CONF_google_maps_api_key) {
        if ($deletedFlights) {
            $deletedArg = '&deleted=1';
        } else {
            $deletedArg = '';
        }
        $googleMap = "<div id='gmaps_div' style='display:block; width:100%; height:610px;'><iframe id='gmaps_iframe' align='left'\n\t\t  SRC='http://" . $_SERVER['SERVER_NAME'] . getRelMainDir() . "EXT_google_maps_track_v3.php?id=" . $flight->flightID . $deletedArg . "' " . " TITLE='Google Map' width='100%' height='100%'\n\t\t  scrolling='no' frameborder='0'>\n\t\tSorry. If you're seeing this, your browser doesn't support IFRAMEs.\tYou should upgrade to a more current browser.\n\t\t</iframe></div>";
    }
    if ($CONF_google_maps_track_only == 1) {
        // use only google maps,  discard the local map server
        $localMap = '';