
/* license_start
--------------------------
© 2002-2006 netlands edv consulting GmbH
netlands edv consulting GmbH, 97424 Schweinfurt, www.netlands.de

Die folgenden Codeteile sind Bestandteil der netlands edv consulting GmbH
myweb2go und ntls API und unterliegen dem Urheberrecht. 
Der folgende Code bzw. Codeteile darf/dürfen nicht geändert und/oder in
anderen Programmen verwendet werden. Alle Rechte vorbehalten.
--------------------------
license_end */


if(typeof FCKeditorPath == 'undefined') {
    var FCKeditorPath = "FCKeditor/";
}
document.write('<script type="text/javascript" src="' + FCKeditorPath + '/fckeditor.js"><\/script>');

function loadFCKeditorAreas() {
    var ids = new Array('rte', 'rte0', 'rte1', 'rte2', 'rte3', 'rte4', 'rte5', 'rte6', 'rte7', 'rte8', 'rte9');
    ids.each(function (id) {
	if ($(id) != null) {
        var textareaNode = $(id);
        var height = textareaNode.getAttribute('rows');
        var width = textareaNode.getAttribute('cols');
	var toolbarset = textareaNode.getAttribute('toolbarset');
        
	var oFCKeditor = new FCKeditor(id) ;
	oFCKeditor.BasePath = FCKeditorPath;
//    oFCKeditor.BaseHref = FCKeditorPath + '/../'
    if(width > 0) {
        oFCKeditor.Width = width * 10;
    }
    else {
        oFCKeditor.Width = 600;
    }
    if(height > 0) {
        oFCKeditor.Height = height * 40;
    }
    else {
        oFCKeditor.Height = 400;
    }
	if(toolbarset) {
	    oFCKeditor.ToolbarSet = toolbarset;
	}
	else {
	    oFCKeditor.ToolbarSet = 'myweb2go';
	}
	oFCKeditor.ReplaceTextarea();
	}
	});
}

