//----------------- galeria elozo kovetkezo
	$commvalt = "select id, path, idx from hotel_pic where hotel = $hotelid and type = 'g' order by idx";
	$resuvalt = ( mysql_query( $commvalt ));
	$counter=0;
	while ($pic_valt = mysql_fetch_array( $resuvalt )) {		
		$pic_adat[$counter]=$pic_valt;
		$counter++;
	}
	$aktual=0;
	foreach ($pic_adat as $key => $value){
		if ($pic_adat[$key]['id']==$picid){
			$aktual=$key;
		}
	}
	$min=0;
	$prev=$aktual-1;
	$next=$aktual+1;
	$max=$key;
	$ext = array('-png','-jpg');
//-----------------
	$gal .=getakcio($hotelid,$lang,1);
	$gal .='<div class="cikk">'.$desc.'</div>';
	$temp_pack_count=str_replace("","",onpage_package_count($lang,$hotelid));
	if ($temp_pack_count!=''){
		$gal .='<center>'.$temp_pack_count.'</center><br>';
	}
//	$gal .='<p style="text-align: center;" class="cikk">';
	$gal .='<table border="0" width="100%">
			<tr>';
	$gal .='<td width="25%" valign="middle" align="right">';
	if ($prev>=0){
		// van elozo kep
		$htmprev = str_replace($ext,'',$pic_adat[$prev]['path']);
		$htmprev.='.'.$code[0].'.html';
		$gal .='<a href="'.$htmprev.'"><img src="/d/images/arrow-left.png" alt="<-" title="<-"></a>';
	}
	// $gal .='</td>';

	$gal .='<td align="center">';
	$gal .='<a href="/'.$hurl.'/index.'.$code[0].'.html" title="'.$name.'.">
	<img class="balkep2" src="/hotel_pic/'.$hint.'/'.$path.'" alt="'.$alt.' - '.$name.'" title="'.$alt.' - '.$name.'">	
	</a>';
	$gal .='</td>';

	$gal .='<td width="25%" valign="middle" align="left">';
	if ($next<=$max){
		// van kovetkezo
		$htmnext = str_replace($ext,'',$pic_adat[$next]['path']);
		$htmnext.='.'.$code[0].'.html';
		$gal .='<a href="'.$htmnext.'"><img src="/d/images/arrow-right.png" alt="->" title="->"></a>';
	}
	$gal .='</td>';
	$gal .='</tr>';
	$gal .='</table>';