<?php

defined('MAXIMUS') or die ('Access denied tiny1 MAXIMUS directly...');

if (file_exists("themes/$ThemeSel/style/editor.css")) {
    $edtcss = "themes/$ThemeSel/style/editor.css";
} else {
    $edtcss = "includes/tiny_mce/themes/advanced/css/editor_ui.css";
}	echo "<!-- tinyMCE -->
		<script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/plugins/filemanager/jscripts/mcfilemanager.js\"></script>
		<script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/plugins/imagemanager/jscripts/mcimagemanager.js\"></script>
		<script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/tiny_mce_gzip.php\"></script>
		<script language=\"javascript\" type=\"text/javascript\">var tinyMCELangCode = \"$lang\", tinyMCEEditorCSS = \"$edtcss\";</script>
		<script language=\"javascript\" type=\"text/javascript\" src=\"includes/tiny_mce/tiny_mce_init_advanced.js\"></script>
		<!-- /tinyMCE -->";