/*
# $Id$
*/

function mceFileBrowser(field_name, url, type, win, editor_id) {
	tinyMCE.activeEditor.windowManager.open({
			file: '/cms/tinymce-image',
			title: "Select an image",
			width: 640,
			height: 480,
			scrollbars: "yes",
			close_previous: "no"
		}, {
			window: win,
			input: field_name,
			resizable: "yes",
			inline: "yes",
			editor_id: tinyMCE.selectedInstance.editorId
		}
	);
}
