rem:  document.getElementById('mapsidepanel').className = 'mapsidepanel';  for ( var i=0; i<this.markers.length; i++ ){  var theNewLink = document.createElement('a'); theNewLink.href = "javascript: BitMap.MapData[0].Map.markers["+i+"].gmarker.openInfoWindowHtml(BitMap.MapData[0].Map.markers["+i+"].gmarker.my_html);"; theNewLink.innerHTML = this.markers[i].title;   var BR = document.createElement('br');  document.getElementById('mapsidepanel').appendChild(theNewLink); document.getElementById('mapsidepanel').appendChild(BR); 
add:   var x = 0;  var MarkerSets = BitMap.MapData[this.index].MarkerSets;  for ( var n=0; n<MarkerSets.length; n++ ){  var MarkerSet = MarkerSets[n]; if ( MarkerSet.side_panel == true ){  x++;  var theNewDiv = document.createElement('div'); theNewDiv.id = 'sideset_'+ MarkerSet.set_id; theNewDiv.className = 'module box';  var setTitle = "<h3 class='gmapsidetitle'>" + MarkerSet.name + "</h3>";  var theIcon = "<img src='http: var IconStyles = BitMap.MapData[this.index].IconStyles; for (var m=0; m<IconStyles.length; m++){ var IconStyle = IconStyles[m]; if ( IconStyle.icon_id == IconStyle.icon_id ){ var theIcon = "<img src='" + IconStyle.image + "' class='gmapsideicon' style='width:" + IconStyle.icon_w + "px; height:" + IconStyle.icon_h + "px;'>"; } }  var setDesc = "<div class='gmapsidedesc'>" + theIcon + " " + MarkerSet.description + "<div style='clear:both'></div></div>"; var setList = "<div class='boxcontent gmapsidelist' id='listset_" + MarkerSet.set_id + "'></div>"; theNewDiv.innerHTML += setTitle + setDesc + setList; document.getElementById('mapsidepanel').appendChild(theNewDiv); } }  if ( x != 0 ){ document.getElementById('mapsidepanel').className = 'mapsidepanel'; if (bBrowser == 'op'){ document.getElementById('map').className = 'map-op'; }  for ( var q=0; q<this.markers.length; q++ ){   var Marker = this.markers[q]; if ( Marker.side_panel == true && Marker.explode == true ) {  if (Marker.marker_type == 1){ var urlSrc = Marker.photo_url; var pos = urlSrc.lastIndexOf('.'); var str_1 = urlSrc.substring(0, pos); var str_2 = urlSrc.substring(pos, urlSrc.length); var thumbUrl = str_1 + "_thumb" + str_2; var imgLink = "<br/><img src='" + thumbUrl + "'>" }else{ var imgLink =''; }   var theNewLink = document.createElement('a'); theNewLink.href = "javascript: BitMap.MapData[0].Map.markers["+i+"].gmarker.openInfoWindowHtml(BitMap.MapData[0].Map.markers["+i+"].gmarker.my_html);"; theNewLink.innerHTML = Marker.title + imgLink;     var BR = document.createElement('br'); document.getElementById('listset_'+ Marker.set_id).appendChild(theNewLink); document.getElementById('listset_'+ Marker.set_id).appendChild(BR);  /* var openWindowLink = "<a href='javascript: bMData["+q+"].marker.openInfoWindowHtml(bMData["+q+"].marker.my_html'>"+bMData[q].title+"</a>"; var attachLink = "<a href='javascript: attachMarker(" + bMData[q].array_n + ", true);'>attach</a>"; document.getElementById('listset_'+ bMData[q].set_id).innerHTML = openWindowLink + " " + attachLink; */     if ( Marker.plot_on_load == true ) {  }else{  } } } 
context: BitMap.Map.prototype.attachSideMarkers = function(){	//unhide side list	document.getElementById('mapsidepanel').className = 'mapsidepanel';	//go through all markers and add marker to side list	for ( var i=0; i<this.markers.length; i++ ){		//make the link		var theNewLink = document.createElement('a');		theNewLink.href = "javascript: BitMap.MapData[0].Map.markers["+i+"].gmarker.openInfoWindowHtml(BitMap.MapData[0].Map.markers["+i+"].gmarker.my_html);";		theNewLink.innerHTML = this.markers[i].title;				//make a br		var BR = document.createElement('br');		//add link and space to container		document.getElementById('mapsidepanel').appendChild(theNewLink);		document.getElementById('mapsidepanel').appendChild(BR);	}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/0d6acc91f4b0cb06b2f5873cd7231330ed24388e/BitMap.js/buggy/templates/BitMap.js