rem: extension = tmp_url.substring(tmp_url.indexOf('.')+1);  
add: extension = tmp_url.substring(tmp_url.lastIndexOf('.')+1); 
context: function Ok(){	if ( GetE('txtUrl').value.length == 0 )	{		window.parent.SetSelectedTab( 'Info' ) ;		GetE('txtUrl').focus() ;		alert( oEditor.FCKLang.DlgAlertUrl ) ;		return false ;	}			if ( !oEmbed )	{		oEmbed		= FCK.EditorDocument.createElement( 'EMBED' ) ;		oFakeImage  = null ;	}			// check if it's a flv file	tmp_url = GetE('txtUrl').value;	extension = tmp_url.substring(tmp_url.indexOf('.')+1);		if(extension == 'flv')		flvplayer = true;	else		flvplayer = false;		if(flvplayer == true)	{		var e = (oMedia || new Media()) ;		updateMovie(e);		FCK.InsertHtml(e.getOuterHTML()) ;						if ( !oFakeImage )		{			oFakeImage	= oEditor.FCKDocumentProcessors_CreateFakeImage( 'FCK__Video_flv', oEmbed ) ;			oFakeImage.setAttribute( '_fckVideo', 'true', 0 ) ;			oFakeImage	= FCK.InsertElementAndGetIt( oFakeImage ) ;		}		else			oEditor.FCKUndo.SaveUndoStep() ;	}	else	{			if ( !oFakeImage )		{			oFakeImage	= oEditor.FCKDocumentProcessors_CreateFakeImage( 'FCK__Video', oEmbed ) ;			oFakeImage.setAttribute( '_fckVideo', 'true', 0 ) ;			oFakeImage	= FCK.InsertElementAndGetIt( oFakeImage ) ;		}		else			oEditor.FCKUndo.SaveUndoStep() ;		UpdateEmbed( oEmbed ) ;			}			oEditor.FCKFlashProcessor.RefreshView( oFakeImage, oEmbed ) ;	return true ;}
meta: 7863	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7863/38eecdaf482c71d77ab331d969b408305e478940/fck_video.js/buggy/main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js