<script language="javascript" type="text/javascript" src="jscripts/tiny_mce_new/tiny_mce_gzip.php"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
plugins : 'table, inlinepopups, media, fullscreen',
themes : 'simple,advanced',
languages : 'en',
disk_cache : true,
debug : false
});
</script>
<!-- Needs to be seperate script tags! -->
<script type="text/javascript">
function fileBrowserCallBack(field_name, url, type, win) {
var connector = "../../../../file_manager.php";
var enableAutoTypeSelection = true;
var cType;
tinyfck_field = field_name;
tinyfck = win;
switch (type) {
case "image":
cType = "Image";
break;
case "file":
cType = "File";
break;
}
if (enableAutoTypeSelection && cType) {
connector += "?Type=" + cType;
}
document.getElementById('fileman').style.display="block"
window.location.hash="filemanager";
}
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "table, inlinepopups, fullscreen",
width : "100%",
extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]",
flash_external_list_url : "example_flash_list.js", // Optional URL to a list of SWF movies
flash_wmode : "transparent",
flash_quality : "high",
flash_menu : "false",
theme_advanced_buttons1 : "bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, link, unlink",
theme_advanced_buttons2 : "bulllist, numlist, outdent, indent, undo, redo, image, table, code, fullscreen",
theme_advanced_disable : "separator,hr,inserthorizontalrule,removeformat,visualaid,sub,sup,charmap,help,styleselect,formatselect, cleanup, anchor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
file_browser_callback : "fileBrowserCallBack",
relative_urls : false,
convert_urls : false,
theme_advanced_resize_horizontal : false,
safari_warning : "false"
});
</script>