/*
 * タグ編集
 *
 * Copyright (c) 2003 DRECOM CO.,LTD. All rights reserved.
 *
 * info@drecom.co.jp
 * http://www.drecom.co.jp/
 */

if(j$ == null){
	jQuery.noConflict();
	var j$ = jQuery;
}
/**
 * NullObject idiom
 */
var NullSelectedText = new SelectedText(null);

//---------------------------------------------------------
// Global variables
//---------------------------------------------------------
var gSelectedTextObj   = NullSelectedText;

/**
 * 利用する HTML 要素の id 属性
 */
var gColorPaletteID      = 'colorPalette';
var gEmojiPaletteID      = 'emojiPalette'

var gSampleTextColorID   = 'paletteSampleTextColor';
var gPaletteColorWellID  = 'paletteColorWell';
var gPaletteColorFieldID = 'paletteColorField';

var gPaletteIDs = [gColorPaletteID, gEmojiPaletteID];


/**
 * 背景色を変更できるプレビュー領域
 *
 * gSelectedPreviewID
 *   null   : 背景色を変更しない
 *   string : 指定された id の背景色変更
 *   array  : 各プレビュー領域の背景色変更
 */
var gSelectedPreviewID   = null;
var gSelectedColorWellID = null;

var gPreviewBgColorWellID = 'preview_colorWell';
var gPreviewIDs = ['body_preview', 'extend_preview'];

//---------------------------------------------------------
// Palette
//---------------------------------------------------------
/**
 * パレットを指定されたレイヤーの位置で Y 座標を決定。
 *
 * @param theEvent event
 * @param paletteName
 * @param layerID
 */
var clear_palette = true;
function showPaletteAroundLayer(theEvent,paletteName,layerID)
{
	if(!clear_palette){
		hideAllPalette(paletteName);
		return;
	}
	if(paletteName == "emoji"){
		paletteName = 'emojiPalette';
	}else if(paletteName == "palette"){
		paletteName = 'colorPalette'
	}
	if(paletteName == "emojiPalette"){
		loadEmoji();
	}else if(paletteName == "colorPalette"){
		loadPalette();
	}

	setUpColorPalette(paletteName);
	
	j$("#"+paletteName).css("display","block");
	clear_palette = false;
}

/**
 * パレットを非表示にする
 */
function hideAllPalette(paletteName)
{
	clear_palette = true;
	j$("#"+paletteName).css("display","none");
}

//---------------------------------------------------------
// 編集
//---------------------------------------------------------

function initializeSelectedText(element, fromAnotherElement)
{
	if (null == element) {
		return;
	}
	if (fromAnotherElement != null && fromAnotherElement) {
		element.focus();
	}


	// 2004/03/31 Takanori Ishikawa
	// ------------------------------------------------------
	// Opera 7, Mac IE: createTextRange）() の有無で判定

	// キャレットを末尾に移動させる。
	
	if (element.createTextRange && gSelectedTextObj.isNull()) {
		var text_range;

		text_range = element.createTextRange();
		//text_range.move("character", element.value.length );
		//text_range.select();
	}
	
	gSelectedTextObj = new SelectedText(element);

	gSelectedPreviewID = null;
	gSelectedColorWellID = null;
}


// image_select_place.jsp, entry_write_edit.jsp
function focusSelectedText()
{
	gSelectedTextObj.focus();
}

/**
 * insertText(front)
 * front: 選択部分前部に挿入するテキスト
 *
 * テキスト(エリア)フォームにテキストを挿入する関数
 * 選択文字列の前に挿入される
 * 選択されていない場合、カーソル位置に挿入される
 */
function insertText(front)
{
	gSelectedTextObj.insertText(front);
}

//---------------------------------------------------------------------------------
// Edit
//---------------------------------------------------------------------------------

/**
 * 選択範囲の端がタグの内部にある場合、タグの外に選択範囲を移動させる
 */
function cutOutTagFragmentOnSelectionArea()
{
	if (false == gSelectedTextObj.isSelected())
		return;

	var nonSelectionArea = '';
	var tagText          = '';
	var targetArea       = '';
	var tagFragment      = '';

	var tag = null;

	// 選択範囲の左端の処理
	var tags = gSelectedTextObj.getText().match('^[^<]*>|^[^{]*}');
	if (tags != null) {
		tagFragment = tags[0];

		nonSelectionArea = gSelectedTextObj.getTextBetweenCaret(false, false);

		targetArea = nonSelectionArea + tagFragment;
		tag = Tag.findTag(targetArea, Tag.BackwardSearch);
		tagText = tag ? tag.getSource() : '';
		if (tagText != '' && nonSelectionArea.length < targetArea.lastIndexOf(tagText) + tagText.length) {
			gSelectedTextObj.moveStart(tagFragment.length);
		}
	}

	// 選択範囲の右端の処理
	tags = gSelectedTextObj.getText().match(new RegExp('</?[^>]*$|{[^}]*$', 'g'));
	if (tags != null) {
		tagFragment = tags[tags.length - 1];

		nonSelectionArea = gSelectedTextObj.getTextBetweenCaret(true, true);

		targetArea = tagFragment + nonSelectionArea;
		tag = Tag.findTag(targetArea, 0);
		tagText = tag ? tag.getSource() : '';
		if (tagText != '' && nonSelectionArea.length < targetArea.length - targetArea.indexOf(tagText)) {
			gSelectedTextObj.moveEnd(-tagFragment.length);
		}
	}
}

/**
 * SelectedTextの終了処理
 */
function finalizeSelectedText()
{
	// 下記処理は、NNの場合に行われる
	// IEでは、onkeydownでキャンセルされるため不必要

	// IEで、この関数をonselectから呼び出すとアクセスバイオレーションが発生し、IEごと落ちてしまう。
	// そのためこの処理をNNとIEで分けている


	if (document.all != null)
		return;

	if (nonSelectedFlag) {
		nonSelectedFlag = false;
		gSelectedTextObj.moveEnd(-1);
		gSelectedTextObj.moveStartOnEnd();
	}

	if (selectingRightEdgeFlag) {
		selectingRightEdgeFlag = false;
		gSelectedTextObj.moveEnd(1);
	}
}

//---------------------------------------------------------------------------------
// Color
//---------------------------------------------------------------------------------
/**
 * マウスがのっている色パレットの色を RGB 文字列 (#XXXXXX) で
 * 取得する。
 *
 * @param event mousemove イベント
 * @return RGB 文字列
 */
getBgColor.prev           = null;	/* 前回取得した値 */
// div - id
getBgColor.colorPaletteID = gColorPaletteID;
getBgColor.childPaletteID = 'colors';
getBgColor.width          = 10;			/* 各色パレットの一辺の長さ */
getBgColor.cols           = 32;			/* 色パレット、カラム数 */

function getBgColor(event)
{
	var color = null;

	// イベントから色を取得
	if (event.srcElement && event.srcElement.style) {
		color = event.srcElement.style.backgroundColor;
	} else if (event.target && event.target.style){
		color = event.target.style.backgroundColor;
	}
	// イベントから取得できなければマウスの位置から計算する
	if (color == null || (typeof color == 'string' && color.length == 0)) {
		var mouseX = XBSEvent.getMouseX(event);
		var mouseY = XBSEvent.getMouseY(event);

		var parent = new XBSLayer(getBgColor.colorPaletteID);	/* 色パレット */
		var lyer   = new XBSLayer(getBgColor.childPaletteID);	/* 各色パレットを格納したレイヤー */

		// パレット内部での相対的な位置に変換
		mouseX -= (parent.getX() + lyer.getX());
		mouseY -= (parent.getY() + lyer.getY());
		try {
			var nodes;
			var target = null;

			// すべての色パレットを調べる
			nodes = document.getElementById(getBgColor.childPaletteID);
			nodes = nodes.getElementsByTagName("td");
			for (var i = 0; i < nodes.length; i++) {
				var item = nodes.item(i);

				// Safari では offsetHeight = 0 になっている
				if (item.offsetLeft <= mouseX && item.offsetLeft + getBgColor.width >= mouseX) {
					// Mac IE では offsetTop = 0 になっている
					var offsetTop = Math.floor((i+1)/getBgColor.cols) * getBgColor.width;
					if (offsetTop <= mouseY && offsetTop + getBgColor.width >= mouseY) {
						target = item;
						break;
					}
				}
			}
			if (target && target.style) {
				color = target.style.backgroundColor;
			}
		} catch (e) {
			//alert("Exception: " + e);
		}
	}

	/*
	  NN6だと、色レイヤーが押されたときにevent.targetがnullの場合がある。
	  この場合は、前回取得した値を返すようにすることで、
	  NN6にも対応する。
	*/
	if (typeof color == 'string' && color.length != 0)
		getBgColor.prev = color;
	else
		color = getBgColor.prev;

	return UtilKit.normalizeRGBColorRep(color);
}
/**
 * 背景色選択の開始。
 *
 * @param previewID 変更するプレビュー領域の背景色
 * すべてのプレビュー領域を変更するときは null を渡す
 */
