var HTMLStr;
var x1 = 0; 
var aWiersz1  = new Array(6);

function drawMenu(nr)
{
   // s = windows.location.search
   // x1 = szerokosc pierwszego wiersza 
	x1 = 670; //544
   // z - ilosc elementow w wierszu 
	
	HTMLStr = "<div> " +
    "<table width=" + x1 + " border='0' cellspacing='0' cellpadding='0' nowrap bordercolor='White'> ";
    aWiersz1 = [75,87,113,154,92,66];
	m_pocz();
	m_pas(aWiersz1[0],"Home Page","home.htm",1, nr);
	m_pas(aWiersz1[1],"New activities","news.htm",2, nr);
	m_pas(aWiersz1[2],"Forum information","forum.htm",3, nr); 
	m_pas(aWiersz1[3],"Conclusions of the Forum","conclusions.htm",4, nr);	
	m_pas(aWiersz1[4],"FORUM BOOK","book.htm",5, nr);
	m_pas(aWiersz1[5],"Site index","map.htm",6, nr);

	m_kon();
		
    HTMLStr += "</table> ";
	
	document.write(HTMLStr);
}

function m_pocz()
{
 HTMLStr += 
 "<tr>" +
 "<td width=60><img src='images/1-1.gif' width=60 height=1 border=0></td>" +
 "<td width=1 height=15><img src='images/1-1.gif' width=1 height=15 border=0></td>" ;
}

function m_pas(szer, tekst, strona, kol, nr)
{
 if (kol != nr && strona != "")
 {
  HTMLStr += 
  "<td width=" + szer + " nowrap class='nav'>&nbsp;&nbsp;" +
  "<a href='" + strona + "'>" + tekst + "</a></td>";
 }
 else
 {
  if (kol == nr)
  { HTMLStr += 
    "<td width=" + szer + " nowrap class='nav1'>&nbsp;&nbsp;" +
    "" + tekst + "</td>";
   }
  else
  {
   HTMLStr += 
    "<td width=" + szer + " nowrap class='nav'>&nbsp;&nbsp;" +
    "" + tekst + "</td>";
  } 	
 } 
 if (kol != 6 ) {
 HTMLStr += 
 "<td width=1 height=15 ><img src='images/line.gif' width=1 height=15 border=0></td>"; }
}	

function m_kon()
{
 HTMLStr += "<td width=59><img src='images/1-1.gif' width=59 height=1 border=0></td></tr>";
}



