if (!@$section && $page!="map") {
$rec=mqfa("select min(id) as id from content where page=$page");
$section=$rec["id"];
}
if (@$sid && $page!="map") {
$rec=mqfa("select name$lang as name from feedbacks where id=$sid");
} elseif ($page!="map") {
if (!@$newid) $rec=mqfa("select name$lang as name from content where id=$section");
else $rec=mqfa("select name$lang as name from news where id=$newid");
}
echo $rec["name"];
?>

';
$r=mysql_query("select name$lang as name, txt$lang as txt, id from goals order by id desc");
while ($rec=mysql_fetch_array($r)){
echo '

'.popup("goals/$rec[id].jpg",800,600).'

'.$rec["name"].'

'.$rec["txt"].'

';
}
echo '

';
} elseif ($section==14 || $section==15) {
echo '

';
if ($section==15) {
if (!@$year) {
$rec=mqfa("select max(year) as year from projects");
$year=$rec["year"];
}
$r=mysql_query("select distinct year from projects where year>0 and name$lang<>'' order by year desc");
echo '

';
$r=mysql_query("select id, name$lang as name, desc$lang as descr, date_format(dat,'%d.%m.%Y') as dat from projects where year=$year and name$lang<>'' order by projects.dat desc");
} else {
$r=mysql_query("select id, name$lang as name, desc$lang as descr, date_format(dat,'%d.%m.%Y') as dat from projects where year=0 and name$lang<>'' order by projects.dat desc");
}
echo mysql_error();
while ($rec=mysql_fetch_array($r)){
$rec2=mqfa("select id from pics where project=$rec[id]");
echo '