function WriteListNJ(strSource)
//---------------------------------------------------------------------------
{
var cnt;
var x;
var xmlDoc;
var cntall;
var imgId;
var imgOffset;
var xmlelem;
var SEPARATOR;
//var is_ie;
  
 if (navigator.product != 'Gecko') 
{
  //is_ie=1;
  SEPARATOR="&nbsp";
  xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async="false";
 }
else
{
  //is_ie=0; 
  SEPARATOR=" ";
  xmlDoc = document.implementation.createDocument("", "", null);
  xmlDoc.async=false;
}
 xmlDoc.load(strSource);
 //cnt=0;
 //cntall=xmlDoc.documentElement.childNodes.length;
 node_list = xmlDoc.getElementsByTagName("property");
 
//try {  
//document.write(node_list[2].getElementsByTagName("nazevchar")[0].childNodes[0].nodeValue);
//}catch(e){}
  
//index
for (x = 0; x < node_list.length; x++)
 {
try {
//document.write(node_list[x].getElementsByTagName("nazevchar")[0].childNodes[0].nodeValue);
//document.write("<BR>");  
//-- link item --


if(node_list[x].nodeType==1)
{

 item_text = node_list[x].getElementsByTagName("nazevchar")[0].childNodes[0].nodeValue
 item_link = node_list[x].getElementsByTagName("code")[0].childNodes[0].nodeValue
 document.write("<H4><img src='images/ball.gif'><A href=#" + item_link + ">" + SEPARATOR + item_text + "</H4></A>");  
}
 }catch(e){}
 }
 
 
 
 //list of items
for (x = 0; x < node_list.length; x++) {

 item_popis = node_list[x].getElementsByTagName("popis")[0].childNodes[0].nodeValue
 item_title = node_list[x].getElementsByTagName("nazevchar")[0].childNodes[0].nodeValue
 item_link = node_list[x].getElementsByTagName("code")[0].childNodes[0].nodeValue
 
 document.write("<P><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100%>"); 
//-- title--
 document.write("<TR bgcolor=green height=1px><TD colspan=2></TD></TR>");
 document.write("<TR bgcolor=Honeydew>");  
 document.write("<TD valign=bottom colspan=2><A name=" + item_link + "><H4><div class=howtocap><img src='images/ball.gif'>" + SEPARATOR + item_title + "</H4></div></A></TD>");  
 document.write("</TR>"); 
 document.write("<TR bgcolor=green height=2px><TD colspan=2></TD></TR>"); 
//-- text --
 document.write("<TR>");  
 document.write("<TD valign=top>" + SEPARATOR + "</TD>");
 document.write("<TD>" + item_popis + "</TD>");  
 document.write("</TR>");
//-- separator black line --
 document.write("<TR><TD colspan=2 height=1px></TD></TR>");   
//-- eot --
 document.write("</TABLE>");

}//for
 
 
 
}

//---------------------------------------------------------------------------
function WriteListNJ_Ex(strSource)
//---------------------------------------------------------------------------
{
var cnt;
var x;
var xmlDoc;
var cntall;
var imgId;
var imgOffset;
var xmlelem;
var is_ie;

if (navigator.product != 'Gecko') 
{
  is_ie=1;
  xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async="false";
 }
else
{
 
  is_ie=0; 
  xmlDoc = document.implementation.createDocument("", "", null)
  xmlDoc.async=false;
}
xmlDoc.load(strSource);

cnt=0;
cntall=xmlDoc.documentElement.childNodes.length;



//contens
for (x = 0; x < cntall; x++) {
xmlelem = xmlDoc.documentElement.childNodes(x);
//-- link item --
 document.write("<H4><img src='images/ball.gif'><A href=#" + xmlelem.childNodes.item(3).text + ">&nbsp" + xmlelem.childNodes.item(0).text + "</H4></A>");  
}//for

//list of items
for (x = 0; x < cntall; x++) {
xmlelem = xmlDoc.documentElement.childNodes(x);
document.write("<P><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 width=100%>"); 
//-- title--
 document.write("<TR bgcolor=green height=1px><TD colspan=2></TD></TR>");
 document.write("<TR bgcolor=Honeydew>");  
 document.write("<TD valign=bottom colspan=2><A name=" + xmlelem.childNodes.item(3).text + "><H4><div class=howtocap><img src='images/ball.gif'>&nbsp" + xmlelem.childNodes.item(0).text + "</H4></div></A></TD>");  
 document.write("</TR>"); 
 document.write("<TR bgcolor=green height=1px><TD colspan=2></TD></TR>"); 
//-- text --
 document.write("<TR>");  
 document.write("<TD valign=top>&nbsp&nbsp</TD>");
 document.write("<TD>" + xmlelem.childNodes.item(1).text + "</TD>");  
 document.write("</TR>");
//-- separator black line --
 document.write("<TR><TD colspan=2 height=1px></TD></TR>");   
//-- eot --
 document.write("</TABLE>");

}//for

}//function

