resources.add(addedResourcesCount, { 
resources.add(addedResourcesCount, { 
function sitetree_link_library() {        var flowHelper = cocoon.getComponent("org.apache.lenya.cms.cocoon.flow.FlowHelper");    var documentHelper = flowHelper.getDocumentHelper(cocoon);    var pageEnvelope = flowHelper.getPageEnvelope(cocoon);    var areaName = pageEnvelope.getArea();    var area = pageEnvelope.getPublication().getArea(areaName);    var siteTree = area.getSite();    var allNodes = siteTree.preOrder();    var resources = new ArrayList(allNodes.length - 1);    var addedResourcesCount = 0;        for(var i=1; i < allNodes.length; i++) {    	var languageLabel = allNodes[i].getLink(pageEnvelope.getDocument().getLanguage())		/* If the current sitree node does not exist in the displayed document's language		 * Continue with next node. This is a quick fix for bug #32808.		 * Next step would be to offer all links to the available languages.		 * by roku 		 */		if (languageLabel == null) continue;		        resources.add(addedResourcesCount, {                "url" : documentHelper.getDocumentUrl(allNodes[i].getUuid(), pageEnvelope.getDocument().getArea(), null),                "label" : languageLabel.getLabel(),                "id" : allNodes[i].getName(),                "fullid" : allNodes[i].getPath(),                "language" : pageEnvelope.getDocument().getLanguage()});        addedResourcesCount++;    }        cocoon.sendPage("sitetree_link_library_template", {"resources" : resources});}
791	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/791/2c5bd2793886eb4a69660d1b627e77ac449d4926/kupu.js/clean/src/modules/kupu/kupu.js