function addFCK(arrFCKEditors, id) {
	var arrFCKEditors = new Array();

	arrFCKEditors.push( new FCKeditor( id ) );
	var numLast = arrFCKEditors.length - 1;

	arrFCKEditors[numLast].Config["CustomConfigurationsPath"] = '/fckeditor_config.js';
	arrFCKEditors[numLast].BasePath = "/js/fckeditor/";
	
	if (id == 'page_body')
		arrFCKEditors[numLast].Height = '700';
	else
		arrFCKEditors[numLast].Height = '300';

	arrFCKEditors[numLast].ReplaceTextarea();
}
function initFCK(arrFCKEditors)
{
	if (document.getElementById('news_article')) addFCK( arrFCKEditors, 'news_article' );
	if (document.getElementById('page_body')) addFCK( arrFCKEditors, 'page_body' );
	if (document.getElementById('category_html')) addFCK( arrFCKEditors, 'category_html' );
	if (document.getElementById('prd_description')) addFCK( arrFCKEditors, 'prd_description' );
	if (document.getElementById('file_folder_description')) addFCK( arrFCKEditors, 'file_folder_description' );
}

var arrFCKEditors = new Array();

addEvent(window, 'load', initFCK);
