<script type="text/javascript">
	var rtbEditor_{V_ID}_level = {V_LEVEL};
</script>
<div class="rtbParent">
		<div id="rtbEditor_{V_ID}" style="display:{V_EDITOR.DISPLAY}">
		<!--if($V_LEVEL>1)-->
		<table>
			<tr>
				<td>
				{L_FONTNAME}:<br />
				<select onchange="gExec('{V_ID}', 'fontname', this.value); this.style.FontName=this.value">
					{V_FONTS.SEL}
				</select>
				</td>
				<!--if($V_LEVEL==3)-->
				<td>
				{L_HEADINGS}:<br />
				<select name="heading" onchange="gExec('{V_ID}', 'heading', this.value)">
					{V_HEADINGS}
				</select>
				</td>
				<!--endif-->
			</tr>
		</table>
		<!--endif-->
		{V_BUTTONS}<br />
		<div class="photo" onclick="hide('gColorPicker_{V_ID}')" id="gColorPicker_{V_ID}" style="width:180px;position:absolute;display:none;">{V_COLORS}</div>
		<iframe class="rtbFrame" id="gEditor_{V_ID}" src="{C_SITE.REL_URL}runscript.php/rtbframe" width="350" height="300" style="width:{V_WIDTH};height:{V_HEIGHT};"></iframe>
		<div class="buttons" style="text-align:left">
		<button type="button" onclick="rtbSetMode('{V_ID}', 0); return false;">{V_SOURCE.ICON} {L_SOURCE_MODE}</button>
		</div>
	</div>
	<div id="rtbSource_{V_ID}" style="display:{V_SOURCE.DISPLAY}">
		<textarea class="rtbEditor" id="codeBox_{V_ID}" cols="50" rows="20" name="{V_FIELD}" style="width:{V_WIDTH};height:{V_HEIGHT};">{V_CONTENT}</textarea>
		<div class="buttons" style="text-align:left">
			<button type="button" onclick="rtbSetMode('{V_ID}', 1); return false;">{V_VISUAL.ICON} {L_VISUAL_MODE}</button>
			<button type="button" onclick="showPreview('codeBox_{V_ID}'); return false;">{V_PREVIEW.ICON} {L_PREVIEW}</button>
		</div>
		<!--if($V_ALLOWED_TAGS)--><div class="whisper"><b>{L_ALLOWED_TAGS}</b>: {V_ALLOWED_TAGS}</div><!--endif-->
	</div>
</div>