/* replace the following function in functions.inc.php with the code given below */

function display_thumbnails($album, $cat, $page, $thumbcols, $thumbrows, $display_tabs)
{
        global $CONFIG, $AUTHORIZED;
        global $album_date_fmt, $lang_display_thumbnails, $lang_errors, $lang_byte_units;

        $thumb_per_page = $thumbcols * $thumbrows;
        $lower_limit = ($page-1) * $thumb_per_page;

        $pic_data = get_pic_data($album, $thumb_count, $album_name, $lower_limit, $thumb_per_page);

        $total_pages = ceil($thumb_count / $thumb_per_page);

        $i = 0;
        if (count($pic_data) > 0) {
                foreach ($pic_data as $key => $row) {
                        $i++;

                        $pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
                        $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
                        $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
                        $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);
												$pic_title2=str_replace("\n","<br />",$pic_title);
                        $pic_url =  get_pic_url($row, 'thumb');
                        if (!is_image($row['filename'])) {
                                $image_info = getimagesize($pic_url);
                                $row['pwidth'] = $image_info[0];
                                $row['pheight'] = $image_info[1];
                        }
                        
                        $onmouse="Tip('<div align=\\'center\\'><img src=\\'".$pic_url."\\' height=\\'".$row['pheight']."\\' width=\\'".$row['width']."\\'> </div>')";
                        $onmousetxt="Tip('$pic_title2')"; // spter mehr Infos, z.B. Bewertungen')
                        
                        $image_size = compute_img_size($row['pwidth'], $row['pheight'], $CONFIG['thumb_width']);
                        $onmouse2="Tip('<div align=\\'center\\'><img src=\\'".str_replace("thumb_","",$pic_url)."\\' height=\\'".$row['pheight']."\\' width=\\'".$row['pwidth']."\\'> </div>')";
                      
                        $thumb_list[$i]['pos'] = $key < 0 ? $key : $i - 1 + $lower_limit;
                        $thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\">";
                        $thumb_list[$i]['caption'] = $row['caption_text'];
                        $thumb_list[$i]['admin_menu'] = '';
                        $thumb_list[$i]['aid'] = $row['aid'];
                        $thumb_list[$i]['onmouse1'] = $onmouse;
                        $thumb_list[$i]['onmouse2'] = $onmousetxt;
                        $thumb_list[$i]['onmouse3'] = $onmouse2;
                }
                theme_display_thumbnails($thumb_list, $thumb_count, $album_name, $album, $cat, $page, $total_pages, is_numeric($album), $display_tabs);
        } else {
                theme_no_img_to_display($album_name);
        }
}


/* Additionally search for the following code in functions.inc.php : */

return theme_display_film_strip($thumb_list, $thumb_count, $album_name, $album, $cat, $pos, is_numeric($album));

/* two lines above that line put the following code before  } */

$thumb_list[$i]['pic_url'] = $pic_url;

