rem: case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b': nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemQuickTime', d, nl[i]), nl[i]); break; 
add: case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b': nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemQuickTime', d, nl[i]), nl[i]); break; 
context: 	cleanup : function(type, content, inst) {		var nl, img, i, ne, d, s, ci;		switch (type) {			case "insert_to_editor":				img = tinyMCE.getParam("theme_href") + '/images/spacer.gif';				content = content.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi, '<img class="mceItem$1" title="$2" src="' + img + '" />');				content = content.replace(/<object([^>]*)>/gi, '<span class="mceItemObject" $1>');				content = content.replace(/<embed([^>]*)>/gi, '<span class="mceItemObjectEmbed" $1>');				content = content.replace(/<\/(object|embed)([^>]*)>/gi, '</span>');				content = content.replace(/<param([^>]*)>/gi, '<span $1 class="mceItemParam"></span>');				content = content.replace(new RegExp('\\/ class="mceItemParam"><\\/span>', 'gi'), 'class="mceItemParam"></span>');				break;			case "insert_to_editor_dom":				d = inst.getDoc();				nl = content.getElementsByTagName("img");				for (i=0; i<nl.length; i++) {					if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(nl[i].className)) {						nl[i].width = nl[i].title.replace(/.*width:[^0-9]?([0-9]+)%?.*/g, '$1');						nl[i].height = nl[i].title.replace(/.*height:[^0-9]?([0-9]+)%?.*/g, '$1');						//nl[i].align = nl[i].title.replace(/.*align:([a-z]+).*/gi, '$1');					}				}				nl = tinyMCE.selectNodes(content, function (n) {return n.className == 'mceItemObject';});				for (i=0; i<nl.length; i++) {					if (nl[i].className == 'mceItemObject') {						ci = tinyMCE.getAttrib(nl[i], "classid").toLowerCase().replace(/\s+/g, '');						switch (ci) {							case 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000':								nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemFlash', d, nl[i]), nl[i]);								break;							case 'clsid:166b1bca-3f9c-11cf-8075-444553540000':								nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemShockWave', d, nl[i]), nl[i]);								break;							case 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6':								nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemWindowsMedia', d, nl[i]), nl[i]);								break;							case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b':								nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemQuickTime', d, nl[i]), nl[i]);								break;							case 'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa':							case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':							case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':								nl[i].parentNode.replaceChild(TinyMCE_MediaPlugin._createImg('mceItemRealMedia', d, nl[i]), nl[i]);								break;						}					}				}				// Handle embed (if any)				nl = tinyMCE.selectNodes(content, function (n) {return n.className == 'mceItemObjectEmbed';});				for (i=0; i<nl.length; i++) {					switch (tinyMCE.getAttrib(nl[i], 'type')) {						case 'application/x-shockwave-flash':							TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemFlash');							break;						case 'application/x-director':							TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemShockWave');							break;						case 'application/x-mplayer2':							TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemWindowsMedia');							break;						case 'video/quicktime':							TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemQuickTime');							break;						case 'audio/x-pn-realaudio-plugin':							TinyMCE_MediaPlugin._createImgFromEmbed(nl[i], d, 'mceItemRealMedia');							break;					}				}				break;			case "get_from_editor":				var startPos = -1, endPos, attribs, chunkBefore, chunkAfter, embedHTML, at, pl, cb, mt;				while ((startPos = content.indexOf('<img', startPos+1)) != -1) {					endPos = content.indexOf('/>', startPos);					attribs = TinyMCE_MediaPlugin._parseAttributes(content.substring(startPos + 4, endPos));					// Is not flash, skip it					if (!/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(attribs['class']))						continue;					endPos += 2;					// Parse attributes					at = attribs['title'];					at = at.replace(/&#39;/g, "'");					at = at.replace(/&#quot;/g, '"');					pl = eval('x={' + at + '};');					// Use object/embed					if (!tinyMCE.getParam('media_use_script', false)) {						switch (attribs['class']) {							case 'mceItemFlash':								ci = 'd27cdb6e-ae6d-11cf-96b8-444553540000';								cb = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';								mt = 'application/x-shockwave-flash';								break;							case 'mceItemShockWave':								ci = '166B1BCA-3F9C-11CF-8075-444553540000';								cb = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';								mt = 'application/x-director';								break;							case 'mceItemWindowsMedia':								ci = tinyMCE.getParam('media_wmp6_compatible') ? '05589FA1-C356-11CE-BF01-00AA0055595A' : '6BF52A52-394A-11D3-B153-00C04F79FAA6';								cb = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';								mt = 'application/x-mplayer2';								break;							case 'mceItemQuickTime':								ci = '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';								cb = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';								mt = 'video/quicktime';								break;							case 'mceItemRealMedia':								ci = 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA';								cb = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';								mt = 'audio/x-pn-realaudio-plugin';								break;						}						// Force absolute URL						if (!tinyMCE.getParam("relative_urls"))							pl.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], pl.src);						embedHTML = TinyMCE_MediaPlugin._getEmbed(ci, cb, mt, pl, attribs);					} else {						// Use script version						switch (attribs['class']) {							case 'mceItemFlash':								s = 'writeFlash';								break;							case 'mceItemShockWave':								s = 'writeShockWave';								break;							case 'mceItemWindowsMedia':								s = 'writeWindowsMedia';								break;							case 'mceItemQuickTime':								s = 'writeQuickTime';								break;							case 'mceItemRealMedia':								s = 'writeRealMedia';								break;						}						if (attribs.width)							at = at.replace(/width:[^0-9]?[0-9]+%?/g, "width:'" + attribs.width + "'");						if (attribs.height)							at = at.replace(/height:[^0-9]?[0-9]+%?/g, "height:'" + attribs.height + "'");						// Force absolute URL						if (!tinyMCE.getParam("relative_urls")) {							pl.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], pl.src);							at = at.replace(new RegExp("src:'[^']*'", "g"), "src:'" + pl.src + "'");						}						embedHTML = '<script type="text/javascript">' + s + '({' + at + '});</script>';					}					// Insert embed/object chunk					chunkBefore = content.substring(0, startPos);					chunkAfter = content.substring(endPos);					content = chunkBefore + embedHTML + chunkAfter;				}				break;		}		return content;	},
meta: 2801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2801/b57f7368f452e141ea6f952a34b1ff35e8cd1b1d/editor_plugin_src.js/buggy/jscripts/tiny_mce/plugins/media/editor_plugin_src.js