function drawbar(inact,textcol,linkcol,backcol,space)
{
  document.write("<table border=0 bgcolor='"+backcol+"' width='100%' cellpadding='0' cellspacing='0'><tr>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==1) document.write("<a href=\"english/cross_stitch.htm\"><img src=\"pcimg2/bandiera_ing.jpg\" alt=\"English version\" border=\"0\" width=\"55\" height=\"28\"></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");
  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==1) document.write("Home");
  else document.write("<a href='punto_croce.htm'><font color='"+linkcol+"'>Home</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==2) document.write("Catalogo");
  else document.write("<a href='catalogo.htm'><font color='"+linkcol+"'>Catalogo</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==3) document.write("Schemi d'autore");
  else document.write("<a href='mt_schemi.htm'><font color='"+linkcol+"'>Schemi d'autore</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==4) document.write("Disegni d'autore");
  else document.write("<a href='disautore.htm'><font color='"+linkcol+"'>Disegni d'autore</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==5) document.write("Link");
  else document.write("<a href='siti.htm'><font color='"+linkcol+"'>Link</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==6) document.write("Docs");
  else document.write("<a href='document.htm'><font color='"+linkcol+"'>Docs</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("<td nowrap align='center'><font color='"+textcol+"' size='2' face='arial'><strong>");
  if (inact==7) document.write("Ordini");
  else document.write("<a href='ordini.htm'><font color='"+linkcol+"'>Ordini</font></a>");
  for (i=0; i<space; i++) document.write("&nbsp;");
  document.write("</strong></font></td>");

  document.write("</tr></table>");
}


