 

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/style.css";
    
    // css classes that are used in the css-styles dropdown
	tinyMCE.settings['theme_advanced_styles'] = "gruen=gruen;schwarz=schwarz;text-rot-10px=text-rot-10px;text-rot-12px=text-rot-12px;text-rot-14px=text-rot-14px;text-rot-16px=text-rot-16px;text-rot-18px=text-rot-18px;text-schwarz-10px=text-schwarz-10px;text-schwarz-12px=text-schwarz-12px;text-schwarz-14px=text-schwarz-14px;text-schwarz-16px=text-schwarz-16px;text-schwarz-18px=text-schwarz-18px;text-weiß-10px=text-weiß-10px;text-weiß-12px=text-weiß-12px;text-weiß-14px=text-weiß-14px;text-weiß-16px=text-weiß-16px;text-weiß-18px=text-weiß-18px;text-blau-10px=text-blau-10px;text-blau-12px=text-blau-12px;text-blau-14px=text-blau-14px;text-blau-16px=text-blau-16px;text-blau-18px=text-blau-18px;text-hgruen-10px=text-hgruen-10px;text-hgruen-12px=text-hgruen-12px;text-hgruen-14px=text-hgruen-14px;text-hgruen-16px=text-hgruen-16px;text-hgruen-18px=text-hgruen-18px;text-orange-10px=text-orange-10px;text-orange-12px=text-orange-12px;text-orange-14px=text-orange-14px;text-orange-16px=text-orange-16px;text-orange-18px=text-orange-18px;text-normal-10px=text-normal-10px;text-normal-12px=text-normal-12px;text-normal-14px=text-normal-14px;text-normal-16px=text-normal-16px;text-normal-18px=text-normal-18px";
    
	// 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
	    
	// height of the editor area
    
	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,forecolor,backcolor";
			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,forecolor,backcolor";
			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,forecolor,backcolor";
			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,forecolor,backcolor";
			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,forecolor,backcolor";
			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;
	}
}

