
  $().ready(function() {
                $('textarea.tinymce').tinymce({
                        // Location of TinyMCE script
                        script_url : 'http://www.cordeiros.net/MCEeditor/tiny_mce.js',

                        // General options
						mode  : "exact",
						theme : "advanced",
						skin : "o2k7",
						skin_variant : "silver",
						editor_selector : "wysiwyg",
                        plugins : "pagebreak,style,layer,table,save,advhr,advlink,iespell,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
						save_onsavecallback : "saveContent",

                        // Theme options
		remove_linebreaks : true,
		apply_source_formatting : false,
		force_br_newlines : true,
		force_p_newlines : false, //<-- seems to be working fine
		cleanup : true,
		//editor_deselector : "mceNoEditor",
		extended_valid_elements : "div[style|class],a[name|href|target|title|onclick|rel],img[rel|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,|,undo,redo,|,bullist,numlist,link,unlink,|,cleanup,|,fullscreen",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_buttons4 : "",

		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_resizing : false,


                        // Example content CSS (should be your site CSS)
                        content_css : "styles/screen.css",

                        // Drop lists for link/image/media/template dialogs
                        template_external_list_url : "lists/template_list.js",
                        external_link_list_url : "lists/link_list.js",
                        external_image_list_url : "lists/image_list.js",
                        media_external_list_url : "lists/media_list.js",
/*
                        // Replace values for the template plugin
                        template_replace_values : {
                                username : "Some User",
                                staffid : "991234"
                        } */
                });
        });