function startChoosePreviewBgColor(theEvent, previewID, colorWellID, distLayer)
{
	gSelectedTextObj     = NullSelectedText;
	gSelectedPreviewID   = previewID;
	gSelectedColorWellID = colorWellID;
	if (null == gSelectedPreviewID || typeof gSelectedPreviewID != typeof '') {
		gSelectedPreviewID = gPreviewIDs;
	}
	showPaletteAroundLayer(theEvent, gColorPaletteID, distLayer);
}

/**
 * 色パレット準備
 */
function setUpColorPalette(paletteName)
{
	if (paletteName == gEmojiPaletteID)
		return;

	if (gSelectedColorWellID && gSelectedPreviewID){
		// プレビュー背景色
		colorPaletteDidFocusColor(
			UtilKit.getBgColorById(gSelectedColorWellID));
	} else {
		colorPaletteDidFocusColor("#000000");
	}
}



/**
 * 色パレットの色にマウスが載った。
 */
function colorPaletteDidFocusColor(aColor)
{
	var lyer = XBSLayer.makeLayer(gSampleTextColorID);
	var style = null;
	var impFn = null;

	if (gSelectedPreviewID != null) {
		// 背景色
	}

	lyer.getStyleObject().color = aColor;
	UtilKit.setBgColorById(gPaletteColorWellID, aColor);
	textFieldSetValueById(gPaletteColorFieldID, aColor);
}

function colorPaletteDidSelectColor(aColor)
{
	if (false == gSelectedTextObj.isNull()) {
		insert_tag_color(aColor);
	} else if (gSelectedPreviewID != null) {
		updatePreviewBgcolor(gSelectedPreviewID, aColor);
	}
}

function synchronize_preview_bgcolors()
{
	for (var i = 0; i < gPreviewIDs.length; i++) {
		var preId   = gPreviewIDs[i];
		var bgcolor = UtilKit.getBgColorById(preId);

		UtilKit.setBgColorById(gPreviewBgColorWellID, bgcolor);
	}
}

/**
 * プレビュー領域の背景色を変更
 *
 * @param previewID string or array
 */
function updatePreviewBgcolor(previewID, aColor)
{
	update_preview_bgcolor(previewID, aColor);
}
function update_preview_bgcolor(previewID, aColor)
{
	if (previewID == null || previewID.length == 0) {
		return;
	}
	if (previewID.substring != null) {
		previewID = new Array(previewID);
	}

	for (var i = 0; i < previewID.length; i++) {
		UtilKit.setBgColorById(previewID[i], aColor);
	}
	UtilKit.setBgColorById(gPreviewBgColorWellID, aColor);
}

function textFieldSetValueById(layerID, aValue)
{
	var lyer  = new XBSLayer(layerID);
	var imp = null;

	if (false == lyer.isValid()) {
		return;
	}

	imp = lyer.getLayerImp();
	if (imp != null && imp.value != aValue) {
		imp.value = aValue;
	}
}
function validateColor(aColor)
{
	var i = 0;
	var a = 'a'.charCodeAt(0);
	var f = 'f'.charCodeAt(0);
	var A = 'A'.charCodeAt(0);
	var F = 'F'.charCodeAt(0);
	var c0 = '0'.charCodeAt(0);
	var c9 = '9'.charCodeAt(0);

	if (aColor == null || aColor.substring == null || aColor.length < 6) {
		return false;
	}
	if (aColor.charCodeAt(0) == '#'.charCodeAt(0)) {
		i = 1;
		if (aColor.length != 7) {
			return false;
		}
	}

	for (; i < aColor.length; i++) {
		var c = aColor.charCodeAt(i);

		if ((a <= c && c <= f) ||
		(A <= c && c <= F) ||
		(c0 <= c && c <= c9))
		{ continue; }

		return false;
	}
	return true;
}

function colorPaletteFieldValueDidChange(aField)
{
	var color = aField.value
	var preview_id;

	if (false == validateColor(color)) {
		return null;
	}
	if (color.charCodeAt(0) != '#'.charCodeAt(0)) {
		color = '#' + color;
	}
	colorPaletteDidFocusColor(color);

	return color;
}
function colorPaletteFieldValueDidAction()
{
	var t;
	var color;

	t = document.all
			? document.all(gPaletteColorFieldID)
			: document.getElementById(gPaletteColorFieldID);

	color = colorPaletteFieldValueDidChange(t);
	if (color != null) {
		colorPaletteDidSelectColor(color);
	}
}



//---------------------------------------------------------------------------------
//タグ
//---------------------------------------------------------------------------------


// 絵文字挿入
function insert_emoji(code)
{
	switch(emoji_type){
		case EMOJI_HTML:
			gSelectedTextObj.insertText(Tag.buildEmojiImageTag(code));
			break;
		case EMOJI_REF_JP:
			gSelectedTextObj.insertText('{' + getEmojiNameFromCode(code) + '}');
			break;
	}
}

function insert_tag_color(color)
{
	switch (gTagType) {
		case Tag.TYPE_CSS:
			_setSpanTag('color: ' + color + ';');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<font color="' + color + '">', '</font>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<色:' + color + '>', '</色>');
			break;
	}
}

function _setSpanTag(style)
{
	gSelectedTextObj.insertTextOnBothSides('<span style="' + style + '">','</span>');
}

function _setDivTag(style)
{
	gSelectedTextObj.insertTextOnBothSides('<div style="' + style + '">','</div>');
}



function insert_tag_align_left()
{
	switch (gTagType) {
		case Tag.TYPE_CSS:
			_setDivTag('text-align: left;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<div align="left">', '</div>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<左>', '</左>');
			break;
	}
}
function insert_tag_align_center()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setDivTag('text-align: center;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<center>', '</center>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<中>', '</中>');
			break;
	}
}
function insert_tag_align_right()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setDivTag('text-align: right;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<div align="right">', '</div>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<右>', '</右>');
			break;
	}
}
function insert_tag_style_italic()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setSpanTag('font-style: italic;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<i>', '</i>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<斜>', '</斜>');
			break;
	}
}
function insert_tag_strong()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			gSelectedTextObj.insertTextOnBothSides('<strong>', '</strong>');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<strong>', '</strong>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<太>', '</太>');
			break;
	}
}
function insert_tag_size_large()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setSpanTag('font-size: large;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<big>', '</big>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<大>', '</大>');
			break;
	}
}
function insert_tag_size_xlarge()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setSpanTag('font-size: x-large;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<big><big>', '</big></big>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<特大>', '</特大>');
			break;
	}
}
function insert_tag_size_small()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setSpanTag('font-size: small;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<small>', '</small>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<小>', '</小>');
			break;
	}
}
function insert_tag_decoration_underline()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setSpanTag('text-decoration: underline;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<u>', '</u>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<下線>', '</下線>');
			break;
	}
}
function insert_tag_decoration_line_through()
{
	switch(gTagType){
		case Tag.TYPE_CSS:
			_setSpanTag('text-decoration: line-through;');
			break;
		case Tag.TYPE_DEPRECATED_HTML:
			gSelectedTextObj.insertTextOnBothSides('<s>', '</s>');
			break;
		case Tag.TYPE_JP:
			gSelectedTextObj.insertTextOnBothSides('<打消線>', '</打消線>');
			break;
	}
}
function insert_tag_link()
{
	var url = window.prompt('リンク先URLを入力してください', 'http://');

	if (url != null) {

		switch(gTagType){
			case Tag.TYPE_CSS:
				gSelectedTextObj.insertTextOnBothSides('<a href=&quot;' + url + '&quot; target=&quot;_blank&quot;>','</a>');
				break;
			case Tag.TYPE_JP:
				gSelectedTextObj.insertTextOnBothSides('<リンク:' + url + '>','</リンク>');
				break;
		}
	}
}

//---------------------------------------------------------------------------------
// KeyBinding
//---------------------------------------------------------------------------------
/**
 *  「本文」・「追記」のtextareaのキー入力操作
 *
 * @param theEvent key event
 */
