tinyMCE_GZ.init({
	plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',
	themes : 'advanced',
	languages : 'en',
	disk_cache : true,
	debug : false
});
tinyMCE.init({
	// General options
	mode : "exact",
	elements : "admin-body",
	theme : "advanced",
	plugins : "safari,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",

	// Theme options
	theme_advanced_buttons1 : "mybutton,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,removeformat,|,cleanup,code,preview",
	theme_advanced_buttons3 : "",
	theme_advanced_buttons4 : "",
	theme_advanced_toolbar_location : "bottom",
	//theme_advanced_toolbar_align : "left",
	//theme_advanced_resizing : true,

	// CSS
	content_css : "/plugins/tiny-mce/tiny-mce-config.css",
	
	// Add Button
	setup : function(ed) {
        // Add a custom button
        ed.addButton('mybutton', {
            title : 'My button',
            image : '/images/button.png',
            onclick : function() {
				// Add you own code to execute something on click
				ed.focus();
                ed.selection.setContent("<span style='color:#007090; font-weight:bold;'>" + ed.selection.getContent() + "</span>");
            }
        });
    }
});
