$q_menu = mysql_query("SELECT * FROM `menu` ORDER BY `pos` ASC");
while ($post_menu = mysql_fetch_assoc($q_menu))
{
if ($post_menu['type'] == 'link')
echo '
';
if ($post_menu['type'] == 'link')
echo ' ';
if ($post_menu['type'] == 'link')
echo '';
else
echo '