function controlKeystroke(theEvent)
{
	var VK_RIGHT = 39;
	var VK_LEFT  = 37;
	var VK_BS    = 8;
	var VK_DEL   = 46;

	keyCode = XBSEvent.getKeyCode(theEvent);
	isIe = (theEvent.which == null);

	switch (keyCode) {
	case VK_RIGHT:
		if (gSelectedTextObj.moveCaretOutOfTag(true, theEvent.shiftKey) && isIe)
			theEvent.returnValue = false;

		break;
	case VK_LEFT:
		if (gSelectedTextObj.moveCaretOutOfTag(false, theEvent.shiftKey) && isIe)
			theEvent.returnValue = false;
		break;
	case VK_BS:
		gSelectedTextObj.deleteTagOnCaret(false);
		break;
	case VK_DEL:
		gSelectedTextObj.deleteTagOnCaret(true);
		break;

	default:
		break;
	}
	return false;
}


var loadedEmoji = false;
function loadEmoji(){
	if(loadedEmoji){
		return;
	}
	var emojiHtml = '';
	emojiHtml += '<table border="0" cellspacing="0" cellpadding="0">';
	emojiHtml += '<tr><td colspan="15" align="right"><a href="javascript:void(0);" onclick="javascript:hideAllPalette(\'emojiPalette\');">閉じる</a></td></tr>';
	emojiHtml += '<tr><td><a title="スマイル" href="javascript:void(0);" onClick="insert_emoji(\'01\');"><img src="http://static.yaplog.jp/static/image/emoji/01.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="グズン" href="javascript:void(0);" onClick="insert_emoji(\'02\');"><img src="http://static.yaplog.jp/static/image/emoji/02.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハッピー" href="javascript:void(0);" onClick="insert_emoji(\'03\');"><img src="http://static.yaplog.jp/static/image/emoji/03.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="笑" href="javascript:void(0);" onClick="insert_emoji(\'04\');"><img src="http://static.yaplog.jp/static/image/emoji/04.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ラブ" href="javascript:void(0);" onClick="insert_emoji(\'05\');"><img src="http://static.yaplog.jp/static/image/emoji/05.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ふきげん" href="javascript:void(0);" onClick="insert_emoji(\'06\');"><img src="http://static.yaplog.jp/static/image/emoji/06.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ショック" href="javascript:void(0);" onClick="insert_emoji(\'07\');"><img src="http://static.yaplog.jp/static/image/emoji/07.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="げっ" href="javascript:void(0);" onClick="insert_emoji(\'135\');"><img src="http://static.yaplog.jp/static/image/emoji/135.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="プンスカ" href="javascript:void(0);" onClick="insert_emoji(\'08\');"><img src="http://static.yaplog.jp/static/image/emoji/08.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="NO" href="javascript:void(0);" onClick="insert_emoji(\'18\');"><img src="http://static.yaplog.jp/static/image/emoji/18.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="YES" href="javascript:void(0);" onClick="insert_emoji(\'19\');"><img src="http://static.yaplog.jp/static/image/emoji/19.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ごめんなさい" href="javascript:void(0);" onClick="insert_emoji(\'185\');"><img src="http://static.yaplog.jp/static/image/emoji/185.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="海水浴" href="javascript:void(0);" onClick="insert_emoji(\'68\');"><img src="http://static.yaplog.jp/static/image/emoji/68.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レインコート" href="javascript:void(0);" onClick="insert_emoji(\'69\');"><img src="http://static.yaplog.jp/static/image/emoji/69.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="りんごちゃんNG" href="javascript:void(0);" onClick="insert_emoji(\'70\');"><img src="http://static.yaplog.jp/static/image/emoji/70.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="りんごちゃん" href="javascript:void(0);" onClick="insert_emoji(\'71\');"><img src="http://static.yaplog.jp/static/image/emoji/71.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハム" href="javascript:void(0);" onClick="insert_emoji(\'72\');"><img src="http://static.yaplog.jp/static/image/emoji/72.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハート" href="javascript:void(0);" onClick="insert_emoji(\'09\');"><img src="http://static.yaplog.jp/static/image/emoji/09.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キューピット" href="javascript:void(0);" onClick="insert_emoji(\'10\');"><img src="http://static.yaplog.jp/static/image/emoji/10.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハートブレイク" href="javascript:void(0);" onClick="insert_emoji(\'11\');"><img src="http://static.yaplog.jp/static/image/emoji/11.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ドキドキ" href="javascript:void(0);" onClick="insert_emoji(\'12\');"><img src="http://static.yaplog.jp/static/image/emoji/12.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ラブラブ" href="javascript:void(0);" onClick="insert_emoji(\'13\');"><img src="http://static.yaplog.jp/static/image/emoji/13.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キス" href="javascript:void(0);" onClick="insert_emoji(\'142\');"><img src="http://static.yaplog.jp/static/image/emoji/142.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="怒" href="javascript:void(0);" onClick="insert_emoji(\'21\');"><img src="http://static.yaplog.jp/static/image/emoji/21.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ルンルン" href="javascript:void(0);" onClick="insert_emoji(\'22\');"><img src="http://static.yaplog.jp/static/image/emoji/22.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="はてな" href="javascript:void(0);" onClick="insert_emoji(\'23\');"><img src="http://static.yaplog.jp/static/image/emoji/23.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="びっくり" href="javascript:void(0);" onClick="insert_emoji(\'24\');"><img src="http://static.yaplog.jp/static/image/emoji/24.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="超びっくり" href="javascript:void(0);" onClick="insert_emoji(\'155\');"><img src="http://static.yaplog.jp/static/image/emoji/155.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="なんで" href="javascript:void(0);" onClick="insert_emoji(\'162\');"><img src="http://static.yaplog.jp/static/image/emoji/162.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="汗" href="javascript:void(0);" onClick="insert_emoji(\'25\');"><img src="http://static.yaplog.jp/static/image/emoji/25.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="涙" href="javascript:void(0);" onClick="insert_emoji(\'67\');"><img src="http://static.yaplog.jp/static/image/emoji/67.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="スリープ" href="javascript:void(0);" onClick="insert_emoji(\'26\');"><img src="http://static.yaplog.jp/static/image/emoji/26.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キラリ" href="javascript:void(0);" onClick="insert_emoji(\'27\');"><img src="http://static.yaplog.jp/static/image/emoji/27.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ひらめき" href="javascript:void(0);" onClick="insert_emoji(\'143\');"><img src="http://static.yaplog.jp/static/image/emoji/143.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ため息" href="javascript:void(0);" onClick="insert_emoji(\'37\');"><img src="http://static.yaplog.jp/static/image/emoji/37.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="祝" href="javascript:void(0);" onClick="insert_emoji(\'33\');"><img src="http://static.yaplog.jp/static/image/emoji/33.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ピース" href="javascript:void(0);" onClick="insert_emoji(\'148\');"><img src="http://static.yaplog.jp/static/image/emoji/148.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="グッド" href="javascript:void(0);" onClick="insert_emoji(\'122\');"><img src="http://static.yaplog.jp/static/image/emoji/122.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="OK" href="javascript:void(0);" onClick="insert_emoji(\'28\');"><img src="http://static.yaplog.jp/static/image/emoji/28.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="BOO" href="javascript:void(0);" onClick="insert_emoji(\'131\');"><img src="http://static.yaplog.jp/static/image/emoji/131.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="バイバイ" href="javascript:void(0);" onClick="insert_emoji(\'132\');"><img src="http://static.yaplog.jp/static/image/emoji/132.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ガッテン" href="javascript:void(0);" onClick="insert_emoji(\'29\');"><img src="http://static.yaplog.jp/static/image/emoji/29.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="パチパチ" href="javascript:void(0);" onClick="insert_emoji(\'30\');"><img src="http://static.yaplog.jp/static/image/emoji/30.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ダッシュ" href="javascript:void(0);" onClick="insert_emoji(\'38\');"><img src="http://static.yaplog.jp/static/image/emoji/38.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="メモ" href="javascript:void(0);" onClick="insert_emoji(\'36\');"><img src="http://static.yaplog.jp/static/image/emoji/36.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="爆弾" href="javascript:void(0);" onClick="insert_emoji(\'85\');"><img src="http://static.yaplog.jp/static/image/emoji/85.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="火" href="javascript:void(0);" onClick="insert_emoji(\'54\');"><img src="http://static.yaplog.jp/static/image/emoji/54.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="アップ" href="javascript:void(0);" onClick="insert_emoji(\'93\');"><img src="http://static.yaplog.jp/static/image/emoji/93.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ダウン" href="javascript:void(0);" onClick="insert_emoji(\'95\');"><img src="http://static.yaplog.jp/static/image/emoji/95.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="サイド" href="javascript:void(0);" onClick="insert_emoji(\'94\');"><img src="http://static.yaplog.jp/static/image/emoji/94.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レフト" href="javascript:void(0);" onClick="insert_emoji(\'179\');"><img src="http://static.yaplog.jp/static/image/emoji/179.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="赤ちゃん" href="javascript:void(0);" onClick="insert_emoji(\'166\');"><img src="http://static.yaplog.jp/static/image/emoji/166.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ねずみ" href="javascript:void(0);" onClick="insert_emoji(\'45\');"><img src="http://static.yaplog.jp/static/image/emoji/45.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ペンギン" href="javascript:void(0);" onClick="insert_emoji(\'46\');"><img src="http://static.yaplog.jp/static/image/emoji/46.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="カエル" href="javascript:void(0);" onClick="insert_emoji(\'47\');"><img src="http://static.yaplog.jp/static/image/emoji/47.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ぶた" href="javascript:void(0);" onClick="insert_emoji(\'150\');"><img src="http://static.yaplog.jp/static/image/emoji/150.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="いぬ" href="javascript:void(0);" onClick="insert_emoji(\'48\');"><img src="http://static.yaplog.jp/static/image/emoji/48.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ねこ" href="javascript:void(0);" onClick="insert_emoji(\'116\');"><img src="http://static.yaplog.jp/static/image/emoji/116.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="さる" href="javascript:void(0);" onClick="insert_emoji(\'117\');"><img src="http://static.yaplog.jp/static/image/emoji/117.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ぱんだ" href="javascript:void(0);" onClick="insert_emoji(\'147\');"><img src="http://static.yaplog.jp/static/image/emoji/147.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="にわとり" href="javascript:void(0);" onClick="insert_emoji(\'49\');"><img src="http://static.yaplog.jp/static/image/emoji/49.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ひよこ" href="javascript:void(0);" onClick="insert_emoji(\'50\');"><img src="http://static.yaplog.jp/static/image/emoji/50.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="アヒル" href="javascript:void(0);" onClick="insert_emoji(\'139\');"><img src="http://static.yaplog.jp/static/image/emoji/139.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="うさぎ" href="javascript:void(0);" onClick="insert_emoji(\'51\');"><img src="http://static.yaplog.jp/static/image/emoji/51.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="うま" href="javascript:void(0);" onClick="insert_emoji(\'160\');"><img src="http://static.yaplog.jp/static/image/emoji/160.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ひつじ" href="javascript:void(0);" onClick="insert_emoji(\'159\');"><img src="http://static.yaplog.jp/static/image/emoji/159.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="みつばち" href="javascript:void(0);" onClick="insert_emoji(\'158\');"><img src="http://static.yaplog.jp/static/image/emoji/158.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="てんとう虫" href="javascript:void(0);" onClick="insert_emoji(\'76\');"><img src="http://static.yaplog.jp/static/image/emoji/76.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="とんぼ" href="javascript:void(0);" onClick="insert_emoji(\'115\');"><img src="http://static.yaplog.jp/static/image/emoji/115.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="魚" href="javascript:void(0);" onClick="insert_emoji(\'133\');"><img src="http://static.yaplog.jp/static/image/emoji/133.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="湯呑" href="javascript:void(0);" onClick="insert_emoji(\'88\');"><img src="http://static.yaplog.jp/static/image/emoji/88.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マグカップ" href="javascript:void(0);" onClick="insert_emoji(\'112\');"><img src="http://static.yaplog.jp/static/image/emoji/112.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="メロンソーダ" href="javascript:void(0);" onClick="insert_emoji(\'180\');"><img src="http://static.yaplog.jp/static/image/emoji/180.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="日本酒" href="javascript:void(0);" onClick="insert_emoji(\'178\');"><img src="http://static.yaplog.jp/static/image/emoji/178.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ビール" href="javascript:void(0);" onClick="insert_emoji(\'81\');"><img src="http://static.yaplog.jp/static/image/emoji/81.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="カクテル" href="javascript:void(0);" onClick="insert_emoji(\'90\');"><img src="http://static.yaplog.jp/static/image/emoji/90.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ワイン" href="javascript:void(0);" onClick="insert_emoji(\'98\');"><img src="http://static.yaplog.jp/static/image/emoji/98.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ほ乳瓶" href="javascript:void(0);" onClick="insert_emoji(\'82\');"><img src="http://static.yaplog.jp/static/image/emoji/82.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="いちご" href="javascript:void(0);" onClick="insert_emoji(\'61\');"><img src="http://static.yaplog.jp/static/image/emoji/61.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="りんご" href="javascript:void(0);" onClick="insert_emoji(\'78\');"><img src="http://static.yaplog.jp/static/image/emoji/78.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="さくらんぼ" href="javascript:void(0);" onClick="insert_emoji(\'79\');"><img src="http://static.yaplog.jp/static/image/emoji/79.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="バナナ" href="javascript:void(0);" onClick="insert_emoji(\'92\');"><img src="http://static.yaplog.jp/static/image/emoji/92.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="スイカ" href="javascript:void(0);" onClick="insert_emoji(\'80\');"><img src="http://static.yaplog.jp/static/image/emoji/80.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="おにぎり" href="javascript:void(0);" onClick="insert_emoji(\'62\');"><img src="http://static.yaplog.jp/static/image/emoji/62.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ごはん" href="javascript:void(0);" onClick="insert_emoji(\'63\');"><img src="http://static.yaplog.jp/static/image/emoji/63.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="カレー" href="javascript:void(0);" onClick="insert_emoji(\'119\');"><img src="http://static.yaplog.jp/static/image/emoji/119.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="パスタ" href="javascript:void(0);" onClick="insert_emoji(\'207\');"><img src="http://static.yaplog.jp/static/image/emoji/207.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ラーメン" href="javascript:void(0);" onClick="insert_emoji(\'202\');"><img src="http://static.yaplog.jp/static/image/emoji/202.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="食パン" href="javascript:void(0);" onClick="insert_emoji(\'203\');"><img src="http://static.yaplog.jp/static/image/emoji/203.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="サンドイッチ" href="javascript:void(0);" onClick="insert_emoji(\'152\');"><img src="http://static.yaplog.jp/static/image/emoji/152.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="ハンバーガー" href="javascript:void(0);" onClick="insert_emoji(\'123\');"><img src="http://static.yaplog.jp/static/image/emoji/123.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ショートケーキ" href="javascript:void(0);" onClick="insert_emoji(\'87\');"><img src="http://static.yaplog.jp/static/image/emoji/87.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ケーキ" href="javascript:void(0);" onClick="insert_emoji(\'65\');"><img src="http://static.yaplog.jp/static/image/emoji/65.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="かき氷" href="javascript:void(0);" onClick="insert_emoji(\'189\');"><img src="http://static.yaplog.jp/static/image/emoji/189.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ソフトクリーム" href="javascript:void(0);" onClick="insert_emoji(\'190\');"><img src="http://static.yaplog.jp/static/image/emoji/190.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="十五夜" href="javascript:void(0);" onClick="insert_emoji(\'114\');"><img src="http://static.yaplog.jp/static/image/emoji/114.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="だんご" href="javascript:void(0);" onClick="insert_emoji(\'86\');"><img src="http://static.yaplog.jp/static/image/emoji/86.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="鏡もち" href="javascript:void(0);" onClick="insert_emoji(\'99\');"><img src="http://static.yaplog.jp/static/image/emoji/99.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="餅" href="javascript:void(0);" onClick="insert_emoji(\'177\');"><img src="http://static.yaplog.jp/static/image/emoji/177.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="食事" href="javascript:void(0);" onClick="insert_emoji(\'42\');"><img src="http://static.yaplog.jp/static/image/emoji/42.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="お弁当" href="javascript:void(0);" onClick="insert_emoji(\'206\');"><img src="http://static.yaplog.jp/static/image/emoji/206.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="さくら" href="javascript:void(0);" onClick="insert_emoji(\'107\');"><img src="http://static.yaplog.jp/static/image/emoji/107.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="チューリップ" href="javascript:void(0);" onClick="insert_emoji(\'127\');"><img src="http://static.yaplog.jp/static/image/emoji/127.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ふたば" href="javascript:void(0);" onClick="insert_emoji(\'100\');"><img src="http://static.yaplog.jp/static/image/emoji/100.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="花" href="javascript:void(0);" onClick="insert_emoji(\'55\');"><img src="http://static.yaplog.jp/static/image/emoji/55.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="ひまわり" href="javascript:void(0);" onClick="insert_emoji(\'191\');"><img src="http://static.yaplog.jp/static/image/emoji/191.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハイビスカス" href="javascript:void(0);" onClick="insert_emoji(\'136\');"><img src="http://static.yaplog.jp/static/image/emoji/136.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="るりばな" href="javascript:void(0);" onClick="insert_emoji(\'134\');"><img src="http://static.yaplog.jp/static/image/emoji/134.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="もみじ" href="javascript:void(0);" onClick="insert_emoji(\'106\');"><img src="http://static.yaplog.jp/static/image/emoji/106.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="クローバー" href="javascript:void(0);" onClick="insert_emoji(\'60\');"><img src="http://static.yaplog.jp/static/image/emoji/60.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="きのこ" href="javascript:void(0);" onClick="insert_emoji(\'146\');"><img src="http://static.yaplog.jp/static/image/emoji/146.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="花束" href="javascript:void(0);" onClick="insert_emoji(\'165\');"><img src="http://static.yaplog.jp/static/image/emoji/165.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ヤシの木" href="javascript:void(0);" onClick="insert_emoji(\'210\');"><img src="http://static.yaplog.jp/static/image/emoji/210.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="晴" href="javascript:void(0);" onClick="insert_emoji(\'14\');"><img src="http://static.yaplog.jp/static/image/emoji/14.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="雨" href="javascript:void(0);" onClick="insert_emoji(\'15\');"><img src="http://static.yaplog.jp/static/image/emoji/15.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="曇" href="javascript:void(0);" onClick="insert_emoji(\'16\');"><img src="http://static.yaplog.jp/static/image/emoji/16.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="雷" href="javascript:void(0);" onClick="insert_emoji(\'144\');"><img src="http://static.yaplog.jp/static/image/emoji/144.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="雪" href="javascript:void(0);" onClick="insert_emoji(\'17\');"><img src="http://static.yaplog.jp/static/image/emoji/17.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="月" href="javascript:void(0);" onClick="insert_emoji(\'59\');"><img src="http://static.yaplog.jp/static/image/emoji/59.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="流れ星" href="javascript:void(0);" onClick="insert_emoji(\'154\');"><img src="http://static.yaplog.jp/static/image/emoji/154.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="虹" href="javascript:void(0);" onClick="insert_emoji(\'77\');"><img src="http://static.yaplog.jp/static/image/emoji/77.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="結晶" href="javascript:void(0);" onClick="insert_emoji(\'109\');"><img src="http://static.yaplog.jp/static/image/emoji/109.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="てるてる坊主" href="javascript:void(0);" onClick="insert_emoji(\'168\');"><img src="http://static.yaplog.jp/static/image/emoji/168.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="買物" href="javascript:void(0);" onClick="insert_emoji(\'66\');"><img src="http://static.yaplog.jp/static/image/emoji/66.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="リボン" href="javascript:void(0);" onClick="insert_emoji(\'151\');"><img src="http://static.yaplog.jp/static/image/emoji/151.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="口紅" href="javascript:void(0);" onClick="insert_emoji(\'145\');"><img src="http://static.yaplog.jp/static/image/emoji/145.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハイヒール" href="javascript:void(0);" onClick="insert_emoji(\'138\');"><img src="http://static.yaplog.jp/static/image/emoji/138.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="指輪" href="javascript:void(0);" onClick="insert_emoji(\'167\');"><img src="http://static.yaplog.jp/static/image/emoji/167.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="Tシャツ" href="javascript:void(0);" onClick="insert_emoji(\'157\');"><img src="http://static.yaplog.jp/static/image/emoji/157.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="王冠" href="javascript:void(0);" onClick="insert_emoji(\'141\');"><img src="http://static.yaplog.jp/static/image/emoji/141.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ティアラ" href="javascript:void(0);" onClick="insert_emoji(\'156\');"><img src="http://static.yaplog.jp/static/image/emoji/156.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="学校" href="javascript:void(0);" onClick="insert_emoji(\'39\');"><img src="http://static.yaplog.jp/static/image/emoji/39.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="会社" href="javascript:void(0);" onClick="insert_emoji(\'40\');"><img src="http://static.yaplog.jp/static/image/emoji/40.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="病院" href="javascript:void(0);" onClick="insert_emoji(\'140\');"><img src="http://static.yaplog.jp/static/image/emoji/140.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="家" href="javascript:void(0);" onClick="insert_emoji(\'43\');"><img src="http://static.yaplog.jp/static/image/emoji/43.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="車" href="javascript:void(0);" onClick="insert_emoji(\'41\');"><img src="http://static.yaplog.jp/static/image/emoji/41.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="バス" href="javascript:void(0);" onClick="insert_emoji(\'73\');"><img src="http://static.yaplog.jp/static/image/emoji/73.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="電車" href="javascript:void(0);" onClick="insert_emoji(\'83\');"><img src="http://static.yaplog.jp/static/image/emoji/83.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="自転車" href="javascript:void(0);" onClick="insert_emoji(\'91\');"><img src="http://static.yaplog.jp/static/image/emoji/91.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="飛行機" href="javascript:void(0);" onClick="insert_emoji(\'128\');"><img src="http://static.yaplog.jp/static/image/emoji/128.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="携帯" href="javascript:void(0);" onClick="insert_emoji(\'57\');"><img src="http://static.yaplog.jp/static/image/emoji/57.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="メール" href="javascript:void(0);" onClick="insert_emoji(\'35\');"><img src="http://static.yaplog.jp/static/image/emoji/35.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="パソコン" href="javascript:void(0);" onClick="insert_emoji(\'34\');"><img src="http://static.yaplog.jp/static/image/emoji/34.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="CD" href="javascript:void(0);" onClick="insert_emoji(\'118\');"><img src="http://static.yaplog.jp/static/image/emoji/118.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="お金" href="javascript:void(0);" onClick="insert_emoji(\'58\');"><img src="http://static.yaplog.jp/static/image/emoji/58.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="祝袋" href="javascript:void(0);" onClick="insert_emoji(\'176\');"><img src="http://static.yaplog.jp/static/image/emoji/176.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="大入" href="javascript:void(0);" onClick="insert_emoji(\'172\');"><img src="http://static.yaplog.jp/static/image/emoji/172.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="腕時計" href="javascript:void(0);" onClick="insert_emoji(\'103\');"><img src="http://static.yaplog.jp/static/image/emoji/103.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="時計" href="javascript:void(0);" onClick="insert_emoji(\'74\');"><img src="http://static.yaplog.jp/static/image/emoji/74.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="カメラ" href="javascript:void(0);" onClick="insert_emoji(\'84\');"><img src="http://static.yaplog.jp/static/image/emoji/84.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="テレビ" href="javascript:void(0);" onClick="insert_emoji(\'97\');"><img src="http://static.yaplog.jp/static/image/emoji/97.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="黒電話" href="javascript:void(0);" onClick="insert_emoji(\'104\');"><img src="http://static.yaplog.jp/static/image/emoji/104.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="掃除機" href="javascript:void(0);" onClick="insert_emoji(\'175\');"><img src="http://static.yaplog.jp/static/image/emoji/175.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ポスト" href="javascript:void(0);" onClick="insert_emoji(\'102\');"><img src="http://static.yaplog.jp/static/image/emoji/102.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="サッカーボール" href="javascript:void(0);" onClick="insert_emoji(\'121\');"><img src="http://static.yaplog.jp/static/image/emoji/121.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="野球ボール" href="javascript:void(0);" onClick="insert_emoji(\'129\');"><img src="http://static.yaplog.jp/static/image/emoji/129.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="バスケ" href="javascript:void(0);" onClick="insert_emoji(\'200\');"><img src="http://static.yaplog.jp/static/image/emoji/200.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="サーフィン" href="javascript:void(0);" onClick="insert_emoji(\'201\');"><img src="http://static.yaplog.jp/static/image/emoji/201.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="テニス" href="javascript:void(0);" onClick="insert_emoji(\'198\');"><img src="http://static.yaplog.jp/static/image/emoji/198.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ゴルフ" href="javascript:void(0);" onClick="insert_emoji(\'199\');"><img src="http://static.yaplog.jp/static/image/emoji/199.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="観覧車" href="javascript:void(0);" onClick="insert_emoji(\'195\');"><img src="http://static.yaplog.jp/static/image/emoji/195.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="コントローラー" href="javascript:void(0);" onClick="insert_emoji(\'89\');"><img src="http://static.yaplog.jp/static/image/emoji/89.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="本" href="javascript:void(0);" onClick="insert_emoji(\'113\');"><img src="http://static.yaplog.jp/static/image/emoji/113.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マイク" href="javascript:void(0);" onClick="insert_emoji(\'101\');"><img src="http://static.yaplog.jp/static/image/emoji/101.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="クラッカー" href="javascript:void(0);" onClick="insert_emoji(\'126\');"><img src="http://static.yaplog.jp/static/image/emoji/126.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="プレゼント" href="javascript:void(0);" onClick="insert_emoji(\'111\');"><img src="http://static.yaplog.jp/static/image/emoji/111.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キャンドル" href="javascript:void(0);" onClick="insert_emoji(\'130\');"><img src="http://static.yaplog.jp/static/image/emoji/130.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="うきわ" href="javascript:void(0);" onClick="insert_emoji(\'96\');"><img src="http://static.yaplog.jp/static/image/emoji/96.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="うちわ" href="javascript:void(0);" onClick="insert_emoji(\'125\');"><img src="http://static.yaplog.jp/static/image/emoji/125.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="花火" href="javascript:void(0);" onClick="insert_emoji(\'75\');"><img src="http://static.yaplog.jp/static/image/emoji/75.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ちょうちん" href="javascript:void(0);" onClick="insert_emoji(\'161\');"><img src="http://static.yaplog.jp/static/image/emoji/161.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="温泉" href="javascript:void(0);" onClick="insert_emoji(\'44\');"><img src="http://static.yaplog.jp/static/image/emoji/44.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハロウィン" href="javascript:void(0);" onClick="insert_emoji(\'137\');"><img src="http://static.yaplog.jp/static/image/emoji/137.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ツリー" href="javascript:void(0);" onClick="insert_emoji(\'108\');"><img src="http://static.yaplog.jp/static/image/emoji/108.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="サンタブーツ" href="javascript:void(0);" onClick="insert_emoji(\'110\');"><img src="http://static.yaplog.jp/static/image/emoji/110.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="こたつ" href="javascript:void(0);" onClick="insert_emoji(\'164\');"><img src="http://static.yaplog.jp/static/image/emoji/164.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="門松" href="javascript:void(0);" onClick="insert_emoji(\'169\');"><img src="http://static.yaplog.jp/static/image/emoji/169.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="富士山" href="javascript:void(0);" onClick="insert_emoji(\'170\');"><img src="http://static.yaplog.jp/static/image/emoji/170.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="羽根" href="javascript:void(0);" onClick="insert_emoji(\'171\');"><img src="http://static.yaplog.jp/static/image/emoji/171.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="初心者" href="javascript:void(0);" onClick="insert_emoji(\'31\');"><img src="http://static.yaplog.jp/static/image/emoji/31.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="危険" href="javascript:void(0);" onClick="insert_emoji(\'32\');"><img src="http://static.yaplog.jp/static/image/emoji/32.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="旗" href="javascript:void(0);" onClick="insert_emoji(\'56\');"><img src="http://static.yaplog.jp/static/image/emoji/56.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ロケット" href="javascript:void(0);" onClick="insert_emoji(\'64\');"><img src="http://static.yaplog.jp/static/image/emoji/64.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="うんこ" href="javascript:void(0);" onClick="insert_emoji(\'52\');"><img src="http://static.yaplog.jp/static/image/emoji/52.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="おばけ" href="javascript:void(0);" onClick="insert_emoji(\'53\');"><img src="http://static.yaplog.jp/static/image/emoji/53.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="どくろ" href="javascript:void(0);" onClick="insert_emoji(\'20\');"><img src="http://static.yaplog.jp/static/image/emoji/20.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="信号" href="javascript:void(0);" onClick="insert_emoji(\'105\');"><img src="http://static.yaplog.jp/static/image/emoji/105.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="かぎ" href="javascript:void(0);" onClick="insert_emoji(\'124\');"><img src="http://static.yaplog.jp/static/image/emoji/124.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="サイコロ" href="javascript:void(0);" onClick="insert_emoji(\'120\');"><img src="http://static.yaplog.jp/static/image/emoji/120.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="鉛筆" href="javascript:void(0);" onClick="insert_emoji(\'149\');"><img src="http://static.yaplog.jp/static/image/emoji/149.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="筆" href="javascript:void(0);" onClick="insert_emoji(\'173\');"><img src="http://static.yaplog.jp/static/image/emoji/173.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="はさみ" href="javascript:void(0);" onClick="insert_emoji(\'153\');"><img src="http://static.yaplog.jp/static/image/emoji/153.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="地球" href="javascript:void(0);" onClick="insert_emoji(\'163\');"><img src="http://static.yaplog.jp/static/image/emoji/163.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="カプセル" href="javascript:void(0);" onClick="insert_emoji(\'174\');"><img src="http://static.yaplog.jp/static/image/emoji/174.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="風呂" href="javascript:void(0);" onClick="insert_emoji(\'194\');"><img src="http://static.yaplog.jp/static/image/emoji/194.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="チェック" href="javascript:void(0);" onClick="insert_emoji(\'231\');"><img src="http://static.yaplog.jp/static/image/emoji/231.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="蝶" href="javascript:void(0);" onClick="insert_emoji(\'232\');"><img src="http://static.yaplog.jp/static/image/emoji/232.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="チョコ" href="javascript:void(0);" onClick="insert_emoji(\'233\');"><img src="http://static.yaplog.jp/static/image/emoji/233.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="エビフライ" href="javascript:void(0);" onClick="insert_emoji(\'234\');"><img src="http://static.yaplog.jp/static/image/emoji/234.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="トリコロール" href="javascript:void(0);" onClick="insert_emoji(\'235\');"><img src="http://static.yaplog.jp/static/image/emoji/235.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="始まり" href="javascript:void(0);" onClick="insert_emoji(\'236\');"><img src="http://static.yaplog.jp/static/image/emoji/236.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="終わり" href="javascript:void(0);" onClick="insert_emoji(\'237\');"><img src="http://static.yaplog.jp/static/image/emoji/237.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キラブルー" href="javascript:void(0);" onClick="insert_emoji(\'238\');"><img src="http://static.yaplog.jp/static/image/emoji/238.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キラピンク" href="javascript:void(0);" onClick="insert_emoji(\'239\');"><img src="http://static.yaplog.jp/static/image/emoji/239.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="映画" href="javascript:void(0);" onClick="insert_emoji(\'240\');"><img src="http://static.yaplog.jp/static/image/emoji/240.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="プリン" href="javascript:void(0);" onClick="insert_emoji(\'241\');"><img src="http://static.yaplog.jp/static/image/emoji/241.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="バラ" href="javascript:void(0);" onClick="insert_emoji(\'242\');"><img src="http://static.yaplog.jp/static/image/emoji/242.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マト緑" href="javascript:void(0);" onClick="insert_emoji(\'243\');"><img src="http://static.yaplog.jp/static/image/emoji/243.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マト赤" href="javascript:void(0);" onClick="insert_emoji(\'244\');"><img src="http://static.yaplog.jp/static/image/emoji/244.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マト青" href="javascript:void(0);" onClick="insert_emoji(\'245\');"><img src="http://static.yaplog.jp/static/image/emoji/245.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="1ばん" href="javascript:void(0);" onClick="insert_emoji(\'246\');"><img src="http://static.yaplog.jp/static/image/emoji/246.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="2ばん" href="javascript:void(0);" onClick="insert_emoji(\'247\');"><img src="http://static.yaplog.jp/static/image/emoji/247.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="3ばん" href="javascript:void(0);" onClick="insert_emoji(\'248\');"><img src="http://static.yaplog.jp/static/image/emoji/248.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="バトン赤" href="javascript:void(0);" onClick="insert_emoji(\'226\');"><img src="http://static.yaplog.jp/static/image/emoji/226.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ハケ" href="javascript:void(0);" onClick="insert_emoji(\'229\');"><img src="http://static.yaplog.jp/static/image/emoji/229.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="プリンター" href="javascript:void(0);" onClick="insert_emoji(\'230\');"><img src="http://static.yaplog.jp/static/image/emoji/230.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="スパナ" href="javascript:void(0);" onClick="insert_emoji(\'224\');"><img src="http://static.yaplog.jp/static/image/emoji/224.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="すし" href="javascript:void(0);" onClick="insert_emoji(\'249\');"><img src="http://static.yaplog.jp/static/image/emoji/249.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="走るひよこ" href="javascript:void(0);" onClick="insert_emoji(\'250\');"><img src="http://static.yaplog.jp/static/image/emoji/250.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="考えるひよこ" href="javascript:void(0);" onClick="insert_emoji(\'251\');"><img src="http://static.yaplog.jp/static/image/emoji/251.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="止まるひよこ" href="javascript:void(0);" onClick="insert_emoji(\'252\');"><img src="http://static.yaplog.jp/static/image/emoji/252.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ユニミーピンク" href="javascript:void(0);" onClick="insert_emoji(\'221\');"><img src="http://static.yaplog.jp/static/image/emoji/221.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ユニミー青" href="javascript:void(0);" onClick="insert_emoji(\'253\');"><img src="http://static.yaplog.jp/static/image/emoji/253.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ユニミー紫" href="javascript:void(0);" onClick="insert_emoji(\'254\');"><img src="http://static.yaplog.jp/static/image/emoji/254.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="わお" href="javascript:void(0);" onClick="insert_emoji(\'255\');"><img src="http://static.yaplog.jp/static/image/emoji/255.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="天使" href="javascript:void(0);" onClick="insert_emoji(\'256\');"><img src="http://static.yaplog.jp/static/image/emoji/256.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="悪魔" href="javascript:void(0);" onClick="insert_emoji(\'257\');"><img src="http://static.yaplog.jp/static/image/emoji/257.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="だるま" href="javascript:void(0);" onClick="insert_emoji(\'258\');"><img src="http://static.yaplog.jp/static/image/emoji/258.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ベル" href="javascript:void(0);" onClick="insert_emoji(\'259\');"><img src="http://static.yaplog.jp/static/image/emoji/259.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ビン" href="javascript:void(0);" onClick="insert_emoji(\'260\');"><img src="http://static.yaplog.jp/static/image/emoji/260.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="クロス" href="javascript:void(0);" onClick="insert_emoji(\'261\');"><img src="http://static.yaplog.jp/static/image/emoji/261.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="柊" href="javascript:void(0);" onClick="insert_emoji(\'262\');"><img src="http://static.yaplog.jp/static/image/emoji/262.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="キラ" href="javascript:void(0);" onClick="insert_emoji(\'263\');"><img src="http://static.yaplog.jp/static/image/emoji/263.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レコード" href="javascript:void(0);" onClick="insert_emoji(\'264\');"><img src="http://static.yaplog.jp/static/image/emoji/264.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="シューズ" href="javascript:void(0);" onClick="insert_emoji(\'265\');"><img src="http://static.yaplog.jp/static/image/emoji/265.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="エッフェル塔" href="javascript:void(0);" onClick="insert_emoji(\'266\');"><img src="http://static.yaplog.jp/static/image/emoji/266.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="なす" href="javascript:void(0);" onClick="insert_emoji(\'267\');"><img src="http://static.yaplog.jp/static/image/emoji/267.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="お肉" href="javascript:void(0);" onClick="insert_emoji(\'268\');"><img src="http://static.yaplog.jp/static/image/emoji/268.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="にんじん" href="javascript:void(0);" onClick="insert_emoji(\'269\');"><img src="http://static.yaplog.jp/static/image/emoji/269.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="トマト" href="javascript:void(0);" onClick="insert_emoji(\'270\');"><img src="http://static.yaplog.jp/static/image/emoji/270.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '<tr><td><a title="ドーナッツ" href="javascript:void(0);" onClick="insert_emoji(\'271\');"><img src="http://static.yaplog.jp/static/image/emoji/271.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="ドーナッツピンク" href="javascript:void(0);" onClick="insert_emoji(\'272\');"><img src="http://static.yaplog.jp/static/image/emoji/272.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マカロンブルー" href="javascript:void(0);" onClick="insert_emoji(\'273\');"><img src="http://static.yaplog.jp/static/image/emoji/273.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マカロンオレンジ" href="javascript:void(0);" onClick="insert_emoji(\'274\');"><img src="http://static.yaplog.jp/static/image/emoji/274.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="マカロンピンク" href="javascript:void(0);" onClick="insert_emoji(\'275\');"><img src="http://static.yaplog.jp/static/image/emoji/275.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レース黒上" href="javascript:void(0);" onClick="insert_emoji(\'276\');"><img src="http://static.yaplog.jp/static/image/emoji/276.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レース金上" href="javascript:void(0);" onClick="insert_emoji(\'277\');"><img src="http://static.yaplog.jp/static/image/emoji/277.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レースピンク上" href="javascript:void(0);" onClick="insert_emoji(\'278\');"><img src="http://static.yaplog.jp/static/image/emoji/278.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レース黒下" href="javascript:void(0);" onClick="insert_emoji(\'279\');"><img src="http://static.yaplog.jp/static/image/emoji/279.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レース金下" href="javascript:void(0);" onClick="insert_emoji(\'280\');"><img src="http://static.yaplog.jp/static/image/emoji/280.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="レースピンク下" href="javascript:void(0);" onClick="insert_emoji(\'281\');"><img src="http://static.yaplog.jp/static/image/emoji/281.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="水玉ブルー" href="javascript:void(0);" onClick="insert_emoji(\'282\');"><img src="http://static.yaplog.jp/static/image/emoji/282.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="水玉紫" href="javascript:void(0);" onClick="insert_emoji(\'283\');"><img src="http://static.yaplog.jp/static/image/emoji/283.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="水玉ピンク" href="javascript:void(0);" onClick="insert_emoji(\'284\');"><img src="http://static.yaplog.jp/static/image/emoji/284.gif" width="15" height="15" border="0" alt=""></a></td><td><a title="パステルカラー" href="javascript:void(0);" onClick="insert_emoji(\'285\');"><img src="http://static.yaplog.jp/static/image/emoji/285.gif" width="15" height="15" border="0" alt=""></a></td></tr>';
	emojiHtml += '</table>';
	document.getElementById("emojiPalette").innerHTML = emojiHtml;
	loadedEmoji = true;
	return;
}
var loadedPalette = false;
function loadPalette(){
	if(loadedPalette){
		return;
	}
	var paletteTitleHtml = '';
	paletteTitleHtml += '<table width="320" border="0" cellspacing="0" cellpadding="0">';
	paletteTitleHtml += '<tr>';
	paletteTitleHtml += '<td>&nbsp;<input type="text" id="paletteColorField" value="#FFCC66" size="7" onchange="colorPaletteFieldValueDidChange(this);" onkeyup="colorPaletteFieldValueDidChange(this);" style="border:solid 1px #6699FF;font-family:monospace;font-size:12px;height:16px" /></td>';
	paletteTitleHtml += '<td>';
	paletteTitleHtml += '<div id="paletteColorWell" style="border:solid 1px #666666;background:#FFA500;width:14px;height:14px;"><img src="http://static.yaplog.jp/static/img/common/spacer.gif" width="14" height="10" border="0" alt=""></div>';
	paletteTitleHtml += '</td>';
	paletteTitleHtml += '<td><span id="paletteSampleTextColor" style="font-size:12pt;line-height:30px;text-align:center;">AaＡａアァあぁ漢字</span></td>';
	paletteTitleHtml += '<td align="right"><a href="javascript:void(0);" onclick="javascript:hideAllPalette(\'colorPalette\');">閉じる</a>&nbsp;</td>';
	paletteTitleHtml += '</tr>';
	paletteTitleHtml += '</table>';
	document.getElementById("paletteTitle").innerHTML = paletteTitleHtml;

	var colorsHtml = '';
	colorsHtml += '<div class="colorPaletteTable">';
	colorsHtml += '<table border="0" cellspacing="0" cellpadding="0">';
	colorsHtml += '<tr><td style="background:#FF0000">&nbsp;</td><td style="background:#000000">&nbsp;</td><td style="background:#000000">&nbsp;</td><td style="background:#006600">&nbsp;</td><td style="background:#009900">&nbsp;</td><td style="background:#00CC00">&nbsp;</td><td style="background:#00FF00">&nbsp;</td><td style="background:#330000">&nbsp;</td><td style="background:#336600">&nbsp;</td><td style="background:#339900">&nbsp;</td><td style="background:#33CC00">&nbsp;</td><td style="background:#33FF00">&nbsp;</td><td style="background:#660000">&nbsp;</td><td style="background:#666600">&nbsp;</td><td style="background:#669900">&nbsp;</td><td style="background:#66CC00">&nbsp;</td><td style="background:#66FF00">&nbsp;</td><td style="background:#990000">&nbsp;</td><td style="background:#996600">&nbsp;</td><td style="background:#999900">&nbsp;</td><td style="background:#99CC00">&nbsp;</td><td style="background:#99FF00">&nbsp;</td><td style="background:#CC0000">&nbsp;</td><td style="background:#CC6600">&nbsp;</td><td style="background:#CC9900">&nbsp;</td><td style="background:#CCCC00">&nbsp;</td><td style="background:#CCFF00">&nbsp;</td><td style="background:#FF0000">&nbsp;</td><td style="background:#FF6600">&nbsp;</td><td style="background:#FF9900">&nbsp;</td><td style="background:#FFCC00">&nbsp;</td><td style="background:#FFFF00">&nbsp;</td></tr>';
	colorsHtml += '<tr><td style="background:#00FF00">&nbsp;</td><td style="background:#333333">&nbsp;</td><td style="background:#000033">&nbsp;</td><td style="background:#006633">&nbsp;</td><td style="background:#009933">&nbsp;</td><td style="background:#00CC33">&nbsp;</td><td style="background:#00FF33">&nbsp;</td><td style="background:#330033">&nbsp;</td><td style="background:#336633">&nbsp;</td><td style="background:#339933">&nbsp;</td><td style="background:#33CC33">&nbsp;</td><td style="background:#33FF33">&nbsp;</td><td style="background:#660033">&nbsp;</td><td style="background:#666633">&nbsp;</td><td style="background:#669933">&nbsp;</td><td style="background:#66CC33">&nbsp;</td><td style="background:#66FF33">&nbsp;</td><td style="background:#990033">&nbsp;</td><td style="background:#996633">&nbsp;</td><td style="background:#999933">&nbsp;</td><td style="background:#99CC33">&nbsp;</td><td style="background:#99FF33">&nbsp;</td><td style="background:#CC0033">&nbsp;</td><td style="background:#CC6633">&nbsp;</td><td style="background:#CC9933">&nbsp;</td><td style="background:#CCCC33">&nbsp;</td><td style="background:#CCFF33">&nbsp;</td><td style="background:#FF0033">&nbsp;</td><td style="background:#FF6633">&nbsp;</td><td style="background:#FF9933">&nbsp;</td><td style="background:#FFCC33">&nbsp;</td><td style="background:#FFFF33">&nbsp;</td></tr>';
	colorsHtml += '<tr><td style="background:#0000FF">&nbsp;</td><td style="background:#666666">&nbsp;</td><td style="background:#000066">&nbsp;</td><td style="background:#006666">&nbsp;</td><td style="background:#009966">&nbsp;</td><td style="background:#00CC66">&nbsp;</td><td style="background:#00FF66">&nbsp;</td><td style="background:#330066">&nbsp;</td><td style="background:#336666">&nbsp;</td><td style="background:#339966">&nbsp;</td><td style="background:#33CC66">&nbsp;</td><td style="background:#33FF66">&nbsp;</td><td style="background:#660066">&nbsp;</td><td style="background:#666666">&nbsp;</td><td style="background:#669966">&nbsp;</td><td style="background:#66CC66">&nbsp;</td><td style="background:#66FF66">&nbsp;</td><td style="background:#990066">&nbsp;</td><td style="background:#996666">&nbsp;</td><td style="background:#999966">&nbsp;</td><td style="background:#99CC66">&nbsp;</td><td style="background:#99FF66">&nbsp;</td><td style="background:#CC0066">&nbsp;</td><td style="background:#CC6666">&nbsp;</td><td style="background:#CC9966">&nbsp;</td><td style="background:#CCCC66">&nbsp;</td><td style="background:#CCFF66">&nbsp;</td><td style="background:#FF0066">&nbsp;</td><td style="background:#FF6666">&nbsp;</td><td style="background:#FF9966">&nbsp;</td><td style="background:#FFCC66">&nbsp;</td><td style="background:#FFFF66">&nbsp;</td></tr>';
	colorsHtml += '<tr><td style="background:#FFFF00">&nbsp;</td><td style="background:#999999">&nbsp;</td><td style="background:#000099">&nbsp;</td><td style="background:#006699">&nbsp;</td><td style="background:#009999">&nbsp;</td><td style="background:#00CC99">&nbsp;</td><td style="background:#00FF99">&nbsp;</td><td style="background:#330099">&nbsp;</td><td style="background:#336699">&nbsp;</td><td style="background:#339999">&nbsp;</td><td style="background:#33CC99">&nbsp;</td><td style="background:#33FF99">&nbsp;</td><td style="background:#660099">&nbsp;</td><td style="background:#666699">&nbsp;</td><td style="background:#669999">&nbsp;</td><td style="background:#66CC99">&nbsp;</td><td style="background:#66FF99">&nbsp;</td><td style="background:#990099">&nbsp;</td><td style="background:#996699">&nbsp;</td><td style="background:#999999">&nbsp;</td><td style="background:#99CC99">&nbsp;</td><td style="background:#99FF99">&nbsp;</td><td style="background:#CC0099">&nbsp;</td><td style="background:#CC6699">&nbsp;</td><td style="background:#CC9999">&nbsp;</td><td style="background:#CCCC99">&nbsp;</td><td style="background:#CCFF99">&nbsp;</td><td style="background:#FF0099">&nbsp;</td><td style="background:#FF6699">&nbsp;</td><td style="background:#FF9999">&nbsp;</td><td style="background:#FFCC99">&nbsp;</td><td style="background:#FFFF99">&nbsp;</td></tr>';
	colorsHtml += '<tr><td style="background:#00FFFF">&nbsp;</td><td style="background:#CCCCCC">&nbsp;</td><td style="background:#0000CC">&nbsp;</td><td style="background:#0066CC">&nbsp;</td><td style="background:#0099CC">&nbsp;</td><td style="background:#00CCCC">&nbsp;</td><td style="background:#00FFCC">&nbsp;</td><td style="background:#3300CC">&nbsp;</td><td style="background:#3366CC">&nbsp;</td><td style="background:#3399CC">&nbsp;</td><td style="background:#33CCCC">&nbsp;</td><td style="background:#33FFCC">&nbsp;</td><td style="background:#6600CC">&nbsp;</td><td style="background:#6666CC">&nbsp;</td><td style="background:#6699CC">&nbsp;</td><td style="background:#66CCCC">&nbsp;</td><td style="background:#66FFCC">&nbsp;</td><td style="background:#9900CC">&nbsp;</td><td style="background:#9966CC">&nbsp;</td><td style="background:#9999CC">&nbsp;</td><td style="background:#99CCCC">&nbsp;</td><td style="background:#99FFCC">&nbsp;</td><td style="background:#CC00CC">&nbsp;</td><td style="background:#CC66CC">&nbsp;</td><td style="background:#CC99CC">&nbsp;</td><td style="background:#CCCCCC">&nbsp;</td><td style="background:#CCFFCC">&nbsp;</td><td style="background:#FF00CC">&nbsp;</td><td style="background:#FF66CC">&nbsp;</td><td style="background:#FF99CC">&nbsp;</td><td style="background:#FFCCCC">&nbsp;</td><td style="background:#FFFFCC">&nbsp;</td></tr>';
	colorsHtml += '<tr><td style="background:#FF00FF">&nbsp;</td><td style="background:#FFFFFF">&nbsp;</td><td style="background:#0000FF">&nbsp;</td><td style="background:#0066FF">&nbsp;</td><td style="background:#0099FF">&nbsp;</td><td style="background:#00CCFF">&nbsp;</td><td style="background:#00FFFF">&nbsp;</td><td style="background:#3300FF">&nbsp;</td><td style="background:#3366FF">&nbsp;</td><td style="background:#3399FF">&nbsp;</td><td style="background:#33CCFF">&nbsp;</td><td style="background:#33FFFF">&nbsp;</td><td style="background:#6600FF">&nbsp;</td><td style="background:#6666FF">&nbsp;</td><td style="background:#6699FF">&nbsp;</td><td style="background:#66CCFF">&nbsp;</td><td style="background:#66FFFF">&nbsp;</td><td style="background:#9900FF">&nbsp;</td><td style="background:#9966FF">&nbsp;</td><td style="background:#9999FF">&nbsp;</td><td style="background:#99CCFF">&nbsp;</td><td style="background:#99FFFF">&nbsp;</td><td style="background:#CC00FF">&nbsp;</td><td style="background:#CC66FF">&nbsp;</td><td style="background:#CC99FF">&nbsp;</td><td style="background:#CCCCFF">&nbsp;</td><td style="background:#CCFFFF">&nbsp;</td><td style="background:#FF00FF">&nbsp;</td><td style="background:#FF66FF">&nbsp;</td><td style="background:#FF99FF">&nbsp;</td><td style="background:#FFCCFF">&nbsp;</td><td style="background:#FFFFFF">&nbsp;</td></tr>';
	colorsHtml += '</table>';
	colorsHtml += '</div>';
	document.getElementById("colors").innerHTML = colorsHtml;

	loadedPalette = true;
	return;
}
