rem: if (node.children.item(0).tagName == "IMG") 
add: if (node.childNodes[0].tagName == "IMG") 
context: function Toggle (node)//Toggle node{		if (node.nextSibling){		// Unfold the branch if it isn't visible		if (node.nextSibling.nextSibling != null)		{			var divNode = node.nextSibling.nextSibling;			if (divNode != null && divNode.nodeName == "DIV")			{				if (divNode.style.display == 'none')				{					// Change the image (if there is an image)					if (node.children.length > 0)					{						if (node.children.item(0).tagName == "IMG")						{							node.children.item(0).src = "icon_toc_folder_open.gif";						}					}					node.nextSibling.nextSibling.style.display = '';				}				// Collapse the branch if it IS visible				else				{					// Change the image (if there is an image)					if (node.children.length > 0)					{						if (node.children.item(0).tagName == "IMG")						{							node.children.item(0).src = "icon_toc_folder_closed.gif";						}					}					divNode.style.display = 'none';				}			}		}	}}
meta: 6502	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6502/7b43b9ccd24890b6b1ab2563a9fdd2d58ec32e6f/toc.js/buggy/Src/tools/doc_builder/resources/templates/toc.js