rem: var inst = tinyMCE.selectedInstance, self = TinyMCE_LayerPlugin, i, z = new Array(); var le = self._getParentLayer(inst.getFocusElement()), ci = -1, fi = -1; 
add: var inst = tinyMCE.selectedInstance, i, z = new Array(); var le = this._getParentLayer(inst.getFocusElement()), ci = -1, fi = -1; 
context: 	_move : function(d) {		var inst = tinyMCE.selectedInstance, self = TinyMCE_LayerPlugin, i, z = new Array();		var le = self._getParentLayer(inst.getFocusElement()), ci = -1, fi = -1;		var nl = tinyMCE.selectNodes(inst.getBody(), function(n) {			return n.nodeType == 1 && new RegExp('absolute|relative|static', 'gi').test(n.style.position);		});		// Find z-indexes		for (i=0; i<nl.length; i++) {			z[i] = nl[i].style.zIndex ? parseInt(nl[i].style.zIndex) : 0;			if (ci < 0 && nl[i] == le)				ci = i;		}		if (d < 0) {			// Move back			// Try find a lower one			for (i=0; i<z.length; i++) {				if (z[i] < z[ci]) {					fi = i;					break;				}			}			if (fi > -1) {				nl[ci].style.zIndex = z[fi];				nl[fi].style.zIndex = z[ci];			} else {				if (z[ci] > 0)					nl[ci].style.zIndex = z[ci] - 1;			}		} else {			// Move forward			// Try find a higher one			for (i=0; i<z.length; i++) {				if (z[i] > z[ci]) {					fi = i;					break;				}			}			if (fi > -1) {				nl[ci].style.zIndex = z[fi];				nl[fi].style.zIndex = z[ci];			} else				nl[ci].style.zIndex = z[ci] + 1;		}		inst.repaint();	},
meta: 2801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2801/09b02dc0815a4185c0a68f5283d4d3553a7aa318/editor_plugin_src.js/clean/jscripts/tiny_mce/plugins/layer/editor_plugin_src.js