var ajexFileManager = function(editor, path, params) {
	if ('undefined' == typeof(params)) params = {};

	this.width = params.width || 990;
	this.height = params.height || 660;

	this.path = path;
	this.lang = 'en';
	this.connector = params.connector || 'php';

	var type = ['file', 'flash', 'image'];
	for (var i in type) {
		editor.config[type[i] + 'browserWindowWidth'] = this.width;
		editor.config[type[i] + 'browserWindowHeight'] = this.height;
//		editor.config[type[i] + 'browserBrowseUrl'] = this.path + '/quickupload/' + type[i] + '/' + this.connector;
//		editor.config[type[i] + 'browserBrowseUrl'] = this.path + '/ajexFileManager/index.html?type=' + type[i] + '&connector=' + this.connector + '&lang=' + this.lang;
//		editor.config[type[i] + 'browserUploadUrl'] = this.path + '/quickupload/' + type[i];
		editor.config[type[i] + 'browserBrowseUrl'] = this.path + '/ajexFileManager/index.html?type=' + type[i] + '&connector=' + this.connector + '&lang=' + this.lang;
		editor.config[type[i] + 'browserUploadUrl'] = this.path + '/ajexFileManager/ajax/php/ajax.php?mode=QuickUpload&type=' + type[i];
	}
}

ajexFileManager.prototype = {};

