rem:  BitMap.show('edit-tilelayers-table'); 
context: 	"editMaptypeTilelayers": function(i){		this.cancelNewMaptype();		this.toggleMenuOptsStyles( "maptype", this.Map.maptypes.length, i, 'edit-selected' );				this.cancelEditMaptype();		var maptype_id = this.Map.maptypes[i].maptype_id;		//Move Tilelayers Table to New Maptype		var tilelayersTable = $('edit-tilelayers-table');		$('edit-maptype-'+i).appendChild(tilelayersTable);		//set some constants		var tilelayersLinksList = tilelayersTable.getElementsByTagName("ul").item(0);		var tilelayersLinks = tilelayersTable.getElementsByTagName("li");		//Clear all the existing tilelayers listed  		//We leave the first two, the first is the model we clone, the second if for a new tilelayer		var count = tilelayersLinks.length;		for (n=count-1; n>1; n--){			tilelayersLinksList.removeChild(tilelayersLinks.item(n));		}		$('edit-tilelayerlink-new-a').href = "javascript:BitMap.EditSession.editTilelayer(null, "+i+");";		//For each tilelayer in our new maptype, add a link		var firstselected = false;		for (var n=0; n<this.Map.tilelayers.length; n++) {			var t = this.Map.tilelayers[n];			if (t.maptype_id == maptype_id){				var newTilelayerli = tilelayersLinks.item(0).cloneNode(true);				newTilelayerli.id = 'edit-tilelayerlink-'+n;				var newTilelayerLink = newTilelayerli.getElementsByTagName("a").item(0);				newTilelayerLink.href = "javascript:BitMap.EditSession.editTilelayer("+n+","+i+")";				newTilelayerLink.innerHTML = t.tiles_name;				tilelayersLinksList.appendChild(newTilelayerli);				newTilelayerli.style.display = "block";				if (firstselected != true){					this.editTilelayer(n, i);					firstselected = true;				}	        			}		}		if (firstselected == false){			this.editTilelayer(null, i);		}		//We assume it is not visible and make it so		BitMap.show('edit-tilelayers-table');	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/abb148cb64f85492613e3474ce4942a26489ad33/Edit.js/buggy/templates/Edit.js