<div style="margin: 0px -2px 0px -2px;">


<?if(isset($images) && isset($folder)):?>
	<div style="margin: 0px 20px 0px 15px;">
	<div class="gal-inner">
		<div class="gal-cim2">
			<button onclick="javascript:history.go(-1);" class="vissza"><?=lang('back')?></button>
			<?=$leiras->cim?>
		</div>
		<div class="clear"></div>
		<div><?=$leiras->leiras?></div>
	</div>
	
	
	
	<?foreach($images as $i):?>
		<div class="outer">
		<div class="container">
	    <a href="/public/gallery/<?=$folder?>/<?=$i?>" class="fancy" title="<?=$i?>" rel="group">
			<img src="/public/gallery/<?=$folder?>/thumbs/<?=$i?>" alt="<?=$i?>" style="max-width: 150px; max-height: 113px;" />
		</a>
		</div>
		</div>
	<?endforeach;?>
	
	
	</div>
<?else:?>

	<div class="headerkeret">
	<div class="galeriaheader1top"></div>
	<div class="galeriaheader1">
		<div class="gal-cim2 simacim"><?=lang('gal_photo_text11')?></div>
		<?=lang('gal_photo_text12')?>
	</div>
	<div class="galeriaheader1bottom"></div>
	</div>

	<div class="headerkeret">
	<div class="galeriaheader2top"></div>
	<div class="galeriaheader2" align="right">
		
	</div>
	<div class="galeriaheader2bottom"></div>
	</div>
	
	
	<div class="clear"></div>
	
	<?foreach($galeriak as $galeria):?>
		<?=$this->mgallery->image_gallery_row($galeria->mappa,$galeria->cim,$galeria->leiras,$galeria->kezdo, $galeria->link,$galeria->uj)?>
	<?endforeach;?>
	
	
	
<?endif;?>
	
</div>
