<!-- Wyswietla menu glowne strony. W parametrze "selnumber" nalezy podac numer elementu menu -->
<!-- ktora jest aktualnie wybrana (numeracja od 1) -->
function main_menu(selnumber)
{
  document.write("<table bgcolor='#B4C8F0' width='800' height=25 align='center' border=0 cellpadding=0 cellspacing=0>");
  document.write("<tr>");
  document.write("<td> &nbsp </td>");
  document.write("<td>");
  document.write("<a href='../english/information.html'>");
  document.write("<img src='../shared/graph/english.jpg' border=0 alt='English version'> ");
  document.write("</a>");
  document.write("</td>");
  document.write("<td>");
  document.write("<table align='center' border=0 cellpadding=0 cellspacing=0>");
  document.write("<tr>");
  //Informacje.
  document.write("<td>");
  main_menu_item('Informacje', (selnumber == 1), 'information.html');
  document.write("</td>");
  empty_cell();
  //Download.
  document.write("<td>");
  main_menu_item('Download', (selnumber == 2), 'download.html');
  document.write("</td>");
  empty_cell();
  //Inne programy.
  document.write("<td>");
  main_menu_item('Kodeki / programy', (selnumber == 3), 'other_programs.html');
  document.write("</td>");
  empty_cell();
  //FAQ
  document.write("<td>");
  main_menu_item('FAQ', (selnumber == 7), 'faq.html');
  document.write("</td>");
  empty_cell();
  //Linki.
  document.write("<td>");
  main_menu_item('Linki', (selnumber == 4), 'links.html');
  document.write("</td>");
  empty_cell();
  //Historia.
  document.write("<td>");
  main_menu_item('Historia', (selnumber == 5), 'history.html');
  document.write("</td>");
  empty_cell();
  //Podziekowania.
  document.write("<td>");
  main_menu_item('Podziękowania', (selnumber == 6), 'thanks.html');
  document.write("</td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("</td>");
  document.write("</tr>");
  document.write("</table>");
}

