	
	var buttons =[ "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,undo,redo,|,link,unlink,|,image,media,pagebreak,spellchecker",
	"formatselect,fontsizeselect,forecolor,|,sub,sup,|,media,template,pagebreak,preview,help,code,",
	""];
	
	var plugs = "media,pagebreak,safari,spellchecker,emotions,template";

	var mceAdded = 0;
	tinyMCE_GZ.init({
		themes : "advanced",
		plugins : plugs,
		languages : "en",
		disk_cache : true,
		debug : true
	});
	tinyMCE.init({
		theme : "advanced",
		mode : "exact",
		elements : "",
		plugins : plugs,
		extended_valid_elements : "a[href|target|name]",
		theme_advanced_buttons1 : buttons[0],
		theme_advanced_buttons2: buttons[1],
		theme_advanced_buttons3: buttons[2],
		theme_advanced_resizing : true,
		theme_advanced_resize_horizontal:"",
		theme_advanced_resizing_min_height : 150,
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_toolbar_location: "top",
		theme_advanced_toolbar_align : "left",
		width: "600",
		height: "250",
		debug : false
		,template_cdate_classes : "cdate creationdate",
		template_mdate_classes : "mdate modifieddate",
		template_selected_content_classes : "selcontent mceTmpl",
		template_cdate_format : "%m/%d/%Y : %H:%M:%S",
		template_mdate_format : "%m/%d/%Y : %H:%M:%S",
		template_replace_values : {
			username : "",
			guid : "",
			somevar : "REPLACEMENT STRING"
		},
		template_templates : [
			{
				title : "Article",
				src : "/templates/tinymce/article.php",
				description : "Basic Article Template"
			},
			{
				title : "Sidebar",
				src : "/templates/tinymce/sidebar.php",
				description : "Basic Sidebar Template"
			},
			{
				title : "Sample",
				src : "/templates/tinymce/sample.html",
				description : "tinymce sample markup"
			},
			{
				title : "Snippet",
				src : "/templates/tinymce/snippet.html",
				description : "also we can do snippets here?"
			}
		]
	
	
	
	}); // end mce init js


