$correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($value->extw, $value->exth, $this->tmpl['picasa_correct_width_m'], $this->tmpl['picasa_correct_height_m']);
            }
            ?>
<div class="pg-cv-box pg-cv-box-stat">
				<div class="pg-cv-box-img pg-box1">
					<div class="pg-box2">
						<div class="pg-box3">					
							<a class="<?php 
            echo $value->button->methodname;
            ?>
"<?php 
            echo ' href="' . $value->link . '"';
            //Correction (to not be in conflict - statistics vs. standard images)
            // e.g. shadowbox shadowbox[PhocaGallery] --> shadowbox[PhocaGallery3]
            $options4 = str_replace('[PhocaGallery]', '[PhocaGallery4]', $value->button->options);
            echo PhocaGalleryRenderFront::renderAAttributeStat($this->tmpl['detail_window'], $options4, '', $this->tmpl['highslideonclick'], $this->tmpl['highslideonclick2'], '', $this->category->alias, 'la');
            echo ' >';
            if ($extImage) {
                echo JHtml::_('image', $value->linkthumbnailpath, $value->altvalue, array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height'], 'class' => 'pg-image'));
            } else {
                echo JHtml::_('image', $value->linkthumbnailpath, $value->altvalue, array('class' => 'pg-image'));
            }
            ?>
</a>
						</div>
					</div>
				</div><?php 
            // subfolder
            if ($value->type == 1) {
                if ($value->display_name == 1 || $value->display_name == 2) {
                    echo '<div class="pg-name">' . PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...') . '</div>';