tinyMCE.init({ 

// General options mode : textareas
mode : "exact",

// News Frontpage
elements : "banner,menu1,PHP.ldu_menu2", 
theme : "advanced", 
plugins : "code,safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", 
 
// Theme options 
theme_advanced_buttons1 : "save,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontsizeselect,forecolor,backcolor", 
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,undo,redo,|,link,unlink,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,ltr,rtl,|,visualchars,nonbreaking,|,smimage,preview,|,fullscreen", 
theme_advanced_buttons3 : "", 
theme_advanced_buttons4 : "", 
theme_advanced_toolbar_location : "top", 
theme_advanced_toolbar_align : "left", 
theme_advanced_statusbar_location : "bottom", 
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,

// Removed Inits: button1: ,newdocument,styleselect  | buttons2: ,help,code | buttons3: ,emotions,iespell | buttons4: insertlayer,absolute,template,spellchecker 

// Preview funtion
plugin_preview_width : "720",
plugin_preview_height : "40",
 
// Example content CSS (should be your site CSS) 
content_css : "skins/editor/graphxeditor.css", 

// Cleanup Code
cleanup_indent : true,
remove_linebreaks : true,
forced_root_block : false,
force_br_newlines : true,
force_p_newlines : false,
apply_source_formatting : false, 

// Added HTML Code
extended_valid_elements : "[pass-test],iframe[name|src|framespacing|border|frameborder|scrolling|title|height|width],a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
 
// Drop lists for link/image/media/template dialogs 
template_external_list_url : "js/template_list.js", 
external_link_list_url : "js/link_list.js", 
external_image_list_url : "js/image_list.js", 
media_external_list_url : "js/media_list.js",

plugin_smimage_directory : "/uploads/leftnavfiles/",
plugin_smimage_server : "",
plugin_smimage_thumbnail_size : "100",
plugin_smimage_jpg_quality : "60",
plugin_smimage_show_thumbnail : "1",
plugin_smimage_orderby : "0",
plugin_smimage_show_upload : "1",
plugin_smimage_show_image_menu : "1",
plugin_smimage_show_folder_menu : "1",
plugin_smimage_show_newfolder : "1",
plugin_smimage_thumbnails_perpage : "20",
plugin_smimage_upload_filesize : "",
plugin_smimage_width : "900",
plugin_smimage_height : "700"

}); 




