 

function inittmc(mode) {
	/* generated TinyMCE settings */
	if (mode == '' || mode == 'undefined') {mode = 'full';}
	tinyMCE.idCounter=0;
	
	// path to the css file that is used inside the editor
	tinyMCE.settings['content_css'] = "css/editor.css";
    
    // css classes that are used in the css-styles dropdown
	tinyMCE.settings['theme_advanced_styles'] = "blau=blau;orange=orange;standard=standard";
    
	// true = the editor will use BR elements on newlines instead of paragraphs
	tinyMCE.settings['force_br_newlines'] = false; 
    
	// if this is set to 'p', <em>text</em> will result in <p><em>text</em></p>
	tinyMCE.settings['forced_root_block'] = 'p'; 
    
	// width of the editor area
	tinyMCE.settings['width'] = 700;     
	// height of the editor area
    tinyMCE.settings['height'] = 200; 
	switch (mode) {
		case 'full':
			// default editor
			tinyMCE.settings['elements'] = "editor_full_content";
			tinyMCE.settings['theme_advanced_buttons1'] = "bold,italic,underline,strikethrough,seperator,justifyleft,justifycenter,justifyright,justifyfull,seperator,bullist,numlist";
			tinyMCE.settings['theme_advanced_buttons2'] = "formatselect,styleselect,seperator,outdent,indent,seperator,undo,redo,seperator,link,unlink,anchor";
			tinyMCE.settings['theme_advanced_buttons3'] = "sub,sup,seperator,image,cleanup,code,visualaid,removeformat,hr,help,charmap";
			tinyMCE.execCommand('mceAddControl', true, 'editor_full_content');
			break;
		case 'basic':
			tinyMCE.settings['elements'] = "editor_basic_content";
			tinyMCE.settings['theme_advanced_buttons1'] = "bold,italic,underline,strikethrough,undo,redo,cleanup,image,link,unlink";
			tinyMCE.settings['theme_advanced_buttons2'] = "";
			tinyMCE.settings['theme_advanced_buttons3'] = "";
			tinyMCE.execCommand('mceAddControl', true, 'editor_basic_content');
			break;
		case 'simple':
			tinyMCE.settings['elements'] = "editor_simple_content";
			tinyMCE.settings['theme_advanced_buttons1'] =  "bold,italic,underline,strikethrough,bullist,link,unlink,undo,redo,code,cleanup,visualaid";
			tinyMCE.settings['theme_advanced_buttons2'] =  "";
			tinyMCE.settings['theme_advanced_buttons3'] =  "";
			tinyMCE.execCommand('mceAddControl', true, 'editor_simple_content');
			break;
		case 'advanced':
			tinyMCE.settings['elements'] = "editor_advanced_content";
			tinyMCE.settings['theme_advanced_buttons1'] = "bold,italic,underline,strikethrough,seperator,justifyleft,justifycenter,justifyright,justifyfull,seperator,bullist,numlist";
			tinyMCE.settings['theme_advanced_buttons2'] = "formatselect,styleselect,seperator,outdent,indent,seperator,undo,redo,seperator,link,unlink,anchor";
			tinyMCE.settings['theme_advanced_buttons3'] = "sub,sup,seperator,image,cleanup,code,visualaid,removeformat,hr,help,charmap";
			tinyMCE.execCommand('mceAddControl', true, 'editor_advanced_content');
			break;
		default:
			tinyMCE.settings['elements'] = "editor_full_content";
			tinyMCE.settings['theme_advanced_buttons1'] = "bold,italic,underline,strikethrough,seperator,justifyleft,justifycenter,justifyright,justifyfull,seperator,bullist,numlist";
			tinyMCE.settings['theme_advanced_buttons2'] = "formatselect,styleselect,seperator,outdent,indent,seperator,undo,redo,seperator,link,unlink,anchor";
			tinyMCE.settings['theme_advanced_buttons3'] = "sub,sup,seperator,image,cleanup,code,visualaid,removeformat,hr,help,charmap";
			tinyMCE.execCommand('mceAddControl', true, 'editor_full_content');
			break;
	}
}

