add: /*alert("mapHistoryIndex="+mapHistoryIndex); for(ind in mapHistory){  alert(ind+" "+mapHistory[ind]); }*/ if(mapHistory.length>mapHistoryIndex+1){ var next = mapHistory[mapHistoryIndex+1]; var nextName = mapHistoryName[mapHistoryIndex+1];  var textContent = menuSvgDocument.createTextNode(nextName); var nextText = menuSvgDocument.getElementById("nextMapName"); if(nextText.getFirstChild()) nextText.removeChild(nextText.getFirstChild()); nextText.appendChild(textContent); var nextAction = menuSvgDocument.getElementById("nextAction"); nextAction.setAttribute("onclick","openMap("+next+");"); menuSvgDocument.getElementById("nextGroup").getStyle().setProperty('display', 'inline'); }else{ menuSvgDocument.getElementById("nextGroup").getStyle().setProperty('display', 'none'); } if(mapHistoryIndex>0){ var prev = mapHistory[mapHistoryIndex-1]; var prevName = mapHistoryName[mapHistoryIndex-1];  var textContent = menuSvgDocument.createTextNode(prevName); var prevText = menuSvgDocument.getElementById("prevMapName"); if(prevText.getFirstChild()) prevText.removeChild(prevText.getFirstChild()); prevText.appendChild(textContent); var prevAction = menuSvgDocument.getElementById("prevAction"); prevAction.setAttribute("onclick","openMap("+prev+");"); menuSvgDocument.getElementById("prevGroup").getStyle().setProperty('display', 'inline'); }else{ menuSvgDocument.getElementById("prevGroup").getStyle().setProperty('display', 'none'); }  
context: function viewMapInfo(){	var mapInfo= menuSvgDocument.getElementById("MapInfo");	mapInfo.appendChild(parseXML("<tspan x=\"3\" dy=\"30\" id=\"mapName\"  font-size=\"9\" >Name: "+currentMapName+" </tspan>",menuSvgDocument));	mapInfo.appendChild(parseXML("<tspan x=\"3\" dy=\"20\" id=\"mapOwner\" font-size=\"9\">Owner:  "+currentMapOwner+"</tspan>",menuSvgDocument));	mapInfo.appendChild(parseXML("<tspan x=\"3\" dy=\"20\" id=\"mapUserLast\" font-size=\"9\">User last modifies: "+currentMapUserlast+"</tspan>",menuSvgDocument));	mapInfo.appendChild(parseXML("<tspan x=\"3\" dy=\"20\" id=\"mapCreateTime\" font-size=\"9\">Create time: "+currentMapCreatetime+"</tspan>",menuSvgDocument));	mapInfo.appendChild(parseXML("<tspan x=\"3\" dy=\"20\" id=\"mapLastModTime\" font-size=\"9\">Last modified time: "+currentMapLastmodtime+"</tspan>",menuSvgDocument));	menuSvgDocument.getElementById("MapInfo").getStyle().setProperty('display', 'inline');}
meta: 2281	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2281/069d0e7b3a96289b7c94aecc6c8a14fee3498895/menu.js/clean/opennms-webapp/src/main/webapp/map/menu.js