<?php /* Smarty version 2.6.25, created on 2012-06-26 02:20:41
         compiled from rte.tpl */ ?>
<?php if (isset ( $this->_tpl_vars['useRTE'] ) && $this->_tpl_vars['useRTE'] == 'TINYMCE'): ?>
	<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/tiny_mce/tiny_mce.js"></script>
		  
	<?php echo '
	<script type="text/javascript">
		tinyMCE.init({
			// General options
			mode : "exact",
			elements: "'; ?>
<?php echo $this->_tpl_vars['NAME']; ?>
<?php echo '",
			theme : "advanced",
			plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
	
			convert_urls : false,
			// Theme options
			theme_advanced_buttons1 : "code,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,undo,redo,|,forecolor,backcolor|,sub,sup",
			theme_advanced_buttons3 : "hr,removeformat,|,charmap,emotions,iespell,advhr,|,fullscreen",
			//theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,
	
			// Example content CSS (should be your site CSS)
			content_css : "css/content.css"
		});
	</script>
	'; ?>

	<textarea id="<?php echo $this->_tpl_vars['NAME']; ?>
" name="<?php echo $this->_tpl_vars['NAME']; ?>
"  rows="15" cols="80" style="width: 100%"><?php echo $this->_tpl_vars['VALUE']; ?>

	</textarea>
<?php elseif ($this->_tpl_vars['useRTE'] == 'CKE'): ?>
	<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/ckeditor/ckeditor.js"></script>
	
            <textarea  id="<?php echo $this->_tpl_vars['NAME']; ?>
" name="<?php echo $this->_tpl_vars['NAME']; ?>
" rows="20" cols="80" style="width: 100%"><?php echo $this->_tpl_vars['VALUE']; ?>

			</textarea>
        <?php echo '
         	<script type="text/javascript">
					CKEDITOR.replace( \''; ?>
<?php echo $this->_tpl_vars['NAME']; ?>
<?php echo '\' );
				</script>
         '; ?>

<?php elseif ($this->_tpl_vars['useRTE'] == 'YRTE'): ?>
	<!-- Skin CSS file -->
	<link rel="stylesheet" type="text/css" href="<?php echo @DOC_ROOT; ?>
/javascripts/yui/css/skin.css">
	<!-- Utility Dependencies -->
	<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/yui/yahoo-dom-event.js"></script>
	<script type="text/javascript" src="<?php echo @DOC_ROOT; ?>
/javascripts/yui/element-min.js"></script>
	<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
	<script src="<?php echo @DOC_ROOT; ?>
/javascripts/yui/container_core-min.js"></script>
	<script src="<?php echo @DOC_ROOT; ?>
/javascripts/yui/menu-min.js"></script>
	<script src="<?php echo @DOC_ROOT; ?>
/javascripts/yui/button-min.js"></script>
	<!-- Source file for Rich Text Editor-->
	<script src="<?php echo @DOC_ROOT; ?>
/javascripts/yui/editor-min.js"></script>

         <div class="yui-skin-sam">
         	<textarea  id="<?php echo $this->_tpl_vars['NAME']; ?>
" name="<?php echo $this->_tpl_vars['NAME']; ?>
" rows="20" cols="80" style="width: 100%"><?php echo $this->_tpl_vars['VALUE']; ?>

				</textarea>
         </div>
      	<?php echo '
            <script>

				(function() {
    				var Dom = YAHOO.util.Dom,
        			Event = YAHOO.util.Event;

    				var myConfig = {
        					height: \'100px\',
        					width: \'320px\',
        					dompath: true,
        					focusAtStart: true,
                     handleSubmit: true
    				};

    				YAHOO.log(\'Create the Editor..\', \'info\', \'example\');
    				var myEditor = new YAHOO.widget.SimpleEditor(\''; ?>
<?php echo $this->_tpl_vars['NAME']; ?>
<?php echo '\', myConfig);
    				myEditor._defaultToolbar.buttonType = \'advanced\';
    				myEditor.render();

				})();
			</script>
         '; ?>

<?php else: ?>
	<textarea name="<?php echo $this->_tpl_vars['NAME']; ?>
" id="<?php echo $this->_tpl_vars['NAME']; ?>
" rows="6" cols="40" class="text" ><?php echo $this->_tpl_vars['VALUE']; ?>
</textarea>
<?php endif; ?>