var html_info = {
	'p' : '<p>'+ msg_msg('P') +'(P)</p>',
	'div' : '<div>'+ msg_msg('DIV') +'(DIV)</div>',
	'img' : '<img src="//image.mong9.com/etc_img/etc/img.png" alt="" class="m9-fullimg" />',
	'icon' : '<i class="bi bi-check-square-fill"><i>&nbsp;</i></i>',
	'button' : '<a class="m9-btn">Button</a>',
	'video' : '<div class="m9-video-canvas-16x9"><div><iframe src="//www.youtube.com/embed/P5yHEKqx86U?rel=0" frameborder="0" allowfullscreen></iframe></div></div>',
	'map' : '<div data-m9-execute="google_map({\'x\':\'126.9753042\',\'y\':\'37.5599416\',\'zoom\':\'16\',\'address\':\'Address\',title:\'Company\'})" class="inline-block m9-map-canvas m9-google_map _not _aspectAll"></div>',
	'unlist' : '<ul class="m9-list-style-1">' + 
		'<li>Used to enter an unordered list.</li>' +
		'<li>Used to enter an unordered list.</li>' +
		'<li>Used to enter an unordered list.</li>' +
		'<li>Used to enter an unordered list.</li>' +
		'</ul>',
	'ollist' : '<ol class="m9-list-style-1">' + 
		'<li>Used to enter an ordered list.</li>' +
		'<li>Used to enter an ordered list.</li>' +
		'<li>Used to enter an ordered list.</li>' +
		'<li>Used to enter an ordered list.</li>' +
		'</ol>',
	'table' : '<table summary="" class="m9-table-1">' +
		'<caption></caption>' +
		'<thead>' +
		'<tr>' +
		'<th scope="col">Title</th>' +
		'<th scope="col">Title</th>' +
		'<th scope="col">Title</th>' +
		'<th scope="col">Title</th>' +
		'</tr>' +
		'</thead>' +
		'<tbody>' +
		'<tr>' +
		'<th scope="row">Content</th>' +
		'<td>Content</td>' +
		'<td>Content</td>' +
		'<td>Content</td>' +
		'</tr>' +
		'<tr>' +
		'<th scope="row">Content</th>' +
		'<td>Content</td>' +
		'<td>Content</td>' +
		'<td>Content</td>' +
		'</tr>' +
		'</tbody>' +
		'<tfoot>' +
		'<tr>' +
		'<th scope="row">Content</th>' +
		'<td>Content</td>' +
		'<td>Content</td>' +
		'<td>Content</td>' +
		'</tr>' +
		'</tfoot>' +
		'</table>',
	'h1' : '<h1 class="m9-h1">'+ msg_msg('HEADING') +'1(H1)</h1>',
	'h2' : '<h2 class="m9-h2">'+ msg_msg('HEADING') +'2(H2)</h2>',
	'h3' : '<h3 class="m9-h3">'+ msg_msg('HEADING') +'3(H3)</h3>',
	'h4' : '<h4 class="m9-h4">'+ msg_msg('HEADING') +'4(H4)</h4>',
	'h5' : '<h5 class="m9-h5">'+ msg_msg('HEADING') +'5(H5)</h5>',
	'h6' : '<h6 class="m9-h6">'+ msg_msg('HEADING') +'6(H6)</h6>'
};

var style_info = {

	'f_text_decoration' : {
		'keys' : ['m9-text-decoration-1','m9-text-decoration-2','m9-text-decoration-3'],		
		'values' : ['U1','U2','U3']
	},		
	'f_color' : {
		'keys' : ['m9-font-color-1','m9-font-color-2','m9-font-color-3','m9-font-color-4','m9-font-color-5'],		
		'values' : ['fc1','fc2','fc3','fc4','fc5']
	},	
	'f_strong' : {
		'keys' : ['m9-strong-1','m9-strong-2','m9-strong-3'],		
		'values' : ['fs1','fs2','fs3']
	},	
	'font_size' : {
		'keys' : ['m9-f-xxxsmall','m9-f-xxsmall','m9-f-xsmall','m9-f-small','m9-f-size','m9-f-large','m9-f-xlarge','m9-f-xxlarge','m9-f-xxxlarge','m9-f-big','m9-f-huge'],		
		'values' : ['s3','s2','s1','S','M','L','x1','x2','x3','big','huge']
	},
	'line_height' : {
		'keys' : ['line-height-100','line-height-110','line-height-120','line-height-140','line-height-160','line-height-170','line-height-200'],		
		'values' : ['1.0','1.1','1.2','1.4','1.6','1.7','2.0']
	},	
	'border_style' : {
		'keys' : ['solid','dotted','dashed','double','groove','ridge','inset','outset'],		
		'values' : ['solid','dotted','dashed','double','groove','ridge','inset','outset']
	},
		
	'box_style' : {
		'keys' : ['m9-box-style-1','m9-box-style-2','m9-box-style-3','m9-box-style-4','m9-box-style-5','m9-box-style-6','m9-box-style-7']
	},
	'box_pattern' : {
		'keys' : ['m9-box-pattern-1','m9-box-pattern-2','m9-box-pattern-3','m9-box-pattern-4','m9-box-pattern-5','m9-box-pattern-6','m9-box-pattern-7']
	},
	'box_color' : {
		'keys' : ['m9-black','m9-grey','m9-light-grey','m9-light-blue','m9-yellow','m9-blue','m9-gold','m9-green','m9-olive-green','m9-orange','m9-purple','m9-red','m9-turquoiseblue','m9-violet','m9-deepblue','m9-teal','m9-mauve','m9-pearl','m9-steelblue','m9-coffee','m9-coral','m9-crimson','m9-hotpink','m9-indianred','m9-aqua','m9-white','m9-grey2']
	},
	'box_round' : {
		'keys' : ['m9-round-0','m9-round-1','m9-round-2','m9-round-3','m9-round-4','m9-round-5','m9-round-6','m9-round-7','m9-round-8','m9-round-9','m9-round-10','m9-round-11','m9-round-12','m9-round-13','m9-round-14','m9-round-15','m9-round-16','m9-round-circle','m9-circle']
	},
	'text_shadow' : {			
		'keys' : ['m9-text-shadow-1','m9-text-shadow-2','m9-text-shadow-3','m9-text-shadow-4','m9-text-shadow-5']
	},
	'padding' : {
		'keys' : ['m9-padding-0','m9-padding-1','m9-padding-2','m9-padding-3','m9-padding-width-0','m9-padding-width-1','m9-padding-width-2','m9-padding-width-3','m9-padding-height-0','m9-padding-height-1','m9-padding-height-2','m9-padding-height-3','m9-padding-top-0','m9-padding-top-1','m9-padding-top-2','m9-padding-top-3','m9-padding-right-0','m9-padding-right-1','m9-padding-right-2','m9-padding-right-3','m9-padding-bottom-0','m9-padding-bottom-1','m9-padding-bottom-2','m9-padding-bottom-3','m9-padding-left-0','m9-padding-left-1','m9-padding-left-2','m9-padding-left-3'],
		'values' : ['0','1','2','3','W0','W1','W2','W3','H0','H1','H2','H3','T0','T1','T2','T3','R0','R1','R2','R3','B0','B1','B2','B3','L0','L1','L2','L3']
	},
	'margin' : {
		'keys' : ['m9-margin-0','m9-margin-1','m9-margin-2','m9-margin-3','m9-margin-width-0','m9-margin-width-1','m9-margin-width-2','m9-margin-width-3','m9-margin-height-0','m9-margin-height-1','m9-margin-height-2','m9-margin-height-3','m9-margin-top-0','m9-margin-top-1','m9-margin-top-2','m9-margin-top-3','m9-margin-right-0','m9-margin-right-1','m9-margin-right-2','m9-margin-right-3','m9-margin-bottom-0','m9-margin-bottom-1','m9-margin-bottom-2','m9-margin-bottom-3','m9-margin-left-0','m9-margin-left-1','m9-margin-left-2','m9-margin-left-3'],
		'values' : ['0','1','2','3','W0','W1','W2','W3','H0','H1','H2','H3','T0','T1','T2','T3','R0','R1','R2','R3','B0','B1','B2','B3','L0','L1','L2','L3']
	}
};

var tab_get = {
	'style' : ['box_style','box_pattern','box_color','box_round','text_shadow'],	
	'font' : ['font_family','color','font_weight','font_style','text_decoration','line_through','font_size','line_height','word_spacing','letter_spacing','f_strong','f_text_decoration','f_color'], // 'f_style'
	'border' : ['background_color','border','border_radius'],
	'padding_margin' : ['padding','margin'],
	'align' : ['text_align','vertical_align','float']
};

var m9evt = false;
var ani_type_obj={possible_type:{google_map:1,tab:1},checking:function(t){jQuery(t).find("[data-m9-execute]").each(function(){for(var t=[],e=jQuery(this).attr("data-m9-execute").split(";"),a=0;a<e.length;a++){var i=m9_get_property(e[a]);ani_type_obj.possible_type[i[0]]&&t.push(i)}for(var n=0;n<t.length;n++)"google_map"==t[n][0]?M9GOOGLE_MAP.int(this,t[n],1):"tab"==t[n][0]&&M9TAB.int(this,t[n],1)})}};
var element_obj={_edit:!1,_now:!1,_now_tab:"font",_get_obj_id:function(e){return"_editor_"+e},get_guess_property_var:function(e,t){var o=RegExp(e+":([^\\;]+)","gi").exec(jQuery(element_obj._now).attr("style"));return o?_var=o[1].replace(/\s/g,""):(_var=jQuery(element_obj._now).css(e),"px"==splitUnit(_var)[1]&&(_var=convert_unit.guess(_var,t))),_var},get_property_var:function(e){var t=RegExp(e+":([^\\;]+)","gi").exec(jQuery(element_obj._now).attr("style"));return t?t[1].replace(/\s/g,""):jQuery(element_obj._now).css(e)},get_var:function(e){return jQuery(element_obj._now).css(e)},set_var:function(e,t){if("object"==typeof e)for(var o=Object.keys(e),i=0;i<o.length;i++)jQuery("#"+element_obj._get_obj_id(o[i])).val(t);else jQuery("#"+element_obj._get_obj_id(e)).val(t)},get_input_var:function(e){return jQuery("#"+element_obj._get_obj_id(e)).val()},get_selectedObj:function(){Selection2Obj(),jQuery(".selected_tag").length>0&&(element_obj._now=jQuery(".selected_tag"))},menu:{get:function(e){if(!e||!element_obj._now||!get_is_parents(element_obj._now,"._one-in-column"))return!1;for(var t=tab_get[e],o=0;o<t.length;o++){var i=t[o];element_obj.edit[i]?element_obj.edit[i].get():jQuery("#_editor_"+i).length>0?element_obj.edit.class.get(i):element_obj.edit.operations("",i,"")}},remove:function(e){if(!e||(Selection2Obj(),!element_obj._now||!get_is_parents(element_obj._now,"._one-in-column")))return!1;for(var t=tab_get[e],o=0;o<t.length;o++){var i=t[o];element_obj.edit[i]?element_obj.edit[i].remove():jQuery("#_editor_"+i).length>0?element_obj.edit.class.remove(i):element_obj.edit.remove_class_by_btn(i)}var l=m9_mode_obj.get();if(""!=l){var a=m9_mode_obj.get_data_str_by_mode(element_obj._now,l);jQuery(element_obj._now).attr("style",a)}},get_auto:function(e){e&&e!=element_obj._now_tab?jQuery("#_tab-menu-"+e).trigger("click"):e=element_obj._now_tab,element_obj.menu.get(e)}},int:function(e){"master"==e&&element_obj.win.int(),jQuery(document).on("mousedown",function(e){var t=e.target;(get_is_parents(t,".m9_editor_box")||get_is_parents(t,"._setting_area_box"))&&!get_is_parents(t,"._m9editor")&&element_obj.win.view(t)})},edit:{convert_obj:function(e,t){var o=jQuery(e),i=0;1==editor._ctrl?o.is(".selected_tag")?(o.removeClass("selected_tag"),element_obj._now=!1,editor._now=!1,i=1):(o.addClass("selected_tag"),element_obj._now=jQuery(".selected_tag"),editor._now=element_obj._now):(jQuery(".selected_tag").removeClass("selected_tag"),o.addClass("selected_tag"),element_obj._now=jQuery(".selected_tag"),editor._now=element_obj._now,jQuery(editor._now[0]).trigger("click")),0==i&&element_obj.menu.get_auto(t),grid_obj.setting.set(e),builder.setting.select(e),tag_obj.print_obj(e)},_remove:function(e,t){if(!element_obj.edit[e])return!1;element_obj.get_selectedObj();var o=element_obj.edit[e];element_obj.change_css_by_mode(o._property,""),o.get(),undo_obj._add(element_obj._now)},remove_class_by_btn:function(e){if(style_info[e])for(var t=style_info[e].keys,o=jQuery(element_obj._now),i=0;i<t.length;i++)o.removeClass(editor.mode.get_class(t[i])),jQuery("._"+t[i]).removeClass("active")},class2:{change:function(e,t){if(element_obj.get_selectedObj(),!element_obj._now)return!1;var o=jQuery(m9evt);if(o.hasClass("active"))return o.removeClass("active"),jQuery(element_obj._now).removeClass(editor.mode.get_class(t)),undo_obj._add(element_obj._now),!1;var i=e.replace(/\_/g,"-");if(element_obj.change_css_by_mode(i,""),style_info[e])for(var l=style_info[e].keys,a=jQuery(element_obj._now),n=0;n<l.length;n++)a.removeClass(editor.mode.get_class(l[n]));jQuery(element_obj._now).addClass(editor.mode.get_class(t)),element_obj.edit.operations(4,e,t),undo_obj._add(element_obj._now)},remove:function(e){var t=e.replace(/\_/g,"-");if(jQuery(element_obj._now).css(t,""),style_info[e])for(var o=style_info[e].class,i=jQuery(element_obj._now),l=0;l<o.length;l++)i.removeClass(editor.mode.get_class(o[l]));element_obj.edit.operations(4,e,""),undo_obj._add(element_obj._now)}},class:{change:function(e){element_obj.get_selectedObj();var t=jQuery("#"+e),o=t.val(),i=jQuery(element_obj._now);"_editor_box_color"==e?""!=o&&i.css({"background-color":"","border-color":"","text-shadow":""}):"_editor_box_round"==e&&""!=o&&i.css({"border-radius":""});for(var l=t[0].options,a=0;a<l.length;a++)""!=l[a].value&&i.removeClass(l[a].value);i.addClass(o),undo_obj._add(element_obj._now)},get:function(e){for(var t=jQuery("#_editor_"+e),o=t[0].options,i=jQuery(element_obj._now),l=0;l<o.length;l++)if(""!=o[l].value&&i.hasClass(o[l].value))return t.prop("selectedIndex",l),l;return t.prop("selectedIndex",0),-1},remove:function(e){for(var t=jQuery("#_editor_"+e),o=t[0].options,i=jQuery(element_obj._now),l=0;l<o.length;l++)""!=o[l].value&&i.removeClass(o[l].value);t.prop("selectedIndex",0),undo_obj._add(element_obj._now)}},font_family:{_id:"font_family",_property:"font-family",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id);element_obj.change_css_by_mode(this._property,e),fontfamily_obj.add_style(e),undo_obj._add(element_obj._now,this._property)},get:function(){var e=element_obj.get_var(this._property);if(e){var t=e.split(",");t[0]=t[0].replace(/\'|\"/g,""),e=m9_trim_quotes(e=fontfamily_obj._fonts_hash[t[0]]?fontfamily_obj._fonts_hash[t[0]]:t[0])}element_obj.set_var(this._id,e)},remove:function(){element_obj.edit._remove(this._id)}},color:{_id:"color",_property:"color",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id);element_obj.change_css_by_mode(this._property,e),jQuery("#_color_preview_"+this._id).css("background-color",e),undo_obj._add(element_obj._now,this._property)},get:function(){var e=color_obj_func.RGB2HEX(element_obj.get_var(this._property));element_obj.set_var(this._id,e),jQuery("#_color_preview_"+this._id).css("background-color",e)},remove:function(){element_obj.edit._remove(this._id)},set:function(e){element_obj.set_var(this._id,e),this.change()}},font_weight:{_id:"font_weight",_property:"font-weight",change:function(e){element_obj.get_selectedObj();var t=jQuery(e).hasClass("active")?"inherit":"bold";element_obj.change_css_by_mode(this._property,t),"bold"==t?jQuery("._"+this._id).addClass("active"):jQuery("._"+this._id).removeClass("active"),undo_obj._add(element_obj._now,this._property)},get:function(){var e=element_obj.get_var(this._property);!0==(""!=e&&"normal"!=e&&!(e<500))?jQuery("._"+this._id).addClass("active"):jQuery("._"+this._id).removeClass("active")},remove:function(){element_obj.edit._remove(this._id)}},font_style:{_id:"font_style",_property:"font-style",change:function(e){element_obj.get_selectedObj();var t=jQuery(e).hasClass("active")?"normal":"italic";element_obj.change_css_by_mode(this._property,t),"italic"==t?jQuery("._"+this._id).addClass("active"):jQuery("._"+this._id).removeClass("active"),undo_obj._add(element_obj._now,this._property)},get:function(){var e;!0==("italic"==element_obj.get_var(this._property))?jQuery("._"+this._id).addClass("active"):jQuery("._"+this._id).removeClass("active")},remove:function(){element_obj.edit._remove(this._id)}},text_decoration:{_id:"text_decoration",_property:"text-decoration",change:function(e){element_obj.get_selectedObj();var t=jQuery(e).hasClass("active")?"none":"underline";element_obj.change_css_by_mode(this._property,t),"underline"==t?jQuery("._"+this._id).addClass("active"):jQuery("._"+this._id).removeClass("active"),undo_obj._add(element_obj._now,this._property)},get:function(){!0==element_obj.get_var(this._property).search(/underline/gi)>-1?jQuery("._"+this._id).addClass("active"):jQuery("._"+this._id).removeClass("active")},remove:function(){element_obj.edit._remove(this._id)}},font_size:{_id:"font_size",_property:"font-size",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id);""==e&&(e=m9_get_num(jQuery("body").css(this._property)));var t=jQuery("#_editor_"+this._id+"_unit").val();element_obj.change_css_by_mode(this._property,e+t),element_obj.edit.operations(2,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){var e=element_obj.get_guess_property_var(this._property,["em"]);this._remove_way=0,element_obj.edit.operations("",this._id,e)},remove:function(){this._remove_way=1,element_obj.edit.remove_class_by_btn(this._id),element_obj.edit._remove(this._id)},_remove_way:0},line_height:{_id:"line_height",_property:"line-height",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id),t=jQuery("#_editor_"+this._id+"_unit").val();element_obj.change_css_by_mode(this._property,e+t),element_obj.edit.operations(2,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){var e=element_obj.get_guess_property_var(this._property,["%"]);this._remove_way=0,element_obj.edit.operations("",this._id,e)},remove:function(){this._remove_way=1,element_obj.edit.remove_class_by_btn(this._id),element_obj.edit._remove(this._id)},_remove_way:0},word_spacing:{_id:"word_spacing",_property:"word-spacing",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id),t=jQuery("#_editor_"+this._id+"_unit").val();element_obj.change_css_by_mode(this._property,e+t),element_obj.edit.operations(2,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){var e=element_obj.get_property_var(this._property);element_obj.edit.operations("",this._id,e)},remove:function(){element_obj.edit._remove(this._id)}},letter_spacing:{_id:"letter_spacing",_property:"letter-spacing",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id),t=jQuery("#_editor_"+this._id+"_unit").val();element_obj.change_css_by_mode(this._property,e+t),element_obj.edit.operations(2,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){var e=element_obj.get_property_var(this._property);("normal"==e||"initial"==e||"0"==e)&&(e="0px"),element_obj.edit.operations("",this._id,e)},remove:function(){element_obj.edit._remove(this._id)}},padding:{_id:"padding",_property:"padding",_types:["top","left","right","bottom"],change:function(){"inline"==jQuery(element_obj._now).css("display")&&jQuery(element_obj._now).css("display","inline-block"),element_obj.get_selectedObj();var e=element_obj._get_obj_id(this._id),t=[];if(!0==jQuery("#"+e+"_all").prop("checked"))t.push(this._property);else for(var o=0;o<this._types.length;o++)!0==jQuery("#"+(e+"_")+this._types[o]).prop("checked")&&t.push(this._property+"-"+this._types[o]);var i=jQuery("#_editor_"+this._id+"_unit").val();i&&""!=i||(i="px",jQuery("#_editor_"+this._id+"_unit").val(i));for(var l=jQuery("#"+e).val(),o=0;o<t.length;o++)element_obj.change_css_by_mode(t[o],l+i);element_obj.edit.operations(2,this._id,l),undo_obj._add(element_obj._now,this._property)},get:function(){var e=this._match(),t=!1,o="";0==e&&(o=element_obj.get_guess_property_var(this._property,["em"]),t=!0);var i=element_obj._get_obj_id(this._id);jQuery("#"+i+"_all").prop("checked",t);for(var l=0;l<this._types.length;l++)jQuery("#"+i+"_"+this._types[l]).prop("checked",t);element_obj.edit.operations("",this._id,o)},remove:function(){element_obj.edit.remove_class_by_btn(this._id),element_obj.edit._remove(this._id)},checked:function(e){if(!1==jQuery("#"+(element_obj._get_obj_id(this._id)+e)).prop("checked"))return!1;var t,o=jQuery(element_obj._now),i=this._property,l="";"all"==e?0==this._match()&&(l=m9_get_num(o.css(this._property))):(i+="-"+e,l=o.css(i)),element_obj.edit.operations("",this._id,l)},_match:function(){for(var e=jQuery(element_obj._now),t=this._property+"-"+this._types[0],o=e.css(t),i=0,l=1;l<this._types.length;l++){var t=this._property+"-"+this._types[l],a=e.css(t);if(o!=a){i++;break}}return 0==i?0:1}},margin:{_id:"margin",_property:"margin",_types:["top","left","right","bottom"],change:function(){"inline"==jQuery(element_obj._now).css("display")&&jQuery(element_obj._now).css("display","inline-block"),element_obj.get_selectedObj();var e=element_obj._get_obj_id(this._id),t=[];if(!0==jQuery("#"+e+"_all").prop("checked"))t.push(this._property);else for(var o=0;o<this._types.length;o++)!0==jQuery("#"+(e+"_")+this._types[o]).prop("checked")&&t.push(this._property+"-"+this._types[o]);var i=jQuery("#_editor_"+this._id+"_unit").val();i&&""!=i||(i="px",jQuery("#_editor_"+this._id+"_unit").val(i));for(var l=jQuery("#"+e).val(),o=0;o<t.length;o++)element_obj.change_css_by_mode(t[o],l+i);element_obj.edit.operations(2,this._id,l),undo_obj._add(element_obj._now,this._property)},get:function(){var e=this._match(),t=!1,o="";0==e&&(o=element_obj.get_guess_property_var(this._property,["em"]),t=!0);var i=element_obj._get_obj_id(this._id);jQuery("#"+i+"_all").prop("checked",t);for(var l=0;l<this._types.length;l++)jQuery("#"+i+"_"+this._types[l]).prop("checked",t);element_obj.edit.operations("",this._id,o)},remove:function(){element_obj.edit.remove_class_by_btn(this._id),element_obj.edit._remove(this._id)},checked:function(e){if(!1==jQuery("#"+(element_obj._get_obj_id(this._id)+e)).prop("checked"))return!1;var t,o=jQuery(element_obj._now),i=this._property,l="";"all"==e?0==this._match()&&(l=m9_get_num(o.css(this._property))):(i+="-"+e,l=o.css(i)),element_obj.edit.operations("",this._id,l)},_match:function(){for(var e=jQuery(element_obj._now),t=this._property+"-"+this._types[0],o=e.css(t),i=0,l=1;l<this._types.length;l++){var t=this._property+"-"+this._types[l],a=e.css(t);if(o!=a){i++;break}}return 0==i?0:1}},background_color:{ids:{},_id:"background_color",_property:"background-color",change:function(){element_obj.get_selectedObj();var e=element_obj.get_input_var(this._id);for(var t in element_obj.change_css_by_mode(this._property,e),element_obj.edit.background_color.ids)jQuery("#_color_preview_"+t).css("background-color",e);undo_obj._add(element_obj._now,this._property)},get:function(){var e=color_obj_func.RGB2HEX(element_obj.get_var(this._property));for(var t in e.match(/^rgba\(0,0,0,0\)$/)&&(e=""),e.match(/^#00$/)&&(e=""),e.match(/^transparent$/)&&(e=""),element_obj.set_var(element_obj.edit.background_color.ids,e),element_obj.edit.background_color.ids)jQuery("#_color_preview_"+t).css("background-color",e)},remove:function(){element_obj.edit._remove(this._id)},set:function(e){element_obj.set_var(element_obj.edit.background_color.ids,e),this.change()},put_id:function(e){element_obj.edit.background_color.ids[e]||(element_obj.edit.background_color.ids[e]=1)}},border_width:{change:function(){element_obj.edit.border.change()},get:function(){element_obj.edit.border.get()},remove:function(){element_obj.edit.border.remove()}},border_style:{change:function(){element_obj.edit.border.change()},get:function(){element_obj.edit.border.get()},remove:function(){element_obj.edit.border.remove()}},border_color:{_id:"border_color",change:function(){element_obj.edit.border.change()},get:function(){element_obj.edit.border.get()},remove:function(){element_obj.edit.border.remove()},set:function(e){jQuery("#"+element_obj._get_obj_id(this._id)).val(e),this.change()}},border:{_id:"border",_property:"border",_types:["top","left","right","bottom"],change:function(){element_obj.get_selectedObj();var e=element_obj._get_obj_id(this._id),t=jQuery("#"+e+"_color").val();(t=color_obj_func.RGB2HEX(t))||(t="#ccc",jQuery("#"+e+"_color").val(t));var o=jQuery("#"+e+"_style").val();o||(o="solid",jQuery("#"+e+"_style").val(o));var i=jQuery("#_editor_"+this._id+"_width_unit").val();i||(i="px",jQuery("#_editor_"+this._id+"_width_unit").val(i));var l=jQuery("#"+e+"_width").val(),a=l+i+" "+o+" "+t;if(!t||!o||!l)return!1;var n=[];if(!0==jQuery("#"+e+"_all").prop("checked"))n.push(this._property);else for(var d=0;d<this._types.length;d++)!0==jQuery("#"+(e+"_")+this._types[d]).prop("checked")&&n.push(this._property+"-"+this._types[d]);for(var d=0;d<n.length;d++)element_obj.change_css_by_mode(n[d],a);jQuery("#_color_preview_"+this._id+"_color").css("background-color",t),element_obj.edit.operations(2,"border_width",l),undo_obj._add(element_obj._now,this._property)},get:function(){var e="",t="",o="";jQuery(element_obj._now);var i=this._match(),l=!1;if(0==i){var a=this._get_values("border");e=a[0],t=a[1],o=a[2],l=!0}var n=element_obj._get_obj_id(this._id);jQuery("#"+n+"_color").val(e),jQuery("#"+n+"_style").val(t),element_obj.edit.operations("","border_width",o),jQuery("#"+n+"_all").prop("checked",l);for(var d=0;d<this._types.length;d++)jQuery("#"+n+"_"+this._types[d]).prop("checked",l);jQuery("#_color_preview_"+this._id+"_color").css("background-color",e)},remove:function(){element_obj.edit._remove(this._id)},checked:function(e){var t=element_obj._get_obj_id(this._id);if(!1==jQuery("#"+t+"_"+e).prop("checked"))return!1;var o=this._property;"all"==e||(o+="-"+e);var i=this._get_values(o);jQuery("#"+t+"_color").val(i[0]),jQuery("#"+t+"_style").val(i[1]),element_obj.edit.operations("","border_width",i[2]),jQuery("#_color_preview_border_color").css("background-color",i[0])},_match:function(){for(var e=jQuery(element_obj._now),t=this._property+"-"+this._types[0],o=e.css(t),i=0,l=1;l<this._types.length;l++){var t=this._property+"-"+this._types[l],a=e.css(t);if(o!=a){i++;break}}return 0==i?0:1},_get_values:function(e){var t="",o="",i="",l=jQuery(element_obj._now);t=l.css(e+"-color"),t=color_obj_func.RGB2HEX(t),o=l.css(e+"-style");var a=jQuery(element_obj._now).attr("style"),n=RegExp("border:([^\\;]+)","gi").exec(a);return i=n?RegExp("(([0-9.]+)([a-z]+))","gi").exec(n[1])[0]:element_obj.get_property_var(e+"-width"),(o.match(/ /)||i.match(/ /))&&(t="",o="",i=""),[t,o,i]}},border_radius:{_id:"border_radius",_property:"border-radius",_types:["top_left","top_right","bottom_left","bottom_right"],_types2:["top-left","top-right","bottom-left","bottom-right"],change:function(){element_obj.get_selectedObj();var e=element_obj._get_obj_id(this._id),t=[];if(!0==jQuery("#"+e+"_all").prop("checked"))t.push(this._property);else for(var o=0;o<this._types.length;o++)!0==jQuery("#"+(e+"_")+this._types[o]).prop("checked")&&t.push("border-"+this._types[o].replace(/\_/gi,"-")+"-radius");var i=jQuery("#_editor_"+this._id+"_unit").val();i&&""!=i||(i="px",jQuery("#_editor_"+this._id+"_unit").val(i));for(var l=jQuery("#"+e).val(),o=0;o<t.length;o++)element_obj.change_css_by_mode(t[o],l+i);element_obj.edit.operations(2,this._id,l),undo_obj._add(element_obj._now,this._property)},get:function(){var e=this._match(),t=!1,o="";0==e&&(o=element_obj.get_property_var(this._property),t=!0);var i=element_obj._get_obj_id(this._id);jQuery("#"+i+"_all").prop("checked",t);for(var l=0;l<this._types.length;l++)jQuery("#"+i+"_"+this._types[l]).prop("checked",t);element_obj.edit.operations("",this._id,o)},remove:function(){element_obj.edit._remove(this._id)},checked:function(e){if(!1==jQuery("#"+(element_obj._get_obj_id(this._id)+e)).prop("checked"))return!1;var t,o=jQuery(element_obj._now),i=this._property,l="";"all"==e?0==this._match()&&(l=m9_get_num(o.css(this._property))):(i="border-"+e.replace(/\_/gi,"-")+"-radius",l=o.css(i)),element_obj.edit.operations("",this._id,l)},_match:function(){for(var e=jQuery(element_obj._now),t="border-"+this._types2[0]+"-radius",o=e.css(t),i=0,l=1;l<this._types.length;l++){var t="border-"+this._types2[l]+"-radius",a=e.css(t);if(o!=a){i++;break}}return 0==i?0:1}},text_align:{_id:"text_align",_property:"text-align",_values:["left","center","right","justify"],change:function(e){if(element_obj.get_selectedObj(),get_inline_style(element_obj._now,this._property)==e)return jQuery(m9evt).removeClass("active"),jQuery(element_obj._now).css(this._property,""),!1;element_obj.change_css_by_mode(this._property,e),element_obj.edit.operations(4,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){jQuery(element_obj._now);var e=get_inline_style(element_obj._now,this._property);jQuery("._"+this._id).removeClass("active");for(var t=0,o=0;o<this._values.length;o++){var i=this._values[o]==e;!0==i&&jQuery("._"+this._values[o]).addClass("active"),i&&t++}0==t&&jQuery("._"+this._id+"._null").addClass("active")},remove:function(){element_obj.edit._remove(this._id)}},vertical_align:{_id:"vertical_align",_property:"vertical-align",_values:["top","middle","bottom"],change:function(e){element_obj.get_selectedObj(),element_obj.change_css_by_mode(this._property,e),element_obj.edit.operations(4,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){jQuery(element_obj._now);var e=get_inline_style(element_obj._now,this._property);jQuery("._"+this._id).removeClass("active");for(var t=0,o=0;o<this._values.length;o++){var i=this._values[o]==e;!0==i&&jQuery("._"+this._values[o]).addClass("active"),i&&t++}0==t&&jQuery("._"+this._id+"._null").addClass("active")},remove:function(){element_obj.edit._remove(this._id)}},float:{_id:"float",_property:"float",_values:["left","none","right","justify"],change:function(e){if(element_obj.get_selectedObj(),get_inline_style(element_obj._now,this._property)==e)return jQuery(m9evt).removeClass("active"),jQuery(element_obj._now).css(this._property,""),!1;element_obj.change_css_by_mode(this._property,e),element_obj.edit.operations(4,this._id,e),undo_obj._add(element_obj._now,this._property)},get:function(){jQuery(element_obj._now);var e=get_inline_style(element_obj._now,this._property);""==e&&"none"==(e=element_obj.get_var(this._property))&&(e=""),jQuery("._"+this._id).removeClass("active");for(var t=0,o=0;o<this._values.length;o++){var i=this._values[o]==e;!0==i&&jQuery("._"+this._values[o]).addClass("active"),i&&t++}0==t&&jQuery("._"+this._id+"._null").addClass("active")},remove:function(){element_obj.edit._remove(this._id)}},operations:function(e,t,o){var i=m9_get_num(o);style_info[t]&&style_info[t].class,jQuery("._"+t).removeClass("active");var l=1,a=0;if(""==e)class_obj.get(element_obj._now,t),box_html.unit.reset(t,o);else if(1==e);else if(2==e)m9_mode_obj.reset_by_change(),element_obj.edit.remove_class_by_btn(t);else if(3==e)l=0,a=1;else if(4==e){m9_mode_obj.reset_by_change(),jQuery("._"+(""!=o?o:"null")).addClass("active"),i=m9_get_num(jQuery(element_obj._now).css(t.replace(/\_/g,"-")));var n="em";"line_height"==t?(i=parseInt(i/m9_get_num(jQuery(element_obj._now).css("font-size"))*100),n="%"):i=convert_unit.convert("px","em",i),box_html.unit.reset(t,i+n)}1==a&&jQuery("#_editor_"+t).val(i),1==l&&box_html.slider.handle.setting(t,i)}},win:{_obj_kinds:"img,iframe,video",view:function(e){this.reset(e),element_obj._now=e,element_obj.menu.get_auto(),jQuery("#editWindow-setting").stop(!0,!0).fadeIn(300,function(){jQuery(this).css("display","block")})},close:function(){jQuery("#editWindow-setting").stop(!0,!0).fadeOut(100,function(){jQuery(this).css("display","none")})},reset:function(e){e!=element_obj._now&&(jQuery(e).is(element_obj.win._obj_kinds)?(jQuery("#_tab-area-verical-align").css("display",""),jQuery("#_tab-area-text-align").css("display","none")):(jQuery("#_tab-area-vertical-align").css("display","none"),jQuery("#_tab-area-text-align").css("display","")))},int:function(){var e="<div class=\"edit-tab-1\" data-m9-execute=\"tab({'on_class':'tab-btn-on','off_class':'tab-btn-off','slide':'down','accordion':'1','speed':'300'})\"><ul><li><a href=\"#\" id=\"_tab-menu-font\" class=\"tab-btn-on\" data-m9-tab-type=\"btn({'id':'tab5'})\">"+msg_msg("text")+'</a><div class="tab-content" style="display:block;" data-m9-tab-type="content({\'id\':\'tab5\'})"><ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt><label for="_editor_font_family">'+msg_msg("font_family")+"</label></dt><dd>"+edit_control_box.selectbox2({id:"font_family"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_color">'+msg_msg("color")+"</label></dt><dd>"+edit_control_box.colorbox({id:"color",callback:"element_obj.edit.color.set"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_color">'+msg_msg("style")+'</label></dt><dd><ul class="_edit-ul-1"><li><a href="#" onclick="element_obj.edit.font_weight.change(this);return false" title="'+msg_msg("bold")+'" data-alt-no="1" class="edit-btn-8 icon2-bold _font_weight"></a></li><li><a href="#" onclick="element_obj.edit.font_style.change(this);return false" title="'+msg_msg("italic")+'" data-alt-no="1" class="edit-btn-8 icon2-italic _font_style"></a></li><li><a href="#" onclick="element_obj.edit.text_decoration.change(this);return false" title="'+msg_msg("underline")+'" data-alt-no="1" class="edit-btn-8 icon2-underline _text_decoration"></a></li></ul></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_color">'+msg_msg("class")+'</label></dt><dd><div class="padding-left-1"><ul class="m9a-float-1 m9-spacing-1"><li><dl class="_edit-dl-2"><dt><label for="_editor_color">'+msg_msg("color")+'</label></dt><dd><ul class="_edit-ul-1"><li>'+get_userbox_class_btn("f_color",{btn1_addClass:"_drag-btn-3"})+'</li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_color">'+msg_msg("underline")+'</label></dt><dd><ul class="_edit-ul-1"><li>'+get_userbox_class_btn("f_text_decoration",{btn1_addClass:"_drag-btn-3"})+'</li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_color">'+msg_msg("strong")+'</label></dt><dd><ul class="_edit-ul-1"><li>'+get_userbox_class_btn("f_strong",{btn1_addClass:"_drag-btn-3"})+'</li></ul></dd></dl></li></ul></div></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_font_size">'+msg_msg("size")+"</label></dt><dd>"+get_userbox_class_btn("font_size")+get_userbox_01({id:"font_size",max:100,min:8,num:1})+'</dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_line_height">'+msg_msg("line_height")+"</label></dt><dd>"+get_userbox_class_btn("line_height")+get_userbox_01({id:"line_height",max:100,min:0,num:1,unit:"%"})+'</dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_word_spacing">'+msg_msg("word_spacing")+"</label></dt><dd>"+get_userbox_01({id:"word_spacing",max:50,min:-50,num:1})+'</dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_letter_spacing">'+msg_msg("letter_spacing")+"</label></dt><dd>"+get_userbox_01({id:"letter_spacing",max:50,min:-50,num:1})+'</dd></dl></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="element_obj.menu.remove(\'font\');return false" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a></div></div></li><li><a href="#" id="_tab-menu-border" class="tab-btn-off" data-m9-tab-type="btn({\'id\':\'tab1\'})">'+msg_msg("bg")+" & "+msg_msg("border")+'</a><div class="tab-content" style="display:none;" data-m9-tab-type="content({\'id\':\'tab1\'})"><ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt><label for="_editor_background_color">'+msg_msg("bg_color")+"</label></dt><dd>"+edit_control_box.colorbox({id:"background_color",callback:"element_obj.edit.background_color.set"})+'</dd></dl></li><li><dl class="_edit-dl-1"><dt>'+msg_msg("border")+'</dt><dd><div class="square_box"><div class="square_box_inner"><span class="edit-btn-8 icon-link"><input type="checkbox" id="_editor_border_all" value="all" onclick="checkbox_empty_all(this,\'_editor_border_top,_editor_border_left,_editor_border_right,_editor_border_bottom\');element_obj.edit.border.checked(this.value)" checked><label for="_editor_border_all" title="'+msg_msg("all")+'" data-alt-no="1">'+msg_msg("all")+'</label></span></div><div class="_top"><span class="check-switch"><input type="checkbox" id="_editor_border_top" value="top" onclick="checkbox_empty(this,\'_editor_border_all\');element_obj.edit.border.checked(this.value)"><label for="_editor_border_top" title="'+msg_msg("top")+'" data-alt-no="1" class="hidden">'+msg_msg("top")+'</label></span></div><div class="_right"><span class="check-switch"><input type="checkbox" id="_editor_border_right" value="right" onclick="checkbox_empty(this,\'_editor_border_all\');element_obj.edit.border.checked(this.value)"><label for="_editor_border_right" title="'+msg_msg("right")+'" data-alt-no="1" class="hidden">'+msg_msg("right")+'</label></span></div><div class="_bottom"><span class="check-switch"><input type="checkbox" id="_editor_border_bottom" value="bottom" onclick="checkbox_empty(this,\'_editor_border_all\');element_obj.edit.border.checked(this.value)"><label for="_editor_border_bottom" title="'+msg_msg("bottom")+'" data-alt-no="1" class="hidden">'+msg_msg("bottom")+'</label></span></div><div class="_left"><span class="check-switch"><input type="checkbox" id="_editor_border_left" value="left" onclick="checkbox_empty(this,\'_editor_border_all\');element_obj.edit.border.checked(this.value)"><label for="_editor_border_left" title="'+msg_msg("left")+'" data-alt-no="1" class="hidden">'+msg_msg("left")+"</label></span></div></div>"+get_userbox_01({id:"border_width",type:"border",max:100,min:0,num:1})+'<ul class="m9a-float-2"><li>'+edit_control_box.selectbox2({id:"border_style",first_index_not:1})+"</li><li>"+edit_control_box.colorbox({id:"border_color",callback:"element_obj.edit.border_color.set"})+'</li></ul></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_border_radius">'+msg_msg("radius")+'</label></dt><dd><div class="square_box"><div class="square_box_inner"><span class="edit-btn-8 icon-link"><input type="checkbox" id="_editor_border_radius_all" value="all" onclick="checkbox_empty_all(this,\'_editor_border_radius_top_left,_editor_border_radius_top_right,_editor_border_radius_bottom_left,_editor_border_radius_bottom_right\');element_obj.edit.border_radius.checked(this.value)" checked><label for="_editor_border_radius_all" title="'+msg_msg("all")+'" data-alt-no="1">'+msg_msg("all")+'</label></span></div><div class="_top_left"><span class="check-switch"><input type="checkbox" id="_editor_border_radius_top_left" value="top_left" onclick="checkbox_empty(this,\'_editor_border_radius_all\');element_obj.edit.border_radius.checked(this.value)"><label for="_editor_border_radius_top_left" title="'+msg_msg("top_left")+'" data-alt-no="1" class="hidden">'+msg_msg("top_left")+'</label></span></div><div class="_top_right"><span class="check-switch"><input type="checkbox" id="_editor_border_radius_top_right" value="top_right" onclick="checkbox_empty(this,\'_editor_border_radius_all\');element_obj.edit.border_radius.checked(this.value)"><label for="_editor_border_radius_top_right" title="'+msg_msg("top_right")+'" data-alt-no="1" class="hidden">'+msg_msg("top_right")+'</label></span></div><div class="_bottom_left"><span class="check-switch"><input type="checkbox" id="_editor_border_radius_bottom_left" value="bottom_left" onclick="checkbox_empty(this,\'_editor_border_radius_all\');element_obj.edit.border_radius.checked(this.value)"><label for="_editor_border_radius_bottom_left" title="'+msg_msg("bottom_left")+'" data-alt-no="1" class="hidden">'+msg_msg("bottom_left")+'</label></span></div><div class="_bottom_right"><span class="check-switch"><input type="checkbox" id="_editor_border_radius_bottom_right" value="bottom_right" onclick="checkbox_empty(this,\'_editor_border_radius_all\');element_obj.edit.border_radius.checked(this.value)"><label for="_editor_border_radius_bottom_right" title="'+msg_msg("bottom_right")+'" data-alt-no="1" class="hidden">'+msg_msg("bottom_right")+"</label></span></div></div>"+get_userbox_01({id:"border_radius",type:"radius",max:100,min:0,num:1})+'</dd></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="element_obj.menu.remove(\'border\');return false" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a></div></div></li><li><a href="#" id="_tab-menu-padding_margin" class="tab-btn-off" data-m9-tab-type="btn({\'id\':\'tab2\'})">'+msg_msg("padding")+" & "+msg_msg("margin")+'</a><div class="tab-content" style="display:none;" data-m9-tab-type="content({\'id\':\'tab2\'})"><ul class="_edit-list-1"><li><dl class="_edit-dl-1"><dt><label for="_editor_padding">'+msg_msg("padding")+"</label></dt><dd>"+get_userbox_class_btn("padding")+'<div class="square_box"><div class="square_box_inner"><span class="edit-btn-8 icon-link"><input type="checkbox" id="_editor_padding_all" value="all" onclick="checkbox_empty_all(this,\'_editor_padding_top,_editor_padding_left,_editor_padding_right,_editor_padding_bottom\');element_obj.edit.padding.checked(this.value)" checked><label for="_editor_padding_all" title="'+msg_msg("all")+'" data-alt-no="1">'+msg_msg("all")+'</label></span></div><div class="_top"><span class="check-switch"><input type="checkbox" id="_editor_padding_top" value="top" onclick="checkbox_empty(this,\'_editor_padding_all\');element_obj.edit.padding.checked(this.value)"><label for="_editor_padding_top" title="'+msg_msg("top")+'" data-alt-no="1" class="hidden">'+msg_msg("top")+'</label></span></div><div class="_right"><span class="check-switch"><input type="checkbox" id="_editor_padding_right" value="right" onclick="checkbox_empty(this,\'_editor_padding_all\');element_obj.edit.padding.checked(this.value)"><label for="_editor_padding_right" title="'+msg_msg("right")+'" data-alt-no="1" class="hidden">'+msg_msg("right")+'</label></span></div><div class="_bottom"><span class="check-switch"><input type="checkbox" id="_editor_padding_bottom" value="bottom" onclick="checkbox_empty(this,\'_editor_padding_all\');element_obj.edit.padding.checked(this.value)"><label for="_editor_padding_bottom" title="'+msg_msg("bottom")+'" data-alt-no="1" class="hidden">'+msg_msg("bottom")+'</label></span></div><div class="_left"><span class="check-switch"><input type="checkbox" id="_editor_padding_left" value="left" onclick="checkbox_empty(this,\'_editor_padding_all\');element_obj.edit.padding.checked(this.value)"><label for="_editor_padding_left" title="'+msg_msg("left")+'" data-alt-no="1" class="hidden">'+msg_msg("left")+"</label></span></div></div>"+get_userbox_01({id:"padding",max:100,min:0,num:1})+'</dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_margin">'+msg_msg("margin")+"</label></dt><dd>"+get_userbox_class_btn("margin")+'<div class="square_box"><div class="square_box_inner"><span class="edit-btn-8 icon-link"><input type="checkbox" id="_editor_margin_all" value="all" onclick="checkbox_empty_all(this,\'_editor_margin_top,_editor_margin_left,_editor_margin_right,_editor_margin_bottom\');element_obj.edit.margin.checked(this.value)" checked><label for="_editor_margin_all" title="'+msg_msg("all")+'" data-alt-no="1">'+msg_msg("all")+'</label></span></div><div class="_top"><span class="check-switch"><input type="checkbox" id="_editor_margin_top" value="top" onclick="checkbox_empty(this,\'_editor_margin_all\');element_obj.edit.margin.checked(this.value)"><label for="_editor_margin_top" title="'+msg_msg("top")+'" data-alt-no="1" class="hidden">'+msg_msg("top")+'</label></span></div><div class="_right"><span class="check-switch"><input type="checkbox" id="_editor_margin_right" value="right" onclick="checkbox_empty(this,\'_editor_margin_all\');element_obj.edit.margin.checked(this.value)"><label for="_editor_margin_right" title="'+msg_msg("right")+'" data-alt-no="1" class="hidden">'+msg_msg("right")+'</label></span></div><div class="_bottom"><span class="check-switch"><input type="checkbox" id="_editor_margin_bottom" value="bottom" onclick="checkbox_empty(this,\'_editor_margin_all\');element_obj.edit.margin.checked(this.value)"><label for="_editor_margin_bottom" title="'+msg_msg("bottom")+'" data-alt-no="1" class="hidden">'+msg_msg("bottom")+'</label></span></div><div class="_left"><span class="check-switch"><input type="checkbox" id="_editor_margin_left" value="left" onclick="checkbox_empty(this,\'_editor_margin_all\');element_obj.edit.margin.checked(this.value)"><label for="_editor_margin_left" title="'+msg_msg("left")+'" data-alt-no="1" class="hidden">'+msg_msg("left")+"</label></span></div></div>"+get_userbox_01({id:"margin",max:100,min:0,num:1})+'</dd></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="element_obj.menu.remove(\'padding_margin\');return false;" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a></div></div></li><li><a href="#" id="_tab-menu-align" class="tab-btn-off" data-m9-tab-type="btn({\'id\':\'tab4\'})">'+msg_msg("alignment")+' & Float</a><div class="tab-content" style="display:none;" data-m9-tab-type="content({\'id\':\'tab4\'})"><ul class="_edit-list-1"><li id="_tab-area-text-align"><dl class="_edit-dl-2"><dt>'+msg_msg("text_align")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" onclick="element_obj.edit.text_align.change(\'left\');return false" title="'+msg_msg("left")+'" data-alt-no="1" class="edit-btn-8 icon2-align-left _text_align _left"></a></li><li><a href="#" onclick="element_obj.edit.text_align.change(\'center\');return false" title="'+msg_msg("center")+'" data-alt-no="1" class="edit-btn-8 icon2-align-center _text_align _center"></a></li><li><a href="#" onclick="element_obj.edit.text_align.change(\'right\');return false" title="'+msg_msg("right")+'" data-alt-no="1" class="edit-btn-8 icon2-align-right _text_align _right"></a></li><li><a href="#" onclick="element_obj.edit.text_align.change(\'justify\');return false" title="'+msg_msg("justify")+'" data-alt-no="1" class="edit-btn-8 icon2-align-justify _text_align _justify"></a></li></ul></dd></dl></li><li id="_tab-area-vertical-align" style="display:none"><dl class="_edit-dl-2"><dt>'+msg_msg("vertical_align")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" onclick="element_obj.edit.vertical_align.change(\'\');return false" title="'+msg_msg("none")+'" data-alt-no="1" class="edit-btn-8 icon2-align-no _text_align _null"></a></li><li><a href="#" onclick="element_obj.edit.vertical_align.change(\'top\');return false" title="'+msg_msg("top")+'" data-alt-no="1" class="edit-btn-8 icon2-align-top _vertical_align _top"></a></li><li><a href="#" onclick="element_obj.edit.vertical_align.change(\'middle\');return false" title="'+msg_msg("middle")+'" data-alt-no="1" class="edit-btn-8 icon2-align-middle _vertical_align _middle"></a></li><li><a href="#" onclick="element_obj.edit.vertical_align.change(\'bottom\');return false" title="'+msg_msg("bottom")+'" data-alt-no="1" class="edit-btn-8 icon2-align-bottom _vertical_align _bottom"></a></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>Float</dt><dd><ul class="_edit-ul-1"><li><a href="#" onclick="element_obj.edit.float.change(\'left\');return false" title="'+msg_msg("left")+'" data-alt-no="1" class="edit-btn-8 icon2-float-left _float _left"></a></li><li><a href="#" onclick="element_obj.edit.float.change(\'none\');return false" title="'+msg_msg("none")+'" data-alt-no="1" class="edit-btn-8 icon2-float-none _float _none"></a></li><li><a href="#" onclick="element_obj.edit.float.change(\'right\');return false" title="'+msg_msg("right")+'" data-alt-no="1" class="edit-btn-8 icon2-float-right _float _right"></a></li><li><a href="#" onclick="element_obj.edit.float.change(\'inherit\');return false" title="'+msg_msg("inherit")+'" data-alt-no="1" class="edit-btn-8 icon2-float-inherit _float _inherit"></a></li></ul></dd></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="element_obj.menu.remove(\'align\');return false" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a></div></div></li><li><a href="#" id="_tab-menu-style" class="tab-btn-off" data-m9-tab-type="btn({\'id\':\'tab6\'})">'+msg_msg("style")+'</a><div class="tab-content" style="display:none;" data-m9-tab-type="content({\'id\':\'tab6\'})"><ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt><label for="_editor_box_style">'+msg_msg("box")+"</label></dt><dd>"+edit_control_box.selectbox({id:"box_style",mode_not:1})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_box_pattern">'+msg_msg("pattern")+"</label></dt><dd>"+edit_control_box.selectbox({id:"box_pattern",mode_not:1})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_box_color">'+msg_msg("color")+"</label></dt><dd>"+edit_control_box.selectbox({id:"box_color",mode_not:1})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_box_round">'+msg_msg("radius")+"</label></dt><dd>"+edit_control_box.selectbox({id:"box_round",mode_not:1})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_text_shadow">'+msg_msg("text_shadow")+"</label></dt><dd>"+edit_control_box.selectbox({id:"text_shadow",mode_not:1})+'</dd></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="element_obj.menu.remove(\'style\');return false" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a></div></div></li></ul></div>';edit_window_obj.int("editWindow-setting",e,msg_msg("object_setting")),box_html.slider.setting();for(var t=0;t<fontfamily_obj._fonts.length;t++)jQuery("#_editor_font_family").append('<option value="'+fontfamily_obj._fonts[t][0]+'">'+fontfamily_obj._fonts[t][1]+"</option>");for(var t=0;t<style_info.box_color.keys.length;t++)jQuery("#_editor_box_color").append('<option value="'+style_info.box_color.keys[t]+'">'+style_info.box_color.keys[t]+"</option>");for(var t in tab_get)jQuery("#_tab-menu-"+t).on("mouseup",function(){_id=jQuery(this).attr("id").replace(/^\_tab\-menu\-/gi,""),element_obj._now_tab=_id,element_obj.menu.get(_id)})}},change_attr_by_mode:function(e,t,o){var i=jQuery(e),l=i.attr(t);l||(l=""),i.attr(t,o);var a=m9_mode_obj.get();if(""==a)return!1;var n="data-"+m9_mode_obj.get_m9_mode_name("",t);void 0==i.attr(n)&&i.attr(n,l);var d=m9_mode_obj.get_m9_mode_name(a,t);i.attr("data-"+d);var r=o;""==r?i.removeAttr("data-"+d):i.attr("data-"+d,r)},change_css_by_mode:function(e,t){var o=jQuery(element_obj._now),i=o.attr("style");i||(i=""),o.css(e,t);var l=m9_mode_obj.get();if(""==l)return!1;var a="data-"+m9_mode_obj.get_m9_mode_name("");void 0==o.attr(a)&&o.attr(a,i);var n=m9_mode_obj.get_m9_mode_name(l),d=o.attr("data-"+n),r="";if(d){for(var s=d.split(";"),c=[],b=0,h=0;h<s.length;h++)s[h].split(":")[0]==e?""!=t&&"display"!=e&&(c.push(e+":"+t),b++):c.push(s[h]);0==b&&""!=t&&c.push(e+":"+t),r=c.join(";")}else""!=t&&(r=e+":"+t);""==r?o.removeAttr("data-"+n):o.attr("data-"+n,r)},change_css_hash_by_mode:function(e,t){var o=jQuery(e),i=element_obj._now;for(var l in element_obj._now=o[0],t)element_obj.change_css_by_mode(l,t[l]);element_obj._now=i},change_obj:function(e,t){jQuery(element_obj._now).css(e,t)}};
var mong9_obj={data:{},ajax_url:"//app.mong9.com/index.cgi?page_code=ajax&code=get_editor_info",status:function(){return!!mong9_obj.data.status&&mong9_obj.data.status>0&&mong9_obj.data.status},get:function(){var o=mong9_obj.ajax_url+"&domain="+encodeURIComponent(window.location.hostname);jQuery.ajax({url:o,method:"get",success:function(o){mong9_obj.data=m9_parse_json(o),""!=mong9_obj.data.connect_auth&&(M9_SET.connect_auth=mong9_obj.data.connect_auth),mong9_obj.set()},error:function(o){mong9_obj.set()}})},set:function(){if(mong9_obj.status())builder.insert.int();else{var o=""!=mong9_obj.data.connect_auth?"?connect_auth="+mong9_obj.data.connect_auth:"";jQuery("._editor-header").append('<div class="_m9connect_box"><a href="//mong9editor.com/links/upgrade_paid_version'+o+'" target="_blank" class="m9-btn _m9connect">'+msg_msg("msg_81")+"</a></div>"),jQuery("#editWindow-googleMap,#editWindow-tab,#tagWindow-setting").children("._handle").addClass("_not_paid")}}};
var m9_remove_xss_style={regexs:{color:/^(transparent|inherit|[a-zA-Z]+|(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})|((rgb|hsl)a?\([\d%,.\s]+\)))$/,margin_top:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,margin_bottom:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,margin_left:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,margin_right:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,padding_top:/^(0|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,padding_bottom:/^(0|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,padding_left:/^(0|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,padding_right:/^(0|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,border_width:/^(0|inherit|initial|thin|medium|thick|revert|unset|\d*\.?\d+(px|em|rem|%|cm|mm|in|pt|pc))$/,border_style:/^(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,border_color:/^(transparent|inherit|[a-zA-Z]+|(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})|((rgb|hsl)a?\([\d%,.\s]+\)))$/,font_size:/^(xx-small|x-small|small|medium|large|x-large|xx-large|smaller|larger|inherit|\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,font_style:/^(inherit|initial|italic|normal|oblique|revert|unset)$/,font_weight:/^(normal|bold|bolder|lighter|inherit|initial|revert|unset|\d{1,3})$/,line_height:/^(0|normal|inherit|initial|revert|unset|\d+|\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,letter_spacing:/^(0|normal|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,word_spacing:/^(0|normal|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,border_radius:/^(0|inherit|initial|revert|unset|\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax)(\s+\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax)){0,3})$/,text_align:/^(left|right|center|justify|start|end|inherit|initial|revert|unset)$/,vertical_align:/^(baseline|sub|super|top|text-top|middle|bottom|text-bottom|inherit|initial|revert|unset)$/,background_color:/^(transparent|inherit|[a-zA-Z]+|(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8})|((rgb|hsl)a?\([\d%,.\s]+\)))$/,background_image:/^url\(['"]?(.*?)['"]?\)$/,background_position:/^-?\d*\.?\d+(px|em|rem|%|top|bottom|left|right|center|inherit|initial|revert|unset)?\s*-?\d*\.?\d+(px|em|rem|%|top|bottom|left|right|center|inherit|initial|revert|unset)?$/,background_size:/^(auto|cover|contain|inherit|initial|revert|unset|\d*\.?\d+(px|em|rem|%|vw|vh|vmin|vmax))\s*(\/\s*(auto|cover|contain|inherit|initial|revert|unset|\d*\.?\d+(px|em|rem|%|vw|vh|vmin|vmax)))?$/,background_repeat:/^(repeat-x|repeat-y|repeat|no-repeat|round|space|inherit|initial|revert|unset)$/,background_origin:/^(padding-box|border-box|content-box|inherit|initial|revert|unset)$/,background_clip:/^(padding-box|border-box|content-box|inherit|initial|revert|unset)$/,background_attachment:/^(scroll|fixed|local|inherit|initial|revert|unset)$/,display:/^(block|inline|inline-block|none|flex|grid|table|table-cell|table-row|table-row-group|table-column|table-column-group|table-header-group|table-footer-group|list-item|inline-table|run-in|contents|flow-root|inline-flex|inline-grid|table-caption|inherit|initial|revert|unset)$/,text_decoration:/^(auto|blink|none|underline|overline|line-through|initial|inherit|revert|unset)$/,float:/^(left|none|right|inline-start|inline-end|inherit|initial|revert|unset)$/,position:/^(static|relative|absolute|fixed|sticky||inherit|initial|revert|unset)$/,left:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,right:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,bottom:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,top:/^(0|auto|inherit|initial|revert|unset|^-?\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,width:/^(0|auto|fit-content|max-content|min-content|inherit|initial|revert|unset|^\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,min_width:/^(0|auto|fit-content|max-content|min-content|inherit|initial|revert|unset|^\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,max_width:/^(0|none|fit-content|max-content|min-content|inherit|initial|revert|unset|^\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,height:/^(0|auto|fit-content|max-content|min-content|inherit|initial|revert|unset|^\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,min_height:/^(0|auto|fit-content|max-content|min-content|inherit|initial|revert|unset|^\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,max_height:/^(0|none|fit-content|max-content|min-content|inherit|initial|revert|unset|^\d*\.?\d+(px|%|cm|em|ex|in|mm|pc|pt|rem|vh|vw|vmin|vmax))$/,z_index:/^(auto|inherit|initial|revert|unset|^-?\d+)$/,table_layout:/^(auto|fixed)$/},_important:/\s+\!important$/,background_list:["background_color","background_image","background_position","background_size","background_repeat","background_origin","background_clip","background_attachment"],fonts:{},fonts_count:0,convert_style:function(e){for(var t=(e=e.replace(/\n|\t/g,"").replace(/\&quot\;/g,'"').replace(/;$/,"")).split(";"),i=[],n=0;n<t.length;n++){var r="",m=m9_convertStyleToArray(t[n]);if(!m[0]||!m[1])return!1;var a=jQuery.trim(m[1]),o=m[0].replace("-","_");o=jQuery.trim(o);var v=0;if(m9_remove_xss_style._important.test(a)&&(a=a.replace(m9_remove_xss_style._important,""),v++),""!=o){if("font_family"==o){if(0==m9_remove_xss_style.fonts_count){for(var l=0;l<fontfamily_obj._fonts.length;l++){var s=fontfamily_obj._fonts[l][0];m9_remove_xss_style.fonts[s]=1}m9_remove_xss_style.fonts_count++}var d=m9_trim_quotes(a);m9_remove_xss_style.fonts[d]&&(r=a=a.replace(/"/g,"&quot;"))}else if("border"==o||"border_top"==o||"border_left"==o||"border_right"==o||"border_bottom"==o){("0"==a||"none"==a)&&(r=a);for(var c,p,x,h=a.split(/\s+(?![^(]*\))/),u=0;u<h.length;u++)m9_remove_xss_style.regexs.border_width.test(h[u])?c=h[u]:m9_remove_xss_style.regexs.border_style.test(h[u])?p=h[u]:m9_remove_xss_style.regexs.border_color.test(h[u])&&(x=h[u]);c&&p&&x&&(r=c+" "+p+" "+x)}else if("background"==o){for(var h=a.split(/\s+(?![^(]*\))/),g=[],u=0;u<h.length;u++)for(var b=m9_remove_xss_style.background_list,f=0;f<b.length;f++)if(m9_remove_xss_style.regexs[b[f]].test(h[u])){g.push(h[u]);break}r=g.join(" ")}else if("transform"==o)r=a;else if(m9_remove_xss_style.regexs[o])m9_remove_xss_style.regexs[o].test(a)&&(r=a);else{var $=/^[0-9a-zA-Z #.%-]+$/,w=0;/^[a-zA-Z\-]+$/.test(o)&&w++,$.test(a)&&w++,2==w&&(r=a)}""!=r&&(v>0&&(r+=" !important"),i.push(m[0]+":"+r))}}return i.join(";")},remove_xss:function(e){for(var t=["style","data-m9-style"],i=0;i<m9_mode_obj.info.length;i++){var n="data-m9-"+m9_mode_obj.info[i].name+"-style";t.push(n)}for(var i=0;i<t.length;i++){var n=t[i],r=RegExp(n+"=([\"'])([\\s\\S]*?)\\1","g");e=e.replace(r,function(e){var t=RegExp("^"+n+"=",""),i=e.replace(t,"");return i=m9_trim_quotes(i),n+'="'+m9_remove_xss_style.convert_style(i)+'"'})}return e}};
var editor_selector={events:{},set:function(e,r){var n=this.events;for(var t in r){var o=r[t],i=o._type;n[i]||(n[i]=[]);var s=o._kind;n[i][s]||(n[i][s]=[]);var v={_selector:o._selector,_func:o._func,_ignore:o._ignore?o._ignore:0};n[i][s].push(v)}}};
var editor_event={events:{},set:function(e,t){this.events[e]||(this.events[e]={});var n=this.events[e];for(var v in t){var i=t[v],s=i._type;n[s]||(n[s]=[],jQuery(e).on(s,function(e){editor_event.excute(this,e)})),n[s].push(i._func)}},excute:function(e,t){var n=this.events[e][t.type];for(var v in n)n[v](t)}};
var edit_window_obj={_list:{},_reset:{},_close:{},_sons:{},int:function(i,s,e,n){0==jQuery("#"+i).length&&(!edit_window_obj._list[i]&&edit_window_obj._list[i]++,e||(e=""),jQuery("body").append('<div id="'+i+'" class="_edit_window _m9editor _m9window"></div>'),jQuery("#"+i).append('<div class="_handle"><span class="_s_title">'+e+'</span></div><div class="_win_btn_box"><a href="#" onclick="edit_window_obj.close(\''+i+'\');return false;" class="win_btn ___btn">X</a></div>').append('<div class="_edit_in">'+s+"</div>").draggable({handle:"._handle"}).css("display","none"),"editWindow-setting"!=i&&"edit_menu"!=i&&jQuery("#"+i).addClass("_lineup").on("click",function(){edit_window_obj.lineup(this.id)}),n&&(n.reset&&(this._reset[i]=n.reset),n.close&&(this._close[i]=n.close)))},_zindex:0,lineup:function(i){if("edit_menu"==i)return!1;0==edit_window_obj._zindex&&(edit_window_obj._zindex=1*jQuery("#"+i).css("z-index")),jQuery("._lineup").css("z-index",edit_window_obj._zindex),jQuery("#"+i).css("z-index",edit_window_obj._zindex+1)},view:function(i){var s=get_is_parents(m9evt,"._m9window");s&&(parent_win_id=jQuery(s).prop("id"),this._sons[parent_win_id]&&this.close(this._sons[parent_win_id]),this._sons[parent_win_id]=i),this._reset[i]&&this._reset[i](),edit_window_obj.lineup(i),obj_fadeIn("#"+i)},close:function(i){this._sons[i]&&(this.close(this._sons[i]),this._sons[i]=!1),this._close[i]&&this._close[i](),obj_fadeOut("#"+i)},close_all:function(){for(var i in edit_window_obj._list)"editWindow-setting"!=i&&"edit_menu"!=i&&edit_window_obj.close(i)}};
var class_obj={change:function(e,s,a){var t=jQuery(m9evt);if(t.hasClass("active"))return t.removeClass("active"),jQuery(e).removeClass(editor.mode.get_class(a)),!1;jQuery("._"+s).removeClass("active");for(var l=style_info[s]?style_info[s].keys:[],r=jQuery(e),v=0;v<l.length;v++)r.removeClass(editor.mode.get_class(l[v]));r.addClass(editor.mode.get_class(a)),jQuery("._"+a).addClass("active"),undo_obj._add(e)},get:function(e,s){jQuery("._"+s).removeClass("active");var a=style_info[s]?style_info[s].keys:[],t=jQuery(e).attr("class");if(t)for(var l=t.split(" "),r=0;r<a.length;r++)for(var v=0;v<l.length;v++)editor.mode.get_class(a[r])==l[v]&&jQuery("._"+a[r]).addClass("active")},remove:function(e,s){jQuery("._"+s).removeClass("active");for(var a=style_info[s]?style_info[s].keys:[],t=jQuery(e),l=0;l<a.length;l++)t.removeClass(editor.mode.get_class(a[l]))}};
var convert_unit={guess:function(t,i){for(var e=m9_get_num(t),n=m9_get_str(t),r=0;r<i.length;r++){var s=i[r],h=this._convert("px",s,e)+"";if("%"==s){if(-1==h.indexOf(".")&&h%10==0)return h+s}else if(h.indexOf(".")>-1){if(h.match(/^[0-9]+?\.[0-9][0-9]?$/))return h+s}else if(h.match(/^\d+$/))return h+s}return roundXL(e,0)+n},convert:function(t,i,e){var n;return roundXL(this._convert(t,i,e),"px"==i||"pt"==i?0:3)},_convert:function(t,i,e){this._int_ok||this._int();var n="px"!=t?this._convert2px(e,t):e;return"em"==i?n/=this._em:"%"==i?n=n/this._em*100:"rem"==i?n/=this._rem:"pt"==i&&(n=n*this._pt/this._dpi),1*n},_selected_unit:!1,_pt:72,_dpi:96,_rem:16,_em:16,_convert2px:function(t,i,e){this._int_ok||this._int();var n=0;return"em"==i?n=t*this._em:"%"==i?n=t/100*this._em:"rem"==i?n=t*this._rem:"pt"==i&&(n=t*this._dpi/this._pt),1!=e&&(n=roundXL(n,0)),n},_int_ok:!1,_int:function(){var t=jQuery("<div>a</div>");t.appendTo("body"),this._em=m9_get_num(t.css("font-size")),t.remove(),this._rem=m9_get_num(jQuery("html").css("font-size")),this._int_ok=!0}};
var fontfamily_obj={_fonts:[["Arial","Arial",""],["arial black","Arial Black",""],["Times New Roman","Times New Roman",""],["Calibri","Calibri",""],["Verdana","Verdana",""],["Georgia","Georgia",""],["Abril Fatface","Abril Fatface","//fonts.googleapis.com/css?family=Abril+Fatface"],["Lobster","Lobster","//fonts.googleapis.com/css?family=Lobster"],["Pinyon Script","Pinyon Script","//fonts.googleapis.com/css?family=Pinyon+Script"]],_fonts_hash:{},_fontfamily_loaded:{},int:function(){if(0==jQuery("#editWindow-fontFamily").length){for(var o='<div class="box">',t=0;t<fontfamily_obj._fonts.length;t++)o+='<div class="btn_'+fontfamily_obj._fonts[t][0].replace(/ /gi,"_")+' fonts-img"><a onclick="fontfamily_obj.change(\''+t+"');return false;\"></a></div>	";o+="</div>",edit_window_obj.int("editWindow-fontFamily",o,msg_msg("font_family")),jQuery("#editWindow-fontFamily a").on("dblclick",function(){jQuery("#editWindow-fontFamily").css("display","none")});for(var t=0;t<fontfamily_obj._fonts.length;t++){var a=fontfamily_obj._fonts[t];fontfamily_obj._fonts_hash[a[1]]=a[0]}}},add_style:function(o){for(var t="",a=0;a<fontfamily_obj._fonts.length;a++){var i=fontfamily_obj._fonts[a];if(i[0]==o){t=i[2];break}}if(""!=t){for(var n=0,f=document.getElementsByTagName("link"),a=0;a<f.length;a++){var e=f[a].href.toLowerCase();-1!=(e=e.replace(/\+/g," ").replace(/%20/g," ")).indexOf(o.toLowerCase())&&n++}if(0==n){jQuery("<link>").prop({type:"text/css",rel:"stylesheet",property:"stylesheet",href:t}).appendTo("div._mong9_setting_box");var l=o.replace(/ /gi,"_");fontfamily_obj._fontfamily_loaded[l]=t}}},change:function(o){var t=fontfamily_obj._fonts[o][0];fontfamily_obj._fonts[o][2],RestoreSelection();var a=get_container();fontfamily_obj.add_style(t),1==a?(document.execCommand("fontSize",!1,"7"),jQuery(document).find("font").each(function(){"7"==jQuery(this).attr("size")&&jQuery(this).removeAttr("size").css("fontFamily",t)})):Editor_Container.css("font-family",t),SaveSelection(),undo_obj._add(Editor_Container[0],"font-family")},get_css:function(_html){var _return="";for(var i in fontfamily_obj._fontfamily_loaded){var _name,_match,rgExp="/font-family:.+"+i.replace(/\_/gi," ")+"/gi";null!=_html.match(eval(rgExp))&&(_return+='<link href="'+fontfamily_obj._fontfamily_loaded[i]+'" type="text/css" rel="stylesheet" property="stylesheet" />\n')}return _return}};
var fontsize_obj={int:function(){if(0==jQuery("#editWindow-fontSize").length){for(var n=[8,9,10,11,12,14,16,18,20,22,24,28,32,36,40,45,50,55,55,60,65,70,75,80,85,90,95],i='<div class="box">',t=0;t<n.length;t++)i+="<a onclick=\"fontsize_obj.change('"+n[t]+'px\');return false;"><div style="font-size:'+n[t]+'px">'+n[t]+"<span>px</span></div></a>";i+="</div>",edit_window_obj.int("editWindow-fontSize",i,msg_msg("font_size")),jQuery("#editWindow-fontSize a").on("dblclick",function(){jQuery("#editWindow-fontSize").css("display","none")})}},change:function(n){RestoreSelection(),1==get_container()?(document.execCommand("fontSize",!1,"7"),jQuery(document).find("font").each(function(){"7"==jQuery(this).attr("size")&&jQuery(this).removeAttr("size").css("fontSize",n)})):Editor_Container.css("fontSize",n),SaveSelection(),undo_obj._add(Editor_Container[0],"font-size")}};
var formatpara_obj={int:function(){if(0==jQuery("#editWindow-formatPara").length){var a=msg_msg("HEADING"),o=[["H1",a+"(H1)"],["H2",a+"(H2)"],["H3",a+"(H3)"],["H4",a+"(H4)"],["H5",a+"(H5)"],["H6",a+"(H6)"],["P",msg_msg("P")+"(P)"],["DIV",msg_msg("DIV")+"(DIV)"],["A",msg_msg("A")+"(A)"],["SPAN",msg_msg("SPAN")+"(SPAN)"],["BLOCKQUOTE",msg_msg("BLOCKQUOTE")+"(BLOCKQUOTE)"]];_html='<div class="box">';for(var t=0;t<o.length;t++)"A"==o[t][0]?_html+="<div><a onclick=\"formatpara_obj.change('"+o[t][0]+"');return false;\"><span>"+o[t][1]+"</span></a></div>":_html+="<div><a onclick=\"formatpara_obj.change('"+o[t][0]+"');return false;\"><"+o[t][0]+">"+o[t][1]+"</"+o[t][0]+"></a></div>";_html+="</div>",edit_window_obj.int("editWindow-formatPara",_html,msg_msg("set_type")),jQuery("#editWindow-formatPara a").on("dblclick",function(){jQuery("#editWindow-formatPara").css("display","none")})}},change:function(a){if(jQuery(editor._now).is("table,thead,tbody,tfoot,th,td,ol,ul,li,dl,dt,dd,iframe"))return error_msg(msg_msg("msg_27")),!1;editor._now=changeTag(editor._now,a),undo_obj._add(editor._now,"formatpara");var o=msg_msg("msg_28").msg_format(a);error_msg(o)}};
var edit_etc_obj={indent:function(t){jQuery(t).wrap('<blockquote class="m9-blockquote"></blockquote>')},outdent:function(t){jQuery(t).each(function(){var t=jQuery(this);if(t.parent().is("blockquote")){var n="__this_is__random_class__"+Math.round(1e5*Math.random());t.addClass(n),t.parent()[0].outerHTML=t.parent().html(),jQuery("."+n).removeClass(n)}})},align:function(t,n){jQuery(t).css("textAlign",n)},removeformat:function(t){var n=get_container();document.execCommand("removeFormat",!1,null),1!=n&&Editor_Container.css({color:"","font-size":"","font-family":"","line-height":"","word-spacing":"","letter-spacing":"","font-weight":"","text-decoration":"","font-style":""})},class_name:function(t,n){fontsize_obj.change(""),get_container(),element_obj._now=Editor_Container[0],element_obj.edit.class2.change(t,n)}};
var confirm_msg={_Dfunc:null,int:function(){if(0==jQuery("#confirm-msg").length){var n='<div id="confirm-msg" class="html-win confirm-msg-box"><div id="_confirm-msg"></div><button onclick="confirm_msg.change(1)" class="editor-btn-yes confirm-msg-btn">OK</button> <button onclick="confirm_msg.change(0)" class="editor-btn-no confirm-msg-btn">NO</button></div>';jQuery("body").append(n)}},view:function(n,i){confirm_msg._Dfunc=i,jQuery("#_confirm-msg").html(n),curtain.show("confirm-msg")},change:function(Dvar){curtain.hide(),jQuery("#_confirm-msg").html(""),eval(confirm_msg._Dfunc+"("+Dvar+")"),confirm_msg._Dfunc=null}};
var curtain={_now:null,int:function(){0==jQuery("#curtain").length&&(jQuery("body").append('<div id="curtain"></div>'),jQuery("#curtain").click(function(n){curtain.hide()}))},show:function(n,i){if(!m9_getObject(n))return!1;if(curtain._now=n,0==jQuery("#curtain").length&&curtain.int(),obj_fadeIn("#curtain",100),i)jQuery("#"+n).css(i);else{var t=m9_get_object_size("curtain","width"),c=m9_get_object_size("curtain","height"),u=m9_get_object_size(n,"width"),a=m9_get_object_size(n,"height"),r=m9_get_xy_pos(t,c,u,a,0,0,5,0);jQuery("#"+n).css({left:r[0],top:r[1]})}jQuery("#"+n).fadeIn(400)},hide:function(){0==jQuery("#curtain").length&&curtain.int(),obj_fadeOut("#curtain",100),obj_fadeOut("#"+curtain._now,400),curtain._now.match(/([^-])+$/g),curtain._now=null}};
var class_func={change_by_number:function(a,s){var c=s.split("-");c.pop();var n=RegExp(c.join("-")+"-\\d+","gi"),r=jQuery(a).attr("class").match(n);r&&jQuery(a).removeClass(r[0]),jQuery(a).addClass(s)}};
var tag_obj={now:!1,nows:!1,int:function(t){tag_obj.win.int(),jQuery(document).on("mousedown",function(t){var e=t.target;(get_is_parents(e,".m9_editor_box")||get_is_parents(e,"._setting_area_box"))&&!get_is_parents(e,"._m9editor")&&tag_obj.print_obj(e)})},open_window:function(){0==jQuery("#tagWindow-setting").length||"none"==jQuery("#tagWindow-setting").css("display")?tag_obj.win.view(element_obj._now):tag_obj.win.close()},_index:0,now_attr:"",select_tag:function(t){tag_obj.now=tag_obj.nows[t],color_obj._selected=tag_obj.now,jQuery("#_tag_preview").find(".class-btn").removeClass("active"),jQuery("#_tag_preview").find(".class-btn").eq(t).addClass("active"),jQuery(".selected_tag").removeClass("selected_tag"),jQuery(tag_obj.now).addClass("selected_tag").trigger("mousedown").trigger("mouseup"),tag_obj.print_attr()},select_tag_attr:function(t){tag_obj.now_attr=t,jQuery("#_tag_attrs_preview").find(".class-btn").removeClass("active"),jQuery("#_tag_attrs_preview").find(".class-btn.__"+t).addClass("active"),tag_obj.print_textbox()},adjust:function(){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;var t=jQuery("#_tag_attr_key").val(),e=jQuery("#_tag_attr_value").val(),a=jQuery(".selected_tag"),n=element_obj._now;if(element_obj._now=tag_obj.now,element_obj.get_selectedObj(),"class"==t){jQuery(element_obj._now).prop("class","");for(var o=e.replace(/\s\s+/g," ").split(" "),i=0;i<o.length;i++)jQuery(element_obj._now).addClass(o[i])}else jQuery(element_obj._now).attr(t,e);jQuery(tag_obj.now).trigger("mousedown"),a.addClass("selected_tag"),element_obj._now=n,undo_obj._add(element_obj._now,t)},print_obj:function(t){if(t&&(tag_obj.now=t),tag_obj.now||(tag_obj.now=element_obj._now),!tag_obj.now||"none"==jQuery("#tagWindow-setting").css("display")||!get_is_parents(tag_obj.now,"._one-in-column"))return!1;var e=jQuery(tag_obj.now).parentsUntil("._one-in-column").toArray().reverse();e.push(jQuery(tag_obj.now)[0]),tag_obj.nows=[];for(var a="",n=0,o=0;o<e.length;o++)if(!jQuery(e[o]).is("._one-column,._one-in-column,._tab_slide,.slide_empty")){""!=a&&(a+=" > ");var i="";o==e.length-1&&(i="active"),a+='<button href="#" onclick="tag_obj.select_tag(\''+n+'\');return false;" class="class-btn '+i+'">'+jQuery(e[o]).prop("tagName")+"</button>",n++,tag_obj.nows.push(e[o])}jQuery("#_tag_preview").html(a),tag_obj.print_attr()},print_attr:function(){if(!tag_obj.now)return!1;var t=tag_obj.now,e=["style","class"],a=t.attributes;a||(a=[]);for(var n=0;n<a.length;n++)"style"!=a[n].nodeName&&"class"!=a[n].nodeName&&e.push(a[n].nodeName);(void 0==tag_obj.now_attr||""==tag_obj.now_attr)&&(tag_obj.now_attr=e[0]);for(var o=0,i="",n=0;n<e.length;n++){var s=e[n];if("contenteditable"!=s){var g=jQuery(t).attr(s);g||(g=""),"class"==s&&(g=g.replace(/selected\_tag|ui\-sortable|\_not\-copy|\_mong9|ui\-selectee|ui\-selectable/g,"")),g=jQuery.trim(g);var r=s==tag_obj.now_attr?"active":"";"active"==r&&(o=n),i+='<button href="#" onclick="tag_obj.select_tag_attr(\''+s+'\');return false;" class="class-btn __'+s+" "+r+" "+(""==g?"_empty":"")+'">'+s+"</button>"}}jQuery("#_tag_attrs_preview").html(i),tag_obj.print_textbox()},print_textbox:function(){var t=jQuery(tag_obj.now).attr(tag_obj.now_attr);"class"==tag_obj.now_attr&&t&&(t=t.replace(/selected\_tag|ui\-sortable|\_not\-copy|\_mong9|ui\-selectee|ui\-selectable/g,"")),t=jQuery.trim(t),jQuery("#_tag_attr_key").val(tag_obj.now_attr),jQuery("#_tag_attr_value").val(t)},win:{int:function(){if(jQuery("#tagWindow-setting").length>0)return!1;var t='<ul class="_edit-list-1"><li class="_first"><dl class="_edit-dl-2"><dt>'+msg_msg("tag")+'</dt><dd><div id="_tag_preview"></div></dd></dl></li><li class="_second"><dl class="_edit-dl-2"><dt>'+msg_msg("property")+'</dt><dd><div id="_tag_attrs_preview"></div></dd></dl></li></ul><div class="_tag_line"><div class="_tag_preview_input"><input type="text" name="_tag_attr_preview" id="_tag_attr_key" onkeydown="tag_obj.win.check_enter(event)"></div><div class="_tag_attrs_input"><input type="text" name="_tag_attr_preview" id="_tag_attr_value" onkeydown="tag_obj.win.check_enter(event)"></div><div class="_tag_btn_box"><button href="#" onclick="tag_obj.adjust();return false;" class="editor-btn _save editor-btn-yes">OK</button></div></div>';edit_window_obj.int("tagWindow-setting",t,msg_msg("tag_setting"),{close:function(){jQuery(".icon2-tag").removeClass("active")}});var e=(window.innerWidth-m9_get_num(jQuery("#tagWindow-setting").css("width")))/2,a=window.innerHeight-m9_get_num(jQuery("#tagWindow-setting").css("height"))-10;jQuery("#tagWindow-setting").css({left:e+"px",top:a+"px"})},check_enter:function(t){if(13===(t.keyCode||t.which))return tag_obj.adjust(),!1},view:function(t){tag_obj.print_obj(t),"none"==jQuery("#tagWindow-setting").css("display")&&obj_fadeIn("#tagWindow-setting"),jQuery(".icon2-tag").addClass("active")},close:function(){jQuery("#tagWindow-setting").length>0&&obj_fadeOut("#tagWindow-setting"),jQuery(".icon2-tag").removeClass("active")}}};
var box_html={slider:{handle:{setting:function(t,i){var e="#slider_editor_"+t;jQuery(e).find(".sliderBox-handle").text(i),jQuery(e).slider({value:i})}},get:function(t){return this._temp[t.id]=t,'<div id="slider_editor_'+t.id+'" class="sliderBox"><div class="sliderBox-handle ui-slider-handle"></div></div>'},setting:function(){for(var t in box_html.slider._temp){var i=this._temp[t],e="slider_editor_"+i.id;this._ids[e]=i.id,jQuery("#"+e).slider({max:i.max,min:i.min,step:i.num,create:function(){jQuery(this).find(".sliderBox-handle").text(jQuery(this).slider("value"))},change:function(t,i){jQuery(this).find(".sliderBox-handle").text(i.value)},slide:function(t,i){jQuery(this).find(".sliderBox-handle").text(i.value);var e=jQuery(this).attr("id"),n=box_html.slider._ids[e];element_obj.edit.operations(3,n,i.value),element_obj.edit[n].change()}})}this._temp={}},_temp:{},_ids:{}},unit:{_selected_unit:!1,select:function(t){this._selected_unit=jQuery(t).val()},reset:function(t,i){if(!box_html._options[t])return!1;var e=m9_get_num(i),n=m9_get_str(i),o="_editor_"+t;jQuery("#"+o).val(e),jQuery("#"+o+"_unit").val(n);var s=1,l=1;"em"==n||"rem"==n?(s=.1,l=.1):"%"==n&&("line_height"==t?(s=10,l=10):(s=1,l=1));var d=box_html._options[t],a=1*d.max*(1*s),r=1*d.min*(1*s),u={max:a,min:r,num:l};input_box.change_options(o,u);var u={max:a,min:r,step:l};jQuery("#slider_editor_"+t).slider("option","max",a).slider("option","min",r).slider("option","step",l)},change:function(t){var i="_editor_"+t,e=jQuery("#"+i+"_unit").val();if(e==this._selected_unit)return!1;var n=jQuery("#"+i).val(),o=convert_unit.convert(this._selected_unit,e,n);this.reset(t,o+e),box_html.slider.handle.setting(t,o)}},_options:{},control_box:function(t){return this._options[t.id]=t,t.unit&&t.unit,'<div class="counter-control-box"><span class="counter-control"><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.plus(\'_editor_'+t.id+"',{},function(){element_obj.edit."+t.id+'.change();})" onmouseup="input_box.stop(\'_editor_'+t.id+'\')" class="left-button icon2-plus"></button></span><span class="box-input"><input type="text" id="_editor_'+t.id+'" value="0" onchange="element_obj.edit.'+t.id+'.change();return false;" /></span><span class="box-unit"><select id="_editor_'+t.id+'_unit" onclick="box_html.unit.select(this);return false;" onchange="box_html.unit.change(\''+t.id+'\');return false;" class="unit"><option value="px">px</option><option value="em">em</option><option value="rem">rem</option><option value="%">%</option><option value="pt">pt</option></select></span><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.minus(\'_editor_'+t.id+"',{},function(){element_obj.edit."+t.id+'.change();})" onmouseup="input_box.stop(\'_editor_'+t.id+'\');" class="right-button icon2-minus"></button></span></span></div><script>input_box.change_options(\'_editor_'+t.id+"',{'max':"+t.max+",'min':"+t.min+",'num':"+t.num+"})</script>"}};
var edit_control_box={selectbox2:function(n){var o=n.id,t="_editor_"+o,s="",e="";1==n.mode_not&&(s="_drag-btn-3",e="_drag-element-3"),n.class_btn&&(s+=" "+n.class_btn),n.class_input&&(e+=" "+n.class_input);var a=n.onclick_function?n.onclick_function:"element_obj.edit."+o+".change()",c='<div class="counter-control-box"><span class="counter-control"><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.plus(\''+t+"',{},function(){"+a+';})" onmouseup="input_box.stop(\''+t+'\');" class="left-button icon2-plus '+s+'"></button></span><span class="box-input"><select name="'+t+'" id="'+t+'" onchange="'+a+'" class="'+e+'">';n.first_index_not||(c+='<option value=""></option>');var l={keys:[],class_name:[]};n.options?l=n.options:style_info&&style_info[o]&&(l=style_info[o]);for(var i=l.keys,u=0;u<i.length;u++){var r=l.values&&l.values[u]?l.values[u]:i[u];c+='<option value="'+i[u]+'">'+r+"</option>"}return c+('</select></span><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.minus(\''+t+"',{},function(){"+a+'})" onmouseup="input_box.stop(\''+t+'\');" class="right-button icon2-minus '+s+'""></button></span></span></div>')},selectbox:function(n){var o=n.id,t="_editor_"+o,s="",e="";1==n.mode_not&&(s="_drag-btn-3",e='class="_drag-element-3"');var a='<div class="counter-control-box"><span class="counter-control"><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.plus(\''+t+"',{},function(){element_obj.edit.class.change('"+t+"');})\" onmouseup=\"input_box.stop('"+t+'\');" class="left-button icon2-plus '+s+'"></button></span><span class="box-input"><select name="'+t+'" id="'+t+'" onchange="element_obj.edit.class.change(\''+t+"')\" "+e+">";if(n.first_index_not||(a+='<option value=""></option>'),style_info&&style_info[o])for(var c=style_info[o],l=c.keys,i=0;i<l.length;i++){var u=c.values&&c.values[i]?c.values[i]:l[i];a+='<option value="'+l[i]+'">'+u+"</option>"}return a+('</select></span><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.minus(\''+t+"',{},function(){element_obj.edit.class.change('"+t+"');})\" onmouseup=\"input_box.stop('"+t+'\');" class="right-button icon2-minus '+s+'"></button></span></span></div>')},colorbox:function(n){var o="_editor_"+n.id,t=n.key?n.key:n.id;return"background_color"==t&&element_obj.edit[t].put_id(n.id),'<div class="counter-control-box"><span class="counter-control"><span class="box-btn minicolors-sprite color-bg-box"><span id="_color_preview_'+n.id+'" class="color-bg"></span></span><span class="box-input"><input type="text" id="'+o+'" value="" onchange="element_obj.edit.'+t+'.change();return false;" /></span><span class="box-btn"><button href="#" onclick="'+(n.before?n.before+"('"+o+"');":"")+"color_obj.set(jQuery('#"+o+"').val(),function(e){"+n.callback+"(e);});color_obj.view(this,function(e){element_obj.edit."+t+'.set(e);},0,this);return false;" id="_color_btn" class="color-button"></button></span></span></div>'}};
var html_obj={_callback:!1,int:function(){if(0==jQuery("#b-html").length){var t='<div id="b-html" class="html-win curtain-box"><textarea id="html_textarea" title="'+msg_msg("fix_html")+'"></textarea><div class="btn_box"><div class="_full"><button id="_html_fullscreen_btn" onclick="html_obj.fullscreen(this)" class="edit-btn icon-arrows-alt hd-fix no">'+msg_msg("msg_22")+'</button></div><div><button onclick="html_obj.change()" class="curtain-btn editor-btn-yes">OK</button></div></div></div>';jQuery("body").append(t)}},view:function(t,l){html_obj._callback=t,jQuery("#html_textarea").val(l),m9_code_editor.set("html_textarea",jQuery("#html_textarea").val()),curtain.show("b-html")},change:function(){jQuery("#html_textarea").val(m9_code_editor.get("html_textarea"));var _html=jQuery("#html_textarea").val();eval(html_obj._callback)(_html),curtain.hide()},get:function(t){var l=jQuery("#"+t).html();return builder.html.convert(l)},fullscreen:function(t){var l=jQuery(t).parents(".html-win");l.hasClass("_fullscreen")?l.removeClass("_fullscreen"):l.addClass("_fullscreen"),curtain.show("b-html")}};
var focus_obj={_now:!1,set:function(){RestoreSelection();var n=SaveSelection();jQuery(n.commonAncestorContainer).parents(".m9_editor_box").length>0?this._now=n:this._now=!1},insert:function(n){if(!this._now)return!1;var o=jQuery("body")[0];RestoreSelection(this._now);var t="__this_is__random_class__"+Math.round(1e5*Math.random());InsertObj('<i id="'+t+'">'+n+"</i>"),placeCaretAtEnd(jQuery("#"+t)[0]);var i=getCaretPosition(o);""!=m9_mode_obj.get()?editor.mode.adjust_display(jQuery("#"+t)[0]):jQuery("#"+t).replaceWith(jQuery("#"+t).html()),setCaretPos(o,i)}};
var m9_editor={defaults:{type:"master",lang:"en",content_type:1,use_convert:1,use_builder:1,use_grid:1,use_obj:1,upload_url:"",img_max_width:1e3,use_element:1,example_html:"./block/example.html",mode:{m:768,e:576}},setting:{},checking_unload:!0,cpu:0,int:function(t,e){if(0==jQuery("#"+t).length)return!1;var i=m9_get_vars(e,this.defaults);this.setting=i,m9_mode_obj._type=this.setting.type,m9_mode_obj.change_info(this.setting.mode),Mong9_Font_Family&&(fontfamily_obj._fonts=Mong9_Font_Family);var o=jQuery("#"+t),n=t+"_editor",s=m9_get_object_size2(o[0],"width");jQuery('<div class="_editor-header"></div>').insertBefore(o);var a='<div class="_editor_var_div"><input type="hidden" id="'+t+'_editor_mode" name="'+t+'_editor_mode" value="1" /></div>';if(jQuery(a).appendTo("._editor-header"),"master"==this.setting.type){var a='<div class="editor-mode-box"><button onclick="m9_mode_obj.change(\'\');return false" data-alt-no="4" title="'+msg_msg("mode")+'" class="btn-mode-pc _mode-btn active">PC</button><button onclick="m9_mode_obj.change(\'m\');return false" data-alt-no="4" title="'+msg_msg("mode")+'( m )" class="btn-mode-m _mode-btn">Mobile Portrait</button><button onclick="m9_mode_obj.change(\'e\');return false" data-alt-no="4" title="'+msg_msg("mode")+'( e )" class="btn-mode-e _mode-btn">Mobile Landscape</button></div>';jQuery(a+='<div class="editor-etc-box"><button data-content-mode="html" onclick="editor.html.view(\''+t+'\',this);return false;" class="editor-btn _type editor-btn-no">html</button><button onclick="send_parent_editor(\''+t+'\');return false;" class="editor-btn _save editor-btn-yes">'+msg_msg("save")+"</button></div>").appendTo("._editor-header")}else{jQuery(".m9editor-layout").wrap('<div class="_base_box"></div>');var a='<div class="editor-etc-box2"><button onclick="send_parent_editor(\''+t+'\');return false;" class="editor-btn _save editor-btn-yes">'+msg_msg("save")+"</button></div>";jQuery(".m9editor-layout").after(a)}m9_mode_obj.edit_wrap(o),o.after('<div id="'+n+'" class="m9_editor_box m9not _m9_editor_canvas m9-content"></div>'),o.wrap('<div id="'+t+'_wrap" style="display:none"></div>');var d=jQuery("#"+n);d.css({"min-height":o.css("height"),height:"auto"}),jQuery.data(d[0],"min-height",m9_get_num(o.css("height"))),d[0].innerHTML=m9_editor.convert.set(t),m9_get_num(jQuery("body").css("width"))>=1e3&&d.css("max-width",s),1==i.use_element&&element_obj.int(this.setting.type),1==i.use_grid&&grid_obj.int(n),1==i.use_builder&&builder.int(n,{example_html:i.example_html,type:this.setting.type}),1==i.use_obj&&img_obj.int(d[0],{upload_url:i.upload_url,img_max_width:i.img_max_width}),editor.int(t,this.setting.type),1==i.content_type?o.css("display","none"):(d.css("display","none"),jQuery("#example").css("display","none")),"ie"==M9_SET.navigator?m9_ie_var<10&&(m9_editor.cpu=1):"safari"==M9_SET.navigator&&(m9_editor.cpu=1),jQuery(document).on("mousedown",function(t){m9evt=m9_get_evt_obj()}),jQuery(window).on("beforeunload",function(){if(m9_editor.checking_unload)return msg_msg("msg_37")}),"master"==this.setting.type&&(jQuery("#edit_menu,#editWindow-setting").css("display","block"),jQuery("._drag-btn-2").addClass("disabled").prop("disabled","disabled"));var r=function(t){events_function("mouseover",t)},l=function(t){events_function("mousedown",t)};editor_event.set(d[0],[{_type:"mouseover",_func:r},{_type:"mousedown",_func:l}]),undo_obj.int(d[0])},ready_submit:function(t,e){m9_editor.checking_unload=!1},check_value:function(t){var e=jQuery("#"+t+"_editor_mode").val(),i=jQuery("#"+t),o=t+"_editor",n=jQuery("#"+o),s="";if(1==e){s=builder.html.get(o),jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>'),jQuery("#_edit_covert_box")[0].innerHTML=s;var a=jQuery("#_edit_covert_box").text();if(jQuery("#_edit_covert_box").remove(),(a=a.replace(/^\s+|\s+$/g,""))==msg_msg("msg_36"))return i.html(""),n.html(""),0}else s=i.val();return""==s?0:1},get_value:function(t){m9_mode_obj.change("");var e=jQuery("#"+t+"_editor_mode").val(),i=jQuery("#"+t),o=t+"_editor";if(1==e){var n=builder.html.get(o);i.val(n)}m9_editor.convert.get(t),m9_editor.ready_submit(o);var n=i.val();return i.val(n),i.val()},convert:{set:function(t){var e=jQuery("#"+t),i=t+"_editor_settings";e.after('<div id="'+i+'" class="m9not _mong9_setting_box" style="display:none"></div>');var o=e.val(),n=/[-\d\.]+/,n=/\<\!\-\-\s*\/\/\s*m9\_font\_family\(\s*(.*)\s*\)\s*\/\/\s*\-\-\>/i,s=o.match(n);if(s&&s[1])for(var a=s[1].split(","),d=0;d<a.length;d++)jQuery('<link type="text/css" rel="stylesheet" href="'+a[d]+'" />').appendTo("#"+i);return o=(o=o.replace(/\<\!\-\-\s*\/\/\s*Mong9\s*Editor\s*\/\/\s*\-\-\>/i,"")).replace(/\<\!\-\-\s*\/\/\s*m9\_font\_family\(\s*(.*)\s*\)\s*\/\/\s*\-\-\>/i,""),jQuery("body").append('<div id="_edit_covert_box2" style="display:none"></div>'),jQuery("#_edit_covert_box2").html(o),jQuery("#_edit_covert_box2").find("p").each(function(){jQuery(this).attr("class")||jQuery(this).attr("style")||jQuery(this).html()||jQuery(this).remove()}),o=jQuery("#_edit_covert_box2").html(),jQuery("#_edit_covert_box2").remove(),o},get:function(t){var e=jQuery("#"+t);jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>');var i=jQuery("#_edit_covert_box");i.html(e.val()),i.find("p,br,span").each(function(){jQuery(this).attr("class")||jQuery(this).attr("style")||jQuery(this).addClass("_mong9")}),tab_obj.remove_setting(i[0]);var o=i.html();i.remove(),e.val(o);var n=[];jQuery("#"+t+"_editor").find("[style]").each(function(){var t=get_inline_style(this,"font-family",1);""!=t&&(t=t.replace(/\'/g,"").replace(/\"/g,""),n.push(t))});var o="<!--//Mong9 Editor//-->";if(n.length>0){for(var s=jQuery.union(n,[]),a=[],d=0;d<s.length;d++)for(var r=0;r<fontfamily_obj._fonts.length;r++){var l=fontfamily_obj._fonts[r];if(l[0]==s[d]){a.push(l[2]);break}}o+="<!--//m9_font_family("+a.join(",")+")//-->"}var c=o+e.val();e.val(c)}}};
var editor={_obj:null,_now:!1,_align_check:!1,_ctrl:0,_last_selected:!1,_ctrl_v_type:!1,_ctrl_v_obj:!1,_ctrl_v_selection:!1,_ignore:"#editMenu-setting,#alt_view0,.editMenu-column,.editMenu-builder,._not,.no",editable:"._one-in-column",incapable:".clearboth,._not",menu_group:"#edit_menu",menu_group_together:{},defaults:{menu:"edit_menu",example:"example",example_file:"./example.html",placeholder_txt:msg_msg("msg_36")},property:{},event_doing:{_var:0,set:function(t){this._var=t},get:function(){return this._var}},int:function(t,e){editor._obj=jQuery("#"+t+"_editor");var n=editor._obj[0],i=editor.defaults;editor.property=i,editor.int_extend.set_window(t,e),fontfamily_obj.int(),fontsize_obj.int(),formatpara_obj.int(),createlink_obj.int(n),special_char_obj.int(),icon_obj.int(n),google_map_obj.int(n),video_obj.int(n),table_obj.int(n),color_obj.int(),tab_obj.int(n),list_obj.int(n),m9_mode_obj.int();for(var o=["bold","italic","underline","strikethrough","removeFormat","subscript","superscript","unlink","InsertUnorderedList","InsertOrderedList"],a=0;a<o.length;a++)jQuery(".icon2-"+o[a]).click(function(t){if(jQuery(this).data("var")){var e=jQuery(this).data("var");e&&(e=e.toLowerCase(),editor.execCommand_ex(e))}});jQuery(".icon2-color").click(function(t){var e=get_container();color_obj._selected=Editor_Container[0];var n=1==e?jQuery(color_obj._selected).parent().css("color"):jQuery(color_obj._selected).css("color");color_obj.set(n),color_obj.view(this,function(t){color_obj.change(t)},1)});for(var l=["formatPara","fontFamily","fontSize"],a=0;a<l.length;a++)jQuery(".icon2-"+l[a]).click(function(t){RestoreSelection(),editor._last_selected=SaveSelection();var e="editWindow-"+jQuery(this).attr("class").match(/([^-])+$/g);m9_layer_position(e,t.target,"up"),edit_window_obj.view(e)});jQuery(".icon2-createLink").click(function(t){RestoreSelection(),editor._last_selected=SaveSelection();var e="editWindow-createLink";m9_layer_position(e,t.target,"up"),edit_window_obj.view(e)}),jQuery(document).on("keydown",function(t){17==t.which&&(editor._ctrl=1)}).on("keyup",function(t){editor._ctrl=0}),jQuery(document).on("mousedown",function(t){editor._align_check=!1,editor.sortable._now&&1==editor.sortable._sorting_out&&editor.sortable.destroy();var e=t.target,n=jQuery(e);0==n.parents("._m9editor,._m9editor").length&&1!=editor._ctrl&&(jQuery(".selected_tag").removeClass("selected_tag"),jQuery(editor._obj).find("[contenteditable]").removeAttr("contenteditable"));var i=jQuery(editor._now);if(n.parents(editor.editable).length>0&&!n.is(editor.incapable)&&0==n.parents(editor.incapable).length){editor._now=e,i=jQuery(editor._now),!editor.sortable._now&&i.is(".placeholder_txt")&&i.removeClass("placeholder_txt").removeClass("_starting").html("<br>");var o=i.attr("style");o&&o.match(/text-align/g)&&(editor._align_check=e),jQuery(editor._obj).find("[contenteditable]").removeAttr("contenteditable"),1==editor._ctrl&&i.is(".selected_tag")?i.removeClass("selected_tag"):i.addClass("selected_tag");var a=!1;i.attr("contenteditable","true"),a=i[0],editor.sortable._now||(editor.handle.text_align.view(editor._now,1),editor.handle.close_son_menu()),m9_obj_set_data(editor._obj[0],"edit_on",1)}else 0!=n.parents(editor._ignore).length||n.is(editor._ignore)||editor.handle.close_son_menu(),m9_obj_set_data(editor._obj[0],"edit_on",0);if(!editor._align_check){var o=jQuery(a).attr("style");void 0!=o&&jQuery(a).attr("style",o.replace(RegExp("text-align:(\\s?)(\\w+)(\\;?)","gi"),""))}if(get_is_parents(e,"._edit_window")&&RestoreSelection(),n.is(".m9_editor_box")&&n.find("._one-block").length<=1){var l=n.find("._one-block").last().find("._one-in-column").children().last();jQuery(l[0]).trigger("mousedown"),m9_delay("",100,function(){placeCaretAtEnd(l[0])})}}).on("mouseup keyup",function(t){var e=t.target;if(editor.handle.edit_menu_btn_preview(),get_is_parents(e,"._one-in-column",".m9_editor_box")){var n=m9_mode_obj.get();GetSelectedText()?(jQuery("._drag-btn-2").addClass("disabled").prop("disabled","disabled"),""==n?jQuery("._drag-btn-1").removeClass("disabled").prop("disabled",""):(jQuery("._drag-btn-1").each(function(){var t=jQuery(this);t.hasClass("_drag-btn-3")||t.removeClass("disabled").prop("disabled","")}),jQuery(".icon2-createLink").addClass("disabled").prop("disabled","disabled"))):(jQuery("._drag-btn-1").addClass("disabled").prop("disabled","disabled"),jQuery(".selected_tag").length>1?jQuery("._drag-btn-2,._a_delete_icon").addClass("disabled").prop("disabled","disabled"):""==n?(jQuery("._drag-btn-2").removeClass("disabled").prop("disabled",""),jQuery(".icon2-indent,.icon2-formatPara,.icon2-arrow-height,.icon2-move,._a_delete_icon").removeClass("disabled").prop("disabled","")):(jQuery("._drag-btn-2").each(function(){var t=jQuery(this);t.hasClass("_drag-btn-3")||t.removeClass("disabled").prop("disabled","")}),jQuery(".icon2-indent,.icon2-formatPara,.icon2-arrow-height,.icon2-move,._a_delete_icon").addClass("disabled").prop("disabled","disabled")))}else get_is_parents(e,"._setting_area_box",jQuery("html")[0])?(jQuery("._drag-btn-1,._drag-btn-2").addClass("disabled").prop("disabled","disabled"),jQuery("._drag-btn-4").removeClass("disabled").prop("disabled","")):get_is_parents(e,"#edit_menu")||jQuery("._drag-btn-1,._drag-btn-2").addClass("disabled").prop("disabled","disabled")}),editor._obj.on("mouseenter",function(t){var e=jQuery(this);if(0==e.children().length)jQuery('<div class="m9-grid-1">\n	<div class="m9-column-1">\n		<p class="placeholder_txt _starting">'+editor.property.placeholder_txt+"</p>\n	</div>\n</div>").appendTo(e),builder.setting.check();else{for(var n=0,i=e.children(),o=0;o<i.length;o++)if("none"!=jQuery(i[o]).find(grid_obj._grids).css("display")){n++;break}0==n&&(jQuery('<div class="m9-grid-1">\n	<div class="m9-column-1">\n		<p class="placeholder_txt _starting">'+editor.property.placeholder_txt+"</p>\n	</div>\n</div>").appendTo(e),builder.setting.check())}}).on("mouseup",function(t){var e=t.target;get_is_parents(e,"._one-in-column",".m9_editor_box")&&!get_is_parents(e,"._m9editor",".m9_editor_box")&&SaveSelection()}).on("keydown",function(t){if(13==t.keyCode){var e=m9_mode_obj.get(),n=""==e?"<br>":'<br class="'+e+'-only-br">';if(1==editor.is_ctrl&&(n='<br class="all-br">'),"ie"==M9_SET.navigator&&m9_ie_var<=10){var i=document.selection.createRange();if(i.parentElement)return i.pasteHTML(n),t.cancelBubble=!0,t.returnValue=!1,i.select(),i.moveEnd("character",1),i.moveStart("character",1),i.collapse(!1),!1}else{var o=window.getSelection(),i=o.getRangeAt(0);i.extractContents(),i.collapse(!0);var a=i.createContextualFragment(n),l=a.lastChild;i.insertNode(a),i.setStartAfter(l),i.setEndAfter(l);var d=i.createContextualFragment("‌"),r=d.lastChild;i.insertNode(d),i.setStartAfter(r),i.setEndAfter(r);var s=i.commonAncestorContainer;if(s&&s.parentNode)try{s.parentNode.normalize()}catch(c){}return o.removeAllRanges(),o.addRange(i),!1}}if(17==t.which){editor.is_ctrl=1;return}if(1==editor.is_ctrl&&(editor._ctrl_v_type=GetSelectedText(),86==t.which&&(editor._ctrl_v_obj=1==get_container()?jQuery(Editor_Container).parent()[0]:Editor_Container[0],0==jQuery("#_ctrl_v_memory").length))){editor._ctrl_v_selection=SaveSelection();var u=jQuery(editor._ctrl_v_obj).offset().top;editor._obj.append('<div id="_ctrl_v_memory" contenteditable="true" style="position:absolute;top:'+u+'px;left:-100000px">&nbsp;</div>'),"ie"==M9_SET.navigator&&m9_ie_var<=9?doSetCaretPosition(jQuery("#_ctrl_v_memory")[0],0):setCaretPos(jQuery("#_ctrl_v_memory")[0],0)}}).on("keyup",function(t){17==t.which&&(editor.is_ctrl=0);var e=jQuery("#_ctrl_v_memory");e.length>0&&"&nbsp;"==e.html()&&(e.remove(),RestoreSelection()),setTimeout(function(){undo_obj._add(editor._now,"input")},200)}).on("click",function(t){var e=jQuery(t.target);(e.is("a")||e.parents("a").length>0)&&!e.is("._m9editor")&&0==e.parents("._m9editor").length&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}).on("dblclick",function(){var t,e;if(window.getSelection?(t=window.getSelection().getRangeAt(0),e=window.getSelection().getRangeAt(0).commonAncestorContainer):document.selection&&(t=document.selection.createRange(),e=document.selection.createRange().parentElement()),""==t)return!1;SelectFirstLine(e),SaveSelection()}).on("paste",function(t){var e=jQuery(t.target);if(!e.is("#_ctrl_v_memory")&&0==e.parents("#_ctrl_v_memory").length)return!1;setTimeout(function(){var t=jQuery(editor._ctrl_v_obj);t.is("h1,h2,h3,h4,h5,h6")||t.parents("h1,h2,h3,h4,h5,h6").length;var e="div";t.is("h1,h2,h3,h4,h5,h6")||t.parents("h1,h2,h3,h4,h5,h6").length>0?e="h":(t.is("p")||t.parents("p").length>0)&&(e="p");var n=ctrl_v_convert(jQuery("#_ctrl_v_memory")[0],e),i='<span id="_ctrl_remove_wrap">'+(n=n.replace(/\s$/,""))+"</span>";RestoreSelection(editor._ctrl_v_selection),!1!=editor._ctrl_v_type&&""!=editor._ctrl_v_type&&document.execCommand("delete",!1,null),InsertObj(i),placeCaretAtEnd(jQuery("#_ctrl_remove_wrap")[0]);var o=getCaretPosition(jQuery(editor._obj)[0]);jQuery("#_ctrl_remove_wrap").replaceWith(jQuery("#_ctrl_remove_wrap").html()),jQuery("#_ctrl_v_memory").remove(),setCaretPos(editor._obj[0],o)},200)})},execCommand_ex:function(t){document.execCommand(t,!1,null),get_container(),editor._now=Editor_Container[0],jQuery(".selected_tag").removeClass("selected_tag"),jQuery(editor._now).addClass("selected_tag"),editor.mode.adjust_tag(editor._now,t),editor.handle.edit_menu_btn_preview(),storedSelections=SaveSelection(),RestoreSelection(),undo_obj._add(editor._now)},handle:{_son_menu:!1,open_son_menu:function(t,e){editor.handle._son_menu=t,jQuery("._open_son").removeClass("active"),jQuery(e).addClass("active"),m9_layer_position(t,e,"down"),m9_layer_view_only(t)},close_son_menu:function(){jQuery("._open_son").removeClass("active"),_m9_layer_view_only_close()},indent:{_lists:["indent","outdent"],change:function(t){for(var e=editor.handle.indent._lists,n=jQuery("#_edit_btn_indent"),i=0;i<e.length;i++){var o="icon-indent-"+e[i];if(n.hasClass(o)){n.removeClass(o);break}}"indent"==t?edit_etc_obj.indent(jQuery(".selected_tag")):edit_etc_obj.outdent(jQuery(".selected_tag")),undo_obj._add(editor._now),n.addClass("icon-"+t)}},edit_menu_btn_preview:function(){if(!editor._now)return!1;var t=jQuery(editor._now),e=t.css("font-weight"),n=""==e||"normal"==e||e<500?0:1;toggle_class(".icon2-bold","active",n);var e=t.css("font-style"),n=""==e||"normal"==e?0:1;toggle_class(".icon2-italic","active",n);var e=t.css("text-decoration"),n=-1==e.search(/underline/gi)?0:1;toggle_class(".icon2-underline","active",n);var n=-1==e.search(/line\-through/gi)?0:1;toggle_class(".icon2-strikethrough","active",n);var n=get_is_parents(editor._now,"sup","._one-in-column")?1:0;toggle_class(".icon2-superscript","active",n);var n=get_is_parents(editor._now,"sub","._one-in-column")?1:0;toggle_class(".icon2-subscript","active",n);var e=t.css("text-align");"start"==e&&(e="left"),editor.handle.text_align.change2(e,1)},text_align:{_lists:["left","center","right","justify"],change2:function(t,e){for(var n=this._lists,i=jQuery("#_edit_btn_text_align"),o=0;o<n.length;o++){var a="icon2-align-"+n[o];if(i.hasClass(a)){i.removeClass(a);break}}i.addClass("icon2-align-"+t),1!=e&&this.change(t)},change:function(t){jQuery("._text_align").removeClass("active");var e=get_inline_style(editor._now,"text-align");if(t==e)return element_obj.change_css_by_mode("text-align",""),!1;element_obj.change_css_by_mode("text-align",t),jQuery("._text_align._"+t).addClass("active"),undo_obj._add(editor._now,"text-align")},view:function(t,e){jQuery("._text_align").removeClass("active");var n=get_inline_style(editor._now,"text-align");n&&jQuery("._text_align._"+n).addClass("active")}},resize:function(){resize_obj.change(editor._now)},copy_obj:!1,copy:function(){if(jQuery(editor._now).is("dt,dd,li,tr,td,th")){var t=jQuery(editor._now).prop("tagName"),e=msg_msg("msg_46").msg_format(t);return error_msg(e),alse}editor.handle.copy_obj=jQuery(editor._now)[0].outerHTML,editor.handle.close_son_menu();var e=msg_msg("msg_73");error_msg(e)},paste:function(){if(!editor.handle.copy_obj){var t=msg_msg("msg_76");return error_msg(t),alse}var e=0;if(jQuery(editor._now).is("img,br,iframe,tr")?e++:get_is_parents(editor._now,".m9-img-box,.google_map,iframe,[class*=m9-video-canvas-]",".m9_editor_box")&&e++,0!=e){var t=msg_msg("msg_75");return error_msg(t),alse}editor.handle.append_html(editor.handle.copy_obj,2)},same:function(){if(!storedSelections)return alert(msg_msg("msg_65")),!1;if(jQuery(editor._now).is("dt,dd,tr,td,th")){var t=jQuery(editor._now).prop("tagName"),e=msg_msg("msg_46").msg_format(t);return error_msg(e),alse}editor.handle.checking_cell(jQuery(editor._now)[0])>0?confirm_msg.view(msg_msg("msg_47"),"editor.handle._same"):editor.handle._same(0)},_same:function(t){1==t&&editor.handle._cell_check("same");var e=jQuery(editor._now).clone()[0].outerHTML;jQuery(editor._now).is("li")&&jQuery(editor._now).parent("ol,ul").length>0&&(e=ollist_obj.calculate.string(e,1),ollist_obj.calculate.next(editor._now,1)),editor.handle.append_html(e)},heading:function(t,e){("<br>"==jQuery(editor._now).html()||"<br />"==jQuery(editor._now).html())&&jQuery(editor._now).html(""),editor.handle.append_html(html_info["h"+t],e)},unlist:function(t){editor.handle.append_html(html_info.unlist,t)},ollist:function(t){editor.handle.append_html(html_info.ollist,t)},paragma:function(t){if(!storedSelections)return alert(msg_msg("msg_65")),!1;if(t&&2==t)editor.handle.append_html(html_info.p,t);else{if(editor.handle._cell_check("p"),jQuery(editor._now).is("li,tr,th,td"))return error_msg(msg_msg("msg_48")),!1;editor.handle.append_html(html_info.p,t)}},div:function(t){if(!storedSelections)return alert(msg_msg("msg_65")),!1;t&&2==t||editor.handle._cell_check("div"),editor.handle.append_html(html_info.div,t)},img:function(t){editor.handle.append_html(html_info.img,t)},icon:function(t){editor.handle.append_html(html_info.icon,t)},button:function(t){editor.handle.append_html(html_info.button,t)},video:function(t){editor.handle.append_html(html_info.video,t)},map:function(t){editor.handle.append_html(html_info.map,t)},table:function(t){editor.handle.append_html(html_info.table,t)},append_html:function(t,e){if(!storedSelections)return alert(msg_msg("msg_65")),!1;if(e||(e=0),2==e)RestoreSelection(),""!=m9_mode_obj.get()&&(jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>'),jQuery("#_edit_covert_box")[0].innerHTML=t,editor.mode.adjust_display(jQuery("#_edit_covert_box").children().eq(0)[0]),t=jQuery("#_edit_covert_box").html(),jQuery("#_edit_covert_box").remove()),InsertObj(t),get_container(),undo_obj._add(Editor_Container[0]);else{var n=editor._now;jQuery(n).is("table")?jQuery(n).parents("._table-colresize").length>0&&(n=jQuery(n).parents("._table-colresize")[0]):jQuery(n).is("iframe")&&jQuery(n).parents("[class*=m9-video-canvas-]").length>0&&(n=jQuery(n).parents("[class*=m9-video-canvas-]")[0]),3==e&&(t='<div class="text-align-center margin-height-1">'+t+"</div>"),jQuery(t).insertAfter(n).hide().fadeIn(100,function(){var t=jQuery(this);"li"==t.prop("tagName").toLowerCase()&&"list-item"==t.css("display")&&t.css("display",""),t.before("\n		").removeClass("selected_tag"),t.find(".selected_tag").removeClass("selected_tag"),editor.mode.adjust_display(this),t.css("display",""),undo_obj._add(this)})}ani_type_obj.checking(grid_obj._column_before),editor.handle.close_son_menu()},del:function(){if(""!=storedSelections)return editor.execCommand_ex("delete"),!1;if(!editor._now)return!1;if(jQuery(editor._now).is("td,th,dt,dd")){var t=jQuery(editor._now).prop("tagName"),e=msg_msg("msg_66").msg_format(t);return error_msg(e),alse}editor.handle._del(0)},_del:function(t){if(1==t&&editor.handle._cell_check("same"),jQuery(editor._now).is("li")&&jQuery(editor._now).parent("ol,ul").length>0&&ollist_obj.calculate.next(editor._now,0),jQuery(editor._now).parent("._one-in-column").length>0&&jQuery(editor._now).siblings().length<=0)return error_msg(msg_msg("msg_51")),!1;M9ALT.hidden(m9_get_evt_obj(event)),storedSelections=!1,jQuery(editor._now).fadeOut(300,function(){editor._now,jQuery(this).prev().length>0&&(jQuery(jQuery(this).prev()[0]).addClass("selected_tag"),editor._now=jQuery(this).prev()[0]);var t=jQuery(this).parent()[0];jQuery(this).remove(),undo_obj._add(t)})},_cell_check:function(t){var e,n=jQuery(editor._now);"same"==t?n.is("th,td,tr,thead,tbody,tfoot,table")?e=get_is_parents(editor._now,"table",".m9_editor_box"):n.is("dt,dd,dl")?e=get_is_parents(editor._now,"dl",".m9_editor_box"):n.parents("._cell,li").length>0&&(e=get_is_parents(editor._now,"._cell,li",".m9_editor_box")):n.is("th,td,tr,thead,tbody,tfoot,table")?e=get_is_parents(editor._now,"table",".m9_editor_box"):n.is("dt,dd,dl")?e=get_is_parents(editor._now,"dl",".m9_editor_box"):n.is("li")&&(e=get_is_parents(editor._now,"ul,ol",".m9_editor_box")),e&&(editor._now=e)},checking_cell:function(t){return jQuery(t).parents("._cell,li").length},_del_content_id:"",del_content:function(t){this._del_content_id=t,confirm_msg.view(msg_msg("msg_67"),"editor.handle._del_content")},_del_content:function(t){if(1!=t)return!1;var e=this._del_content_id,n=jQuery("#"+e),i=jQuery("#"+e+"_editor");n.val(""),i.html(""),edit_window_obj.close_all()}},html:{_html_id:"",view:function(t,e){editor.html._html_id=t;var n=builder.html.get(t+"_editor");html_obj.view("editor.html.change",n)},change:function(t){var e=editor.html._html_id+"_editor";jQuery("#"+e)[0].innerHTML=t,1==m9_editor.setting.use_grid&&grid_obj.int(e),1==m9_editor.setting.use_builder&&builder.int(e)}},sortable:{_now:!1,_sorting_out:0,set:function(){if(jQuery(editor._now).is("th,td"))return error_msg(msg_msg("msg_52")),!1;editor.handle.checking_cell(jQuery(editor._now)[0])>0?confirm_msg.view(msg_msg("msg_53"),"editor.sortable._sorting"):editor.sortable._sorting(0)},_sorting:function(t){1==t&&editor.handle._cell_check("same");var e=jQuery(editor._now).parent();if(e.children().length<=1)return error_msg(msg_msg("msg_18")),!1;e.removeAttr("contenteditable").find("[contenteditable]").removeAttr("contenteditable"),e.children().each(function(){var t=jQuery(this);t.hasClass("_one-entry")||(m9_attrs_history.set(t[0]),t.addClass("_one-entry").addClass("editor-sorting").addClass("_not").append('<div class="_screen"></div>'))}),e.sortable({cursor:"move",placeholder:"editor-placeholder",distance:5,delay:200,tolerance:"pointer",start:function(t,e){jQuery(e.placeholder).slideUp(50)},change:function(t,e){jQuery(e.placeholder).hide().slideDown(50)},stop:function(t,e){ollist_obj.calculate.reset(e.item),editor.sortable._sorting_out=0}}),editor.sortable._now=e[0],e.on("mouseenter",function(){editor.sortable._sorting_out=0}),e.on("mouseleave",function(){editor.sortable._sorting_out=1})},destroy:function(){if(!editor.sortable._now)return!1;var t=editor.sortable._now,e=jQuery(t);e.children().each(function(){var t=jQuery(this);t.hasClass("_one-entry")&&(m9_attrs_history.reset(t[0]),t.removeClass("_one-entry").removeClass("editor-sorting").removeClass("_not").find("._screen").remove())}),e.sortable("destroy"),editor.sortable._now=!1,editor.sortable._sorting_out=0,e.off("mouseleave"),e.off("mouseenter"),undo_obj._add(t)}},int_extend:{set_window:function(t,e){var n=editor.property;if(0==jQuery("#"+n.menu).length){var i='<div class="_edit_menu_in">';i+='<div class="box1"><ul><li><button title="'+msg_msg("bold")+'" data-var="bold" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-bold"></button></li><li><button title="'+msg_msg("italic")+'" data-var="italic" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-italic"></button></li><li><button title="'+msg_msg("underline")+'" data-var="underline" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-underline"></button></li><li><button title="'+msg_msg("line_through")+'" data-var="strikethrough" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-strikethrough"></button></li><li><button title="'+msg_msg("sup")+'" data-var="superscript" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-superscript"></button></li><li><button title="'+msg_msg("sub")+'" data-var="subscript" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-subscript"></button></li><li><button title="'+msg_msg("remove_font_property")+'" data-var="removeFormat" data-alt-no="1" class="edit-btn-8 _drag-btn-1 icon2-removeFormat"></button></li><li><button title="'+msg_msg("link")+'" data-var="createLink" data-alt-no="1" class="edit-btn-8 open-1 _drag-btn-1 icon2-createLink"></button></li></ul></div>',i+='<div class="box2"><ul><li><button id="_edit_btn_text_align" onclick="editor.handle.open_son_menu(\'_edit-btn-group-text-align\',this);return false;" title="'+msg_msg("alignment")+'" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _open_son icon2-align-left" draggable="false"></button><div id="_edit-btn-group-text-align" class="editMenu-setting-son _m9editor no"><ul><li><button title="'+msg_msg("left")+'" onclick="editor.handle.text_align.change2(\'left\');return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-align-left _text_align _left"></button></li><li><button title="'+msg_msg("center")+'" onclick="editor.handle.text_align.change2(\'center\');return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-align-center _text_align _center"></button></li><li><button title="'+msg_msg("right")+'" onclick="editor.handle.text_align.change2(\'right\');return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-align-right _text_align _right"></button></li><li><button title="'+msg_msg("justify")+'" onclick="editor.handle.text_align.change2(\'justify\');return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-align-justify _text_align _justify"></button></li></ul></div></li><li><button id="_edit_btn_indent" onclick="editor.handle.open_son_menu(\'_edit-btn-group-indent\',this);return false;" title="'+msg_msg("indent")+" & "+msg_msg("outdent")+'" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _open_son icon2-indent"></button><div id="_edit-btn-group-indent" class="editMenu-setting-son _m9editor no"><ul><li><button title="'+msg_msg("indent")+'" onclick="editor.handle.indent.change(\'indent\');return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-indent "></button></li><li><button title="'+msg_msg("outdent")+'" onclick="editor.handle.indent.change(\'outdent\');return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-outdent "></button></li></ul></div></li><li><button id="_edit_btn_plus_in" onclick="editor.handle.open_son_menu(\'_edit-btn-group-plus-in\',this);return false;" title="'+msg_msg("insertion")+'" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _open_son icon2-plus-before"></button><div id="_edit-btn-group-plus-in" class="editMenu-setting-son _m9editor no"><ul id="_edit-btn-group-plus-in-ul"><li><button title="'+msg_msg("paragraph")+'" onclick="editor.handle.paragma(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-p"></button></li><li><button title="'+msg_msg("box")+'" onclick="editor.handle.div(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-div"></button></li><li><button title="'+msg_msg("image")+'" onclick="editor.handle.img(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-img"></button></li><li><button title="'+msg_msg("title")+'" onclick="editor.handle.open_son_menu(\'_edit-btn-group-heading\',jQuery(\'#_edit_btn_plus_in\')[0]);return false" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _open_son  icon2-h"></button></li><li><button title="'+msg_msg("unorder_list")+'" onclick="editor.handle.unlist(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-InsertUnorderedList"></button></li><li><button title="'+msg_msg("order_list")+'" onclick="editor.handle.ollist(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-InsertOrderedList"></button></li><li><button title="'+msg_msg("table")+'" onclick="editor.handle.table(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-table-class"></button></li><li><button title="'+msg_msg("special_characters")+'" onclick="special_char_obj.view(editor._now);return false" data-alt-no="1" class="edit-btn-8 open-1 _drag-btn-2 icon2-special-char"></button></li><li><button title="'+msg_msg("icon")+'" onclick="editor.handle.icon(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-icon"></button></li><li><button title="'+msg_msg("button")+'" onclick="editor.handle.button(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-button"></button></li><li><button title="'+msg_msg("video")+'" onclick="editor.handle.video(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-video"></button></li><li><button title="'+msg_msg("map")+'" onclick="editor.handle.map(2);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-map"></button></li></ul></div></li><li><button id="_edit_btn_plus_out" onclick="editor.handle.open_son_menu(\'editMenu-setting-son-plus-out\',this);return false" title="'+msg_msg("exsertion")+'" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _drag-btn-4 _open_son icon2-append"></button><div id="editMenu-setting-son-plus-out" class="editMenu-setting-son _m9editor no"><ul><li><button title="'+msg_msg("top_copy")+'" onclick="editor.handle.same();return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 _drag-btn-4 icon2-append"></button></li><li><button title="'+msg_msg("paragraph")+'" onclick="editor.handle.paragma(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 _drag-btn-4 icon2-p-before"></button></li><li><button title="'+msg_msg("box")+'" onclick="editor.handle.div(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 _drag-btn-4 icon2-div-before"></button></li><li><button title="'+msg_msg("image")+'" onclick="editor.handle.img(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-img"></button></li><li><button title="'+msg_msg("title")+'" onclick="editor.handle.open_son_menu(\'_edit-btn-group-heading2\',jQuery(\'#_edit_btn_plus_out\')[0]);return false" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _open_son  icon2-h"></button></li><li><button title="'+msg_msg("unorder_list")+'" onclick="editor.handle.unlist(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-InsertUnorderedList"></button></li><li><button title="'+msg_msg("order_list")+'" onclick="editor.handle.ollist(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-InsertOrderedList"></button></li><li><button title="'+msg_msg("table")+'" onclick="editor.handle.table(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-table-class"></button></li><li><button title="'+msg_msg("icon")+'" onclick="editor.handle.icon(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-icon"></button></li><li><button title="'+msg_msg("button")+'" onclick="editor.handle.button(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-button"></button></li><li><button title="'+msg_msg("video")+'" onclick="editor.handle.video(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-video"></button></li><li><button title="'+msg_msg("map")+'" onclick="editor.handle.map(3);return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-map"></button></li></ul></div></li><li><button onclick="editor.handle.open_son_menu(\'editMenu-setting-son-copy-paste\',this);return false" title="'+msg_msg("copy")+" & "+msg_msg("paste")+'" data-alt-no="1" class="edit-btn-8 open-2 _drag-btn-2 _drag-btn-4 _open_son icon2-copy"></button><div id="editMenu-setting-son-copy-paste" class="editMenu-setting-son _m9editor no"><ul><li><button title="'+msg_msg("copy")+'" onclick="editor.handle.copy();return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 _drag-btn-4 icon2-copy"></button></li><li><button title="'+msg_msg("paste")+'" onclick="editor.handle.paste();return false" data-alt-no="1" class="edit-btn-8  _drag-btn-2 _drag-btn-4 icon2-paste"></button></li></ul></div></li><li><button title="'+msg_msg("set_type")+'" data-alt-no="1" class="edit-btn-8 open-1 _drag-btn-2 icon2-formatPara"></a></li><li><button id="_edit_btn_resize" title="'+msg_msg("fix_size")+'" onclick="editor.handle.resize();return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-arrows-alt m9-only-master"></button></li><li><button alt="'+msg_msg("set_order")+'" onclick="editor.sortable.set();return false" data-alt-no="1" class="edit-btn-8 _drag-btn-2 _drag-btn-4 icon2-arrow-height m9-only-master"></button></li><li><button title="'+msg_msg("delete")+'" onclick="editor.handle.del();return false;" data-alt-no="1" class="edit-btn-8 icon2-delete _a_delete_icon"></a></li></ul></div>',i+='<div class="box3"><ul><li><button title="'+msg_msg("new_content")+'" onclick="editor.handle.del_content(\''+t+'\');return false;" data-alt-no="1" class="edit-btn-8 icon2-new-content"></button></li><li><button title="'+msg_msg("tag_setting")+'" onclick="tag_obj.open_window();return false;" data-alt-no="1" class="edit-btn-8 open-1 icon2-tag"></button></li></ul></div>',i+="</div>",i+='<div id="_edit-btn-group-heading" class="editMenu-setting-son _m9editor no"><ul><li><button onclick="editor.handle.heading(1,2);return false;" title="'+msg_msg("title")+'1" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h1"></button></li><li><button onclick="editor.handle.heading(2,2);return false;" title="'+msg_msg("title")+'2" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h2"></button></li><li><button onclick="editor.handle.heading(3,2);return false;" title="'+msg_msg("title")+'3" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h3"></button></li><li><button onclick="editor.handle.heading(4,2);return false;" title="'+msg_msg("title")+'4" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h4"></button></li><li><button onclick="editor.handle.heading(5,2);return false;" title="'+msg_msg("title")+'5" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h5"></button></li></ul></div>',i+='<div id="_edit-btn-group-heading2" class="editMenu-setting-son _m9editor no"><ul><li><button onclick="editor.handle.heading(1,3);return false;" title="'+msg_msg("title")+'1" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h1"></button></li><li><button onclick="editor.handle.heading(2,3);return false;" title="'+msg_msg("title")+'2" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h2"></button></li><li><button onclick="editor.handle.heading(3,3);return false;" title="'+msg_msg("title")+'3" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h3"></button></li><li><button onclick="editor.handle.heading(4,3);return false;" title="'+msg_msg("title")+'4" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h4"></button></li><li><button onclick="editor.handle.heading(5,3);return false;" title="'+msg_msg("title")+'5" data-alt-no="1" class="edit-btn-8 _drag-btn-2 icon2-h5"></button></li></ul></div>',"master"==e?edit_window_obj.int(n.menu,i,msg_msg("general_setting")):jQuery(i='<div id="'+n.menu+'" class="_m9editor">'+i+"</div>").insertBefore("._editor-wrap")}}},mode:{_mode:"",get:function(){return this._mode},get_class:function(t){return""!=this._mode?this._mode+"-"+t:t},adjust_display:function(t){var e=m9_mode_obj.get();if(""!=e){var n=jQuery(t).css("display");jQuery(t).addClass(e+"-from-display-"+n)}},adjust_tag:function(t,e){var n=m9_mode_obj.get();""!=n&&jQuery(t).addClass(n+"-from-"+e)}}};
var builder={_obj:null,_before:!1,defaults:{example:"example",example_html:"./example.html"},settings:{},_droppable_obj:!1,_draggabled:!1,_int_count:0,int:function(e,t){if(builder._obj=jQuery("#"+e)[0],builder.setting.check(),builder.setting.reset(),ani_type_obj.checking(builder._obj),!(this._int_count>0)){if(this._int_count++,this.settings=m9_get_vars(t,this.defaults),jQuery(builder._obj).sortable({items:".ui-draggable",axis:"y",cursor:"move",placeholder:"editor-placeholder",distance:20,delay:20,tolerance:"pointer",handle:"._builder-group-mover",start:function(e,t){editor.event_doing.set(1),obj_fadeOut("#editMenu-setting",100),obj_fadeOut("#editMenu-grid",100),jQuery(t.placeholder).slideUp(200)},change:function(e,t){editor.event_doing.set(0),jQuery(t.placeholder).hide().slideDown(200)},stop:function(e,t){editor.event_doing.set(0),builder._draggabled=!1}}),jQuery(builder._obj).droppable({accept:"._example_block",drop:function(e,t){if(!0!=builder._draggabled)return"";var i="ex"+jQuery(t.draggable).data("ex"),a=jQuery("#"+i).data("_html");return builder._droppable_obj=t.draggable,t.draggable.html(a)},deactivate:function(e,t){builder.error_check()},tolerance:"pointer",greedy:!0}),0==jQuery("#"+this.settings.example).length){jQuery("body").append('<div id="'+this.settings.example+'" class="example_box _m9editor"></div>'),jQuery("#"+this.settings.example).append('<div class="btn_box"><a href="#" onclick="builder.example.toggle();return false;" class="btn_left"><span class="edit-btn-3 icon-menu"></span></a></div>');var i=["Title","Base","Paragraph","Separator","Table","Image","Images","List","Quote","Button","Icon","Alert","Map","Video"],t={};for(var a in i)t[i[a].toLowerCase()]=1;var n=[],l="_editor_example_choice",r="";r+='<div class="counter-control-box"><span class="counter-control"><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.plus(\''+l+"',{},function(){builder.example_change();})\" onmouseup=\"input_box.stop('"+l+'\');" class="left-button icon2-plus"></button></span><span class="box-input">',r+='<select id="'+l+'" onchange="builder.example_change()"><option value="">All</option>';for(var a=0;a<i.sort().length;a++)r+='<option value="'+i[a].toLowerCase()+'">'+i[a]+"</option>";r+="</select>",r+='</span><span class="box-btn"><button onclick="return false;" onmousedown="input_box.minus(\''+l+"',{},function(){builder.example_change();})\" onmouseup=\"input_box.stop('"+l+'\');" class="right-button icon2-minus"></button></span></span></div>',jQuery("#"+this.settings.example).append(r),jQuery("#"+this.settings.example).append('<div id="_eidtor_example" class="in_box"></div>'),jQuery.ajax({url:this.settings.example_html,method:"get",enctype:"multipart/form-data",processData:!1,contentType:!1,success:function(e){var i="",a=0;if(e=match_mong9_url(e),jQuery("<div />").html(e).children().each(function(e){var l=jQuery(this).html();jQuery(this).data("html");var r=jQuery(this).data("keyword");if(r&&(r=r.toLowerCase()),r)for(var d=r.split(","),o=0;o<d.length;o++)!t[d[o]]&&!n[d[o]]&&(n[d[o]]=1,a++);var s="";if("1"==jQuery(this).data("hidden"))i+=l;else{var c=e+1;s=jQuery(this).data("text")?'<div id="ex'+e+'" data-ex="'+e+'" data-keyword="'+r+'" class="_example_block"><span class="_text">'+jQuery(this).data("text")+'</span><div title="'+c+". "+jQuery(this).attr("title")+'" data-alt-no="3" class="_drag_checking"></div></div>':'<div id="ex'+e+'" data-ex="'+e+'" data-keyword="'+r+'" class="_example_block"><img src="'+jQuery(this).data("thumbnail")+'" class="m9-fullimg" /><div title="'+c+". "+jQuery(this).attr("title")+'" data-alt-no="3" class="_drag_checking"></div></div>'}jQuery("#"+builder.settings.example+">.in_box").append(s),jQuery("#ex"+e).data("_html",l)}),a>0){jQuery("#_editor_example_choice").append('<option value="">-----------------------------</option>');for(var l=Object.keys(n).sort(),r=0;r<l.length;r++)jQuery("#_editor_example_choice").append('<option value="'+l[r]+'">'+l[r]+"</option>")}""!=i&&jQuery("#example").prepend('<div id="_example_hidden" style="display:none">'+i+"</div>"),jQuery("#"+builder.settings.example+">.in_box").append('<p id="_editor_example_search_error_msg" class="search_error_msg" style="display:none">No Match</p>'),jQuery("#"+builder.settings.example+">.in_box>div").draggable({connectToSortable:builder._obj,cursor:"move",helper:"clone",handle:"._drag_checking",start:function(e,t){builder._draggabled=!0,editor.event_doing.set(1),m9_mode_obj.reset_by_change()},stop:function(e,t){builder.setting.check(),builder.put_check(),builder.error_check(),editor.event_doing.set(0),m9_mode_obj.reset_by_change()}}),jQuery("#"+builder.settings.example+">.in_box>div").on("dblclick",function(e){var t=jQuery(this).attr("id"),i=jQuery("#"+t).data("_html");jQuery(builder._obj).append('<div class="ui-draggable ui-draggable-dragging">'+i+"</div>"),builder.setting.check(),builder._droppable_obj=jQuery(builder._obj).children().last()[0],builder.put_check(),builder.remove_placeholder_txt(),m9_get_body_obj().scrollTop=m9_get_num(jQuery("body").css("height")),M9ALT.view(jQuery(this).find("._drag_checking")[0])}),process_M9ALT(jQuery("#"+builder.settings.example)[0])}})}jQuery(document).on("mousedown",function(e){builder.setting.reset(e.target),builder.setting.select(e.target)})}},insert:{_now:!1,int:function(){if(mong9_obj.status()){jQuery("#_eidtor_example").find("._example_block").each(function(){jQuery(this).append('<a href="#" onclick="builder.insert.set(this);return false;" class="_in">IN</a>')});var e='<div id="_example_in" class="_m9editor no"><div><ul><li><a href="#" onclick="builder.insert.insertion();return false;"><i title="" class="edit-btn-8 icon2-plus-before"></i><span>'+msg_msg("insertion")+'</span></a></li><li><a href="#" onclick="builder.insert.exsertion();return false;"><i title="" class="edit-btn-8 icon2-append"></i><span>'+msg_msg("exsertion")+"</span></a></li></ul></div></div>";jQuery("body").append(e)}},set:function(e){builder.insert._now=e;var t="_example_in";m9_layer_position(t,e,"down"),m9_layer_view_only(t,{slide:"",opacity:100,speed:100})},insertion:function(){if(m9_layer_view_only_close("_example_in"),!storedSelections)return alert(msg_msg("msg_65")),!1;if(!builder.insert._now)return!1;var e=builder.insert.get_html(builder.insert._now);if(""==e)return!1;e='<div class="m9-padding-height-1">'+e+"</div>",editor.handle.append_html(e,2)},exsertion:function(){if(m9_layer_view_only_close("_example_in"),!storedSelections)return alert(msg_msg("msg_65")),!1;if(!builder.insert._now)return!1;var e=builder.insert.get_html(builder.insert._now);if(""==e)return!1;e='<div class="m9-padding-height-1">'+e+"</div>",editor.handle.append_html(e,4)},get_html:function(e){var t=jQuery(e).parents("._example_block")[0],i=jQuery(t).data("_html");if(jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>'),jQuery("#_edit_covert_box").append(i),jQuery("#_edit_covert_box").find(".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5,.m9-tab-6").length&&jQuery(editor._now).parents(".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5,.m9-tab-6").length){jQuery("#_edit_covert_box").remove();var a=msg_msg("msg_78").msg_format("TAB");return alert(a),""}var n=jQuery("#_edit_covert_box").find(".m9-grid-1,.m9-grid-2,.m9-grid-3,.m9-grid-4,.m9-grid-5,.m9-grid-6"),l=n.children().length;if(1==l)i=n.children().html();else{var r=1,d=n.attr("class");if(d){var o=d.match(/m9\-spacing\-(\d)/);o&&o[1]&&(r=o[1])}var s='<ul class="m9-float-'+l+" m9-spacing-"+r+'">';n.children().each(function(){s+="<li>"+jQuery(this).html()+"</li>"}),s+="</ul>",i=s}return jQuery("#_edit_covert_box").remove(),i},insert:function(e){if(!storedSelections)return alert(msg_msg("msg_65")),!1;var t=jQuery(e).parents("._example_block")[0],i=jQuery(t).data("_html");if(jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>'),jQuery("#_edit_covert_box").append(i),jQuery("#_edit_covert_box").find(".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5,.m9-tab-6").length&&jQuery(editor._now).parents(".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5,.m9-tab-6").length){jQuery("#_edit_covert_box").remove();var a=msg_msg("msg_78").msg_format("TAB");return alert(a),!1}var n=jQuery("#_edit_covert_box").find(".m9-grid-1,.m9-grid-2,.m9-grid-3,.m9-grid-4,.m9-grid-5,.m9-grid-6"),l=n.children().length;if(1==l)i=n.children().html();else{var r=1,d=n.attr("class");if(d){var o=d.match(/m9\-spacing\-(\d)/);o&&o[1]&&(r=o[1])}var s='<ul class="m9-float-'+l+" m9-spacing-"+r+'">';n.children().each(function(){s+="<li>"+jQuery(this).html()+"</li>"}),s+="</ul>",i=s}jQuery("#_edit_covert_box").remove(),i='<div class="m9-padding-height-1">'+i+"</div>",editor.handle.append_html(i,2)}},example:{toggle:function(){var e=jQuery("#"+builder.settings.example),t=get_box_size2(builder.settings.example,"width");0==m9_get_num(e.css("right"))?e.animate({right:"-="+t},200):e.animate({right:"+="+t},200)}},put_check:function(){ani_type_obj.checking(builder._droppable_obj)},error_check:function(){jQuery(builder._obj).children().each(function(){var e=jQuery(this);e.attr("data-ex")&&e.find("._drag_checking").length>0&&(e.remove(),alert(msg_msg("msg_54")))}),builder.remove_placeholder_txt()},remove_placeholder_txt:function(){jQuery(builder._obj).children().each(function(){var e=jQuery(this);e.find(".placeholder_txt").length>0&&e.find(".placeholder_txt").hasClass("_starting")&&e.remove()})},setting:{make:function(e){var t=jQuery(e);if(!t.hasClass("ui-draggable")){for(var i=-1,a=t.parent(),n=a.children(),l=0;l<n.length;l++)if(n[l]==e){i=l;break}e.outerHTML='<div class="ui-draggable _one-block">'+e.outerHTML+"</div>",t=jQuery(e=a.children().eq(i)[0])}if(0==t.find("._one-row").length&&(e.innerHTML='<div class="_one-row">'+e.innerHTML+"</div>"),0==t.find(".editMenu-builder").length){t.append('<div class="editMenu-builder handle_height _m9editor" style="display:none"></div>');var r='<ul><li><a alt="'+msg_msg("set_order")+'" title="'+msg_msg("msg_3")+(m9_ie_var<=7?"(1초간)":"")+'" data-alt-no="1" class="edit-btn icon-arrow-height hd-mover _builder-group-mover ui-sortable-handle"></a></li><li><a href="#" onclick="builder.handle.copy(arguments[0]);return false;" title="'+msg_msg("copy")+'" data-alt-no="1" class="edit-btn icon-plus hd-copy"></a></li><li><a href="#" onclick="builder.html.view(arguments[0]);return false;" title="'+msg_msg("fix_html")+'" data-alt-no="1" class="edit-btn icon-tag hd-html"><i class="edit-btn-popup-2"></i></a></li><li><a href="#" onclick="builder.handle.del(arguments[0]);return false;" alt="'+msg_msg("delete")+'" title="'+msg_msg("msg_2")+'" data-alt-no="1" class="edit-btn icon-del hd-remove"></a></li></ul>';t.find(".editMenu-builder").append(r),process_M9ALT(t.find(".editMenu-builder")[0])}0==t.find(".editMenu-column").length&&void 0!==window.grid_obj&&grid_obj.set_one_grid(t.find(grid_obj._grids)[0])},check:function(){jQuery(builder._obj).children().each(function(){var e=jQuery(this);if(e.hasClass("ui-draggable-dragging")){var t=e.find(grid_obj._grids);t.length>1?(t.eq(0).unwrap(),t.each(function(){jQuery(this).wrap('<div class="ui-draggable ui-draggable-outline"><div class="_one-row"></div></div>'),editor.mode.adjust_display(this)})):editor.mode.adjust_display(t[0])}}),jQuery(builder._obj).children().each(function(){var e=jQuery(this);e.hasClass("ui-draggable-handle")&&e.removeClass("ui-draggable-handle"),builder.setting.make(this),e.removeAttr("data-ex").removeAttr("data-keyword").removeAttr("style").removeClass("_example_block")}),builder.html._html_obj[0]&&ani_type_obj.checking(builder.html._html_obj[0])},reset:function(e){get_is_parents(e,".editMenu-builder")||get_is_parents(e,"._one-row")==builder._before||(obj_fadeOut(".editMenu-builder"),jQuery(".ui-draggable").removeClass("ui-draggable-outline"))},select:function(e){var t=jQuery(e),i=get_is_parents(e,".ui-draggable"),a=jQuery(i);i&&t.parents(builder._obj).length>0&&(a.addClass("ui-draggable-outline"),""==m9_mode_obj.get()&&obj_fadeIn(a.find(".editMenu-builder")[0]),builder._before=t.parents("._one-row")[0])}},handle:{copy:function(e){var t=m9_get_evt_obj(e);M9ALT.hidden(t);var i=jQuery(t).parents(".ui-draggable").clone().fadeIn(1e3);jQuery(t).parents(".ui-draggable").after(i),i.css("display",""),i.find(".editMenu-builder,.editMenu-column").css("display","none"),i.find(".grid-line-on").removeClass("grid-line-on"),i.removeClass("ui-draggable-outline"),i.find(".selected_tag").removeClass("selected_tag"),obj_fadeOut("#editMenu-setting");var a=i.find("._one-row");a.prop("id",""),m9_random_id(a[0]),builder.setting.reset(),builder.setting.check(),i.find(grid_obj._grids).removeClass("ui-sortable"),grid_obj.set_one_grid(i.find(grid_obj._grids)[0]),editor.mode.adjust_display(i.find(grid_obj._grids)[0]),process_M9ALT(jQuery(i)[0])},del:function(e){var t=m9_get_evt_obj(e);builder.handle._del_e=t,M9ALT.hidden(t),obj_fadeOut("#editMenu-grid"),confirm_msg.view(msg_msg("msg_68"),"builder.handle._del")},_del_e:!1,_del:function(e){if(1!=e)return!1;var t=builder.handle._del_e;jQuery(t).parents(".ui-draggable").fadeOut(400,function(){undo_obj.remove(jQuery(t).parents(".ui-draggable").attr("id")),jQuery(t).parents(".ui-draggable").remove()})},html:function(e){html_obj.view(jQuery(e.target).parents(".ui-draggable")[0])}},html:{_html_obj:!1,view:function(e){var t=m9_get_evt_obj(e);builder.html._html_obj=jQuery(t).parents(".ui-draggable"),remove_m9_ani_tag(builder.html._html_obj[0]);var i=builder.html._html_obj[0].outerHTML;i=builder.html.convert(i),html_obj.view("builder.html.change",i)},convert:function(e){jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>');var t=jQuery("#_edit_covert_box");t.html(e),t.find(".ui-draggable").each(function(){this.outerHTML=jQuery(this).find("._one-row").html()}),t.find(grid_obj._columns).each(function(){this.innerHTML=jQuery(this).find("._one-in-column").html()}),m9_editor_convert(t[0]);var e=t.html();return t.remove(),e=(e=remove_empty_line(e)).replace(/\u200C/g,""),e=jQuery.trim(e)},change:function(e){e=grid_obj.html.parser(e),jQuery(builder.html._html_obj[0]).find("._one-row").html(e),builder.setting.check(),undo_obj._add(grid_obj._grid_before)},get:function(e){var t=jQuery("#"+e).html();return builder.html.convert(t)},fullscreen:function(e){var t=jQuery(e).parents(".html-win");t.hasClass("_fullscreen")?t.removeClass("_fullscreen"):t.addClass("_fullscreen")}},example_change:function(){var e=jQuery("#_editor_example_choice").val();if(""==e)return jQuery("#_eidtor_example>div").css("display","block"),jQuery("#_editor_example_search_error_msg").css("display","none"),!1;var t=RegExp(""+e,"gi"),i=0;jQuery("#_eidtor_example>div").each(function(){var e=jQuery(this);e.data("keyword").match(t)?(e.css({display:"block"}),i++):e.css({display:"none"})});var a=0==i?"block":"none";jQuery("#_editor_example_search_error_msg").css("display",a)}};
var icon_obj={_now:!1,_selected:!1,_icons_company:[{name:"Bootstrap Icons"},],_icons_group:[[{name:"alerts, warnings, and signs",icon:["check","check-circle","check-circle-fill","check-lg","check-square","check-square-fill","slash-circle","dash","dash-circle","dash-circle-dotted","dash-circle-fill","dash-lg","dash-square","dash-square-dotted","dash-square-fill","exclamation","exclamation-circle","exclamation-circle-fill","exclamation-diamond","exclamation-diamond-fill","exclamation-lg","exclamation-octagon","exclamation-octagon-fill","exclamation-square","exclamation-square-fill","exclamation-triangle","exclamation-triangle-fill","info","info-circle","info-circle-fill","info-lg","info-square","info-square-fill","plus","plus-circle","plus-circle-dotted","plus-circle-fill","plus-lg","plus-square","plus-square-dotted","plus-square-fill","question","question-circle","question-diamond","question-diamond-fill","question-circle-fill","question-lg","question-octagon","question-octagon-fill","question-square","question-square-fill","slash","slash-circle-fill","slash-lg","slash-square","slash-square-fill","x","x-circle","x-circle-fill","x-diamond","x-diamond-fill","x-lg","x-octagon","x-octagon-fill","x-square","x-square-fill"]},{name:"apps",icon:["app","app-indicator","terminal","terminal-dash","terminal-fill","terminal-plus","terminal-split","terminal-x","window-dash","window-desktop","window-dock","window-fullscreen","window-plus","window-sidebar","window-split","window-stack","window-x"]},{name:"arrows",icon:["arrow-90deg-down","arrow-90deg-left","arrow-90deg-right","arrow-90deg-up","arrow-bar-down","arrow-bar-left","arrow-bar-right","arrow-bar-up","arrow-clockwise","arrow-counterclockwise","arrow-down","arrow-down-left","arrow-down-right","arrow-down-short","arrow-down-up","arrow-left","arrow-left-right","arrow-left-short","arrow-repeat","arrow-return-left","arrow-return-right","arrow-right","arrow-right-short","arrow-up","arrow-up-left","arrow-up-right","arrow-up-short","arrows-angle-contract","arrows-angle-expand","arrows-collapse","arrows-expand","arrows-fullscreen","arrows-move","recycle","shuffle","arrow-through-heart","arrow-through-heart-fill"]},{name:"badges",icon:["badge-3d","badge-3d-fill","badge-4k","badge-4k-fill","badge-8k","badge-8k-fill","badge-ad","badge-ad-fill","badge-ar","badge-ar-fill","badge-cc","badge-cc-fill","badge-hd","badge-hd-fill","badge-sd","badge-sd-fill","badge-tm","badge-tm-fill","badge-vo","badge-vo-fill","badge-vr","badge-vr-fill","badge-wc","badge-wc-fill","explicit","explicit-fill","markdown","markdown-fill","patch-check","patch-check-fill","patch-exclamation","patch-exclamation-fill","patch-minus","patch-minus-fill","patch-plus","patch-plus-fill","patch-question","patch-question-fill"]},{name:"box arrows",icon:["box-arrow-down-left","box-arrow-down-right","box-arrow-down","box-arrow-in-down","box-arrow-in-down-left","box-arrow-in-down-right","box-arrow-in-left","box-arrow-in-right","box-arrow-in-up","box-arrow-in-up-left","box-arrow-in-up-right","box-arrow-left","box-arrow-right","box-arrow-up","box-arrow-up-left","box-arrow-up-right"]},{name:"brand",icon:["alipay","amd","android","android2","apple","behance","bluetooth","browser-chrome","browser-edge","browser-firefox","browser-safari","discord","dribbble","dropbox","facebook","git","github","google","google-play","instagram","line","linkedin","mastodon","medium","messenger","meta","microsoft","microsoft-teams","nintendo-switch","nvidia","paypal","pinterest","playstation","quora","reddit","signal","sina-weibo","skype","slack","snapchat","spotify","stack-overflow","steam","strava","stripe","telegram","tencent-qq","tiktok","trello","twitch","twitter","ubuntu","unity","vimeo","wechat","whatsapp","wikipedia","windows","wordpress","xbox","yelp","youtube","bootstrap","bootstrap-fill","bootstrap-reboot"]},{name:"buildings",icon:["building","building-add","building-check","building-dash","building-down","building-exclamation","building-fill","building-fill-add","building-fill-check","building-fill-dash","building-fill-down","building-fill-exclamation","building-fill-gear","building-fill-lock","building-fill-slash","building-fill-up","building-fill-x","building-gear","building-lock","building-slash","building-up","building-x","buildings","buildings-fill"]},{name:"carets",icon:["caret-down","caret-down-fill","caret-down-square","caret-down-square-fill","caret-left","caret-left-fill","caret-left-square","caret-left-square-fill","caret-right","caret-right-fill","caret-right-square","caret-right-square-fill","caret-up","caret-up-fill","caret-up-square","caret-up-square-fill"]},{name:"chevrons",icon:["chevron-bar-contract","chevron-bar-down","chevron-bar-expand","chevron-bar-left","chevron-bar-right","chevron-bar-up","chevron-compact-down","chevron-compact-left","chevron-compact-right","chevron-compact-up","chevron-contract","chevron-double-down","chevron-double-left","chevron-double-right","chevron-double-up","chevron-down","chevron-left","chevron-right","chevron-up","chevron-expand"]},{name:"clouds",icon:["cloud","cloud-arrow-down","cloud-arrow-down-fill","cloud-arrow-up","cloud-arrow-up-fill","cloud-check","cloud-check-fill","cloud-download","cloud-download-fill","cloud-fill","cloud-minus","cloud-minus-fill","cloud-plus","cloud-plus-fill","cloud-slash","cloud-slash-fill","cloud-upload","cloud-upload-fill"]},{name:"commerce",icon:["bag","bag-check","bag-check-fill","bag-dash","bag-dash-fill","bag-fill","bag-heart","bag-heart-fill","bag-plus","bag-plus-fill","bag-x","bag-x-fill","bank","bank2","basket","basket-fill","basket2","basket2-fill","basket3","basket3-fill","cart","cart-check","cart-check-fill","cart-dash","cart-dash-fill","cart-fill","cart-plus","cart-plus-fill","cart-x","cart-x-fill","cart2","cart3","cart4","cash","cash-coin","cash-stack","coin","currency-bitcoin","currency-dollar","currency-euro","currency-exchange","currency-pound","currency-rupee","currency-yen","piggy-bank","piggy-bank-fill","receipt","receipt-cutoff","shop","shop-window","truck","truck-flatbed","upc","upc-scan","wallet","wallet-fill","wallet2"]},{name:"communications",icon:["at","bell","bell-fill","bell-slash","bell-slash-fill","broadcast","broadcast-pin","chat","chat-dots","chat-dots-fill","chat-fill","chat-left","chat-left-dots","chat-left-dots-fill","chat-left-fill","chat-left-quote","chat-left-quote-fill","chat-left-text","chat-left-text-fill","chat-quote","chat-quote-fill","chat-right","chat-right-dots","chat-right-dots-fill","chat-right-fill","chat-right-quote","chat-right-quote-fill","chat-right-text","chat-right-text-fill","chat-square","chat-square-dots","chat-square-dots-fill","chat-square-fill","chat-square-quote","chat-square-quote-fill","chat-square-text","chat-square-text-fill","chat-text","chat-text-fill","envelope","envelope-at","envelope-at-fill","envelope-check","envelope-check-fill","envelope-dash","envelope-dash-fill","envelope-exclamation","envelope-exclamation-fill","envelope-fill","envelope-heart","envelope-heart-fill","envelope-open","envelope-open-fill","envelope-open-heart","envelope-open-heart-fill","envelope-paper","envelope-paper-fill","envelope-paper-heart","envelope-paper-heart-fill","envelope-plus","envelope-plus-fill","envelope-slash","envelope-slash-fill","envelope-x","envelope-x-fill","flag","flag-fill","forward","forward-fill","globe","globe2","inbox","inbox-fill","inboxes-fill","inboxes","qr-code","qr-code-scan","reception-0","reception-1","reception-2","reception-3","reception-4","reply","reply-all","reply-all-fill","reply-fill","rss","rss-fill","search","send","send-check","send-check-fill","send-dash","send-dash-fill","send-exclamation","send-exclamation-fill","send-fill","send-plus","send-plus-fill","send-slash","send-slash-fill","send-x","send-x-fill","share","share-fill","telephone","telephone-fill","telephone-forward","telephone-forward-fill","telephone-inbound","telephone-inbound-fill","telephone-minus","telephone-minus-fill","telephone-outbound","telephone-outbound-fill","telephone-plus","telephone-plus-fill","telephone-x","telephone-x-fill","translate","voicemail","wifi","wifi-1","wifi-2","wifi-off","chat-heart","chat-heart-fill","chat-left-heart","chat-left-heart-fill","chat-right-heart","chat-right-heart-fill","chat-square-heart","chat-square-heart-fill","search-heart","search-heart-fill"]},{name:"controls",icon:["menu-app","menu-app-fill","menu-button","menu-button-fill","menu-button-wide","menu-button-wide-fill","menu-down","menu-up","segmented-nav","three-dots","three-dots-vertical","toggle-off","toggle-on","toggle2-off","toggle2-on","toggles","toggles2","ui-checks","ui-checks-grid","ui-radios","ui-radios-grid"]},{name:"data",icon:["activity","bar-chart","bar-chart-fill","bar-chart-line","bar-chart-line-fill","bar-chart-steps","graph-down","graph-down-arrow","graph-up","graph-up-arrow","pie-chart","pie-chart-fill"]},{name:"date and time",icon:["calendar","calendar-check","calendar-check-fill","calendar-date","calendar-date-fill","calendar-day","calendar-day-fill","calendar-event","calendar-event-fill","calendar-fill","calendar-minus","calendar-minus-fill","calendar-month","calendar-month-fill","calendar-plus","calendar-plus-fill","calendar-range","calendar-range-fill","calendar-week","calendar-week-fill","calendar-x","calendar-x-fill","calendar2","calendar2-check","calendar2-check-fill","calendar2-date","calendar2-date-fill","calendar2-day","calendar2-day-fill","calendar2-event","calendar2-event-fill","calendar2-fill","calendar2-minus","calendar2-minus-fill","calendar2-month","calendar2-month-fill","calendar2-plus","calendar2-plus-fill","calendar2-range","calendar2-range-fill","calendar2-week","calendar2-week-fill","calendar2-x","calendar2-x-fill","calendar3","calendar3-event","calendar3-event-fill","calendar3-fill","calendar3-range","calendar3-range-fill","calendar3-week","calendar3-week-fill","calendar4","calendar4-event","calendar4-range","calendar4-week","calendar-heart","calendar-heart-fill","calendar2-heart","calendar2-heart-fill"]},{name:"devices",icon:["alarm","alarm-fill","battery","battery-charging","battery-full","battery-half","calculator","calculator-fill","camera","camera2","camera-fill","camera-reels","camera-reels-fill","camera-video","camera-video-fill","camera-video-off","camera-video-off-fill","controller","cpu","cpu-fill","database","database-add","database-check","database-dash","database-down","database-exclamation","database-fill","database-fill-add","database-fill-check","database-fill-dash","database-fill-down","database-fill-exclamation","database-fill-gear","database-fill-lock","database-fill-slash","database-fill-up","database-fill-x","database-gear","database-lock","database-slash","database-up","database-x","device-hdd","device-hdd-fill","device-ssd","device-ssd-fill","display","display-fill","displayport","displayport-fill","earbuds","ethernet","gpu-card","hdd","hdd-fill","hdd-network","hdd-network-fill","hdd-rack","hdd-rack-fill","hdd-stack","hdd-stack-fill","hdmi","hdmi-fill","headphones","headset","headset-vr","keyboard","keyboard-fill","laptop","laptop-fill","memory","modem","modem-fill","motherboard","motherboard-fill","mouse","mouse-fill","mouse2","mouse2-fill","mouse3","mouse3-fill","music-player","music-player-fill","optical-audio","optical-audio-fill","pc","pc-display","pc-display-horizontal","pc-horizontal","pci-card","phone","phone-fill","phone-flip","phone-landscape","phone-landscape-fill","phone-vibrate","phone-vibrate-fill","printer","printer-fill","projector","projector-fill","robot","router","router-fill","sd-card","sd-card-fill","server","sim","sim-fill","smartwatch","speaker","speaker-fill","stopwatch","stopwatch-fill","tablet","tablet-fill","tablet-landscape","tablet-landscape-fill","thunderbolt","thunderbolt-fill","tv","tv-fill","usb","usb-c","usb-c-fill","usb-drive","usb-drive-fill","usb-fill","usb-micro","usb-micro-fill","usb-mini","usb-mini-fill","usb-plug","usb-plug-fill","usb-symbol","watch","webcam","webcam-fill"]},{name:"emoji",icon:["emoji-angry","emoji-angry-fill","emoji-dizzy","emoji-dizzy-fill","emoji-expressionless","emoji-expressionless-fill","emoji-frown","emoji-frown-fill","emoji-heart-eyes","emoji-heart-eyes-fill","emoji-kiss","emoji-kiss-fill","emoji-laughing","emoji-laughing-fill","emoji-neutral","emoji-neutral-fill","emoji-smile","emoji-smile-fill","emoji-smile-upside-down","emoji-smile-upside-down-fill","emoji-sunglasses","emoji-sunglasses-fill","emoji-wink","emoji-wink-fill","heartbreak","heartbreak-fill"]},{name:"entertainment",icon:["dice-1","dice-1-fill","dice-2","dice-2-fill","dice-3","dice-3-fill","dice-4","dice-4-fill","dice-5","dice-5-fill","dice-6","dice-6-fill","dpad","dpad-fill","joystick","suit-club","suit-club-fill","suit-diamond","suit-diamond-fill","suit-heart","suit-heart-fill","suit-spade","suit-spade-fill"]},{name:"files and folders",icon:["archive","archive-fill","card-checklist","card-heading","card-image","card-list","card-text","file","file-arrow-down","file-arrow-down-fill","file-arrow-up","file-arrow-up-fill","file-bar-graph","file-bar-graph-fill","file-binary","file-binary-fill","file-break","file-break-fill","file-check","file-check-fill","file-code","file-code-fill","file-diff","file-diff-fill","file-earmark","file-earmark-arrow-down","file-earmark-arrow-down-fill","file-earmark-arrow-up","file-earmark-arrow-up-fill","file-earmark-bar-graph","file-earmark-bar-graph-fill","file-earmark-binary","file-earmark-binary-fill","file-earmark-break","file-earmark-break-fill","file-earmark-check","file-earmark-check-fill","file-earmark-code","file-earmark-code-fill","file-earmark-diff","file-earmark-diff-fill","file-earmark-easel","file-earmark-easel-fill","file-earmark-excel","file-earmark-excel-fill","file-earmark-fill","file-earmark-font","file-earmark-font-fill","file-earmark-image","file-earmark-image-fill","file-earmark-lock","file-earmark-lock-fill","file-earmark-lock2","file-earmark-lock2-fill","file-earmark-medical","file-earmark-medical-fill","file-earmark-minus","file-earmark-minus-fill","file-earmark-music","file-earmark-music-fill","file-earmark-pdf","file-earmark-pdf-fill","file-earmark-person","file-earmark-person-fill","file-earmark-play","file-earmark-play-fill","file-earmark-plus","file-earmark-plus-fill","file-earmark-post","file-earmark-post-fill","file-earmark-ppt","file-earmark-ppt-fill","file-earmark-richtext","file-earmark-richtext-fill","file-earmark-ruled","file-earmark-ruled-fill","file-earmark-slides","file-earmark-slides-fill","file-earmark-spreadsheet","file-earmark-spreadsheet-fill","file-earmark-text","file-earmark-text-fill","file-earmark-word","file-earmark-word-fill","file-earmark-x","file-earmark-x-fill","file-earmark-zip","file-earmark-zip-fill","file-easel","file-easel-fill","file-excel","file-excel-fill","file-fill","file-font","file-font-fill","file-image","file-image-fill","file-lock","file-lock-fill","file-lock2","file-lock2-fill","file-medical","file-medical-fill","file-minus","file-minus-fill","file-music","file-music-fill","file-pdf","file-pdf-fill","file-person","file-person-fill","file-play","file-play-fill","file-plus","file-plus-fill","file-post","file-post-fill","file-ppt","file-ppt-fill","file-richtext","file-richtext-fill","file-ruled","file-ruled-fill","file-slides","file-slides-fill","file-spreadsheet","file-spreadsheet-fill","file-text","file-text-fill","file-word","file-word-fill","file-x","file-x-fill","file-zip","file-zip-fill","files","files-alt","filetype-aac","filetype-ai","filetype-bmp","filetype-cs","filetype-css","filetype-csv","filetype-doc","filetype-docx","filetype-exe","filetype-gif","filetype-heic","filetype-html","filetype-java","filetype-jpg","filetype-js","filetype-json","filetype-jsx","filetype-key","filetype-m4p","filetype-md","filetype-mdx","filetype-mov","filetype-mp3","filetype-mp4","filetype-otf","filetype-pdf","filetype-php","filetype-png","filetype-pptx","filetype-psd","filetype-py","filetype-raw","filetype-rb","filetype-sass","filetype-scss","filetype-sh","filetype-sql","filetype-svg","filetype-tiff","filetype-tsx","filetype-ttf","filetype-txt","filetype-wav","filetype-woff","filetype-xlsx","filetype-xml","filetype-yml","filetype-ppt","filetype-xls","folder","folder-check","folder-fill","folder-minus","folder-plus","folder-symlink","folder-symlink-fill","folder-x","folder2","folder2-open","image","image-alt","image-fill","images","journal","journal-album","journal-arrow-down","journal-arrow-up","journal-bookmark","journal-bookmark-fill","journal-check","journal-code","journal-medical","journal-minus","journal-plus","journal-richtext","journal-text","journal-x","journals","table","pass","pass-fill"]},{name:"geo",icon:["bullseye","compass","compass-fill","cursor","cursor-fill","geo","geo-alt","geo-alt-fill","geo-fill","globe-americas","globe-asia-australia","globe-central-south-asia","globe-europe-africa","map","map-fill","pin-map","pin-map-fill"]},{name:"graphics",icon:["align-bottom","align-center","align-end","align-middle","align-start","align-top","back","bezier","bezier2","bounding-box","bounding-box-circles","circle-square","crop","diagram-2","diagram-2-fill","diagram-3","diagram-3-fill","distribute-horizontal","distribute-vertical","droplet","droplet-fill","droplet-half","easel","easel-fill","easel2","easel2-fill","easel3","easel3-fill","eraser","eraser-fill","exclude","eyedropper","front","input-cursor","input-cursor-text","intersect","layer-backward","layer-forward","layers","layers-fill","layers-half","mask","node-minus","node-minus-fill","node-plus","node-plus-fill","paint-bucket","palette","palette-fill","palette2","rulers","sliders","sliders2","sliders2-vertical","stack","subtract","symmetry-horizontal","symmetry-vertical","textarea","textarea-resize","textarea-t","union","vector-pen","zoom-in","zoom-out"]},{name:"hands",icon:["hand-index","hand-index-fill","hand-index-thumb","hand-index-thumb-fill","hand-thumbs-down","hand-thumbs-down-fill","hand-thumbs-up","hand-thumbs-up-fill"]},{name:"layout",icon:["columns","columns-gap","grid","grid-1x2","grid-1x2-fill","grid-3x2","grid-3x2-gap","grid-3x2-gap-fill","grid-3x3","grid-3x3-gap","grid-3x3-gap-fill","grid-fill","layout-sidebar","layout-sidebar-inset-reverse","layout-sidebar-inset","layout-sidebar-reverse","layout-split","layout-text-sidebar","layout-text-sidebar-reverse","layout-text-window","layout-text-window-reverse","layout-three-columns","layout-wtf","window"]},{name:"love",icon:["heart-arrow","hearts","valentine","valentine2"]},{name:"media",icon:["aspect-ratio","aspect-ratio-fill","cassette","cassette-fill","cast","collection","collection-fill","collection-play","collection-play-fill","disc","disc-fill","fast-forward","fast-forward-btn","fast-forward-btn-fill","fast-forward-circle","fast-forward-circle-fill","fast-forward-fill","film","mic","mic-fill","mic-mute","mic-mute-fill","music-note","music-note-beamed","music-note-list","pause","pause-btn","pause-btn-fill","pause-circle","pause-circle-fill","pause-fill","pip","pip-fill","play","play-btn","play-btn-fill","play-circle","play-circle-fill","play-fill","record","record-btn","record-btn-fill","record-circle","record-circle-fill","record-fill","record2","record2-fill","repeat","repeat-1","rewind","rewind-btn","rewind-btn-fill","rewind-circle","rewind-circle-fill","rewind-fill","skip-backward","skip-backward-btn","skip-backward-btn-fill","skip-backward-circle","skip-backward-circle-fill","skip-backward-fill","skip-end","skip-end-btn","skip-end-btn-fill","skip-end-circle","skip-end-circle-fill","skip-end-fill","skip-forward","skip-forward-btn","skip-forward-btn-fill","skip-forward-circle","skip-forward-circle-fill","skip-forward-fill","skip-start","skip-start-btn","skip-start-btn-fill","skip-start-circle","skip-start-circle-fill","skip-start-fill","soundwave","stop","stop-btn","stop-btn-fill","stop-circle","stop-circle-fill","stop-fill","vinyl-fill","volume-down","volume-down-fill","volume-mute","volume-mute-fill","volume-off","volume-off-fill","volume-up","volume-up-fill","vinyl"]},{name:"medical",icon:["capsule","capsule-pill","heart-pulse","heart-pulse-fill","hospital","hospital-fill","lungs","lungs-fill","prescription","prescription2","virus","virus2"]},{name:"miscellaneous",icon:["bookmark","bookmark-check","bookmark-check-fill","bookmark-dash","bookmark-dash-fill","bookmark-fill","bookmark-heart","bookmark-heart-fill","bookmark-plus","bookmark-plus-fill","bookmark-star","bookmark-star-fill","bookmark-x","bookmark-x-fill","bookmarks","bookmarks-fill","clock","clock-fill","clock-history","download","incognito","kanban","kanban-fill","lightning-charge","lightning-charge-fill","peace","peace-fill","puzzle","puzzle-fill","upload"]},{name:"people",icon:["gender-ambiguous","gender-female","gender-male","gender-trans","people","person-circle","people-fill","person","person-add","person-badge","person-badge-fill","person-bounding-box","person-check","person-check-fill","person-dash","person-dash-fill","person-down","person-exclamation","person-fill","person-fill-add","person-fill-check","person-fill-dash","person-fill-down","person-fill-exclamation","person-fill-gear","person-fill-lock","person-fill-slash","person-fill-up","person-fill-x","person-gear","person-heart","person-hearts","person-lines-fill","person-lock","person-plus","person-plus-fill","person-rolodex","person-slash","person-square","person-up","person-vcard","person-vcard-fill","person-video","person-video2","person-video3","person-workspace","person-x","person-x-fill"]},{name:"real world",icon:["award","award-fill","balloon","balloon-fill","bandaid","bandaid-fill","bicycle","binoculars","binoculars-fill","book","book-fill","book-half","bookshelf","boombox","boombox-fill","boxes","box","box-fill","box-seam","box-seam-fill","box2","bricks","briefcase","briefcase-fill","bug","bug-fill","clipboard","clipboard-check","clipboard-check-fill","clipboard-data","clipboard-data-fill","clipboard-fill","clipboard-heart","clipboard-heart-fill","clipboard-minus","clipboard-minus-fill","clipboard-plus","clipboard-plus-fill","clipboard-pulse","clipboard-x","clipboard-x-fill","clipboard2","clipboard2-check","clipboard2-check-fill","clipboard2-data","clipboard2-data-fill","clipboard2-fill","clipboard2-heart","clipboard2-heart-fill","clipboard2-minus","clipboard2-minus-fill","clipboard2-plus","clipboard2-plus-fill","clipboard2-x","clipboard2-x-fill","cone","cone-striped","credit-card","credit-card-2-back","credit-card-2-back-fill","credit-card-2-front","credit-card-2-front-fill","credit-card-fill","cup","cup-fill","cup-hot","cup-hot-fill","cup-straw","door-closed","door-closed-fill","door-open","door-open-fill","ear","ear-fill","egg","egg-fill","egg-fried","eye","eye-fill","eye-slash","eye-slash-fill","eyeglasses","fan","fire","flower1","flower2","flower3","funnel","funnel-fill","gift","gift-fill","handbag","handbag-fill","hourglass","hourglass-bottom","hourglass-split","hourglass-top","house","house-add","house-add-fill","house-check","house-check-fill","house-dash","house-dash-fill","house-door","house-door-fill","house-down","house-down-fill","house-exclamation","house-exclamation-fill","house-fill","house-gear","house-gear-fill","house-heart","house-heart-fill","house-lock","house-lock-fill","house-slash","house-slash-fill","house-up","house-up-fill","house-x","house-x-fill","houses","houses-fill","hypnotize","key","key-fill","ladder","lamp","lamp-fill","life-preserver","lightbulb","lightbulb-fill","lightbulb-off","lightbulb-off-fill","magic","magnet","magnet-fill","mailbox","mailbox2","megaphone","megaphone-fill","minecart","minecart-loaded","moon","mortarboard","mortarboard-fill","newspaper","outlet","paperclip","pin","pin-angle","pin-angle-fill","pin-fill","plug","plug-fill","postage","postage-fill","postcard","postcard-fill","radioactive","rocket","rocket-fill","rocket-takeoff","rocket-takeoff-fill","safe","safe-fill","safe2","safe2-fill","scissors","signpost","signpost-2","signpost-2-fill","signpost-fill","signpost-split","signpost-split-fill","speedometer","speedometer2","stickies","stickies-fill","sticky","sticky-fill","stoplights","stoplights-fill","sunglasses","tag","tag-fill","tags","tags-fill","thermometer","ticket","ticket-detailed","ticket-detailed-fill","ticket-fill","ticket-perforated","ticket-perforated-fill","tree","tree-fill","trophy","trophy-fill","yin-yang","balloon-heart","balloon-heart-fill","box2-fill","box2-heart","box2-heart-fill","postage-heart","postage-heart-fill","postcard-heart","postcard-heart-fill","clipboard2-pulse","clipboard2-pulse-fill","alexa"]},{name:"security",icon:["fingerprint","lock","lock-fill","shield","shield-check","shield-exclamation","shield-fill","shield-fill-check","shield-fill-exclamation","shield-fill-minus","shield-fill-plus","shield-fill-x","shield-lock","shield-lock-fill","shield-minus","shield-plus","shield-shaded","shield-slash","shield-slash-fill","shield-x","unlock","unlock-fill"]},{name:"shape arrows",icon:["arrow-down-circle","arrow-down-circle-fill","arrow-down-left-circle","arrow-down-left-circle-fill","arrow-down-left-square","arrow-down-left-square-fill","arrow-down-right-circle","arrow-down-right-circle-fill","arrow-down-right-square","arrow-down-right-square-fill","arrow-down-square","arrow-down-square-fill","arrow-left-circle","arrow-left-circle-fill","arrow-left-square","arrow-left-square-fill","arrow-right-circle","arrow-right-circle-fill","arrow-right-square","arrow-right-square-fill","arrow-up-circle","arrow-up-circle-fill","arrow-up-left-circle","arrow-up-left-circle-fill","arrow-up-left-square","arrow-up-left-square-fill","arrow-up-right-circle","arrow-up-right-circle-fill","arrow-up-right-square","arrow-up-right-square-fill","arrow-up-square","arrow-up-square-fill"]},{name:"shapes",icon:["0-circle","0-circle-fill","0-square","0-square-fill","1-circle","1-circle-fill","1-square","1-square-fill","2-circle","2-circle-fill","2-square","2-square-fill","3-circle","3-circle-fill","3-square","3-square-fill","4-circle","4-circle-fill","4-square","4-square-fill","5-circle","5-circle-fill","5-square","5-square-fill","6-circle","6-circle-fill","6-square","6-square-fill","7-circle","7-circle-fill","7-square","7-square-fill","8-circle","8-circle-fill","8-square","8-square-fill","9-circle","9-circle-fill","9-square","9-square-fill","c-circle","c-circle-fill","c-square","c-square-fill","cc-circle","cc-circle-fill","cc-square","cc-square-fill","circle","circle-fill","circle-half","diamond","diamond-fill","diamond-half","gem","h-circle","h-circle-fill","h-square","h-square-fill","heart","heart-fill","heart-half","heptagon","heptagon-fill","heptagon-half","hexagon","hexagon-fill","hexagon-half","octagon","octagon-fill","octagon-half","p-circle","p-circle-fill","p-square","p-square-fill","pentagon","pentagon-fill","pentagon-half","r-circle","r-circle-fill","r-square","r-square-fill","square","square-fill","square-half","star","star-fill","star-half","triangle","triangle-fill","triangle-half"]},{name:"sort and filter",icon:["filter-circle","filter-circle-fill","filter-left","filter-right","filter-square","filter-square-fill","sort-alpha-down","sort-alpha-down-alt","sort-alpha-up","sort-alpha-up-alt","sort-down","sort-down-alt","sort-numeric-down","sort-numeric-down-alt","sort-numeric-up","sort-numeric-up-alt","sort-up","sort-up-alt"]},{name:"tools",icon:["brush","brush-fill","bucket","bucket-fill","gear","gear-fill","gear-wide","gear-wide-connected","hammer","nut","nut-fill","pen","pen-fill","pencil","pencil-fill","pencil-square","screwdriver","tools","wrench","wrench-adjustable","wrench-adjustable-circle","wrench-adjustable-circle-fill"]},{name:"transportation",icon:["airplane","airplane-engines","airplane-engines-fill","airplane-fill","bus-front","bus-front-fill","car-front","car-front-fill","ev-front","ev-front-fill","ev-station","ev-station-fill","fuel-pump","fuel-pump-diesel","fuel-pump-diesel-fill","fuel-pump-fill","scooter","sign-dead-end","sign-dead-end-fill","sign-do-not-enter","sign-do-not-enter-fill","sign-intersection","sign-intersection-fill","sign-intersection-side","sign-intersection-side-fill","sign-intersection-t","sign-intersection-t-fill","sign-intersection-y","sign-intersection-y-fill","sign-merge-left","sign-merge-left-fill","sign-merge-right","sign-merge-right-fill","sign-no-left-turn","sign-no-left-turn-fill","sign-no-parking","sign-no-parking-fill","sign-no-right-turn","sign-no-right-turn-fill","sign-railroad","sign-railroad-fill","sign-stop","sign-stop-fill","sign-stop-lights","sign-stop-lights-fill","sign-turn-left","sign-turn-left-fill","sign-turn-right","sign-turn-right-fill","sign-turn-slight-left","sign-turn-slight-left-fill","sign-turn-slight-right","sign-turn-slight-right-fill","sign-yield","sign-yield-fill","taxi-front","taxi-front-fill","train-freight-front","train-freight-front-fill","train-front","train-front-fill","train-lightrail-front","train-lightrail-front-fill","truck-front","truck-front-fill"]},{name:"typography",icon:["123","asterisk","blockquote-left","blockquote-right","body-text","border-style","border-width","braces","braces-asterisk","code","code-slash","code-square","cursor-text","fonts","hash","hr","infinity","justify","justify-left","justify-right","list","list-check","list-columns","list-columns-reverse","list-nested","list-ol","list-stars","list-task","list-ul","paragraph","percent","plus-slash-minus","quote","regex","spellcheck","subscript","superscript","text-center","text-indent-left","text-indent-right","text-left","text-paragraph","text-right","text-wrap","type","type-bold","type-h1","type-h2","type-h3","type-italic","type-strikethrough","type-underline","vr"]},{name:"ui and keyboard",icon:["alt","backspace","backspace-fill","backspace-reverse","backspace-reverse-fill","border","border-all","border-bottom","border-center","border-inner","border-left","border-middle","border-outer","border-right","border-top","brightness-alt-high","brightness-alt-high-fill","brightness-alt-low","brightness-alt-low-fill","brightness-high","brightness-high-fill","brightness-low","brightness-low-fill","capslock","capslock-fill","check-all","check2","check2-all","check2-circle","check2-square","command","dot","eject","eject-fill","escape","filter","fullscreen","fullscreen-exit","grip-horizontal","grip-vertical","indent","link","link-45deg","option","power","save","save-fill","save2","save2-fill","shift","shift-fill","trash","trash-fill","trash2","trash2-fill","trash3","trash3-fill","unindent","universal-access","universal-access-circle","view-list","view-stacked","plugin"]},{name:"weather",icon:["cloud-drizzle","cloud-drizzle-fill","cloud-fog","cloud-fog-fill","cloud-fog2","cloud-fog2-fill","cloud-hail","cloud-hail-fill","cloud-haze","cloud-haze-fill","cloud-haze2","cloud-haze2-fill","cloud-lightning","cloud-lightning-fill","cloud-lightning-rain","cloud-lightning-rain-fill","cloud-moon","cloud-moon-fill","cloud-rain","cloud-rain-fill","cloud-rain-heavy","cloud-rain-heavy-fill","cloud-sleet","cloud-sleet-fill","cloud-snow","cloud-snow-fill","cloud-sun","cloud-sun-fill","clouds","clouds-fill","cloudy","cloudy-fill","hurricane","lightning","lightning-fill","moisture","moon-fill","moon-stars","moon-stars-fill","rainbow","snow","snow2","snow3","stars","sun","sun-fill","sunrise","sunrise-fill","sunset","sunset-fill","thermometer-half","thermometer-high","thermometer-low","thermometer-snow","thermometer-sun","tornado","tropical-storm","tsunami","umbrella","umbrella-fill","water","wind"]}],],int:function(l){if(jQuery("#editWindow-icons").length>0)return!1;for(var e='<ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt><label for="_editor_icon_search">'+msg_msg("search")+'</label></dt><dd><input type="text" name="_editor_icon_search" id="_editor_icon_search" onfocus="icon_obj.autocomplete()" onkeyup="icon_obj.autocomplete()" /></dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_icon_company">'+msg_msg("kind")+'</label></dt><dd><div class="counter-control-box"><span class="counter-control"><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.plus(\'_editor_icon_company\',{},function(){icon_obj.icon_company_change();})" onmouseup="input_box.stop(\'_editor_icon_company\');" class="left-button icon2-plus"></button></span><span class="box-input"><select id="_editor_icon_company" onchange="icon_obj.icon_company_change()">',i=0;i<icon_obj._icons_company.length;i++)e+='<option value="'+i+'">'+icon_obj._icons_company[i].name+"</option>";e+='</select></span><span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.minus(\'_editor_icon_company\',{},function(){icon_obj.icon_company_change();})" onmouseup="input_box.stop(\'_editor_icon_company\');" class="right-button icon2-minus"></button></span></span></div></dd></dl></li><li>';for(var i=0;i<icon_obj._icons_company.length;i++){var a=0==i?"block":"none";if(e+='<div id="_icons_company_'+i+'" style="display:'+a+'">',icon_obj._icons_group[i].length>1){var r="_icons_groups_"+i;e+='<dl class="_edit-dl-2">',e+='<dt><label for="'+r+'">'+msg_msg("classifiction")+"</label></dt>",e+="<dd>",e+='<div class="counter-control-box">',e+='<span class="counter-control">',e+='<span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.plus(\''+r+'\',{},function(){icon_obj.icon_group_change(1);})" onmouseup="input_box.stop(\'_editor_icon_company\');" class="left-button icon2-plus"></button></span>',e+='<span class="box-input">',e+='<select id="'+r+'" onchange="icon_obj.icon_group_change(1)">';for(var o=0;o<icon_obj._icons_group[i].length;o++)e+='<option value="'+o+'">'+icon_obj._icons_group[i][o].name+"</option>";e+="</select>",e+="</span>",e+='<span class="box-btn"><button href="#" onclick="return false;" onmousedown="input_box.minus(\''+r+'\',{},function(){icon_obj.icon_group_change(1);})" onmouseup="input_box.stop(\'_editor_icon_company\');" class="right-button icon2-minus"></button></span>',e+="</span>",e+="</div>",e+="</dd>",e+="</dl>"}e+="</div>"}e+='</li><li><div id="_icon_group" class="icons_preview">';for(var i=0;i<icon_obj._icons_company.length;i++)for(var a=0==i?"block":"none",t=0;t<icon_obj._icons_group[i].length;t++)for(var a=0==t?"block":"none",n="_icon_group_"+i+"_"+t,c=0;c<icon_obj._icons_group[i][t].icon.length;c++)e+='<button data-key="'+icon_obj._icons_group[i][t].icon[c]+'" class="icon-a _drag-btn-3 '+n+'"><span title="'+icon_obj._icons_group[i][t].icon[c]+'" data-alt-no="2" class="bi bi-'+icon_obj._icons_group[i][t].icon[c]+'"></span></button>';if(e+='</div><div id="_editor_icon_search_error_msg" class="search_error_msg" style="display:none">No Match</div></li></ul><div class="_edit_remove_box"><a href="#" onclick="icon_obj.delete();return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn-8 icon2-delete"></a></div>',edit_window_obj.int("editWindow-icons",e,msg_msg("set_icon")),jQuery("#_icon_group>button").on("click",function(){var l=jQuery(this).data("key");return icon_obj.change("bi-"+l),!1}),this.icon_group_change(),0==jQuery("#editor-icon-fix").length){var e='<div id="editor-icon-fix" class="btn_width _m9editor no" style="display:none"><a href="#" onclick="icon_obj.view();return false;" class="setting-btn-1">'+msg_msg("set_icon")+"</a></div>";jQuery("body").append(e);var s=function(l,e){var i=l.target;e&&(icon_obj._now=i)},f=function(l,e){var i=e,a=l.target;return(jQuery(a),""!=m9_mode_obj.mode&&(i=!1),i)?"none"==jQuery("#editWindow-icons").css("display")&&(icon_obj._selected=a,m9_layer_position("editor-icon-fix",a,"up"),obj_fadeIn("#editor-icon-fix",200),!1):(icon_obj._selected=!1,obj_fadeOut("#editor-icon-fix",200),!1)};editor_selector.set(l,[{_type:"mousedown",_kind:"is",_selector:".bi",_func:s,_ignore:1},{_type:"mouseover",_kind:"is",_selector:".bi",_func:f,_ignore:1}])}},autocomplete:function(){var l=jQuery("#_editor_icon_search").val();if(l.length<2)return icon_obj.icon_group_change(),!1;var e=RegExp(""+l,"gi"),i=0;jQuery("#_icon_group").find("button").each(function(){jQuery(this).data("key").toString().match(e)?(jQuery(this).css({display:"inline-block"}),i++):jQuery(this).css({display:"none"})});var a=0==i?"block":"none";jQuery("#_editor_icon_search_error_msg").css("display",a)},icon_company_change:function(l){for(var l=jQuery("#_editor_icon_company").val(),e=0;e<icon_obj._icons_company.length;e++){var i=e==l?"block":"none";jQuery("#_icons_company_"+e).css("display",i)}this.icon_group_change(1)},icon_group_change:function(l){var e=jQuery("#_editor_icon_company").val(),i=0;jQuery("#_icons_groups_"+e).length>0&&(i=jQuery("#_icons_groups_"+e).val());var a="_icon_group_"+e+"_"+i;jQuery("#_icon_group>button").css("display","none"),jQuery("#_icon_group>button."+a).css("display","inline-block"),1==l&&(jQuery("#_editor_icon_search").val(""),jQuery("#_editor_icon_search_error_msg").css("display","none"))},view:function(){icon_obj._now=icon_obj._selected,element_obj.edit.convert_obj(icon_obj._now,"font"),m9_layer_position("editWindow-icons",icon_obj._now,"up",m9_getObject("body")),edit_window_obj.view("editWindow-icons"),jQuery("#editor-icon-fix").css("display","none")},change:function(l){var e=0;jQuery(".selected_tag").each(function(){jQuery(this).attr("class").match(/bi\-/i)&&(icon_obj._now=this,icon_obj.change_one(l),e++)}),0==e&&editor.handle.append_html('<i class="bi '+l+'"><i>&nbsp;</i></i>',2)},change_one:function(l){for(var e="",i=jQuery(icon_obj._now).attr("class").split(" "),a=0;a<i.length;a++)if(i[a].match(/^bi\-/i)&&"bi-lg"!=i[a]&&!i[a].match(/^bi\-\dx/i)){e=i[a];break}if(""==e)return!1;jQuery(icon_obj._now).removeClass(e).addClass(l),"ie"==M9_SET.navigator&&m9_ie_var<8&&ie_addIcon(icon_obj._now,l),undo_obj._add(icon_obj._now,"icon_change")},delete:function(){var l=jQuery(".selected_tag");l.each(function(){jQuery(this).attr("class").match(/bi\-/i)&&(icon_obj._now=this,icon_obj.delete_one())}),l.length<=1&&edit_window_obj.close("editWindow-icons"),RemoveSelection()},delete_one:function(){var l=jQuery(icon_obj._now).parent();undo_obj._add(icon_obj._now,"icon_delete"),jQuery(icon_obj._now).remove(),icon_obj._now=!1,undo_obj._add_one(l,"icon_delete_after")}};
var resize_obj={_now:!1,stop_callback:!1,int:function(){if(0==jQuery("#_resize_area").length){var e='<div id="_resize_area" style="display:none" title="'+msg_msg("msg_8")+'"><span id="_resize_area_msg">_</span><div style="position:absolute;top:0;left:0;"><a href="#" onclick="resize_obj.optimization();return false;" title="'+msg_msg("msg_7")+'" data-alt-no="1" class="edit-btn icon-arrows-alt hd-fix no"></a></div></div>';if(jQuery("body").append(e),"ie"==M9_SET.navigator){var e='<iframe id="_resize_ie_iframe" style="z-index:10;position:absolute;top:0;left:0;filter:alpha(opacity=0);opacity:0.0;-moz-opacity:0.0;overflow:hidden;border:none;display:none"></iframe>';jQuery("body").append(e)}jQuery("#_resize_area").on("dblclick",function(){jQuery(resize_obj._now).css({top:"",left:""}),jQuery("#_resize_area").css("display","none"),"ie"==M9_SET.navigator&&jQuery("#_resize_ie_iframe").css("display","none"),jQuery("#_resize_area").resizable("destroy"),undo_obj._add(resize_obj._now),resize_obj._now=!1,resize_obj.stop_callback=!1})}},optimization:function(){var e=jQuery(resize_obj._now);if(e.hasClass("m9-img-box")){var i=e.find("img")[0],a=m9_get_num(jQuery(i).css("height")),s=m9_get_num(e.css("height"))-a;if(s>10||s<-10){var t=e.children("span")[0],r=m9_get_num(jQuery(i).css("width"));element_obj.change_css_hash_by_mode(t,{width:"","padding-bottom":a/r*100+"%"}),element_obj.change_css_hash_by_mode(i,{top:"0",left:"0"})}element_obj.change_css_hash_by_mode(e[0],{width:"",height:""})}else element_obj.change_css_hash_by_mode(e[0],{width:"",height:"","max-width":"","max-height":"","min-width":"","min-height":""});""!=m9_mode_obj.get()&&element_obj.change_css_by_mode("width","100%"),jQuery("#_resize_area").dblclick()},change:function(e,i){0==jQuery("#_resize_area").length&&resize_obj.int(),resize_obj._now=e;var a=_get_box_info(e,1),s=jQuery(e),t=s.css("margin-left"),r=s.css("margin-top"),o=parseInt(m9_get_num(a.w)),h=parseInt(m9_get_num(a.h));jQuery("#_resize_area_msg").text(o+" X "+h),jQuery("#_resize_area").css({display:"block",top:a.t,left:a.l,width:a.w,height:a.h,"margin-left":t,"margin-top":r}),"ie"==M9_SET.navigator&&jQuery("#_resize_ie_iframe").css({display:"block",top:a.t,left:a.l,width:a.w,height:a.h,"margin-left":t,"margin-top":r});var n=!!("img"==s.prop("tagName").toLowerCase()||s.hasClass("_aspectRatio")||s.hasClass("circle")),l=get_inline_style(e,"max-width"),d=0;""!=l?(d=m9_get_num(l),d=jQuery(e).css("max-width")):d=m9_get_num(s.parents(editor.editable).css("width"));var c=0;!1!=n||s.hasClass("_aspectAll")||s.hasClass("m9-img-box")||(c=1),undo_obj._add(e),element_obj._now=e,jQuery("#_resize_area").resizable({handles:"all",aspectRatio:n,maxWidth:d,minWidth:10,resize:function(i,a){var s=parseInt(a.size.width),t=parseInt(a.size.height),r=s+"px",o=t+"px";a.position.top,a.position.left,"inline"==jQuery(e).css("display")&&jQuery(e).css("display","inline-block"),element_obj.change_css_by_mode("width",r),element_obj.change_css_by_mode("height",o);var h=m9_getRealOffsetLeft(e)+"px",n=m9_getRealOffsetTop(e)+"px";jQuery(this).css({top:n,left:h}),jQuery("#_resize_area_msg").text(s+" X "+t),"ie"==M9_SET.navigator&&jQuery("#_resize_ie_iframe").css({width:r,height:o,left:h,top:n})},stop:function(i,a){var s=jQuery(e);if(1==c){var t=parseInt(a.size.width),r=parseInt(a.size.height);s.css({width:t,"max-width":"100%",height:"","min-height":r});var o=s.css("height");m9_get_num(o)>r&&(s.css("min-height",""),jQuery("#_resize_area").css("height",o))}else s.is("img")&&s.css("height","");var h=m9_mode_obj.get();if(""!=h){var n="data-"+m9_mode_obj.get_m9_mode_name("");s.attr(n)||s.attr(n,"");var n="data-"+m9_mode_obj.get_m9_mode_name(h),l=s.attr(n),d={};if(l)for(var g=l.split(";"),m=0;m<g.length;m++){var p=g[m].split(":"),b=jQuery.trim(p[0]);"width"!=b&&"max-width"!=b&&"min-width"!=b&&"height"!=b&&"max-height"!=b&&"min-height"!=b&&(d[b]=jQuery.trim(p[1]))}var z="";for(var m in d)""!=z&&(z+=";"),""!=m&&void 0!=d[m]&&(z+=m+":"+d[m]);var f=m9_mode_obj.get_style_by_str_array([z,s.attr("style")]);s.attr(n,f)}resize_obj.stop_callback&&resize_obj.stop_callback(resize_obj._now)}})}};
var img_obj={_now:!1,_status:0,defaults:{upload_url:"",img_max_width:1e3},_unit:100,settings:{},_img_before_style:"",int:function(i,t){this.settings=m9_get_vars(t,this.defaults),img_obj.handle.int(),img_obj.handle2.int();var e=function(i,t){if(1==img_obj._status||editor.handle.sorting_obj)return!1;var e=t,a=i.target,o=jQuery(a);if(e&&0==editor.event_doing.get()){if(o.is(editor._ignore)||o.parents(".ui-sortable-handle").length>0)return!1;o.parents(".m9-img-box").length>0?(a=o.parents(".m9-img-box")[0],jQuery("#_img_set_resize2").css("display","inline-block")):jQuery("#_img_set_resize2").css("display","none"),img_obj._now=a;var s=_get_box_info(a,1);jQuery("#_img_setting_box>div").css("display","none"),jQuery("#_img_setting_box").css({display:"block",top:s.t,left:s.l,width:s.w,height:s.h}),"ie"==M9_SET.navigator&&jQuery("#_img_setting_box_iframe").css({display:"block",top:s.t,left:s.l,width:s.w,height:s.h}),img_obj.handle.change_img_setting_box(0)}else{if(1==img_obj._status)return!1;o.is("#_img_setting_box")||0!=o.parents("#_img_setting_box").length||(jQuery("#_img_setting_box").css({display:"none"}),"ie"==M9_SET.navigator&&jQuery("#_img_setting_box_iframe").css({display:"none"}))}};editor_selector.set(i,[{_type:"mouseover",_kind:"is",_selector:"img",_func:e,_ignore:0}]),drop_upload_obj.int(i)},handle2:{int:function(){if(0==jQuery("#_img_resize_box").length){var i='<div id="_img_resize_box" style="display:none"><div style="position:absolute;z-index:10;padding:10px"><a href="#" onclick="img_obj.handle2.fixed();return false;" title="'+msg_msg("apply")+'" data-alt-no="1" class="edit-btn icon-ok hd-html"></a><a href="#" onclick="img_obj.handle2.fix_optimum();return false;" title="'+msg_msg("optimal")+'" data-alt-no="1" class="edit-btn icon-optimal hd-html"></a><a href="#" onclick="img_obj.handle2.fix_size(1);return false;" title="'+msg_msg("size_up")+'" data-alt-no="1" class="edit-btn icon-plus-2 hd-fix"></a><a href="#" onclick="img_obj.handle2.fix_size(-1);return false;" title="'+msg_msg("size_down")+'" data-alt-no="1" class="edit-btn icon-minus-2 hd-fix"></a></div><div id="_img_wrapper" style="position:absolute;padding:0;margin:0"><img id="_img_resize_img" src="'+M9_SET.mong9_url+'source/img/empty.png" alt=""  /></div></div>';jQuery("body").append(i),jQuery("#_img_set_resize2").click(function(){var i=jQuery(img_obj._now).find("img");img_obj._img_before_style=i.attr("style");var t=m9_get_num(i.css("width")),e=m9_get_num(i.css("height")),a=m9_get_num(i.css("left")),o=m9_get_num(i.css("top")),s=jQuery(img_obj._now),n=m9_get_num(s.css("width")),l=m9_get_num(s.css("height")),g=m9_getRealOffsetLeft(s[0]),m=m9_getRealOffsetTop(s[0]);jQuery("#_img_resize_img").attr({src:i.attr("src")}),img_obj._unit;var d=t-n,r=t+d,c=e-l,h=e+c,p=a+d,b=o+c;jQuery("#_img_wrapper").css({width:r+"px",left:-d+"px",height:h+"px",top:-c+"px"}),jQuery("#_img_resize_img").css({width:t,height:"","max-width":"","max-height":"","min-width":"","min-height":"",top:b+"px",left:p+"px"}),jQuery("#_img_resize_img").draggable({containment:"#_img_wrapper",scroll:!1}),curtain.show("_img_resize_box",{top:m,left:g,width:n,height:l})})}},fixed:function(){var i=jQuery("#_img_resize_img"),t=m9_get_object_size2(i[0],"width"),e=m9_get_object_size2(i[0],"height"),a=m9_get_num(i.css("left")),o=m9_get_num(i.css("top")),s=jQuery("#_img_resize_box");m9_get_object_size2(s[0],"width"),m9_get_object_size2(s[0],"height"),m9_getRealOffsetLeft(s[0]),m9_getRealOffsetTop(s[0]);var n=jQuery("#_img_wrapper");m9_get_object_size2(n[0],"width"),m9_get_object_size2(n[0],"height");var l=m9_get_num(n.css("left")),g=m9_get_num(n.css("top"))+o,m=l+a;jQuery(img_obj._now).find("img").css({width:t+"px",height:e+"px","min-width":t+"px","min-height":e+"px"}).css({top:g+"px",left:m+"px"}),img_obj.handle.convert(1),curtain.hide()},fix_optimum:function(){var i=jQuery("#_img_resize_img"),t=jQuery("#_img_resize_box"),e=m9_get_num(t.css("width")),a=m9_get_num(t.css("height")),o=m9_get_num(i.css("width")),s=m9_get_num(i.css("height")),n=a/s,l=s*(e/o);l<a?(o*=n,s=a):(o=e,s=l);var g=o-e+o,m=s-a+s,d=-((m-a)/2)+"px",r=-((g-e)/2)+"px",c=(m-s)/2+"px",h=(g-o)/2+"px";jQuery("#_img_wrapper").css({width:g,height:m,top:d,left:r}),i.css({width:o,height:"",top:c,left:h}),jQuery("#_optimum_img").remove()},fix_size:function(i){var t=jQuery("#_img_resize_img"),e=m9_get_num(t.css("width")),a=m9_get_num(t.css("height")),o=m9_get_num(t.css("left")),s=m9_get_num(t.css("top")),n=jQuery("#_img_resize_box"),l=m9_get_num(n.css("width")),g=m9_get_num(n.css("height"));m9_getRealOffsetLeft(n[0]),m9_getRealOffsetTop(n[0]);var m=a/e,d=img_obj._unit*i,r=(e+=d)-l,c=e+r,h=(a+=d*m)-g,p=a+h;if(c<l)return error_msg(msg_msg("msg_58")),!1;if(p<g)return error_msg(msg_msg("msg_57")),!1;var b=d/2+o,f=d*m/2+s;b<0?b=0:b+e>c&&(b=c-e),f<0?f=0:f+a>p&&(f=p-a),jQuery("#_img_wrapper").css({width:c+"px",left:-r+"px",height:p+"px",top:-h+"px"}),t.css({width:e+"px",height:a+"px",top:f+"px",left:b+"px"})}},handle:{int:function(){var i=img_obj.settings.upload_url.split("?"),t=[];if(i[1]&&(t=i[1].split("&")),0==jQuery("#_img_setting_box").length){for(var e='<div id="_img_setting_box" class="_setting_area_box" style="display:none;"><div><div id="_box_0" style="vertical-align:middle;display:none">'+("ie"==M9_SET.navigator||"safari"==M9_SET.navigator?'<a href="#" onclick="img_obj.handle.view_upload_form();return false;" title="'+msg_msg("upload")+'" data-alt-no="1" class="edit-btn _drag-btn-3 icon-upload hd-html"><i class="bi bi-cloud-upload"></i></a>':'<a href="#" onclick="img_obj.handle.search_file();return false;" title="'+msg_msg("upload")+'" data-alt-no="1" class="edit-btn _drag-btn-31111 icon-upload hd-html"></a>')+'<a href="#" onclick="img_obj.handle.change_size();return false;" title="'+msg_msg("fix_size")+'" data-alt-no="1" class="edit-btn icon-arrows-alt hd-fix no m9-only-master"></a><a href="#" onclick="img_obj.handle.view_property();return false;" title="'+msg_msg("set_link")+'" data-alt-no="1" class="edit-btn-2 _drag-btn-3 icon-createLink-2 hd-fix no"><i class="edit-btn-popup-2"></i></a><a onclick="img_obj.handle.view_setting();return false;" title="'+msg_msg("setting")+'" data-alt-no="1" class="edit-btn-2 _drag-btn-3 icon-setting hd-fix no"><i class="edit-btn-popup-2"></i></a><a onclick="img_obj.handle.type_change();return false;" title="'+msg_msg("set_type")+'" data-alt-no="1" class="edit-btn _drag-btn-3 icon-refresh-2 hd-fix no"></a><a id="_img_set_resize2" title="'+msg_msg("set_location")+'" data-alt-no="1" class="edit-btn icon-position hd-etc2"></a><a onclick="img_obj.handle.del();return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn _drag-btn-3 icon-del hd-remove"></a></div><div id="_box_1" style="display:none"><form id="edit_img_upload_form" action="'+i[0]+'" enctype="multipart/form-data" method="post" onsubmit="return  img_obj.submit(arguments[0])"><input type="hidden" name="img_max_width" value="'+img_obj.settings.img_max_width+'">',a=0;a<t.length;a++){var o=t[a].split("=");e+='<input type="hidden" name="'+o[0]+'" value="'+o[1]+'" />'}if(e+='<div class="img_obj_upload_box"><input type="file" id="img_upload_file" name="img_upload_file" class="input-1" title="'+msg_msg("upload")+'"  /><input type="submit" value="'+msg_msg("upload")+'" class="hd-copy input-1" /><a onclick="img_obj.handle.upload_cancel();return false;" class="hd-remove input-1"><i class="bi bi-close"></i>취소</a></div></form></div></div></div>',jQuery("body").append(e),jQuery("#_img_setting_box").on("click",function(){jQuery(this).children().css("display",""),element_obj.edit.convert_obj(img_obj._now)}).on("mouseleave",function(){jQuery(this).css("display","none")}),"ie"==M9_SET.navigator){var e='<iframe id="_img_setting_box_iframe" style="z-index:10;position:absolute;top:0;left:0;filter:alpha(opacity=0);opacity:0.0;-moz-opacity:0.0;overflow:hidden;border:none;display:none"></iframe>';jQuery("body").append(e)}"ie"!=M9_SET.navigator&&"safari"!=M9_SET.navigator&&jQuery("#img_upload_file").change(function(){jQuery("#edit_img_upload_form").submit()})}},del:function(){jQuery(img_obj._now).fadeOut(300,function(){var i=img_obj._now;jQuery(img_obj._now).remove(),img_obj._now=!1,jQuery("#_img_setting_box").css("display","none"),undo_obj._add(i)})},type_change:function(){for(var i=jQuery(img_obj._now),t=["data-m9-style"],e=m9_mode_obj.order,a=0;a<e.length;a++)t.push("data-m9-"+e[a]+"-style");var o="";if(i.hasClass("m9-img-box")){for(var s=i.attr("class"),n=i.attr("style"),l=i.find("img")[0],a=0;a<t.length;a++)jQuery(l).removeAttr(t[a]);var g=m9_random_id(l);jQuery(l).attr({class:s,style:n}).removeClass("m9-img-box").css({width:"",height:"","max-width":"","max-height":"","min-width":"","min-height":"",position:"",top:"",left:""}),i[0].outerHTML=jQuery(l)[0].outerHTML,img_obj._now=jQuery("#"+g)[0],jQuery("#"+g).removeAttr("id"),o=msg_msg("basic_mode"),jQuery("#_img_set_resize2").css("display","none")}else{if("img"!=i.prop("tagName").toLowerCase())return error_msg(msg_msg("msg_27")),!1;for(var m=get_inline_style(i[0],"width"),d=m9_get_object_size2(i[0],"height"),a=0;a<t.length;a++)i.removeAttr(t[a]);var s=i.attr("class"),n=i.attr("style");i.attr({class:"",style:""}).removeClass("m9-fullimg").css({position:"absolute",top:0,left:0,width:"100%",height:d,"min-width":"100%","min-height":d}),i.wrap('<span class="m9-img-box"></span>'),i.parent().attr({class:s,style:n}).css({width:m,height:d}).addClass("m9-img-box"),img_obj._now=i.parent()[0],img_obj.handle.convert(),o=msg_msg("background_mode"),jQuery("#_img_set_resize2").css("display","inline-block")}var r=msg_msg("msg_28").msg_format(o);error_msg(r),jQuery(img_obj._now).animate({opacity:0},400,function(){jQuery(this).animate({opacity:1},400,function(){jQuery(this).css("opacity","")})})},convert:function(i){var t=jQuery(img_obj._now),e=t.children().eq(0);"IMG"==e.prop("tagName")&&e.wrap("<span></span>");var a=t.find("img"),o=a.parent(),s=m9_get_num(t.css("width")),n=m9_get_num(t.css("height")),l=m9_get_num(a.css("width"));m9_get_num(a.css("height"));var g=m9_get_num(a.css("top")),m=m9_get_num(a.css("left")),d=n/s*100,r=l/s*100,c=g/n*100,h=m/s*100;element_obj.change_css_hash_by_mode(t[0],{height:""}),element_obj.change_css_hash_by_mode(o[0],{width:"","padding-bottom":d+"%"}),"1"==i&&a.attr("style",img_obj._img_before_style),element_obj.change_css_hash_by_mode(a[0],{width:r+"%","min-width":r+"%",height:"","min-height":"",top:c+"%",left:h+"%"})},change_size:function(){jQuery("#_img_setting_box").css("display","none"),resize_obj.stop_callback=function(){jQuery(img_obj._now).hasClass("m9-img-box")?img_obj.handle.convert():"inline-block"==get_inline_style(img_obj._now,"display")&&jQuery(img_obj._now).css("display","")},resize_obj.change(img_obj._now)},view_property:function(){var i=jQuery(img_obj._now),t="a"==i.parent().prop("tagName").toLowerCase()?i.parent()[0]:img_obj._now;createlink_obj.view(t),jQuery("#_img_setting_box").css("display","none")},view_setting:function(){createlink_expend_img_obj.view(img_obj._now),jQuery("#_img_setting_box").css("display","none")},view_upload_form:function(){img_obj._status=1,img_obj.handle.change_img_setting_box(1)},search_file:function(){jQuery("#img_upload_file").click()},change_img_setting_box:function(i){for(var t=0;t<2;t++){var e=t==i?"block":"none";jQuery("#_img_setting_box>div>#_box_"+t).css("display",e)}},upload_cancel:function(){img_obj._status=0,img_obj.handle.change_img_setting_box(0)}},submit:function(i){if(!img_obj.upload.startCallback())return!1;i.stopPropagation(),i.preventDefault();var t=new FormData;t.append("img_upload_file",jQuery("#img_upload_file")[0].files[0]),jQuery.ajax({url:img_obj.settings.upload_url,method:"post",enctype:"multipart/form-data",data:t,processData:!1,contentType:!1,success:function(i){img_obj.upload.completeCallback(i)},error:function(i){error_msg("Upload Error"+(i.statusText&&""!=i.statusText?" : "+i.statusText:""),img_obj.upload.now,5e3),img_obj.upload.finish(img_obj.upload.now)}})},upload:{now:!1,startCallback:function(){return img_obj.upload.now=img_obj._now,!!img_obj.upload.file_name_check(jQuery("#img_upload_file").val())&&(m9_layer_position("m9_ajax_loading",img_obj.upload.now),jQuery("#m9_ajax_loading").fadeIn(300),!0)},completeCallback:function(i,t){t||(t=img_obj.upload.now),img_obj._status=0,jQuery("#_img_setting_box,#m9_ajax_loading").css("display","none");var e=(i=jQuery.trim(i)).split("|"),a=e[3]+"/"+e[1];if("exist"!=e[0]&&""!=e[0])return img_obj.upload.error(i),!1;var o=new Image;o.onload=function(){img_obj.upload.complete_doing(a,t)},o.src=a},complete_doing:function(i,t){var e,a=t,o=a;if(jQuery("#_img_setting_box").css({display:"none"}),jQuery(a).hasClass("m9-img-box")){var e=jQuery(a).find("img")[0];o=a,undo_obj._add(o),element_obj.change_attr_by_mode(e,"src",i);var s=m9_get_object_size2(o,"width"),n=m9_get_object_size2(o,"height"),l=m9_get_object_size2(e,"width"),g=m9_get_object_size2(e,"height"),m=s/l,d=n/g,r=g*m;r<n?(l*=d,g=n):(l=s,g=r);var c=(n-g)/2+"px",h=(s-l)/2+"px";element_obj.change_css_hash_by_mode(e,{width:l,height:"","min-width":l,"min-height":"",top:c,left:h}),img_obj._now=o,jQuery(o).removeClass("m9-fullimg").css({opacity:0}).addClass("m9-fullimg").animate({opacity:1},function(){jQuery(this).css("opacity",""),img_obj.handle.convert(),img_obj.upload.finish(this)})}else if(jQuery(a).parents(".m9-img-box").length>0){var e=a;o=jQuery(e).parents(".m9-img-box")[0],undo_obj._add(o),element_obj.change_attr_by_mode(e,"src",i);var s=m9_get_object_size2(o,"width"),n=m9_get_object_size2(o,"height"),l=m9_get_object_size2(e,"width"),g=m9_get_object_size2(e,"height"),m=s/l,d=n/g,r=g*m;r<n?(l*=d,g=n):(l=s,g=r);var c=(n-g)/2+"px",h=(s-l)/2+"px";element_obj.change_css_hash_by_mode(e,{width:l,height:"","min-width":l,"min-height":"",top:c,left:h}),img_obj._now=o,jQuery(o).removeClass("m9-fullimg").css({opacity:0}).addClass("m9-fullimg").animate({opacity:1},function(){jQuery(this).css("opacity",""),img_obj.handle.convert(),img_obj.upload.finish(this)})}else undo_obj._add(o),jQuery(o).removeClass("m9-fullimg").css({opacity:0}),element_obj.change_attr_by_mode(o,"src",i),jQuery(o).addClass("m9-fullimg").animate({opacity:1},function(){jQuery(this).css("opacity",""),img_obj.upload.finish(this)})},file_name_check:function(i){var t=Get_FileName(i).split(".")[1].toLowerCase();return"jpg"==t||"jpeg"==t||"gif"==t||"png"==t||"bmp"==t||(alert(msg_msg("msg_29")),!1)},finish:function(i){var t=_get_box_info(i,1);jQuery("#_img_setting_box").css({display:"block",top:t.t,left:t.l,width:t.w,height:t.h}),img_obj.handle.change_img_setting_box(0),"ie"==M9_SET.navigator||"safari"==M9_SET.navigator?jQuery("#img_upload_file")[0].outerHTML='<input type="file" id="img_upload_file" name="img_upload_file" class="" title="Image Upload"  />':jQuery("#img_upload_file").val(""),jQuery("#m9_ajax_loading").css("display","none"),img_obj.upload.now=!1,undo_obj._add(i)},error:function(response){var _str,UF_Obj={total_num:"limit",total_size:"limit"},_error_msg="",FileInfos=response.split("|");if("exist"==FileInfos[0])_error_msg=msg_msg("msg_30").msg_format(FileInfos[1]);else if("number"==FileInfos[0]){var Ctotal=UF_Obj.total_num;_error_msg=msg_msg("msg_31").msg_format(Ctotal)}else if("size"==FileInfos[0]){var Ctotal=UF_Obj.total_size,last_filename=FileInfos[1].split("/"),FileName=eval("last_filename["+(last_filename.length-1)+"]"),Fsize=Get_File_Size(FileInfos[2]);_error_msg=msg_msg("msg_32").msg_format(FileName,Get_File_Size(FileInfos[2]),Get_File_Size(Ctotal))}else if("type"==FileInfos[0]){var last_filename=FileInfos[1].split("/"),FileName=eval("last_filename["+(last_filename.length-1)+"]"),finfo=FileName.split(".");_error_msg=msg_msg("msg_33").msg_format(finfo[1])}else"error"==FileInfos[0]&&(_error_msg=FileInfos[1]);return error_msg("Upload Error"+(_error_msg&&""!=_error_msg?" : "+_error_msg:""),img_obj.upload.now,5e3),img_obj.upload.finish(img_obj.upload.now),!1}}};
var drop_upload_obj={_taget:null,int:function(o){0==jQuery("#img_drag_box").length&&(jQuery('<div id="img_drag_box" style="position:absolute;display:none"><div></div></div>').appendTo("body"),jQuery("#img_drag_box").on("dragover",function(o){o.stopPropagation(),o.preventDefault()}).on("drop",function(o){o.stopPropagation(),o.preventDefault();var a=[].slice.call(o.originalEvent.dataTransfer.files).sort(function(o,a){var t=o.name.toLowerCase(),e=a.name.toLowerCase();return t<e?-1:t>e?1:0});if(!(a.length<1)){jQuery("#img_drag_box").css("display","none");var t=drop_upload_obj.search_node(drop_upload_obj._target),e=0,n=[];t.each(function(o){this==drop_upload_obj._target&&(e=o),n.push(this)});var r=[];r=e>0?(r=n.splice(e,n.length)).concat(n):n;for(var i=0;i<a.length;i++)if(!img_obj.upload.file_name_check(a[i].name))return!1;for(var i=0;i<a.length;i++)r[i]&&(img_obj._now=r[i],img_obj.upload.now=img_obj._now,drop_upload_obj.muti_upload(a[i],r[i]))}})),jQuery(o).on("dragover",function(o){var a=jQuery(o.target);if("img"==a.prop("tagName").toLowerCase()){drop_upload_obj._target=a[0];var t=a;a.parents(".m9-img-box").length>0&&(t=a.parents(".m9-img-box"));var e=t.css("width"),n=t.css("height"),r=m9_getRealOffsetLeft(t[0]),i=m9_getRealOffsetTop(t[0]);jQuery("#img_drag_box").css({width:e,height:n,top:i,left:r,display:""})}else jQuery("#img_drag_box").css("display","none")})},search_node:function(o){var a=jQuery(o),t=a.parents("._one-row"),e=t.attr("id");e||(e=m9_random_id(t[0]));var n=[];return a.parentsUntil("#"+e).each(function(){var o=jQuery(this).prop("tagName");n.push(o)}),jQuery("#"+e+">"+n.reverse().join(">")+">img")},muti_upload:function(o,a){var t=new FormData;t.append("img_upload_file",o),jQuery.ajax({url:img_obj.settings.upload_url,method:"post",enctype:"multipart/form-data",data:t,processData:!1,contentType:!1,success:function(o){drop_upload_obj.upload_callback(o,a)},error:function(o){error_msg("Upload Error"+(o.statusText&&""!=o.statusText?" : "+o.statusText:""),img_obj.upload.now,3e3)}})},upload_callback:function(o,a){img_obj._now=a,img_obj.upload.now=img_obj._now,img_obj.upload.completeCallback(o,a)}};
var grid_obj={_id:!1,_grids:".m9-grid-1,.m9-grid-2,.m9-grid-3,.m9-grid-4,.m9-grid-5,.m9-grid-6",_columns:".m9-column-1,.m9-column-2,.m9-column-3,.m9-column-4,.m9-column-5,.m9-column-6",_ignore:"#editMenu-grid,.editMenu-column,#m9_alt_view1,._setting_area_box",_grid_before:!1,_column_before:!1,_int_count:0,get_div_kind_num:function(i){var e=i.split("-");return 1*e[e.length-1]},int:function(i){this._id=i;var e=this.html.parser(jQuery("#"+i).html());if(jQuery("#"+i).html(e),jQuery("#"+i).find(this._grids).each(function(){grid_obj.set_one_grid(this)}),!(this._int_count>0)){if(this._int_count++,0==jQuery("#editMenu-grid").length){var n='<div id="editMenu-grid" class="handle_height _m9editor" style="display:none"><ul><li><a onclick="grid_obj.mode.column.int();return false;" alt="'+msg_msg("column_set")+'" title="'+msg_msg("msg_72")+'" data-alt-no="1" class="edit-btn icon-columns-set hd-fix"></a></li><li><a onclick="grid_obj.spacing.change();return false;" alt="'+msg_msg("set_type")+'" title="'+msg_msg("msg_4")+'" data-alt-no="1" class="edit-btn icon-cellspacing hd-fix"></a></li><li><a onclick="grid_obj.column.add_column();return false;" alt="'+msg_msg("add_column")+'" title="'+msg_msg("msg_5")+'" data-alt-no="1" class="edit-btn icon-plus-right hd-copy"></a></li><li><a onclick="grid_obj.column.add_grid();return false;" alt="'+msg_msg("add_grid")+'" title="'+msg_msg("msg_6")+'" data-alt-no="1" class="edit-btn icon-plus-bottom hd-copy"></a></li></ul></div>';jQuery("body").append(n)}this.html.int(),jQuery(document).on("mousedown",function(i){var e=m9_get_evt_obj(i);jQuery(e).parents(".m9_editor_box").length>0||jQuery(e).parents(grid_obj._ignore).length>0||jQuery(e).is(grid_obj._ignore)?(grid_obj.setting.set(e),m9_obj_set_data(grid_obj._id,"edit_on",1)):(grid_obj.setting.reset(),m9_obj_set_data(grid_obj._id,"edit_on",0))})}},setting:{set:function(i){var e=jQuery(i);if(0==e.parents(grid_obj._ignore).length&&!e.is(grid_obj._ignore)){var n=e.is(grid_obj._grids)?i:e.parents(grid_obj._grids)[0],o=e.is(grid_obj._columns)?i:e.parents(grid_obj._columns)[0];o||(o=jQuery(n).find(grid_obj._columns).last()[0]);var t=jQuery(o);grid_obj._grid_before&&grid_obj._column_before!=o&&(jQuery(grid_obj._grid_before).removeClass("grid-line-on").find(grid_obj._columns).removeClass("grid-line-on"),obj_fadeOut(jQuery(grid_obj._column_before).find(".editMenu-column")[0])),jQuery(n).addClass("grid-line-on").find(grid_obj._columns).addClass("grid-line-on");var d=m9_mode_obj.get(),r=grid_obj.get_name(n),s=grid_obj.get_div_kind_num(r);if(""==d){var l=s<=1?"none":"";jQuery(t.find(".editMenu-column")[0]).find(".hd-mover,.hd-fix,.hd-remove").css("display",l),obj_fadeIn(t.find(".editMenu-column")[0]),jQuery("#editMenu-grid .icon-columns-set").css("display","none"),jQuery("#editMenu-grid .hd-copy").css("display",""),t.hasClass("_not-copy")?t.find(".hd-copy").addClass("locked"):t.find(".hd-copy").removeClass("locked")}else{var l=s<=1?"none":"";jQuery("#editMenu-grid .icon-columns-set").css("display",l),jQuery("#editMenu-grid .hd-copy").css("display","none")}var a=_get_box_info(n,1),g=a.t,m=a.w2+a.l2+"px";jQuery("#editMenu-grid").css({top:g,left:m}),obj_fadeIn("#editMenu-grid"),grid_obj._grid_before=n,grid_obj._column_before=o}},reset:function(i){obj_fadeOut(".editMenu-column"),obj_fadeOut("#editMenu-grid"),jQuery(".grid-line-on").removeClass("grid-line-on")}},column:{_hd_html:'<div class="editMenu-column handle_width _m9editor no" style="display:none"><div><ul><li><a onclick="return false;" alt="'+msg_msg("set_order")+'" title="'+msg_msg("msg_3")+(m9_ie_var<=7?"(1초간)":"")+'" data-alt-no="1" class="edit-btn icon-arrow-width hd-mover _column-hd-mover ui-sortable-handle"></a></li><li><a onclick="grid_obj.column.copy(this);return false;" title="'+msg_msg("copy")+'" data-alt-no="1" class="edit-btn icon-plus hd-copy"></a></li><li><a onclick="grid_obj.column.widen();return false;" title="'+msg_msg("widen")+'" data-alt-no="1" class="edit-btn icon-widen hd-fix"></a></li><li><a onclick="grid_obj.column.narrow();return false;" title="'+msg_msg("narrow")+'" data-alt-no="1" class="edit-btn icon-narrow hd-fix"></a></li><li><a onclick="grid_obj.html.view();return false;" title="'+msg_msg("fix_html")+'" data-alt-no="1" class="edit-btn icon-tag hd-html"><i class="edit-btn-popup-2"></i></a></li><li><a onclick="grid_obj.column.del(this);return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn icon-del hd-remove"></a></li></ul></div></div>',add_grid:function(){var i='<div class="m9-grid-block">\n<div class="m9-grid-1">\n	<div class="m9-column-1">\n		<p class="placeholder_txt">'+msg_msg("msg_36")+"</p>\n	</div>\n</div>\n</div>";jQuery(i).insertAfter(jQuery(grid_obj._grid_before).parents(".ui-draggable")[0]).css("display","none").fadeIn(300,function(){editor.mode.adjust_display(this),builder.setting.check()})},add_column:function(){var i,e=grid_obj.get_name(grid_obj._grid_before);if(grid_obj.get_div_kind_num(e)+1>6){var n=msg_msg("msg_55").msg_format("6");return error_msg(n),!1}jQuery(grid_obj._grid_before).append('\n	<div class="m9-column-1 m9-column-last grid-line-on" style="display:none">\n		<p class="placeholder_txt">'+msg_msg("msg_36")+"</p>\n	</div>\n"),grid_obj.reset_grid(),grid_obj.set_one_grid(grid_obj._grid_before),jQuery(grid_obj._grid_before).find(grid_obj._columns).last().fadeIn(300,function(){undo_obj._add(this)})},copy:function(i){if(jQuery(i).hasClass("locked"))return error_msg(msg_msg("msg_69")),!1;var e=grid_obj.get_name(grid_obj._grid_before),n=grid_obj.get_div_kind_num(e),e=grid_obj.column.get_name(grid_obj._column_before),o=grid_obj.get_div_kind_num(e);if(n+o>6){var t=msg_msg("msg_55").msg_format("6");return error_msg(t),!1}M9ALT.hidden(i);var d=jQuery(grid_obj._column_before).clone(),r=jQuery(grid_obj._column_before);r.after(d).next().css("display","none"),grid_obj.reset_grid(),r.next().fadeIn(300,function(){jQuery(this).next().before("\n	"),undo_obj._add(this)}),d.find(".selected_tag").removeClass("selected_tag"),d.find(".grid-line-on").removeClass("grid-line-on"),d.find(".editMenu-column").css("display","none"),process_M9ALT(d[0]),grid_obj.setting.set(editor._now)},del:function(i){var e=grid_obj.get_name(grid_obj._grid_before),n=grid_obj.get_div_kind_num(e);if(M9ALT.hidden(i),n<=1)return error_msg(msg_msg("msg_56")),!1;RestoreSelection(storedSelections),get_container();var o=get_is_parents(i,"._one-column",".m9_editor_box");jQuery(o).addClass("_delete_block"),jQuery(Editor_Container).parents("._delete_block").length>0&&(storedSelections=!1),jQuery(grid_obj._column_before).fadeOut(300,function(){jQuery(this).remove(),grid_obj.reset_grid(),undo_obj._add(this)})},widen:function(){var i=grid_obj.get_name(grid_obj._grid_before),e=grid_obj.get_div_kind_num(i),n=grid_obj.column.get_name(grid_obj._column_before),o=grid_obj.get_div_kind_num(n);return(1!=e||1!=o)&&(e+1>6?(error_msg(msg_msg("msg_57")),!1):void(jQuery(grid_obj._column_before).removeClass(n).addClass("m9-column-"+(o+1)),grid_obj.reset_grid(),undo_obj._add(grid_obj._column_before)))},narrow:function(){var i=grid_obj.column.get_name(grid_obj._column_before),e=grid_obj.get_div_kind_num(i);if(e<=1)return error_msg(msg_msg("msg_58")),!1;jQuery(grid_obj._column_before).removeClass(i).addClass("m9-column-"+(e-1)),grid_obj.reset_grid(),undo_obj._add(grid_obj._column_before)},get_name:function(i){var e=jQuery(i).attr("class");return String(e.match(/m9\-column\-\d/))}},html:{int:function(){if(0==jQuery("#column-html").length){var i='<div id="column-html" class="html-win curtain-box"><textarea id="column_html_textarea" title="'+msg_msg("fix_html")+'"></textarea><div class="btn_box"><div class="_full"><button onclick="builder.html.fullscreen(this)" data-alt-no="1" class="edit-btn icon-arrows-alt hd-fix no">'+msg_msg("msg_22")+'</button></div><div><button onclick="grid_obj.html.change()" class="curtain-btn editor-btn-yes">OK</button></div></div></div>';jQuery("body").append(i)}},view:function(){remove_m9_ani_tag(grid_obj._column_before);var i=grid_obj._column_before.outerHTML;i=grid_obj.html.convert(i),html_obj.view("grid_obj.html.change",i)},convert:function(i){jQuery("body").append('<div id="_edit_covert_box" style="display:none"></div>');var e=jQuery("#_edit_covert_box");return e[0].innerHTML=i,e.find(grid_obj._columns).each(function(){this.outerHTML=jQuery(this).find("._one-in-column").html()}),m9_editor_convert(e[0]),i=e.html(),e.remove(),i=(i=remove_empty_line(i)).replace(/\u200C/g,""),i=jQuery.trim(i)},change:function(i){var e=jQuery(grid_obj._column_before);e.find("._one-in-column").html("\n\n"+i+"\n\n	");var n=e.find("._one-in-column");0==n.children().length&&n.html("<p>"+n.html()+"</p>"),ani_type_obj.checking(grid_obj._column_before),undo_obj._add(grid_obj._column_before)},parser:function(i){var e="_edit_covert_box2";jQuery("body").append('<div id="'+e+'" style="display:none">'+i+"</div>");var n="__this_is__m9grid_separator__"+Math.round(1e5*Math.random()),o=[];jQuery("#"+e).find(grid_obj._grids).each(function(i){jQuery(this).parent(".m9-grid-block").length>0?(o[i]=jQuery(this).parent(".m9-grid-block")[0].outerHTML,jQuery(this).parents(".m9-grid-block")[0].outerHTML=n):(o[i]=this.outerHTML,this.outerHTML=n)});for(var i=jQuery("#"+e).html(),t=i.split(n),d=/\S/g,r="",s=0;s<t.length;s++)d.test(t[s])&&(r+='<div class="m9-grid-block">\n<div class="m9-grid-1">\n	<div class="m9-column-1">\n'+jQuery.trim(t[s])+"\n	</div>\n</div>\n</div>\n\n\n"),o[s]&&(r+=""+jQuery.trim(o[s])+"\n\n\n");return jQuery("#"+e).remove(),jQuery.trim(r)}},get_name:function(i){var e=jQuery(i).attr("class");return e?String(e.match(/m9\-grid\d?\-\d/)):""},spacing:{keys:["m9-spacing-0","m9-spacing-1","m9-spacing-2"],get_from_to:function(i){for(var e=m9_mode_obj.get(),n=this.get(i),o="",t=-1,d=0;d<this.keys.length;d++){var r=""==e?this.keys[d]:e+"-"+this.keys[d];r==n&&(t=d)}var s=t+1;if(s>this.keys.length-1)o="";else{var r=""==e?this.keys[s]:e+"-"+this.keys[s];o=r}return[n,o]},get:function(i){for(var e=m9_mode_obj.get(),n=0;n<this.keys.length;n++){var o=""==e?this.keys[n]:e+"-"+this.keys[n];if(jQuery(i).hasClass(o))return o}return""},change:function(){var i=this.get_from_to(grid_obj._grid_before);""!=i[0]&&jQuery(grid_obj._grid_before).removeClass(i[0]),""!=i[1]&&jQuery(grid_obj._grid_before).addClass(i[1]),M9ALT.hidden(m9_get_evt_obj(event));var e=""!=i[0]?i[0]:"null";e+=" → ",error_msg(e+=""!=i[1]?i[1]:"null")}},set_one_grid:function(i){var e=jQuery(i);if(e.parents(".m9-grid-block").length>0){var n=e.parents(".m9-grid-block")[0];jQuery(n).parent().hasClass("_one-row")||(n.outerHTML='<div class="_one-row">'+n.outerHTML+"</div>")}else e.parent().hasClass("_one-row")||(i.outerHTML='<div class="_one-row">'+i.outerHTML+"</div>");e.find(grid_obj._columns).each(function(){jQuery(this).children().hasClass("_one-column")||(this.innerHTML='<div class="_one-column"><div class="_one-in-column">'+this.innerHTML+"</div></div>");var i=jQuery(this);0==i.find("._one-in-column").children().length&&i.find("._one-in-column").html("<div>"+i.find("._one-in-column").html()+"</div>"),0==i.find(".editMenu-column").length&&(i.find("._one-column").append(grid_obj.column._hd_html),process_M9ALT(i.find(".editMenu-column")[0]))}),e.hasClass("ui-sortable")||e.sortable({axis:"x",cursor:"move",distance:5,delay:200,tolerance:"pointer",handle:"._column-hd-mover",start:function(i,e){M9ALT.hidden(i.srcElement),editor.event_doing.set(1)},stop:function(i,e){editor.event_doing.set(0),grid_obj.reset_grid(),undo_obj._add(this)}})},reset_grid:function(){var i=this.get_name(this._grid_before),e=i.split("-"),n=1*e[e.length-1],o=jQuery(this._grid_before).children().length,t=0;if(jQuery(this._grid_before).children().each(function(i){var e=grid_obj.column.get_name(this);t+=grid_obj.get_div_kind_num(e);var n=jQuery(this);1==o?n.removeClass("m9-column-first").removeClass("m9-column-last"):0==i?n.removeClass("m9-column-last").addClass("m9-column-first"):i==o-1?n.removeClass("m9-column-first").addClass("m9-column-last"):n.removeClass("m9-column-first").removeClass("m9-column-last")}),t!=n){var d=e[0]+"-"+e[1]+"-"+t;jQuery(this._grid_before).removeClass(i).addClass(d)}jQuery(this._grid_before).find(this._columns).each(function(){jQuery(this).css({width:"","min-width":"auto","z-index":""}),jQuery(this).css({position:"",left:"",top:""})})},mode:{_now:!1,column:{_kind:[20,25,33,50,66,80,100],int:function(){if(""==m9_mode_obj.get())return alert(msg_msg("msg_70")),!1;if(jQuery("._cols-setting-area").length>0)return alert(msg_msg("msg_71")),!1;grid_obj.mode._now=grid_obj._grid_before;var i=jQuery(grid_obj._grid_before).find(grid_obj._columns);jQuery(grid_obj._grid_before).append('<div class="grid-mode-setting-box"><button data-alt-no="1" class="grid-mode-btn editor-btn-yes _editor_btn" onclick="grid_obj.mode.column.compelete();return false">'+msg_msg("fix")+"</button></div>"),i.each(function(){for(var i='<div class="_cols-setting-area"><div><div><select onchange="grid_obj.mode.column.change(this);return false" class="_w_kind"><option value=""></option>',e=grid_obj.mode.column._kind,n=0;n<e.length;n++){var o=grid_obj.mode.column.get(this),t=e[n]==o?"selected":"";i+='<option value="'+e[n]+'" '+t+">"+e[n]+"%</option>"}i+="</select>",i+='<select onchange="grid_obj.mode.margin.change(this);return false" class="_m_kind"><option value=""></option>';for(var e=grid_obj.mode.margin._kind,n=0;n<e.length;n++){var d=grid_obj.mode.margin.get(this),t=e[n]==d?"selected":"",r="rm"==e[n]?"margin-right":"margin-left";i+='<option value="'+e[n]+'" '+t+">"+r+"</option>"}i+="</select>",i+="</div></div></div>",jQuery(this).find("._one-column").append(i)})},compelete:function(){jQuery(grid_obj.mode._now).find(".grid-mode-setting-box").remove(),jQuery(grid_obj.mode._now).find("._cols-setting-area").remove(),grid_obj.mode._now=!1},change:function(i){var e=m9_mode_obj.get(),n=jQuery(i).val(),o=jQuery(i).parents(grid_obj._columns);this.remove(o),""!=n&&jQuery(i).parents(grid_obj._columns).addClass(_class=e+"-width-"+n),grid_obj.mode.margin.optimum(o[0])},get:function(i){for(var e=m9_mode_obj.get(),n=jQuery(i),o=grid_obj.mode.column._kind,t=0;t<o.length;t++)if(n.hasClass(e+"-width-"+o[t]))return o[t];return""},remove:function(i){for(var e=m9_mode_obj.get(),n=jQuery(i),o=0;o<this._kind.length;o++)n.removeClass(e+"-width-"+this._kind[o])}},margin:{_kind:["rm","lm"],change:function(i){var e=m9_mode_obj.get(),n=jQuery(i).val(),o=jQuery(i).parents(grid_obj._columns);this.remove(o),""!=n&&jQuery(i).parents(grid_obj._columns).addClass(_class=e+"-"+n)},get:function(i){for(var e=m9_mode_obj.get(),n=grid_obj.mode.margin._kind,o=jQuery(i),t=0;t<n.length;t++){var d=e+"-"+n[t];if(o.hasClass(d))return n[t]}return""},remove:function(i){for(var e=m9_mode_obj.get(),n=jQuery(i),o=0;o<this._kind.length;o++)n.removeClass(e+"-"+this._kind[o])},optimum:function(i){for(var e=jQuery(i).parents(grid_obj._grids)[0],n=jQuery(e).find(grid_obj._columns),o=!1,t=0,d=0;d<n.length;d++)if(n[d]==i){t=d;var r=d+1;n[r]&&(o=n[r]);break}for(var s=m9_mode_obj.get(),l=0,d=0;d<t;d++)l+=grid_obj.mode.column.get(n[d]);var a=l%100;if(0==a||99==a)this.remove(i),jQuery(i).addClass(s+"-rm").find("._m_kind").val("rm");else{var g=(a+grid_obj.mode.column.get(n[t]))%100;0==g||99==g?(this.remove(i),jQuery(i).addClass(s+"-lm").find("._m_kind").val("lm"),o&&(this.remove(o),jQuery(o).addClass(s+"-rm").find("._m_kind").val("rm"))):(this.remove(i),jQuery(i).find("._m_kind").val(""))}if(this.remove(n[0]),jQuery(n[0]).addClass(s+"-rm").find("._m_kind").val("rm"),!(0==g||99==g)){var m=n.length-1;this.remove(n[m]),jQuery(n[m]).addClass(s+"-lm").find("._m_kind").val("lm")}jQuery(i).hasClass(s+"-width-100")&&(this.remove(i),jQuery(i).find("._m_kind").val(""))}}}};
var google_map_obj={_selected:!1,_now:!1,ajax_url:"//app.mong9.com/index.cgi?page_code=ajax&code=editor_get_google_map_address",int:function(o){if(ani_type_obj.possible_type.google_map=1,google_map_obj.handle.int(),0==jQuery("#editWindow-googleMap").length){var e='<ul class="m9a-float-2"><li><ul class="_edit-list-1"><li><dl class="_edit-dl-1"><dt><label for="_google_address_search">'+msg_msg("find_coor")+'</dt><dd><div class="counter-control-box"><span class="counter-control"><span class="box-input style-2"><input type="text" id="_google_address_search" placeholder="'+msg_msg("msg_79")+'" value="" onkeydown="google_map_obj.handle.check_enter(event)" class="_drag-btn-3" /></span><span class="box-btn"><button onclick="google_map_obj.get_ajax_address();return false;" class="input-button _drag-btn-3"></button></span></span></div></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_google_title">'+msg_msg("print_place")+'</dt><dd><input type="text" id="_google_title" value="" onchange="google_map_obj.preview.change_company();" class="_drag-btn-3" /></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_google_address">'+msg_msg("print_address")+'</dt><dd><input type="text" id="_google_address" value="" onchange="google_map_obj.preview.change_address();" class="_drag-btn-3" /></dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_google_x_pos">'+msg_msg("x_coor")+'</dt><dd><input type="text" readonly id="_google_x_pos" value="0" class="readonly" /></dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_google_y_pos">'+msg_msg("y_coor")+'</dt><dd><input type="text" readonly id="_google_y_pos" value="0" class="readonly" /></dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_google_zoom">'+msg_msg("zoom")+'</dt><dd><div class="counter-control-box"><span class="counter-control"><span class="box-btn"><button onmousedown="input_box.plus(\'_google_zoom\',{\'max\':21,min:0},function(){google_map_obj.preview.set_zoom(\'_google_zoom\');})" onmouseup="input_box.stop(\'_google_zoom\');" class="left-button _drag-btn-3 icon2-plus"></button></span><span class="box-input"><input type="text" id="_google_zoom" value="0" onchange="google_map_obj.preview.set_zoom();" class="_drag-btn-3" /></span><span class="box-btn"><button onmousedown="input_box.minus(\'_google_zoom\',{\'max\':21,min:0},function(){google_map_obj.preview.set_zoom(\'_google_zoom\');})" onmouseup="input_box.stop(\'_google_zoom\');" class="right-button _drag-btn-3 icon2-minus"></button></span></span></div></dd></dl></li></ul><button onclick="google_map_obj.change()" class="curtain-btn editor-btn-yes _drag-btn-3">OK</button></li><li><div id="_google_map_preview" class="m9-map-canvas"></div><div class="_google_map_preview_msg">'+msg_msg("msg_63")+'</div></li></ul><span id="_google_address_return" style="display:none"></span>';edit_window_obj.int("editWindow-googleMap",e,msg_msg("map_setting")),jQuery(o).on("mouseover",function(o){var e=o.target,a=jQuery(e),t=!1;if(a.parents(".m9-google_map").length>0?t=a.parents(".m9-google_map")[0]:a.is(".m9-google_map")&&(t=e),t){google_map_obj._now=t;var l=_get_box_info(t,1);jQuery("#_google_map_setting_box>div").css("display","none"),jQuery("#_google_map_setting_box").css({display:"block",top:l.t,left:l.l,width:l.w,height:l.h}),"ie"==M9_SET.navigator&&jQuery("#_google_map_setting_box_iframe").css({display:"block",top:l.t,left:l.l,width:l.w,height:l.h})}else a.is("#_google_map_setting_box")||0!=a.parents("#_google_map_setting_box").length||(jQuery("#_google_map_setting_box").css({display:"none"}),"ie"==M9_SET.navigator&&jQuery("#_google_map_setting_box_iframe").css({display:"none"}))})}},get_ajax_address:function(){var o=jQuery("#_google_address_search").val();m9_ajax_load_contents((M9_SET.map_ajax_url?M9_SET.map_ajax_url:google_map_obj.ajax_url)+"&address="+o,"_google_address_return",{whenever:!0},function(){LatLng=jQuery("#_google_address_return").text().split(","),jQuery("#_google_address_return").text(""),jQuery("#_google_address_search").val(""),""==jQuery("#_google_title").val()&&jQuery("#_google_title").val(msg_msg("print_place")),jQuery("#_google_address").val(o),jQuery("#_google_x_pos").val(LatLng[1]),jQuery("#_google_y_pos").val(LatLng[0]),jQuery("#_google_zoom").val(16);var e=jQuery("#_google_title").val(),a=jQuery("#_google_address").val(),t=1*jQuery("#_google_x_pos").val(),l=1*jQuery("#_google_y_pos").val(),g=1*jQuery("#_google_zoom").val(),n=jQuery("#_google_map_preview").data("google_map"),s=new google.maps.LatLng(l,t);n.marker.setPosition(s),n.map.setZoom(g);var i=n.marker.getPosition();n.map.setCenter(i),jQuery("#_google_map_preview").find(".m9-map-head").text(e),jQuery("#_google_map_preview").find(".m9-map-content").text(a)})},fix_google_map:function(o){o||(o=google_map_obj._now),google_map_obj._selected=o;var e={},a=jQuery(o).attr("data-m9-execute");if(a)for(var t=a.split(";"),l=0;l<t.length;l++){var g=t[l],n=m9_get_property(g);if("google_map"==n[0]){var n=m9_get_property(g);e=n[1]}}jQuery("#_google_address_search").val(""),jQuery("#_google_title").val(e.title),jQuery("#_google_address").val(e.address),jQuery("#_google_x_pos").val(e.x),jQuery("#_google_y_pos").val(e.y),jQuery("#_google_zoom").val(e.zoom),M9GOOGLE_MAP.int(jQuery("#_google_map_preview")[0],n,1),m9_layer_position("editWindow-googleMap",o,"up"),edit_window_obj.view("editWindow-googleMap")},change:function(){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;var o=google_map_obj._selected,e=jQuery(o).data("google_map"),a=jQuery("#_google_title").val(),t=jQuery("#_google_address").val(),l=1*jQuery("#_google_x_pos").val(),g=1*jQuery("#_google_y_pos").val(),n=1*jQuery("#_google_zoom").val(),s=new google.maps.LatLng(g,l);e.marker.setPosition(s),e.map.setZoom(n);var i=e.marker.getPosition();e.map.setCenter(i),jQuery(o).find(".m9-map-head").text(a),jQuery(o).find(".m9-map-content").text(t),jQuery(o).attr("data-m9-execute","google_map({'x':"+l+",'y':"+g+",'zoom':"+n+",'address':'"+t+"','title':'"+a+"'})"),undo_obj._add(o),obj_fadeOut("#editWindow-googleMap")},preview:{set_zoom:function(){var o=jQuery("#_google_map_preview").data("google_map"),e=1*jQuery("#_google_zoom").val();o.map.setZoom(e)},change_company:function(){var o=jQuery("#_google_title").val();jQuery("#_google_map_preview .m9-map-head").html(o)},change_address:function(){var o=jQuery("#_google_address").val();jQuery("#_google_map_preview .m9-map-content").html(o)}},handle:{int:function(){if(0==jQuery("#_google_map_setting_box").length){var o='<div id="_google_map_setting_box" class="_setting_area_box" style="display:none;"><div><a onclick="google_map_obj.handle.change_size();return false;" title="'+msg_msg("fix_size")+'" data-alt-no="1" class="edit-btn _drag-btn-3 icon-arrows-alt hd-fix no"></a><a onclick="google_map_obj.handle.change_map();return false;" title="'+msg_msg("map_setting")+'" data-alt-no="1" class="edit-btn-2 _drag-btn-3 icon-map hd-copy no"><i class="edit-btn-popup-2"></i></a><a href="#" onclick="google_map_obj.handle.del();return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn _drag-btn-3 icon-del hd-remove"></a></div></div>';if(jQuery("body").append(o),jQuery("#_google_map_setting_box").on("click",function(){jQuery(this).children().css("display",""),element_obj.edit.convert_obj(google_map_obj._now)}).on("mouseleave",function(){jQuery(this).css("display","none")}),"ie"==M9_SET.navigator){var o='<iframe id="_google_map_setting_box_iframe" style="z-index:10;position:absolute;top:0;left:0;filter:alpha(opacity=0);opacity:0.0;-moz-opacity:0.0;overflow:hidden;border:none;display:none"></iframe>';jQuery("body").append(o)}}},del:function(){jQuery(google_map_obj._now).fadeOut(300,function(){jQuery(this).remove(),google_map_obj._now=!1,jQuery("#_google_map_setting_box").css("display","none"),undo_obj._add(this)})},change_size:function(){google_map_obj._selected=google_map_obj._now,jQuery("#_google_map_setting_box").css("display","none"),resize_obj.stop_callback=function(){var o=jQuery(google_map_obj._selected).data("google_map"),e=o.map.getCenter();google.maps.event.trigger(o.map,"resize"),o.map.setCenter(e)},resize_obj.change(google_map_obj._now)},change_map:function(){google_map_obj.fix_google_map()},check_enter:function(o){if(13===(o.keyCode||o.which))return google_map_obj.get_ajax_address(),!1}},remove_setting:function(o){jQuery(o).find(".m9-google_map").each(function(){jQuery(this).html(""),jQuery(this).css({transform:"","background-color":"",position:"",overflow:""})})}};
var color_obj={colors:["#000000","#db2828","#fbbd08","#b5cc18","#16ab39","#2185d0","#6435c9","#a333c8","#e03997"],_selected:!1,_callback:!1,set:function(o,c){this._callback=c,""==o&&(o="transparent"),jQuery("#_color_picker").minicolors("value",{color:o,opacity:1})},select:function(o){""==(o=color_obj_func.RGB2HEX(o))&&(o="transparent"),jQuery("#_color_picker").minicolors("value",{color:o,opacity:1})},callback:function(o){this._callback&&this._callback(o)},change_preview:function(o){jQuery("#_picker_color_preview").css("background-color",o),jQuery("#_picker_color").val(o)},get_temp_color:function(){var o=m9_getCookie("_color_temp"),c=[];o&&(c=o.split("|"));for(var l=0;l<7;l++){var r="_temp_color_"+l;c[l]?jQuery("#"+r).replaceWith('<a href=#" id="'+r+'" onclick="color_obj.select(\''+c[l]+'\');return false;" style="background-color:'+c[l]+";border-color:"+c[l]+'"></a>'):jQuery("#"+r).replaceWith('<a id="'+r+'"></a>')}},save:function(){var o=jQuery("#_picker_color").val();if(""!=(o=o.toLowerCase())&&"#ffffff"!=o&&"#fff"!=o&&"white"!=o&&"transparent"!=o&&"#000000"!=o&&"#000"!=o){var c=m9_getCookie("_color_temp"),l=[];c&&(l=c.split("|"));for(var r=[o],e=0;e<l.length;e++)l[e]!=o&&r.push(l[e]);r.length>7&&(r.length=7);var t=new Date;t.setDate(t.getDate()+365),m9_setCookie("_color_temp",r.join("|"),t),this.get_temp_color()}edit_window_obj.close("editWindow-color")},int:function(){if(0==jQuery("#editWindow-color").length){var o='<div class="box"><div id="_color_picker_select_box"><div class="editor-line"></div><div style="padding:2px 0"><input type="radio" name="_editor_color_target" id="color_target_radio0" value="color" checked><label for="color_target_radio0">'+msg_msg("text_color")+'</label> <input type="radio" name="_editor_color_target" id="color_target_radio1" value="backgroundColor"><label for="color_target_radio1">'+msg_msg("bg_color")+"</label> </div></div></div>",c=[0,7,10,12,13,14];o+='<div id="color"><div class="color-box1">',o+='<ul class="color-btn"><li><a href="#" onclick="color_obj.select(\'\');return false;" class="color-btn-none"></a></li><li><a href="#" onclick="color_obj.select(\'#ffffff\');return false;" style="background:#fff"></a></li>';for(var l=0;l<7;l++)o+='<li><a href="#" id="_temp_color_'+l+'" onclick="color_obj.select(jQuery(this).css(\'background-color\'));return false;"></a></li>';o+="</ul>";for(var l=0;l<9;l++){o+='<ul class="color-btn-col">';for(var r=color_obj_func.color_step(this.colors[l],"#ffffff",15),e=0;e<6;e++){var t=c[e];o+='<li><a href="#" onclick="color_obj.select(\''+r[t]+'\');return false;" style="background-color:'+r[t]+";border-color:"+r[t]+'"></a></li>'}o+="</ul>"}o+="</div>",o+='<div class="color-box2"><input type="text" id="_color_picker" class="form-control demo" data-inline="true" data-opacity="1" value="#ffffff"></div>',o+='<div class="color-box3"><div class="counter-control-box"><span class="counter-control"><span class="box-btn minicolors-sprite color-bg-box"><span id="_picker_color_preview" class="color-bg"></span></span><span class="box-input"><input type="text" id="_picker_color" onchange="color_obj.select(this.value)" value="" /></span><span class="box-btn"><button href="#" onclick="color_obj.save();return false;" class="color-button"></button></span></span></div></div>',o+='</div><input type="hidden" id="_color_picker_color"><input type="hidden" id="_color_picker_alpha">',edit_window_obj.int("editWindow-color",o,msg_msg("set_color")),color_obj.get_temp_color(),jQuery("#_color_picker").minicolors({inline:"true",opacity:"true",change:function(o,c){var l=o;c<1&&(l=color_obj_func.HEX2RGBA(l,c)),jQuery("#_color_picker_color").val(o),jQuery("#_color_picker_alpha").val(c),color_obj.callback(l),color_obj.change_preview(l)}})}},change_by_input:function(){var o=jQuery("#_editor_color_value").val();color_obj.over(o),color_obj.close()},change:function(o){RestoreSelection(color_obj._selected);var c=get_container(),l=m9_get_radio_value("_editor_color_target");1==c?(document.execCommand("fontSize",!1,"7"),jQuery(document).find("font").each(function(){"7"==jQuery(this).attr("size")&&jQuery(this).removeAttr("size").css(l,o)})):Editor_Container.css(l,o),color_obj._selected=SaveSelection(),RemoveSelection()},_target:!1,functions:{},_now:!1,view:function(o,c,l,r){var e=m9_random_id(o);color_obj.functions[e]||"function"!=typeof c||(color_obj._callback=c),color_obj._now=e,color_obj._selected=SaveSelection(),jQuery("#_color_picker_select_box").css("display",1==l?"block":"none"),m9_layer_position("editWindow-color",r||o,"down"),edit_window_obj.view("editWindow-color")},over:function(o){jQuery("#_editor_color_value").val(o),color_obj.functions[color_obj._now](o)},close:function(){edit_window_obj.close("editWindow-color"),color_obj._now=!1,color_obj._selected=!1}};
var color_obj_func={RGB2HEX:function(r){return""==r?"":r.match(/^#/)||(r=(r=r.toLowerCase()).replace(/ /g,"")).match(/^rgba\(/)?r:(r.match(/^[A-Za-z_]+$/)&&(r=this._get_color_name(r)),b=(r=(r=r.replace(/^rgb\(/,"")).replace(/\)$/,"")).split(","),this.RGB2HEX2(b))},RGB2HEX2:function(r){for(var t="#",e=0;e<r.length;e++)t+=this._dec2hex(r[e]);return t},HEX2RGBA:function(r,t){return r.toLowerCase().match(/^rgba\(/)?r:"rgba("+this.HEX2RGB2(r).join(",")+","+t+")"},HEX2RGB:function(r){return r.toLowerCase().match(/^rgb\(/)?r:"rgb("+this.HEX2RGB2(r).join(",")+")"},HEX2RGB2:function(r){if(3==(r=r.replace(/^#/,"")).length){var t=r.split("");r=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]}for(var e=[r.substr(0,2),r.substr(2,2),r.substr(4,2)],o=[],a=0;a<e.length;a++)o.push(this._hex2dec(e[a]));return o},_T:"0123456789abcdef",_dec2hex:function(r){return this._T.charAt(r>>4)+this._T.charAt(r%16)},_hex2dec:function(r){for(var t;r.toString().length<2;)r="0"+r;return(r=r.toUpperCase()).match(/[^0-9a-fA-F]/i)||(t=parseInt(r,16)),t},_get_color_name:function(r){var t=jQuery("<span></span>");return t.css("background-color",r),r=t.css("background-color"),t.remove(),r},color_step:function(r,t,e){e||(e=5),r=r.toLowerCase(),t=t.toLowerCase(),r.replace(/^#/,""),t.replace(/^#/,"");for(var o=e,a=this.HEX2RGB2(r),n=this.HEX2RGB2(t),c=[],s=0;s<3;s++)c[s]=Math.floor((n[s]-a[s])/o),c[s]>0?c[s]++:c[s]--;var h=[];h.push(r);for(var s=0;s<o-1;s++){for(var u=[],i=0;i<3;i++){u[i]||(u[i]=[]);var f=a[i]+c[i]*s;c[i]<0?f<n[i]&&(f=n[i]):f>n[i]&&(f=n[i]),u[i].push(f)}var l=this.RGB2HEX2(u);h[s]=l}return h.push(t),h}};
var tab_obj={_now:!1,_over:!1,_clicked:!1,_li_now:!1,style_info:{tab:{keys:["m9-tab-1","m9-tab-2","m9-tab-3","m9-tab-4","m9-tab-5"],values:["T1","T2","T3","T4","T5"]},tab_style:{keys:["m9-tab-style-1","m9-tab-style-2","m9-tab-style-3","m9-tab-style-4"],values:["S1","S2","S3","S4"]}},int:function(t){if(t=m9_get_object(t),0==jQuery("#editWindow-tab").length){for(var a in tab_get.tab=[],tab_obj.style_info)style_info[a]=m9_get_vars({},tab_obj.style_info[a]),tab_get.tab.push(a);var n='<ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt>'+msg_msg("fix")+'</dt><dd><ul class="_edit-ul-1"><li><button class="edit-btn-8 _drag-btn-3 icon2-plus" onclick="tab_obj.plus();return false" title="'+msg_msg("copy")+'" data-alt-no="1"></button></li><li><button class="edit-btn-8 _drag-btn-3 icon2-minus" onclick="tab_obj.minus();return false" title="'+msg_msg("delete")+'" data-alt-no="1"></button></li><li><button class="edit-btn-8 _drag-btn-3 icon2-arrow-height" onclick="tab_obj.sortable();return false" title="'+msg_msg("set_order")+'" data-alt-no="1"></button></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("kind")+"</dt><dd>"+get_userbox_class_btn("tab",{onclick_function:"tab_obj.change_class",btn_addClass:"_drag-btn-3"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("style")+"</dt><dd>"+get_userbox_class_btn("tab_style",{onclick_function:"tab_obj.change_class",btn_addClass:"_drag-btn-3"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("slide")+'</dt><dd><span class="check-switch"><input type="checkbox" id="_editor_tab_slide" onclick="tab_obj.change_slide(this.checked)" class="_drag-btn-3"><label for="_editor_tab_slide" class="hidden">use</label></span></dd></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="tab_obj.remove();return false;" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a> <a href="#" onclick="tab_obj.del();return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn-8 icon2-delete"></a></div>';if(edit_window_obj.int("editWindow-tab",n,msg_msg("set_tab")),0==jQuery("#editor-tab-fix").length){var n='<div id="editor-tab-fix" class="handle_width _m9editor no" style="display:none"><a href="#" onclick="tab_obj.view();return false;" class="setting-btn-1">'+msg_msg("set_tab")+"</a></div>";jQuery("body").append(n)}}var o=function(t,a){var n=a,o=t.target,e=jQuery(o);n&&(tab_obj._li_now=!1,e.is("li")?tab_obj._li_now=o:e.parents("li")&&(tab_obj._li_now=e.parents("li")[0]),tab_obj._clicked=o,tab_obj._now=n,tab_obj.get())},e=function(t,a){var n=a;if(n){if("none"!=jQuery("#editWindow-tab").css("display"))return!1;tab_obj._li_now=!1,tab_obj._over=n;var o=jQuery(n).css("width");jQuery("#editor-tab-fix").css("width",o),m9_layer_position("editor-tab-fix",n,"up"),jQuery("#editor-tab-fix").css("display","")}else jQuery("#editor-tab-fix").css("display","none")};editor_selector.set(t,[{_type:"mousedown",_kind:"is_parents",_selector:".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5",_func:o,_ignore:1},{_type:"mouseover",_kind:"is_parents",_selector:".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5",_func:e,_ignore:1}])},view:function(t){t&&(tab_obj._over=t),tab_obj._now=tab_obj._over,jQuery(".selected_tag").removeClass("selected_tag"),jQuery(tab_obj._now).addClass("selected_tag"),tab_obj.get(),m9_layer_position("editWindow-tab",tab_obj._now,"up"),m9_layer_position("editWindow-tab",tab_obj._now,"up",m9_getObject("body")),edit_window_obj.view("editWindow-tab"),jQuery("#editor-tab-fix").css("display","none")},plus:function(){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;if(!tab_obj._li_now){if(tab_obj._now){var t=jQuery(tab_obj._now).find("ul,ol")[0];tab_obj._li_now=jQuery(t).children("li").last()[0],storedSelections=tab_obj._li_now}if(!tab_obj._li_now)return error_msg(msg_msg("msg_34")),!1}var a=jQuery(tab_obj._li_now).children(".m9-tab-btn-on,.m9-tab-btn-off")[0],n=m9_obj_get_data(a,"tab_parent");M9TAB._reset_a_li(tab_obj._li_now);var o=editor._now;editor._now=tab_obj._li_now,editor.handle._same(1),M9TAB._set_a_li(tab_obj._li_now,n);var e=jQuery(editor._now).next()[0];M9TAB._set_a_li(e,n);var i=jQuery(e).find(".m9-tab-btn-on,.m9-tab-btn-off")[0];M9TAB.btn_onclick(i),editor._now=o,tab_obj._li_now=e,undo_obj._add(tab_obj._now)},minus:function(){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;if(!tab_obj._li_now){if(tab_obj._now){var t=jQuery(tab_obj._now).find("ul,ol")[0];tab_obj._li_now=jQuery(t).children("li").last()[0],storedSelections=tab_obj._li_now}if(!tab_obj._li_now)return error_msg(msg_msg("msg_35")),!1}var a=jQuery(tab_obj._now).find("ul,ol")[0],n=0;jQuery(a).children("li").each(function(t){jQuery(this)[0]==tab_obj._li_now&&(n=t)}),n=0==n?1:0,editor._now,editor._now=tab_obj._li_now,editor.handle._del(1),tab_obj._clicked=!1;var o=jQuery(a).children().eq(n)[0],e=jQuery(o).find(".m9-tab-btn-on,.m9-tab-btn-off")[0];tab_obj._li_now=o,M9TAB.btn_onclick(e),undo_obj._add(tab_obj._now)},change_class:function(t,a){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;class_obj.change(tab_obj._now,t,a);var n=jQuery(tab_obj._now).attr("class");if(m9_attrs_history.change(tab_obj._now,"class",n),"tab"==t){var o=jQuery(tab_obj._now).children("ul,ol")[0],e=jQuery(o).find(".m9-tab-btn-on")[0];e._data.tab_parent._tab_now="",M9TAB.btn_onclick(e)}},get:function(){var t=!!this._now&&!!this._now._tab_property&&!!this._now._tab_property.slide&&void 0!=this._now._tab_property.slide;jQuery("#_editor_tab_slide").prop("checked",t);for(var a=0;a<tab_get.tab.length;a++)class_obj.get(this._now,tab_get.tab[a])},remove:function(){for(var t=0;t<tab_get.tab.length;t++)class_obj.remove(this._now,tab_get.tab[t]);jQuery(this._now).addClass("m9-tab-1"),tab_obj.change_slide(!1),jQuery("#_editor_tab_slide").attr("checked",!1),undo_obj._add(this._now)},del:function(){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;undo_obj._add(tab_obj._now),jQuery(tab_obj._now).fadeOut(300,function(){var t=undo_obj.get_obj_for_delete(tab_obj._now);jQuery(this).remove(),tab_obj._now=!1,obj_fadeOut("#editWindow-tab"),undo_obj._add(t)})},change_slide:function(t){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;var a=get_ani_type_info(this._now,"tab");a.slide=t?"down":void 0,set_data_ani_type(this._now,"tab",a),tab_obj.remove_setting_one(this._now),tab_obj.reset_tab(this._now)},reset_tab:function(t){var a=jQuery(t).clone(),n=get_ani_type_info(t,"tab");m9_attrs_history.reset(t);for(var o=jQuery(t).children("ul,ol")[0],e=jQuery(o).children("li"),i=0;i<e.length;i++)M9TAB._reset_a_li(e[i]);jQuery(t).after(a),jQuery(t).remove(),M9TAB.int(a[0],["tab",n]),tab_obj._now=a[0]},sortable:function(){if(!mong9_obj.status())return alert(msg_msg("msg_80")),!1;var t=jQuery(tab_obj._now).children("ul,ol")[0],a=jQuery(t).children().eq(0);editor._now=a,editor.sortable._sorting(1)},remove_setting:function(t){jQuery(t).find(".m9-tab-1,.m9-tab-2,.m9-tab-3,.m9-tab-4,.m9-tab-5").each(function(){tab_obj.remove_setting_one(this)})},remove_setting_one:function(t){if(!t)return!1;jQuery(t).removeAttr("id"),jQuery(t).removeAttr("style");var a=get_ani_type_info(t,"tab");a.on_class||(a.on_class="m9-tab-btn-on"),a.off_class||(a.off_class="m9-tab-btn-off");var n=0,o=!1,e=jQuery(t).children("ul,ol")[0];jQuery(e).children("li").each(function(t){var e=jQuery(this).find("."+a.on_class+",."+a.off_class)[0];0==n&&jQuery(e).hasClass(a.on_class)&&(o=this,n++),jQuery(this).find(".m9-tab-content").removeAttr("style")}),jQuery(o).each(function(){jQuery(jQuery(this).find(".m9-tab-content")[0]).css({display:"block",visibility:"visible"})}),jQuery(t).find(".slide_empty").each(function(){var t=jQuery(this).html();jQuery(this).parent().html(t)}),jQuery(t).find("._tab_slide").each(function(){var t=jQuery(this).html();jQuery(this).parent().html(t)})}};
var list_obj={_now:!1,_over:!1,_clicked:!1,_li_now:!1,style_info:{list_style:{keys:["m9-list-style-0","m9-list-style-1","m9-list-style-2","m9-list-style-3","m9-list-style-4","m9-list-style-5"],values:["S0","S1","S2","S3","S4","S5"]},float:{keys:["m9-float-1","m9-float-2","m9-float-3","m9-float-4","m9-float-5","m9-float-6"],values:["x1","x2","x3","x4","x5","x6"]},spacing:{keys:["m9-spacing-1","m9-spacing-2","m9-spacing-3"],values:["S1","S2","S3"]},list_border_style:{keys:["m9-list-border-style-1","m9-list-border-style-2","m9-list-border-style-3"],values:["L1","L2","L3"]}},int:function(t){if(t=m9_get_object(t),0==jQuery("#editWindow-list").length){for(var l in tab_get.list=[],list_obj.style_info)style_info[l]=m9_get_vars({},list_obj.style_info[l]),tab_get.list.push(l);var i='<ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt>'+msg_msg("kind")+'</dt><dd><ul class="_edit-ul-1"><li><button href=#" onclick="list_obj.change_tag(\'ul\');return false" title="'+msg_msg("unorder_list")+'" data-alt-no="1" class="edit-btn-8 _drag-btn-3 icon2-InsertUnorderedList _tag_ul"></button></li><li><button href=#" onclick="list_obj.change_tag(\'ol\');return false" title="'+msg_msg("order_list")+'" data-alt-no="1" class="edit-btn-8 _drag-btn-3 icon2-InsertOrderedList _tag_ol"></button></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("fix")+'</dt><dd><ul class="_edit-ul-1"><li><button class="edit-btn-8 _drag-btn-3 icon2-plus" onclick="list_obj.plus();return false" title="'+msg_msg("copy")+'" data-alt-no="1"></button></li><li><button class="edit-btn-8 _drag-btn-3 icon2-minus" onclick="list_obj.minus();return false" title="'+msg_msg("delete")+'" data-alt-no="1"></button></li><li><button class="edit-btn-8 _drag-btn-3 icon2-arrow-height" onclick="list_obj.sortable();return false" title="'+msg_msg("set_order")+'" data-alt-no="1"></button></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("style")+"</dt><dd>"+get_userbox_class_btn("list_style",{onclick_function:"list_obj.change_class",btn_addClass:"_drag-btn-3"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("divide")+"</dt><dd>"+get_userbox_class_btn("float",{onclick_function:"list_obj.change_class"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("spacing")+"</dt><dd>"+get_userbox_class_btn("spacing",{onclick_function:"list_obj.change_class"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("underline")+"</dt><dd>"+get_userbox_class_btn("list_border_style",{onclick_function:"list_obj.change_class"})+'</dd></dl></li></ul><div class="_edit_remove_box"><a href="#" onclick="list_obj.remove();return false;" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a> <a href="#" onclick="list_obj.del();return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn-8 icon2-delete"></a></div>';if(edit_window_obj.int("editWindow-list",i,msg_msg("set_list")),0==jQuery("#editor-list-fix").length){var i='<div id="editor-list-fix" class="handle_width _m9editor no" style="display:none"><a href="#" onclick="list_obj.view();return false;" class="setting-btn-1">'+msg_msg("set_list")+"</a></div>";jQuery("body").append(i)}}var s=function(t,l){var i=l,s=t.target,o=jQuery(s);i&&(list_obj._li_now=!1,o.is("li")?list_obj._li_now=s:o.parents("li")&&(list_obj._li_now=o.parents("li")[0]),list_obj._clicked=s,list_obj._now=i,list_obj.get())},o=function(t,l){var i=l;if(i){if("none"!=jQuery("#editWindow-list").css("display")||m9_obj_get_data(i,"_kind"))return!1;list_obj._li_now=!1,list_obj._over=i;var s=jQuery(i).css("width");jQuery("#editor-list-fix").css("width",s),m9_layer_position("editor-list-fix",i,"up"),jQuery("#editor-list-fix").css("display","")}else jQuery("#editor-list-fix").css("display","none")};editor_selector.set(t,[{_type:"mousedown",_kind:"is_parents",_selector:"ul,ol",_func:s,_ignore:1},{_type:"mouseover",_kind:"is_parents",_selector:"ul,ol",_func:o,_ignore:1}])},catch_obj:function(t){var l=!1,i=t,s=jQuery(i);return s.is("ul,ol")&&!s.is(editor._ignore)&&0==s.parents(editor._ignore).length?l=i:s.parents("ul,ol")&&0==s.parents(editor._ignore).length&&(l=s.parents("ul,ol")[0]),l},view:function(t){t&&(list_obj._over=t),list_obj._now=list_obj._over,jQuery(".selected_tag").removeClass("selected_tag"),jQuery(list_obj._now).addClass("selected_tag"),list_obj.get(),m9_layer_position("editWindow-list",list_obj._now,"up"),m9_layer_position("editWindow-list",list_obj._now,"up",m9_getObject("body")),edit_window_obj.view("editWindow-list"),jQuery("#editor-list-fix").css("display","none")},change_tag:function(t){if(m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind"))return!1;var l=jQuery(list_obj._now).prop("tagName").toLowerCase();if(t.toLowerCase()==l)return!1;jQuery("._tag_"+t).addClass("active"),jQuery("._tag_"+("ol"==t?"ul":"ol")).removeClass("active"),list_obj._now=changeTag(list_obj._now,t),editor._now=list_obj._now,undo_obj._add(list_obj._now,"tag")},plus:function(){if(!list_obj._li_now)return error_msg(msg_msg("msg_34")),!1;if(!list_obj._li_now&&list_obj._now&&(list_obj._li_now=jQuery(list_obj._now).children().last()[0],storedSelections=list_obj._li_now),m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind"))return!1;var t=editor._now;editor._now=list_obj._li_now,editor.handle._same(1),editor._now=t},minus:function(){return list_obj._clicked?!m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind")&&void(editor._now,editor._now=list_obj._clicked,editor.handle._del(1),list_obj._clicked=!1):(error_msg(msg_msg("msg_35")),!1)},change_class:function(t,l){if(m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind"))return!1;if("spacing"==t||"list_border_style"==t){for(var i=jQuery(list_obj._now),s=style_info.float?style_info.float.keys:[],o=m9_mode_obj.get_orders_mode(),e=m9_mode_obj.get(),n=0,a="",d=0;d<o.length;d++){o[d]==e&&(n=1);for(var r=0;r<s.length;r++)if(1==n){var c=""!=o[d]?o[d]+"-"+s[r]:s[r];if(i.hasClass(c)){a=s[r];break}}if(""!=a)break}""==a&&(a=s[0]),i.addClass(editor.mode.get_class(a))}class_obj.change(list_obj._now,t,l)},get:function(){var t=jQuery(this._now).prop("tagName").toLowerCase();jQuery("._tag_"+t).addClass("active"),jQuery("._tag_"+("ol"==t?"ul":"ol")).removeClass("active");for(var l=0;l<tab_get.list.length;l++)class_obj.get(this._now,tab_get.list[l])},remove:function(){if(m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind"))return!1;for(var t=0;t<tab_get.list.length;t++)class_obj.remove(this._now,tab_get.list[t]);undo_obj._add(this._now)},del:function(){if(m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind"))return!1;undo_obj._add(list_obj._now),jQuery(list_obj._now).fadeOut(300,function(){var t=undo_obj.get_obj_for_delete(list_obj._now);jQuery(this).remove(),list_obj._now=!1,obj_fadeOut("#editWindow-list"),undo_obj._add(t)})},sortable:function(){if(m9_obj_get_data(jQuery(list_obj._li_now).parents("ul,ol")[0],"_kind"))return!1;var t=jQuery(list_obj._now).children().eq(0);editor._now=t,editor.sortable._sorting(1)}};
var unlist_obj={convert:function(t){for(var r=jQuery(t).find("li"),e=0;e<r.length;e++){jQuery(r[e]).removeAttr("style").removeAttr("class");var n=jQuery(r[e]).html()+"\n";jQuery(r[e]).html(n)}return jQuery(t)[0]}};
var ollist_obj={convert:function(t){for(var n=jQuery(t).find("li"),e=0;e<n.length;e++){jQuery(n[e]).removeAttr("style").removeAttr("class");var c=jQuery(n[e]).html()+"\n";jQuery(n[e]).html(c)}return jQuery(t)[0]},calculate:{string:function(t,n){var e=jQuery("<div />").append(t),c=1*jQuery(e).find("._calculate").text()+(1==n?1:-1);return jQuery(e).find("._calculate").text(c),t=jQuery(e).html()},next:function(t,n){var e=1==n?2:0,c=1*jQuery(t).find("._calculate").text();jQuery(t).nextAll().each(function(t){jQuery(this).find("._calculate").text(c+t+e)})},reset:function(t){jQuery(t).parent().children().each(function(t){jQuery(this).find("._calculate").text(t+1)})}},checking_calculate:function(t){var n=1*jQuery(t).find("._calculate").text();jQuery(t).find("li").each(function(t){jQuery(this).find("._calculate").text(n+t)})}};
var table_obj={_now:!1,_sortabled:!1,_over:!1,objs:{},_colresize:{},color_set:["red","orange","green","blue"],_insert_char:"",style_info:{table_style:{keys:["m9-table-1","m9-table-2","m9-table-3","m9-table-4","m9-table-5","m9-table-6"],values:["T1","T2","T3","T4","T5","T6"]}},view:function(t){t&&(table_obj._over=t),table_obj._now=table_obj._over,jQuery(".selected_tag").removeClass("selected_tag"),jQuery(table_obj._now).addClass("selected_tag"),this.get(),m9_layer_position("editWindow-table",table_obj._now,"up",m9_getObject("body")),edit_window_obj.view("editWindow-table"),jQuery("#editor-table-fix").css("display","none")},get:function(){class_obj.get(table_obj._now,tab_get.table[0]);var t=jQuery(table_obj._now).find("thead");if(t.length>0){for(var e=t.find("th,td"),a=jQuery("#_editor_table_head_color").children(),o="",l=1;l<a.length;l++){var n=a.eq(l).attr("value");if(e.eq(0).hasClass(n)){o=n;break}}if(o){var r=0;e.each(function(){!jQuery(this).hasClass(o)&&r++})}0==r?jQuery("#_editor_table_head_color").val(o):jQuery("#_editor_table_head_color").val("")}jQuery("#edit_table_summary").val(jQuery(table_obj._now).prop("summary")),jQuery("#edit_table_caption").val(jQuery(table_obj._now).find("caption").text())},remove_size:function(t){jQuery(t).removeAttr("width").removeAttr("height").css({width:"100%",height:""}),jQuery(t).find("tr").each(function(){jQuery(this).removeAttr("width").removeAttr("height").css({width:"",height:""}),jQuery(this).find("th,td").each(function(){jQuery(this).removeAttr("width").removeAttr("height").css({width:"",height:""})})})},change_class:function(t,e){jQuery(".selected_tag").removeClass("selected_tag"),jQuery(table_obj._now).addClass("selected_tag"),element_obj._now=table_obj._now,element_obj.edit.class2.change(t,e)},change_head_class:function(t){var e=jQuery(".selected_tag");jQuery(".selected_tag").removeClass("selected_tag"),jQuery(table_obj._now).find("thead").find("th,td").each(function(){jQuery(this).addClass("selected_tag"),element_obj.edit.class.change(t)}),jQuery(".selected_tag").removeClass("selected_tag"),e.addClass("selected_tag")},property_change:function(){jQuery(table_obj._now).prop("summary",jQuery("#edit_table_summary").val()),0==jQuery(table_obj._now).find("caption").length&&jQuery(table_obj._now).children(":first").before("\n<caption></caption>\n"),jQuery(table_obj._now).find("caption").text(jQuery("#edit_table_caption").val()),obj_fadeOut("#editWindow-table")},remove_setting:function(t){jQuery(t).find("table").each(function(){table_obj._now=jQuery(this)[0],table_obj.table_silder.destroy(),jQuery(table_obj._now).removeClass("ui-selectable").find(".ui-selectee").removeClass("ui-selectee"),jQuery(table_obj._now).parents("._table-colresize").length>0&&(jQuery(table_obj._now).parents("._table-colresize")[0].outerHTML=jQuery(table_obj._now)[0].outerHTML),table_obj.y_sortable.destroy(),table_obj.x_sortable.destroy()})},int:function(t){if(t=m9_get_object(t),jQuery(t).attr("id"),table_obj._edit=t,0==jQuery("#editWindow-table").length){for(var e in tab_get.table=[],table_obj.style_info)style_info[e]=m9_get_vars({},table_obj.style_info[e]),tab_get.table.push(e);tab_get.table.push("table_head");var a='<ul class="_edit-list-1"><li><dl class="_edit-dl-2"><dt>'+msg_msg("design")+"(class)</dt><dd>"+get_userbox_class_btn("table_style",{onclick_function:"table_obj.change_class",btn_addClass:"_drag-btn-3"})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt><label for="_editor_table_head_color">'+msg_msg("head_color")+"(class)</label></dt><dd>"+edit_control_box.selectbox2({id:"table_head_color",onclick_function:"table_obj.change_head_class('_editor_table_head_color')",mode_not:1})+'</dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("merge")+"/"+msg_msg("divide")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-join m9-only-master" onclick="table_obj.join();return false" title="'+msg_msg("table_btn_1")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-divide_vertical" onclick="table_obj.divide.vertical();return false" title="'+msg_msg("table_btn_2")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-divide_horizontal" onclick="table_obj.divide.horizontal();return false" title="'+msg_msg("table_btn_3")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-same_width m9-only-master" onclick="table_obj.same_width();return false" title="'+msg_msg("table_btn_4")+'" data-alt-no="1"></a></li></ul></dd></dl></li><li class="m9-only-master"><dl class="_edit-dl-2"><dt>'+msg_msg("set_order")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-x_sortable" onclick="table_obj.x_sortable.int();return false" title="'+msg_msg("table_btn_5")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-y_sortable" onclick="table_obj.y_sortable.int();return false" title="'+msg_msg("table_btn_6")+'" data-alt-no="1"></a></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("insert")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-after_vertical" onclick="table_obj.insert.after_vertical();return false" title="'+msg_msg("table_btn_7")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-before_vertical" onclick="table_obj.insert.before_vertical();return false" title="'+msg_msg("table_btn_8")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-after_horizontal" onclick="table_obj.insert.after_horizontal();return false" title="'+msg_msg("table_btn_9")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-before_horizontal" onclick="table_obj.insert.before_horizontal();return false" title="'+msg_msg("table_btn_10")+'" data-alt-no="1"></a></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("delete")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-remove_horizontal" onclick="table_obj.remove.horizontal();return false" title="'+msg_msg("table_btn_11")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-remove_vertical" onclick="table_obj.remove.vertical();return false" title="'+msg_msg("table_btn_12")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _drag-btn-3 icon2-table-remove_table" onclick="table_obj.remove.table();return false" title="'+msg_msg("table_btn_13")+'" data-alt-no="1"></a></li></ul></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("etc")+'</dt><dd><ul class="_edit-ul-1"><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-convert_thead" onclick="table_obj.convert.thead();return false" title="&lt;thead&gt; '+msg_msg("convert")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-convert_tfoot" onclick="table_obj.convert.tfoot();return false" title="&lt;tfoot&gt; '+msg_msg("convert")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-convert_tbody_th" onclick="table_obj.convert.tbody_th();return false" title="&lt;tbody&gt;-&lt;th&gt; '+msg_msg("convert")+'" data-alt-no="1"></a></li><li><a href="#" class="edit-btn-8 _table-btn _drag-btn-3 icon2-table-convert_tbody_td" onclick="table_obj.convert.tbody_td();return false" title="&lt;tbody&gt;-&lt;td&gt; '+msg_msg("convert")+'" data-alt-no="1"></a></li></ul></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="edit_table_caption">*'+msg_msg("caption")+'(caption)</label><span class="help-icon edit-btn-etc" title="'+msg_msg("msg_23")+'">?</span></dt><dd><input type="text" id="edit_table_caption" value="" class="_drag-btn-3" /></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="edit_table_summary">'+msg_msg("summary")+'(summary)</label><span class="help-icon edit-btn-etc" title="'+msg_msg("msg_24")+'">?</span></dt><dd><input type="text" id="edit_table_summary" value="" class="_drag-btn-3" /></dd></dl></li></ul><button onclick="table_obj.property_change()" class="curtain-btn editor-btn-yes _drag-btn-3">OK</button>';edit_window_obj.int("editWindow-table",a,msg_msg("table_setting"));for(var e=0;e<style_info.box_color.keys.length;e++)jQuery("#_editor_table_head_color").append('<option value="'+style_info.box_color.keys[e]+'">'+style_info.box_color.keys[e]+"</option>");if(0==jQuery("#editor-table-fix").length){var a='<div id="editor-table-fix" class="handle_width _m9editor no" style="display:none"><a href="#" onclick="table_obj.view();return false;" class="setting-btn-1">'+msg_msg("table_setting")+"</a></div>";jQuery("body").append(a)}}var o=function(t,e){var a=e;t.target,a&&(table_obj._now=a,table_obj.get())},l=function(t,e){var a=e;if(a){if(table_obj.table_silder.int(a),table_obj.select_table(a),"none"!=jQuery("#editWindow-table").css("display"))return!1;table_obj._over=a;var o=jQuery(a).css("width");jQuery("#editor-table-fix").css("width",o),m9_layer_position("editor-table-fix",a,"up"),jQuery("#editor-table-fix").css("display","")}else jQuery("#editor-table-fix").css("display","none")};editor_selector.set(t,[{_type:"mousedown",_kind:"is_parents",_selector:"table",_func:o,_ignore:1},{_type:"mouseover",_kind:"is_parents",_selector:"table",_func:l,_ignore:1}]),jQuery(document).on("mouseup",function(t){var e=t.target;"none"!=jQuery("#editWindow-table").css("display")&&table_obj.btn_setting(),jQuery(e).is("th,td")&&1==table_obj.th_td_on&&placeCaretAtEnd(e)}),jQuery(document).on("mousedown",function(t){var e=t.target;table_obj.th_td_on=jQuery(e).is("th,td")&&jQuery(e).hasClass("selected_tag")?0:1,table_obj.x_sortable._now&&!get_is_parents(e,"._table-x-sortable",".m9_editor_box")&&table_obj.x_sortable.destroy(),table_obj.y_sortable._now&&!get_is_parents(e,"._table-y-sortable",".m9_editor_box")&&table_obj.y_sortable.destroy()})},btn_setting:function(t){var e=table_obj._now,a=table_obj._check_group(e),o=1,l=1;a.num<2&&(o=0,l=0),1!=a.count&&(o=0),a.num,table_obj.get_selected(e)||(o=0),1==o?jQuery(".icon2-table-join").removeClass("disabled"):jQuery(".icon2-table-join").addClass("disabled"),1==l?jQuery(".icon2-table-same_width").removeClass("disabled"):jQuery(".icon2-table-same_width").addClass("disabled")},join:function(){var t=table_obj._now,e=table_obj._check_group(t);if(e.num<2)return alert(msg_msg("msg_38")),!1;if(1!=e.count)return alert(msg_msg("msg_39")),!1;var a=table_obj.get_selected(t);if(!a)return alert(msg_msg("msg_40")),!1;var o="";jQuery(t).find(".selected_tag").each(function(t){o+=jQuery(this).html()+"\n\n"}),jQuery(t).find(".selected_tag").each(function(t){0==t?jQuery(this).attr({colspan:a.colspan,rowspan:a.rowspan}).removeClass("selected_tag").html(o):jQuery(this).remove()}),table_obj._table_check(t),table_obj.set_colgroup.reset(t),table_obj.table_silder.destroy(),undo_obj._add(t)},_table_check:function(t){jQuery("th[colspan],td[colspan]").each(function(){2>jQuery(this).attr("colspan")&&jQuery(this).removeAttr("colspan")}),jQuery("th[rowspan],td[rowspan]").each(function(){2>jQuery(this).attr("rowspan")&&jQuery(this).removeAttr("rowspan")}),jQuery(t).find("tr").each(function(){var t=0,e=0,a={};for(var o in jQuery(this).find("th,td").each(function(){var o=jQuery(this).prop("rowspan");a[o]||(a[o]=0),a[o]++,t++,e++}),a)o>1&&a[o]==e&&jQuery(this).find("th,td").removeAttr("rowspan");0==t&&jQuery(this).remove()});for(var e=table_obj._one_check(t),a=0;a<e.t_x;a++){for(var o={},l=0;l<e.t_y;l++)if(1==e.be[l][a]){var n=jQuery(e.array[l][a]).prop("colspan");o[n]||(o[n]=0),o[n]++}var r=0,n=0;for(var s in o)n=s,r++;if(1==r&&n>1)for(var d=0;d<e.t_y;d++)1==e.be[d][a]&&jQuery(e.array[d][a]).removeAttr("colspan")}},_table_group:{thead:1,tbody:1,tfoot:1},_check_group:function(t){var e={count:0,num:0};for(var a in table_obj._table_group)jQuery(t).find(a).find(".selected_tag").length>0&&(e.count++,e.num+=jQuery(t).find(a).find(".selected_tag").length);return 0==e.num&&jQuery(element_obj._now).is("th,td")&&(jQuery(element_obj._now).addClass("selected_tag"),e={count:1,num:1}),e},convert:{thead:function(){var t=table_obj._now,e=jQuery(t).find(".selected_tag");if(1!=e.parent("tr").length)return alert(msg_msg("msg_42")),!1;var a=table_obj._one_check(t,e[0]);table_obj.y_sortable._now=t;for(var o=table_obj.y_sortable.get_rowspan_list(),l=0,n=0,r=0,s=0;s<o.length;s++){if((n+=o[s])>=a.y+1){r=o[s];break}l+=o[s]}var d=[];jQuery(t).find("tr").each(function(t){t>=l&&t<l+r&&d.push(jQuery(this)[0])}),"thead"!=jQuery(e).parents("thead,tbody,tfoot").prop("tagName").toLowerCase()?(0==jQuery(t).find("thead").length&&(jQuery(t).find("tbody").length>0?jQuery(t).find("tbody").before("<thead></head>"):jQuery(t).find("colgroup").length>0?jQuery(t).find("colgroup").after("<thead></head>"):jQuery(t).prepend("<thead></head>")),jQuery(t).find("thead").append(jQuery(d)),jQuery(d).find("th,td").each(function(){jQuery(this).attr("scope","col"),changeTag(this,"th")})):(0==jQuery(t).find("tbody").length&&(jQuery(t).find("thead").length>0?jQuery(t).find("thead").after("<tbody></tbody>"):jQuery(t).find("colgroup").length>0?jQuery(t).find("colgroup").after("<tbody></tbody>"):jQuery(t).after("<tbody></tbody>")),jQuery(t).find("tbody").prepend(jQuery(d)),jQuery(d).find("th,td").each(function(t){0==t?(jQuery(this).attr("scope","row"),changeTag(this,"th")):(jQuery(this).removeAttr("scope"),changeTag(this,"td"))}),0==jQuery(t).find("thead").children().length&&jQuery(t).find("thead").remove())},tfoot:function(){var t=table_obj._now,e=jQuery(t).find(".selected_tag");if(1!=e.parent("tr").length)return alert(msg_msg("msg_42")),!1;var a=table_obj._one_check(t,e[0]);table_obj.y_sortable._now=t;for(var o=table_obj.y_sortable.get_rowspan_list(),l=0,n=0,r=0,s=0;s<o.length;s++){if((n+=o[s])>=a.y+1){r=o[s];break}l+=o[s]}var d=[];jQuery(t).find("tr").each(function(t){t>=l&&t<l+r&&d.push(jQuery(this)[0])}),"tfoot"!=jQuery(e).parents("thead,tbody,tfoot").prop("tagName").toLowerCase()?(0==jQuery(t).find("tfoot").length&&jQuery(t).append("<tfoot></tfoot>"),jQuery(t).find("tfoot").append(jQuery(d)),jQuery(d).find("th,td").each(function(t){0==t?(jQuery(this).attr("scope","row"),changeTag(this,"th")):(jQuery(this).removeAttr("scope"),changeTag(this,"td"))})):(0==jQuery(t).find("tbody").length&&(jQuery(t).find("thead").length>0?jQuery(t).find("thead").after("<tbody></tbody>"):jQuery(t).find("colgroup").length>0?jQuery(t).find("colgroup").after("<tbody></tbody>"):jQuery(t).after("<tbody></tbody>")),jQuery(t).find("tbody").append(jQuery(d)),jQuery(d).find("th,td").each(function(t){0==t?(jQuery(this).attr("scope","row"),changeTag(this,"th")):(jQuery(this).removeAttr("scope"),changeTag(this,"td"))}),0==jQuery(t).find("tfoot").children().length&&jQuery(t).find("tfoot").remove())},tbody_th:function(){var t=table_obj._now,e=jQuery(t).find(".selected_tag");return 0==jQuery(e[0]).parents("tbody").length||1!=table_obj._check_group(t).count?(alert(msg_msg("msg_77")),!1):table_obj.get_selected(t)?void e.each(function(){jQuery(this).attr("scope","row"),changeTag(this,"th")}):(alert(msg_msg("msg_40")),!1)},tbody_td:function(){var t=table_obj._now,e=jQuery(t).find(".selected_tag");return 0==jQuery(e[0]).parents("tbody").length||1!=table_obj._check_group(t).count?(alert(msg_msg("msg_77")),!1):table_obj.get_selected(t)?void e.each(function(){jQuery(this).removeAttr("scope"),changeTag(this,"td")}):(alert(msg_msg("msg_40")),!1)}},divide:{vertical:function(){var t=table_obj._now;if(table_obj._check_group(t).num<1)return alert(msg_msg("msg_44")),!1;jQuery(t).find(".selected_tag").each(function(){var e=jQuery(this)[0],a=jQuery(this).prop("colspan");if(a>1){var o=parseInt(a/2),l=o+a%2;jQuery(this).prop("colspan",l),l<2&&jQuery(this).removeAttr("colspan"),jQuery(this).after(jQuery(this).clone().removeAttr("colspan").html(table_obj._insert_char)),o>1&&jQuery(this).next().prop("colspan",o)}else{for(var n=table_obj._one_check(t,e),r=0,s=n.x,d=0;d<n.array.length;d++){var b=n.array[d][s];if(b==e){if(0==r){var c=[],h=jQuery(t).find("colgroup");h.children().each(function(t){var e=jQuery(this).attr("width");if(t==s){var a=e/2;c.push(a,a)}else c.push(e)}),h.html("");for(var f=0;f<c.length;f++)h.append('<col	width="'+c[f]+'">');jQuery(b).after(jQuery(b).clone().removeAttr("colspan").html(table_obj._insert_char))}r++}else jQuery(b).is("._td_colspan")||jQuery(b).addClass("_td_colspan").prop("colspan",jQuery(b).prop("colspan")+1)}jQuery("._td_colspan").removeClass("_td_colspan")}}),table_obj._table_check(),table_obj.table_silder.destroy(),undo_obj._add(t)},horizontal:function(){var t=table_obj._now;if(table_obj._check_group(t).num<1)return alert(msg_msg("msg_45")),!1;jQuery(t).find(".selected_tag").each(function(){var e=jQuery(this)[0],a=table_obj._one_check(t,e),o=jQuery(this).prop("rowspan");if(o>1){var l=parseInt(o/2),n=l+o%2;jQuery(this).prop("rowspan",n),n<2&&jQuery(this).removeAttr("rowspan");for(var r=a.y+n,s=0,d=0;d<a.x;d++)s+=1*a.be[r][d];if(0==s){var b=jQuery(t).find("tr").eq(r).find("th,td").eq(0);jQuery(b).before(jQuery(this).clone().removeAttr("rowspan")),l>1&&jQuery(b).prev().prop("rowspan",l)}else{var b=jQuery(t).find("tr").eq(r).find("th,td").eq(s-1);jQuery(b).after(jQuery(this).clone().removeAttr("rowspan").html(table_obj._insert_char)),l>1&&jQuery(b).next().prop("rowspan",l)}}else{a.x;for(var r=a.y,d=0;d<a.array[r].length;d++){var b=a.array[r][d];b==jQuery(this)[0]||jQuery(b).is("._rowspan_doing")||jQuery(b).addClass("_rowspan_doing").prop("rowspan",jQuery(b).prop("rowspan")+1)}jQuery("._rowspan_doing").removeClass("_rowspan_doing"),jQuery(e).prop("rowspan")>1&&jQuery(e).prop("rowspan",jQuery(e).prop("rowspan")-1),jQuery(t).find("tr").eq(r).after(jQuery(jQuery(t).find("tr").eq(r).clone()).html(jQuery(e).clone().html(table_obj._insert_char)))}}),table_obj._table_check(),table_obj.table_silder.destroy(),undo_obj._add(t)}},same_width:function(){for(var t=table_obj._now,e=table_obj._one_check(t),a=0,o=[],l=0,n=0;n<e.t_y;n++){for(var r=0,s=[],d=0;d<e.t_x;d++)jQuery(e.array[n][d]).hasClass("selected_tag")&&(r++,s.push(d));r>a&&(a=r,o=s,l=n)}for(var b=0,d=0;d<o.length;d++)1==e.be[l][d]&&(b+=table_obj.get_td_width(e.array[l][d]));var c=parseInt(b/o.length),h=jQuery(t).find("colgroup").children();0==h.length&&(table_obj.set_colgroup.int(t),h=jQuery(t).find("colgroup").children());for(var d=0;d<o.length;d++){var f=o[d];h.eq(f).attr("width",c+"px")}table_obj.table_silder.destroy(),undo_obj._add(t)},x_sortable:{_now:!1,destroy:function(){table_obj.x_sortable._now&&(jQuery(table_obj.x_sortable._now).parent().find("._table-x-sortable").remove(),table_obj.x_sortable._now=!1,table_obj._sortabled=!1)},int:function(){obj_fadeOut("#editMenu-setting");var t=table_obj._now;table_obj._one_check(t),table_obj.x_sortable._now=t;for(var e=table_obj.x_sortable.get_colspan_list(),a=jQuery(t).parent().find("._div-colresize").find("span"),o=table_obj.color_set.length,l='<div class="_table-x-sortable" contenteditable="false">\n',n=0,r=0,s=1,d=0;d<e.length;d++){var b=m9_get_num(jQuery(a[e[d]-1+n]).css("left")),c=d%o;l+='<a class="_not" style="width:'+(b-r)+'px" data-order="'+s+'"><span style="background:'+table_obj.color_set[c]+'">'+(d+1)+"</span></a>",n+=e[d],r=b,s++}l+="</div>\n",jQuery(t).parent().find("._div-colresize").before(l),jQuery(t).parent().find("._table-x-sortable").sortable({axis:"x",cursor:"move",distance:5,delay:200,tolerance:"pointer",stop:function(t,e){table_obj.x_sortable.change(e)}}),table_obj._sortabled=1,table_obj.table_silder.destroy()},change:function(){var t=table_obj.x_sortable._now,e=table_obj._one_check(t),a=table_obj.x_sortable.get_colspan_list(),o=[],l=jQuery(t).find("colgroup").children();l.each(function(t){o.push(jQuery(this).attr("width"))});for(var n=[],r=0,s=0;s<a.length;s++){n[s]=[];for(var d=0;d<a[s];d++)n[s][d]=o[r],r++}for(var b=[],c=0,d=0;d<a.length;d++)b.push(function(t,a){for(var o=[],l=0;l<e.t_y;l++){for(var n="",r=t;r<t+a;r++)1==e.be[l][r]&&(n+=jQuery(e.array[l][r])[0].outerHTML);o.push(n)}return o}(c,a[d])),c+=a[d];for(var h=jQuery(t).parent().find("._table-x-sortable").find("a"),f=[],d=0;d<h.length;d++){var p=jQuery(h[d]).attr("data-order");f.push(b[p-1])}for(var v=[],s=0;s<f.length;s++)for(var g=0;g<f[s].length;g++)v[g]||(v[g]=[]),v[g][s]=f[s][g];for(var g=0;g<v.length;g++)jQuery(t).find("tr").eq(g).html(v[g].join("\n"));var r=0;h.each(function(t){for(var e=jQuery(this).attr("data-order")-1,a=0;a<n[e].length;a++)l.eq(r).attr("width",n[e][a]),r++}),h.each(function(t){jQuery(this).attr("data-order",t+1)})},get_colspan_list:function(t){for(var e=table_obj.x_sortable._now,a=table_obj._one_check(e),o=[],l=0,n=0;n<a.t_x;n++){var r=function(t){for(var e=0,o=a.colspan.length,l=0;l<o;l++)for(var n=0,r=0;r<a.colspan[l].length;r++)(n+=a.colspan[l][r])==t&&e++;return e==o&&t}(n+1),s=r-l;r&&(o.push(s),l=r)}return o}},y_sortable:{_now:!1,destroy:function(){table_obj.y_sortable._now&&(jQuery(table_obj.y_sortable._now).parents("._table-colresize").find("._table-y-sortable").remove(),table_obj.y_sortable._now=!1,table_obj._sortabled=!1)},int:function(){obj_fadeOut("#editMenu-setting");var t=table_obj._now,e=m9_getRealOffsetTop(t),a=jQuery(t).find(".selected_tag");a.parents("thead,tbody,tfoot").length>0&&(t=a.parents("thead,tbody,tfoot")[0]);var o=m9_getRealOffsetTop(t),l=table_obj._one_check(t);table_obj.y_sortable._now=t;for(var n=table_obj.y_sortable.get_rowspan_list(),r=jQuery(t).find("tr"),s=table_obj.color_set.length,d='<div class="_table-y-sortable" contenteditable="false" style="margin-top:'+(o-e)+"px;height:"+jQuery(t).css("height")+'">\n',b=1,c=0,b=1,h=0;h<n.length;h++){for(var f=0,p=0;p<n[h];p++)f+=m9_get_num(r.eq(c).css("height")),c++;var v=h%s;d+='<a class="_not" style="height:'+f+'px" data-order="'+b+'"><span style="height:'+f+"px;background:"+table_obj.color_set[v]+'"><i class="m9-valign"></i>'+(h+1)+"</span></a>",b++}d+="</div>\n",jQuery(table_obj._now).parents("._table-colresize").append(d),jQuery(t).parents("._table-colresize").find("._table-y-sortable").sortable({axis:"y",cursor:"move",placeholder:"editor-placeholder",distance:5,delay:200,tolerance:"pointer",start:function(t,e){jQuery(e.placeholder).slideUp(50)},change:function(t,e){jQuery(e.placeholder).hide().slideDown(50)},stop:function(t,e){table_obj.y_sortable.change(e)}}),table_obj._sortabled=1,table_obj.table_silder.destroy()},change:function(){var t=table_obj.y_sortable._now;table_obj._one_check(t);for(var e=table_obj.y_sortable.get_rowspan_list(),a=jQuery(t).find("tr"),o=[],l=0,n=0;n<e.length;n++){for(var r="",s=0;s<e[n];s++)r+=a.eq(l)[0].outerHTML,l++;o.push(r)}for(var a=jQuery(t).parents("._table-colresize").find("._table-y-sortable").find("a"),d=[],s=0;s<a.length;s++){var b=jQuery(a[s]).attr("data-order");d.push(o[b-1]),jQuery(t).find("tr").eq(s).html(o[b-1])}jQuery(t).html(d.join("\n")),a.each(function(t){jQuery(this).attr("data-order",t+1)})},get_rowspan_list:function(t){for(var e=table_obj.y_sortable._now,a=table_obj._one_check(e),o=[],l=0;l<a.t_y;l++){for(var n=0,r=0;r<a.rowspan[l].length;r++)a.rowspan[l][r]>n&&(n=a.rowspan[l][r]);o[l]=n}for(var s=0,d=[],l=0;l<o.length;l++){0==s&&(s=o[l]);var b=l+o[l];b>s&&(s=b),l+1==s&&(d.push(s),s=0)}for(var c=0,h=0,f=[],p=0;p<d.length;p++)f.push(c=d[p]-h),h=d[p];return f}},insert:{before_horizontal:function(){for(var t=table_obj._now,e=jQuery(t).find(".selected_tag"),a=table_obj._one_check(t,jQuery(t).find(".selected_tag")[0]),o=a.y,l=[],n=0;n<a.t_x;n++){a.be[o][n];var r=a.array[o][n];o>0&&a.array[o-1][n]==r?jQuery(r).is("._add_column")||jQuery(r).removeClass("selected_tag").addClass("_add_column").prop("rowspan",jQuery(r).prop("rowspan")+1):jQuery(r).is("._add_column")||(jQuery(r).removeClass("selected_tag").addClass("_add_column"),l.push(jQuery(r).clone().removeAttr("rowspan").html(table_obj._insert_char)[0].outerHTML))}jQuery(t).find("tr").eq(o).before(jQuery(t).find("tr").eq(o).clone().html(l.join(""))),jQuery("._add_column").removeClass("_add_column"),jQuery(t).find(".selected_tag").length>0?table_obj.insert.before_horizontal():jQuery(t).parent().find("._div-colresize").find("a").css("height",jQuery(t).css("height")),table_obj.table_silder.destroy(),jQuery(e).addClass("selected_tag"),undo_obj._add(t)},after_horizontal:function(){for(var t=table_obj._now,e=jQuery(t).find(".selected_tag"),a=table_obj._one_check(t,jQuery(t).find(".selected_tag")[0]),o=a.y,l=[],n=0;n<a.t_x;n++){a.be[o][n];var r=a.array[o][n];a.array[o+1]&&a.array[o+1][n]==r?jQuery(r).is("._add_column")||jQuery(r).removeClass("selected_tag").addClass("_add_column").prop("rowspan",jQuery(r).prop("rowspan")+1):jQuery(r).is("._add_column")||(jQuery(r).removeClass("selected_tag").addClass("_add_column"),l.push(jQuery(r).clone().removeAttr("rowspan").html(table_obj._insert_char)[0].outerHTML))}jQuery(t).find("tr").eq(o).after(jQuery(t).find("tr").eq(o).clone().html(l.join(""))),jQuery("._add_column").removeClass("_add_column"),jQuery(t).find(".selected_tag").length>0?table_obj.insert.after_horizontal():jQuery(t).parent().find("._div-colresize").find("a").css("height",jQuery(t).css("height")),table_obj.table_silder.destroy(),jQuery(e).addClass("selected_tag"),undo_obj._add(t)},after_vertical:function(){var t=table_obj._now,e=jQuery(t).find(".selected_tag"),a=table_obj._one_check(t,jQuery(t).find(".selected_tag")[0]),o=a.x;a.y;for(var l=0;l<a.t_y;l++){a.be[l][o];var n=a.array[l][o];a.array[l][o+1]==n?jQuery(n).is("._add_column")||jQuery(n).removeClass("selected_tag").addClass("_add_column").prop("colspan",jQuery(n).prop("colspan")+1):jQuery(n).is("._add_column")||jQuery(n).removeClass("selected_tag").addClass("_add_column").after(jQuery(n).clone().html(table_obj._insert_char).removeAttr("colspan"))}jQuery("._add_column").removeClass("_add_column"),jQuery(t).find(".selected_tag").length>0?table_obj.insert.after_vertical():(table_obj.set_colgroup.remove(),table_obj.table_silder.destroy()),jQuery(e).addClass("selected_tag"),undo_obj._add(t)},before_vertical:function(){var t=table_obj._now,e=jQuery(t).find(".selected_tag"),a=table_obj._one_check(t,jQuery(t).find(".selected_tag")[0]),o=a.x;a.y;for(var l=0;l<a.t_y;l++){a.be[l][o];var n=a.array[l][o];a.array[l][o-1]==n?jQuery(n).is("._add_column")||jQuery(n).removeClass("selected_tag").addClass("_add_column").prop("colspan",jQuery(n).prop("colspan")+1):jQuery(n).is("._add_column")||jQuery(n).removeClass("selected_tag").addClass("_add_column").before(jQuery(n).clone().html(table_obj._insert_char).removeAttr("colspan"))}jQuery("._add_column").removeClass("_add_column"),jQuery(t).find(".selected_tag").length>0?table_obj.insert.before_vertical():(table_obj.set_colgroup.remove(),table_obj.table_silder.destroy()),jQuery(e).addClass("selected_tag"),undo_obj._add(t)}},remove:{table:function(){var t=table_obj._now;if(undo_obj._add(t),jQuery(t).parent().hasClass("_table-colresize")&&(t=jQuery(t).parent()[0]),0==jQuery(t).length)return!1;jQuery(t).fadeOut(300,function(){var t=undo_obj.get_obj_for_delete(this);jQuery(this).remove(),table_obj._now=!1,obj_fadeOut("#editWindow-table"),undo_obj._add(t)})},vertical:function(){var t=table_obj._now;undo_obj._add(t);for(var e=table_obj._one_check(t,jQuery(t).find(".selected_tag")[0]),a=e.x,o=0;o<e.t_y;o++){var l=e.array[o][a];if(!jQuery(l).is("._cell_changing")){var n=jQuery(l).prop("colspan");1==e.be[o][a]?n>1?jQuery(l).addClass("_cell_changing").prop("colspan",jQuery(l).prop("colspan")-1):jQuery(l).remove():n>1&&jQuery(l).addClass("_cell_changing").removeClass("selected_tag").prop("colspan",jQuery(l).prop("colspan")-1)}}jQuery("._cell_changing").removeClass("_cell_changing"),jQuery(t).find("tr").each(function(){0==jQuery(this).children().length&&jQuery(this).remove()}),jQuery(t).find("thead,tbody,tfoot").each(function(){0==jQuery(this).children().length&&jQuery(this).remove()}),0==jQuery(t).find("thead,tbody,tfoot").length?jQuery(t).remove():jQuery(t).find(".selected_tag").length>0?table_obj.remove.vertical():(table_obj.set_colgroup.remove(),table_obj.table_silder.destroy()),undo_obj._add(t)},horizontal:function(){var t=table_obj._now;undo_obj._add(t);for(var e=table_obj._one_check(t,jQuery(t).find(".selected_tag")[0]),a=e.y,o=[],l=0;l<e.t_x;l++){var n=e.be[a][l],r=e.array[a][l],s=jQuery(r).prop("rowspan");1==n?(s>1&&(o[l]=jQuery(r).prop("rowspan",jQuery(r).prop("rowspan")-1)[0].outerHTML),jQuery(r).remove()):s>1&&jQuery(r).removeClass("selected_tag").prop("rowspan",jQuery(r).prop("rowspan")-1)}for(var l=0;l<e.t_x;l++)!o[l]&&e.be[a+1]&&1==e.be[a+1][l]&&(o[l]=jQuery(e.array[a+1][l])[0].outerHTML);o.length>0&&jQuery(t).find("tr").eq(a+1).html(o.join(""));var d=jQuery(t).find("tr").eq(a),b=d.parent(),c=b.children().length;d.remove(),c<2&&(b.remove(),0==jQuery(t).find("thead,tbody,tfoot").length&&jQuery(t).remove()),jQuery(t).find(".selected_tag").length>0?table_obj.remove.horizontal():jQuery(t).parent().find("._div-colresize").find("a").css("height",jQuery(t).css("height")),table_obj.table_silder.destroy(),undo_obj._add(t)}},table_silder:{lists:{},int:function(t){if(!t||1==table_obj._sortabled||1==jQuery.data(t,"table_slider"))return!1;jQuery(t).parent().hasClass("_table-colresize")||jQuery(t).wrap('<div class="_table-colresize _cell_parent"></div>'),0==jQuery(t).parent().find("._div-colresize").length&&jQuery(t).before('<div class="_div-colresize" contenteditable="false"></div>'),jQuery.data(t,"table_slider",1),table_obj.set_colgroup.int(t);var e=m9_get_num(jQuery(t).css("width")),a=[],o=0;jQuery(t).find("colgroup").children().each(function(t){var e=m9_get_num(jQuery(this).attr("width"));a[t]=e+o,o+=e});var l=jQuery(t).parent().find("._div-colresize")[0];jQuery(l).slider({slide:table_obj.table_silder.update,stop:table_obj.table_silder.stop,min:0,max:e,values:a,start:function(t,e){if(e.value==e.values[e.values.length-1])return!1}}),jQuery(l).find(".ui-slider-handle").css("height",jQuery(t).css("height")).addClass("_not"),jQuery(l).find(".ui-slider-handle:last").css("cursor","default")},stop:function(t,e){var a=jQuery(t.target)[0];undo_obj._add(a)},update:function(t,e){var a=jQuery(t.target).parents("._table-colresize").find("table")[0];0==jQuery(a).find("colgroup").length&&table_obj.set_colgroup.int(a);var o=0;jQuery(a).find("colgroup").children().each(function(t){var a=e.values[t]-o;jQuery(this).attr("width",a+"px"),o=e.values[t]}),jQuery(a).parent().find("._div-colresize").find("a").css("height",jQuery(a).css("height"))},destroy:function(){var t=table_obj._now;if(jQuery(t).parent().find("._div-colresize").length>0){var e=jQuery(t).parent().find("._div-colresize")[0];1==jQuery.data(t,"table_slider")&&(jQuery(e).slider("destroy"),jQuery.data(t,"table_slider",0))}}},select_table:function(t){if(1==jQuery.data(t,"table_select"))return!1;jQuery(t).selectable({filter:"td,th",cancel:".selected_tag",distance:30,delay:50,stop:function(){jQuery(".ui-selected").addClass("selected_tag").removeClass("ui-selected"),table_obj.btn_setting()}}),jQuery.data(t,"table_select",1)},set_colgroup:{int:function(t,e){for(var a=table_obj._one_check(t),o=[],l=0,n=0;n<a.t_y;n++){for(var r=0;r<a.t_x;r++){var s=a.be[n][r],d=a.array[n][r];if(!o[r]&&(1==s&&1==jQuery(d).prop("colspan")&&(o[r]=table_obj.get_td_width(d),l++),l==a.t_x))break}if(l==a.t_x)break}for(var b=m9_get_num(jQuery(t).css("width")),c=0,h=0,r=0;r<a.t_x;r++)o[r]?c+=o[r]:h++;var f=parseInt((b-c)/h);f||(f="");for(var p=[],v="<colgroup>\n",g=0;g<a.t_x;g++){var u=o[g]?o[g]:f;v+='<col width="'+u+'" />\n',p[g]=u}return v+="</colgroup>\n",jQuery(t).find("colgroup").length>0&&jQuery(t).find("colgroup").remove(),jQuery(t).find("caption").length>0?jQuery(t).find("caption").after(v):jQuery(t).children().eq(0).before(v),p},empty:function(){var t=jQuery(table_obj._now).find("colgroup");t.length>0&&t.find("col").each(function(){jQuery(this).attr("width","")})},remove:function(){var t=jQuery(table_obj._now).find("colgroup");t.length>0&&t.remove()},reset:function(t){if(1==jQuery(t).data("table_slider")&&jQuery(t).parent().hasClass("_table-colresize")){var e=jQuery(t).find("colgroup").children(),a=jQuery(t).parent().find("._div-colresize"),o=jQuery(a).slider("option","values"),l=o.length;o[l-1];for(var n=0,r=[],s=0;s<l;s++){var d=1*o[s]-1*n;r.push(roundXL(d,2)),jQuery(e[s]).css("width",d),n=o[s]}}}},get_selected:function(t){var e={top:0,left:0,colspan:0,rowspan:0},a=jQuery(t).find("tr"),o=a.length,l=0;a.each(function(){var t=jQuery(this).find("th,td").length;t>l&&(l=t)});var n=Array(o),r=0,s=o;a.each(function(){var t=0;jQuery(this).find("th,td").each(function(){if(jQuery(this).hasClass("selected_tag")){n[r]||(n[r]=0);var e=jQuery(this).prop("colspan");n[r]+=e;var a=jQuery(this).prop("rowspan");for(z=1;z<a;z++){var o=r+z;n[o]||(n[o]=0),n[o]++,e>1&&(n[o]+=e-1)}t<s&&(s=t)}t++}),r++}),e.left=s;var d=0;for(i=0;i<n.length;i++)if(n[i]){if(0==d&&(d=n[i]),n[i]!=d)return!1;e.rowspan++}else 0==d&&e.top++;return e.colspan=d,e.array=n,e},_one_check:function(t,e){var a={x:0,y:0,t_x:0,t_y:0},o=[],l=[],n=[],r=[],s=0,d=0,b=0;jQuery(t).find("tr").each(function(){l[s]||(l[s]=[],o[s]=[],n[s]=[],r[s]=[]);var t=0;jQuery(this).find("th,td").each(function(){for(var c=jQuery(this).prop("colspan"),h=jQuery(this).prop("rowspan"),f=0;f<c;f++){for(;l[s][t];)t++;l[s][t]=0==f?1:0,o[s][t]=jQuery(this)[0],n[s][t]=0==f?c:0,r[s][t]=0==f?h:0,jQuery(this)[0]==e&&0==b&&(a.x=t,a.y=s,b++),d<t&&(d=t);for(var p=1;p<h;p++){var v=s+p;l[v]||(l[v]=[],o[v]=[],n[v]=[],r[v]=[]),l[v][t]="0",o[v][t]=jQuery(this)[0],n[v][t]=0==f?c:0,r[v][t]=0}t++}}),s++}),a.t_x=d+1,a.t_y=s,a.array=o,a.be=l;for(var c=[],h=0;h<n.length;h++){c[h]=[];for(var f=0;f<n[h].length;f++)0!=n[h][f]&&c[h].push(n[h][f])}a.colspan=c;for(var p=[],h=0;h<r.length;h++){p[h]=[];for(var f=0;f<r[h].length;f++)0!=r[h][f]&&p[h].push(r[h][f])}return a.rowspan=p,a},get_td_width:function(t){return m9_get_num(jQuery(t).css("width"))}};
var undo_obj={_id:"",_objs:{},_timer:!1,_count:0,is_ctrl:0,editable:"._one-row",int:function(o){jQuery(document).on("keydown",function(o){if(""!=undo_obj._id){if(17==o.which){undo_obj.is_ctrl=1;return}1==undo_obj.is_ctrl&&(o.target,90==o.which?(undo_obj._prevent(o),undo_obj.undo()):89==o.which&&(undo_obj._prevent(o),undo_obj.redo()))}}).on("keyup",function(o){17==o.which&&(undo_obj.is_ctrl=0)}).on("mouseup",function(o){var n=o.target;if(jQuery(n).parents(undo_obj.editable).length>0){var t=jQuery(n).parents(undo_obj.editable)[0],e=m9_random_id(t);undo_obj._objs[e]||(undo_obj._objs[e]={step:0,content:[jQuery("#"+e).html()]}),undo_obj._id=e}else if(jQuery(n).is("._setting_area_box")||jQuery(n).parents("._setting_area_box").length>0){var t=jQuery(editor._now).parents(undo_obj.editable)[0];if(t){var e=m9_random_id(t);undo_obj._objs[e]||(undo_obj._objs[e]={step:0,content:[jQuery("#"+e).html()]}),undo_obj._id=e}}else undo_obj._id=""}),jQuery(o).on("keyup",function(o){var n=o.target;if(jQuery(n).parents(undo_obj.editable).length>0){var t=jQuery(n).parents(undo_obj.editable)[0];m9_random_id(t),clearTimeout(undo_obj._timer),undo_obj._timer=setTimeout(function(){undo_obj._add()},250)}})},_prevent:function(o){o.preventDefault?o.preventDefault():o.returnValue=!1},_add_before_id:"",_add_before_kind:"",_add:function(o,n){jQuery(".selected_tag").each(function(){undo_obj._add_one(this,n)}),tag_obj.print_obj(o)},_add_one:function(o,n){if(o&&jQuery(o).parents(undo_obj.editable).length>0){var t=jQuery(o).parents(undo_obj.editable)[0],e=m9_random_id(t);undo_obj._id=e,undo_obj._objs[e]||(undo_obj._objs[e]={step:0,content:[jQuery("#"+e).html()]})}if(!undo_obj._id)return!1;var e=undo_obj._id,d=undo_obj._objs[e],u=d.step,b=d.content[u],i=jQuery("#"+e).html();i!=b&&(n&&undo_obj._add_before_id==e&&undo_obj._add_before_kind==n?(d.content[d.step]=i,d.content.length=d.step+1):(d.step++,d.content[d.step]=i,d.content.length=d.step+1),undo_obj._add_before_id=e,undo_obj._add_before_kind=n)},undo:function(){if(!undo_obj._id)return!1;var o=undo_obj._id,n=undo_obj._objs[o];if(n.step<=0)return!1;n.step--;var t=n.step;builder.html._html_obj=jQuery("#"+o).parents(".ui-draggable");var e=builder.html.convert(n.content[t]);jQuery("#"+o).html(e),builder.setting.check()},redo:function(){if(!undo_obj._id)return!1;var o=undo_obj._id,n=undo_obj._objs[o];if(n.step>=n.content.length-1)return!1;n.step++;var t=n.step,e=builder.html.convert(n.content[t]);jQuery("#"+o).html(e),builder.setting.check()},remove:function(o){undo_obj._objs[o]&&delete undo_obj._objs[o]},get_obj_for_delete:function(o){return jQuery(o).parents(undo_obj.editable).children()[0]},editor_history:function(){undo_obj._count++,undo_obj._count>10&&(from_mong9_editor_to_classic_editor("content"),undo_obj._count=0)}};
var createlink_obj={_now:!1,_over:!1,int:function(e){if(0==jQuery("#editWindow-createLink").length){var t='<ul class="_edit-list-1"><li><dl class="_edit-dl-1"><dt><label for="_editor_a_text">'+msg_msg("explan")+'(TITLE/ALT)</label><span class="help-icon edit-btn-etc" title="'+msg_msg("msg_9")+'">?</span></dt><dd><input type="text" id="_editor_a_text" value="" placeholder="'+msg_msg("msg_9")+'" class="_drag-btn-3" /></dd></dl></li><li><dl class="_edit-dl-1"><dt><label for="_editor_a_url">'+msg_msg("link")+'(URL)</label><span class="help-icon edit-btn-etc" title="'+msg_msg("msg_10")+'">?</span></dt><dd><input type="text" id="_editor_a_url" value="http://" placeholder="'+msg_msg("msg_10")+'" class="_drag-btn-3" /></dd></dl></li><li><dl class="_edit-dl-2"><dt>'+msg_msg("new_window")+'(TARGET)</dt><dd><span class="check-switch"><input type="checkbox" id="_editor_a_target" class="_drag-btn-3"> <label for="_editor_a_target">'+msg_msg("msg_11")+'</label></span></dd></dl></li><li id="_link_box_for_btn"><dl class="_edit-dl-2"><dt></dt><dd><button onclick="btn_obj.view(createlink_obj._now,this);return false;" class="class-btn">'+msg_msg("button_setting")+'</button></dd></dl></li></ul><div class="_edit_remove_box"><a href="#" id="createlink_unlink" onclick="createlink_obj.unlink();return false" title="'+msg_msg("delete_link")+'" data-alt-no="1" class="edit-btn-8 _drag-btn-3 icon2-eraser disabled"></a></div>';t+='<button onclick="createlink_obj.change()" class="curtain-btn editor-btn-yes _drag-btn-3">OK</button>',edit_window_obj.int("editWindow-createLink",t,msg_msg("set_link"),{reset:function(){}})}if(0==jQuery("#editor-link-fix").length){var t='<div id="editor-link-fix" class="btn_width _m9editor no" style="display:none"><a href="#" onclick="createlink_obj.view();return false;" class="setting-btn-1">'+msg_msg("set_link")+"</a></div>";jQuery("body").append(t);var i=function(e,t){var i=get_is_parents(e.target,"a",".m9_editor_box");i?(createlink_obj._now=i,editor._now=i,createlink_obj.get()):createlink_obj.reset()},a=function(e,t){var i=t;if(i){if("none"!=jQuery("#editWindow-createLink").css("display")||jQuery(i).is(".m9-tab-btn-on,.m9-tab-btn-off")||jQuery(i).find("img,.m9-img-box").length>0)return!1;createlink_obj._over=i,m9_layer_position("editor-link-fix",i,"up"),jQuery("#editor-link-fix").css("display","")}else jQuery("#editor-link-fix").css("display","none")};editor_selector.set(e,[{_type:"mousedown",_func:i},{_type:"mouseover",_kind:"is_parents",_selector:"a",_func:a,_ignore:1}])}},view:function(e){e&&(createlink_obj._over=e),createlink_obj._now=createlink_obj._over,jQuery(".selected_tag").removeClass("selected_tag"),jQuery(createlink_obj._now).addClass("selected_tag"),this.get(),m9_layer_position("editWindow-createLink",createlink_obj._now,"up",m9_getObject("body")),edit_window_obj.view("editWindow-createLink"),jQuery("#editor-link-fix").css("display","none")},get:function(){var e=jQuery(createlink_obj._now),t=e.attr("href")?e.attr("href"):"http://";jQuery("#_editor_a_url").val(t);var i="_blank"==e.attr("target");jQuery("#_editor_a_target").prop("checked",i);var a="",n=createlink_obj.check_only_obj(e);if(n){var r=e.children();a="img"==n?r.attr("alt")?r.attr("alt"):r.attr("title"):r.attr("title")?r.attr("title"):r.attr("alt")}a||(a=e.attr("title")?e.attr("title"):e.attr("alt")),jQuery("#_editor_a_text").val(a),createlink_obj._now?jQuery("#createlink_unlink").removeClass("disabled"):jQuery("#createlink_unlink").addClass("disabled"),jQuery(createlink_obj._now).is("img")?jQuery("#_link_box_for_btn").css("display","none"):jQuery("#_link_box_for_btn").css("display","block")},unlink:function(){if(!createlink_obj._now)return!1;var e=jQuery(createlink_obj._now).parent();if(undo_obj._add(createlink_obj._now,"link_delete"),"a"!=jQuery(createlink_obj._now).prop("tagName").toLowerCase())return!1;jQuery(createlink_obj._now).replaceWith(jQuery(createlink_obj._now).html()),createlink_obj.remove(),jQuery("#editWindow-createLink").css("display","none"),createlink_obj._now=!1,undo_obj._add_one(e,"link_delete_after")},change:function(){var e=jQuery("#_editor_a_url").val(),t=jQuery("#_editor_a_text").val(),i=jQuery("#_editor_a_target").prop("checked"),a=2;if(createlink_obj._now?Editor_Container=createlink_obj._now:(RestoreSelection(editor._last_selected),a=get_container()),1==a)document.execCommand("fontSize",!1,"7"),jQuery(document).find("font").each(function(){"7"==jQuery(this).attr("size")&&(jQuery(this).after('<a href="'+e+'">'+jQuery(this).html()+"</a>"),Editor_Container=jQuery(this).next()[0],jQuery(this).remove())});else if("a"!=jQuery(Editor_Container).prop("tagName").toLowerCase()){if(jQuery(Editor_Container).is("img,.m9-img-box"))jQuery(Editor_Container).wrap('<a href="'+e+'"></a>'),Editor_Container=jQuery(Editor_Container).parent()[0];else{var n="__this_is__random_class__"+Math.round(1e5*Math.random());jQuery(Editor_Container).html('<a href="'+e+'" class="'+n+'">'+jQuery(Editor_Container).html()+"</a>"),Editor_Container=jQuery("."+n)[0],jQuery("."+n).removeClass(n)}}else jQuery(Editor_Container).attr("href",e);i?jQuery(Editor_Container).attr("target","_blank"):jQuery(Editor_Container).removeAttr("target");var r=Editor_Container,l=createlink_obj.check_only_obj(r);if(l){var o=jQuery(r).children();"img"==l?(o.attr("alt",t).removeAttr("title"),jQuery(r).removeAttr("alt").removeAttr("title")):(o.attr("title",t).removeAttr("alt"),jQuery(r).removeAttr("alt").removeAttr("title"))}else jQuery(r).attr("title",t).removeAttr("alt");createlink_obj.remove(),jQuery("#editWindow-createLink").css("display","none"),undo_obj._add(r)},check_only_obj:function(e){if(1==jQuery(e).children().length){var t=jQuery(e).children().prop("tagName").toLowerCase();if(("img"==t||"iframe"==t)&&""==jQuery(e).text())return t}return!1},remove:function(){jQuery("#_editor_a_url").val("http://"),jQuery("#_editor_a_text").val(""),jQuery("#_editor_a_target").prop("checked",!1),createlink_obj._now=!1,createlink_obj._over=!1},reset:function(){jQuery("#_editor_a_url").val("http://"),jQuery("#_editor_a_text").val(""),jQuery("#_editor_a_target").prop("checked",!1),jQuery("#createlink_unlink").addClass("disabled")}};
var createlink_expend_img_obj={_now:!1,zooms:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],hovers:["m9-fade","m9-slide-top","m9-slide-bottom","m9-slide-left","m9-slide-right"],hovers2:["m9-img-hover-0","m9-img-hover-1","m9-img-hover-2","m9-img-hover-3","m9-img-hover-4","m9-img-hover-5"],int:function(){if(0==jQuery("#editWindow-imgAction").length){for(var e='<ul class="_edit-list-1"><li><dl class="_edit-dl-1"><dt>'+msg_msg("zoom_in")+'<span class="check-switch"><input type="checkbox" id="_editor_img_zoom" onclick="createlink_expend_img_obj.zoom.use(this.checked)" /><label for="_editor_img_zoom" class="hidden">use</label></span></dt><dd><div class="_middle_box"><input type="text" id="_editor_img_zoom_url" /><ul class="m9a-float-3 m9-spacing-0 m9-list-border-style-0"><li>'+msg_msg("group")+'<span class="check-switch"><input type="checkbox" id="_editor_img_zoom_group" onclick="createlink_expend_img_obj.zoom.group(this.checked)"><label for="_editor_img_zoom_group" class="hidden">use</label></span></li><li>'+msg_msg("no")+'<select id="_editor_img_zoom_group_type" onchange="createlink_expend_img_obj.zoom.adjust()"><option value=""></option>',o=0;o<createlink_expend_img_obj.zooms.length;o++){var i=createlink_expend_img_obj.zooms[o];e+='<option value="'+i+'">'+i+"</option>"}e+='</select></li></ul></div></dd></dl></li><li><dl class="_edit-dl-1"><dt>'+msg_msg("mouseover")+'<span class="check-switch"><input type="checkbox" id="_editor_img_hover" onclick="createlink_expend_img_obj.hover.use(this.checked)"><label for="_editor_img_hover" class="hidden">use</label></span></dt><dd><div class="_middle_box"><textarea id="_editor_img_hover_msg" onchange="createlink_expend_img_obj.hover.adjust()" placeholder="'+msg_msg("msg_74")+'" sty1le="margin:10px 0;font-size:14px;font-family:dotum"></textarea><ul class="m9a-float-3 m9-spacing-0 m9-list-border-style-0"><li>'+msg_msg("effect")+'1<select id="_editor_img_hover_kind" onchange="createlink_expend_img_obj.hover.adjust()">';for(var o=0;o<createlink_expend_img_obj.hovers.length;o++){var i=createlink_expend_img_obj.hovers[o];e+='<option value="'+i+'">'+i+"</option>"}e+="</select></li><li>"+msg_msg("effect")+'2<select id="_editor_img_hover_kind2" onchange="createlink_expend_img_obj.hover.adjust()">';for(var o=0;o<createlink_expend_img_obj.hovers2.length;o++){var i=createlink_expend_img_obj.hovers2[o];e+='<option value="'+i+'">'+i+"</option>"}e+='</select></li></ul><ul class="m9a-float-1 m9-spacing-0 m9-list-border-style-0"><li class="_preview_line"><span class="_s_title">'+msg_msg("preview")+'</span><button onclick="createlink_expend_img_obj.hover.preview(1)" class="class-btn _img_hover_btn">'+msg_msg("view")+'</button> <button onclick="createlink_expend_img_obj.hover.preview(0)" class="class-btn _img_hover_btn">'+msg_msg("hide")+'</button></li></ul></div></dd></dl></li></ul><button onclick="edit_window_obj.close(\'editWindow-imgAction\');return false;" class="curtain-btn editor-btn-yes _drag-btn-3">OK</button>',edit_window_obj.int("editWindow-imgAction",e,msg_msg("setting"),{reset:function(){},close:function(){createlink_expend_img_obj.win_close()}})}},win_close:function(){var e=createlink_expend_img_obj._now,o=!1;jQuery(e).parents("a").length>0&&(o=jQuery(e).parents("a")[0],jQuery(o).find("._m9_overlay").length>0&&jQuery(o).find("._m9_overlay").removeClass("active").removeClass("__m9_overlay_preview"),jQuery(o).find("img").removeClass("active").removeClass("__m9_overlay_img_preview"))},view:function(e){createlink_expend_img_obj._now=e,createlink_expend_img_obj.int(),jQuery(".selected_tag").removeClass("selected_tag"),jQuery(createlink_expend_img_obj._now).addClass("selected_tag"),createlink_expend_img_obj.get(),m9_layer_position("editWindow-imgAction",createlink_expend_img_obj._now,"up",m9_getObject("body")),edit_window_obj.view("editWindow-imgAction")},unlink:function(){},get:function(e){e||(e=createlink_expend_img_obj._now);var o=!1,i=!1,r=0,t=0,a=!1;if(jQuery(e).parents("a").length>0&&(i=jQuery(e).parents("a")[0],jQuery(i).hasClass("m9-img-zoom")&&r++,jQuery(i).hasClass("m9-img-hover")&&jQuery(i).find("._m9_overlay").length>0&&(t++,a=jQuery(i).find("._m9_overlay")[0]),o=get_ani_type_info(i,"lightbox")),r>0?(jQuery("#_editor_img_zoom_url").val(jQuery(i).data("m9-href")),jQuery("#_editor_img_zoom").attr("checked",!0),input_box_disabled("#_editor_img_zoom_url",!1),input_box_disabled("#_editor_img_zoom_group",!1),o&&o.group?(jQuery("#_editor_img_zoom_group").attr("checked",!0),jQuery("#_editor_img_zoom_group_type").val(o.group),input_box_disabled("#_editor_img_zoom_group_type",!1)):(jQuery("#_editor_img_zoom_group").attr("checked",!1),jQuery("#_editor_img_zoom_group_type").val(""),input_box_disabled("#_editor_img_zoom_group_type",!0))):(jQuery("#_editor_img_zoom_url").val(""),input_box_disabled("#_editor_img_zoom_url",!0),jQuery("#_editor_img_zoom").attr("checked",!1),jQuery("#_editor_img_zoom_group").attr("checked",!1),input_box_disabled("#_editor_img_zoom_group",!0),jQuery("#_editor_img_zoom_group_type").val(""),input_box_disabled("#_editor_img_zoom_group_type",!0)),t>0&&a){var n=!1;n="img"==jQuery(e).prop("tagName").toLowerCase()?e:jQuery(e).find("img")[0],jQuery("#_editor_img_hover").attr("checked",!0),input_box_disabled("#_editor_img_hover_kind",!1);for(var d=0;d<createlink_expend_img_obj.hovers.length;d++)if(jQuery(a).hasClass(createlink_expend_img_obj.hovers[d])){jQuery("#_editor_img_hover_kind").val(createlink_expend_img_obj.hovers[d]);break}input_box_disabled("#_editor_img_hover_kind2",!1);for(var d=0;d<createlink_expend_img_obj.hovers2.length;d++)if(jQuery(n).hasClass(createlink_expend_img_obj.hovers2[d])){jQuery("#_editor_img_hover_kind2").val(createlink_expend_img_obj.hovers2[d]);break}var m=jQuery(a).find("._in>span").html();jQuery("#_editor_img_hover_msg").val(m),jQuery("._img_hover_btn").removeClass("disabled").prop("disabled","")}else jQuery("#_editor_img_hover").attr("checked",!1),jQuery("#_editor_img_hover_kind").val(createlink_expend_img_obj.hovers[0]),input_box_disabled("#_editor_img_hover_kind",!0),jQuery("#_editor_img_hover_kind2").val(createlink_expend_img_obj.hovers2[0]),input_box_disabled("#_editor_img_hover_kind2",!0),jQuery("#_editor_img_hover_msg").val(""),input_box_disabled("#_editor_img_hover_msg",!0),jQuery("._img_hover_btn").addClass("disabled").prop("disabled","disabled")},zoom:{use:function(e){createlink_expend_img_obj._now,e?(input_box_disabled("#_editor_img_zoom_url",!1),input_box_disabled("#_editor_img_zoom_group",!1),input_box_disabled("#_editor_img_zoom_group_type",!0)):(input_box_disabled("#_editor_img_zoom_url",!0),jQuery("#_editor_img_zoom_group").attr("checked",!1),input_box_disabled("#_editor_img_zoom_group",!0),input_box_disabled("#_editor_img_zoom_group_type",!0)),createlink_expend_img_obj.zoom.adjust()},group:function(e){e?input_box_disabled("#_editor_img_zoom_group_type",!1):input_box_disabled("#_editor_img_zoom_group_type",!0),createlink_expend_img_obj.zoom.adjust()},adjust:function(){var e=createlink_expend_img_obj._now;if(jQuery("#_editor_img_zoom").prop("checked")){var o=createlink_expend_img_obj.link.add();jQuery(o).addClass("m9-img-zoom");var i="";if(""==jQuery("#_editor_img_zoom_url").val()?(i=jQuery(e).is(".m9-img-box")?jQuery(e).find("img").attr("src"):jQuery(e).attr("src"),jQuery("#_editor_img_zoom_url").val(i)):i=jQuery("#_editor_img_zoom_url").val(),m9_set_data_var(o,"m9-href",i),jQuery("#_editor_img_zoom_group").prop("checked")){var r=jQuery("#_editor_img_zoom_group_type").val();""!=r&&set_data_ani_type(o,"lightbox",{group:r})}else""!=i?set_data_ani_type(o,"lightbox",{}):remove_ani_type_info(o,"lightbox")}else if(jQuery("#_editor_img_zoom_url").val(""),jQuery(e).parents("a").length>0){var o=jQuery(e).parents("a")[0];remove_ani_type_info(o,"lightbox"),createlink_expend_img_obj.link.remove("m9-img-zoom")}}},hover:{use:function(e){createlink_expend_img_obj.hover.adjust(),e?(input_box_disabled("#_editor_img_hover_msg",!1),input_box_disabled("#_editor_img_hover_kind",!1),input_box_disabled("#_editor_img_hover_kind2",!1),jQuery("._img_hover_btn").removeClass("disabled").prop("disabled","")):(input_box_disabled("#_editor_img_hover_msg",!0),input_box_disabled("#_editor_img_hover_kind",!0),input_box_disabled("#_editor_img_hover_kind2",!0),jQuery("._img_hover_btn").addClass("disabled").prop("disabled","disabled"))},adjust:function(){var e=createlink_expend_img_obj._now;if(jQuery("#_editor_img_hover").prop("checked")){var o=jQuery("#_editor_img_hover_msg").val(),i=jQuery("#_editor_img_hover_kind").val(),r=createlink_expend_img_obj.link.add();jQuery(r).addClass("m9-img-hover"),0==jQuery(r).find("._m9_overlay").length&&jQuery(r).append('<span class="_m9_overlay"></span>');for(var t=jQuery(r).find("._m9_overlay")[0],a=0;a<createlink_expend_img_obj.hovers.length;a++)jQuery(t).removeClass(createlink_expend_img_obj.hovers[a]);jQuery(t).addClass(i),jQuery(t).html('<span class="_in"><span class="__m9">'+o+"</span></span>");for(var n=jQuery("#_editor_img_hover_kind2").val(),d=jQuery(r).find("img")[0],a=0;a<createlink_expend_img_obj.hovers2.length;a++)jQuery(d).removeClass(createlink_expend_img_obj.hovers2[a]);jQuery(d).addClass(n)}else if(jQuery(e).parents("a").length>0){var r=jQuery(e).parents("a")[0];jQuery(r).find("._m9_overlay").length>0&&jQuery(r).find("._m9_overlay").remove();for(var d=jQuery(r).find("img")[0],a=0;a<createlink_expend_img_obj.hovers2.length;a++)jQuery(d).removeClass(createlink_expend_img_obj.hovers2[a]);createlink_expend_img_obj.link.remove("m9-img-hover")}},preview:function(e){var o=createlink_expend_img_obj._now;if(jQuery(o).parents("a").length>0){var i=jQuery(o).parents("a")[0];if(jQuery(i).find("._m9_overlay").length>0){var r=jQuery(i).find("._m9_overlay"),t=jQuery(i).find("img");e?(r.addClass("active").addClass("__m9_overlay_preview"),t.addClass("active").addClass("__m9_overlay_img_preview")):(r.removeClass("active"),t.removeClass("active"))}}}},link:{add:function(){var e=createlink_expend_img_obj._now;return 0==jQuery(e).parents("a").length&&jQuery(e).wrap("<a></a>"),jQuery(e).parents("a")[0]},remove:function(e){var o=createlink_expend_img_obj._now;if(jQuery(o).parents("a").length>0){var i=jQuery(o).parents("a")[0];jQuery(i).removeClass(e);var r=0;if(jQuery(i).hasClass("m9-img-hover")&&r++,jQuery(i).hasClass("m9-img-zoom")&&r++,0==r){var t=jQuery(i).children().eq(0)[0];jQuery(t).unwrap()}}}}};
var btn_obj={_now:!1,_over:!1,_selector:"a,button,input[type='button'],input[type='submit']",style_info:{btn_color:{keys:["m9-btn-color-1","m9-btn-color-2","m9-btn-primary","m9-btn-success","m9-btn-info","m9-btn-warning","m9-btn-danger"]},btn_shape:{keys:["m9-btn-shape-1","m9-btn-shape-2","m9-btn-shape-3"]},btn_icon_animation:{keys:["m9-btn-icon-effect-top-1","m9-btn-icon-effect-right-1","m9-btn-icon-effect-bottom-1","m9-btn-icon-effect-left-1","m9-btn-icon-effect-rotate-1"]},btn_icon_align:{keys:["m9-btn-icon-position-left","m9-btn-icon-position-right"],values:[msg_msg("left"),msg_msg("right")]}},int:function(t){if(0==jQuery("#editWindow-btn").length){for(var n in tab_get.btn=[],btn_obj.style_info)style_info[n]=m9_get_vars({},btn_obj.style_info[n]),tab_get.btn.push(n);for(var n=0;n<style_info.box_color.keys.length;n++)style_info.btn_color.keys.push(style_info.box_color.keys[n]);style_info;var e="";e+='<ul class="_edit-list-1">';var o="a_btn";e+="<li>"+msg_msg("button")+'<span class="check-switch"><input type="checkbox" id="_editor_'+o+'" onchange="btn_obj.convert(\'_editor_'+o+'\');return false;" class="_drag-btn-3"><label for="_editor_'+o+'">'+msg_msg("use")+"</label></span></li>";var o="btn_color";e+='<li><dl class="_edit-dl-2"><dt><label for="_editor_'+o+'">'+msg_msg("color")+"</label></dt><dd>"+edit_control_box.selectbox2({id:o,onclick_function:"element_obj.edit.class.change('_editor_"+o+"')",mode_not:1,options:style_info[o],class_btn:"_btn_g_all",class_input:"_btn_g_all"})+"</dd></dl></li>";var o="btn_shape";e+='<li><dl class="_edit-dl-2"><dt><label for="_editor_'+o+'">'+msg_msg("shape")+"</label></dt><dd>"+edit_control_box.selectbox2({id:o,onclick_function:"element_obj.edit.class.change('_editor_"+o+"')",mode_not:1,options:style_info[o],class_btn:"_btn_g_all",class_input:"_btn_g_all"})+"</dd></dl></li>";var o="btn_add_icon";e+='<li><dl class="_edit-dl-2"><dt>'+msg_msg("icon")+'<span class="check-switch"><input type="checkbox" id="_editor_'+o+'" onchange="btn_obj.add_icon(\'_editor_'+o+'\');return false;" class="_drag-btn-3"><label for="_editor_'+o+'">'+msg_msg("use")+"</label></span></dt><dd></dd></dl></li>";var o="btn_icon_align";e+='<li><dl class="_edit-dl-2"><dt><label for="_editor_'+o+'">'+msg_msg("alignment")+"</label></dt><dd>"+edit_control_box.selectbox2({id:o,onclick_function:"btn_obj.change_icon_align('_editor_"+o+"')",mode_not:1,options:style_info[o],class_btn:"_btn_g_all2",class_input:"_btn_g_all2"})+"</dd></dl></li>";var o="btn_icon_animation";e+='<li><dl class="_edit-dl-2"><dt><label for="_editor_'+o+'">'+msg_msg("mouseover")+"</label></dt><dd>"+edit_control_box.selectbox2({id:o,onclick_function:"element_obj.edit.class.change('_editor_"+o+"')",mode_not:1,options:style_info[o],class_btn:"_btn_g_all2",class_input:"_btn_g_all2"})+"</dd></dl></li>",e+="</ul>",e+='<div class="_edit_remove_box"><a href="#" onclick="btn_obj.remove();return false;" title="'+msg_msg("property_remove")+'" data-alt-no="1" class="edit-btn-8 icon2-eraser"></a> <a href="#" onclick="btn_obj.delete();return false;" title="'+msg_msg("delete")+'" data-alt-no="1" class="edit-btn-8 icon2-delete"></a></div>',edit_window_obj.int("editWindow-btn",e,msg_msg("button_setting"),{reset:function(){}})}if(0==jQuery("#editor-btn-fix").length){var e='<div id="editor-btn-fix" class="btn_width _m9editor no" style="display:none"><a href="#" onclick="btn_obj.view();return false;" class="setting-btn-1">'+msg_msg("button_setting")+"</a></div>";jQuery("body").append(e);var i=function(t,n){var e=get_is_parents(t.target,btn_obj._selector,".m9_editor_box");e?(btn_obj._now=e,editor._now=e):btn_obj._now=!1,btn_obj.get()},l=function(t,n){var e=n;if(e){if("none"!=jQuery("#editWindow-btn").css("display")||jQuery(e).is(".tab-btn-on,.tab-btn-off")||jQuery(e).find("img,.m9-img-box").length>0||jQuery(e).hasClass("_editor_btn"))return!1;btn_obj._over=e,m9_layer_position("editor-btn-fix",e,"up"),jQuery("#editor-btn-fix").css("display","")}else jQuery("#editor-btn-fix").css("display","none")};editor_selector.set(t,[{_type:"mousedown",_func:i},{_type:"mouseover",_kind:"is_parents",_selector:"button,input[type='button'],input[type='submit']",_func:l,_ignore:1}])}},view:function(t,n){t&&(btn_obj._over=t),btn_obj._now=btn_obj._over,jQuery(".selected_tag").removeClass("selected_tag"),jQuery(btn_obj._now).addClass("selected_tag"),this.get(),m9_layer_position("editWindow-btn",n||btn_obj._now,"right",m9_getObject("body")),edit_window_obj.view("editWindow-btn"),jQuery("#editor-link-fix").css("display","none"),m9_delay("",100,function(){edit_window_obj.lineup("editWindow-btn")})},get:function(){var t=jQuery(btn_obj._now);element_obj._now=btn_obj._now;for(var n=0;n<tab_get.btn.length;n++)element_obj.edit.class.get(tab_get.btn[n]);if(""!=m9_mode_obj.get())return!1;t.hasClass("m9-btn")?(jQuery("#_editor_a_btn").prop("checked",!0),jQuery("#_editor_btn_add_icon,._btn_g_all,._btn_g_all2").removeClass("disabled").prop("disabled","")):(jQuery("#_editor_a_btn").prop("checked",!1),jQuery("#_editor_btn_add_icon,._btn_g_all,._btn_g_all2").addClass("disabled").prop("disabled","disabled")),t.find("._m9-btn-icon").length>0?(jQuery("#_editor_btn_add_icon").prop("checked",!0),jQuery("._btn_g_all2").removeClass("disabled").prop("disabled","")):(jQuery("#_editor_btn_add_icon").prop("checked",!1),jQuery("._btn_g_all2").addClass("disabled").prop("disabled","disabled"))},convert:function(t){var n=jQuery("#"+t).prop("checked");jQuery(".selected_tag").each(function(){if(!jQuery(this).is(btn_obj._selector))return!0;n?(jQuery(this).addClass("m9-btn"),jQuery("#_editor_btn_add_icon,._btn_g_all,._btn_g_all2").removeClass("disabled").prop("disabled","")):(jQuery(this).removeClass("m9-btn"),jQuery("#_editor_btn_add_icon,._btn_g_all,._btn_g_all2").addClass("disabled").prop("disabled","disabled"))})},add_icon:function(t){var n=jQuery("#"+t).prop("checked");n?jQuery("._btn_g_all2").removeClass("disabled").prop("disabled",""):jQuery("._btn_g_all2").addClass("disabled").prop("disabled","disabled"),style_info.btn_icon_align.keys.join(",."),jQuery(".selected_tag").each(function(){if(!jQuery(this).is(btn_obj._selector))return!0;for(var t=0;t<style_info.btn_icon_align.keys.length;t++)jQuery(this).removeClass(style_info.btn_icon_align.keys[t]);n?jQuery(this).addClass("m9-btn-icon-position-right").append('<i class="bi bi-caret-right-fill _m9-btn-icon"><i>&nbsp;</i></i>'):jQuery(this).find("._m9-btn-icon").remove()})},change_icon_align:function(t){element_obj.edit.class.change(t);var n=jQuery("#"+t).val();""==n&&(n="m9-btn-icon-position-right",jQuery(element_obj._now).each(function(){jQuery(this).addClass(n),undo_obj._add(this)}))},remove:function(){element_obj.get_selectedObj(),element_obj.menu.remove("btn")},delete:function(){var t=jQuery(".selected_tag");t.each(function(){(jQuery(this).attr("class").match(/m9\-btn\-/i)||jQuery(this).is(btn_obj._selector))&&(btn_obj._now=this,btn_obj.delete_one())}),t.length<=1&&edit_window_obj.close("editWindow-btn"),RemoveSelection()},delete_one:function(){var t=jQuery(btn_obj._now).parent();undo_obj._add(btn_obj._now,"btn_delete"),jQuery(btn_obj._now).remove(),btn_obj._now=!1,undo_obj._add_one(t,"btn_delete_after")}};
var special_char_obj={_char_btn:[{name:msg_msg("symbols"),href:""},{name:msg_msg("numbers_units"),href:""},{name:msg_msg("circle")+","+msg_msg("bracket"),href:""},{name:msg_msg("korean"),href:""},{name:msg_msg("greek_latin"),href:""},{name:msg_msg("japanese"),href:""}],_char:[["｛","｝","〔","〕","〈","〉","《","》","「","」","『","』","【","】","‘","’","“","”","、","。","\xb7","‥","…","\xa7","※","☆","★","○","●","◎","◇","◆","□","■","△","▲","▽","▼","◁","◀","▷","▶","♤","♠","♡","♥","♧","♣","⊙","◈","▣","◐","◑","▒","▤","▥","▨","▧","▦","▩","\xb1","\xd7","\xf7","≠","≤","≥","∞","∴","\xb0","′","″","∠","⊥","⌒","∂","≡","≒","≪","≫","√","∽","∝","∵","∫","∬","∈","∋","⊆","⊇","⊂","⊃","∪","∩","∧","∨","￢","⇒","⇔","∀","∃","\xb4","～","ˇ","˘","˝","˚","˙","\xb8","˛","\xa1","\xbf","ː","∮","∑","∏","♭","♩","♪","♬","㉿","→","←","↑","↓","↔","↕","↗","↙","↖","↘","㈜","№","㏇","™","㏂","㏘","℡","♨","☏","☎","☜","☞","\xb6","†","‡","\xae","\xaa","\xba","♂","♀"],["\xbd","⅓","⅔","\xbc","\xbe","⅛","⅜","⅝","⅞","\xb9","\xb2","\xb3","⁴","ⁿ","₁","₂","₃","₄","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","￦","$","￥","￡","€","℃","Å","℉","￠","\xa4","‰","㎕","㎖","㎗","ℓ","㎘","㏄","㎣","㎤","㎥","㎦","㎙","㎚","㎛","㎜","㎝","㎞","㎟","㎠","㎡","㎢","㏊","㎍","㎎","㎏","㏏","㎈","㎉","㏈","㎧","㎨","㎰","㎱","㎲","㎳","㎴","㎵","㎶","㎷","㎸","㎹","㎀","㎁","㎂","㎃","㎄","㎺","㎻","㎼","㎽","㎾","㎿","㎐","㎑","㎒","㎓","㎔","Ω","㏀","㏁","㎊","㎋","㎌","㏖","㏅","㎭","㎮","㎯","㏛","㎩","㎪","㎫","㎬","㏝","㏐","㏓","㏃","㏉","㏜","㏆"],["㉠","㉡","㉢","㉣","㉤","㉥","㉦","㉧","㉨","㉩","㉪","㉫","㉬","㉭","㉮","㉯","㉰","㉱","㉲","㉳","㉴","㉵","㉶","㉷","㉸","㉹","㉺","㉻","ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ","ⓖ","ⓗ","ⓘ","ⓙ","ⓚ","ⓛ","ⓜ","ⓝ","ⓞ","ⓟ","ⓠ","ⓡ","ⓢ","ⓣ","ⓤ","ⓥ","ⓦ","ⓧ","ⓨ","ⓩ","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","㈀","㈁","㈂","㈃","㈄","㈅","㈆","㈇","㈈","㈉","㈊","㈋","㈌","㈍","㈎","㈏","㈐","㈑","㈒","㈓","㈔","㈕","㈖","㈗","㈘","㈙","㈚","㈛","⒜","⒝","⒞","⒟","⒠","⒡","⒢","⒣","⒤","⒥","⒦","⒧","⒨","⒩","⒪","⒫","⒬","⒭","⒮","⒯","⒰","⒱","⒲","⒳","⒴","⒵","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂"],["ㄱ","ㄲ","ㄳ","ㄴ","ㄵ","ㄶ","ㄷ","ㄸ","ㄹ","ㄺ","ㄻ","ㄼ","ㄽ","ㄾ","ㄿ","ㅀ","ㅁ","ㅂ","ㅃ","ㅄ","ㅅ","ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ","ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ","ㅙ","ㅚ","ㅛ","ㅜ","ㅝ","ㅞ","ㅟ","ㅠ","ㅡ","ㅢ","ㅣ","ㅥ","ㅦ","ㅧ","ㅨ","ㅩ","ㅪ","ㅫ","ㅬ","ㅭ","ㅮ","ㅯ","ㅰ","ㅱ","ㅲ","ㅳ","ㅴ","ㅵ","ㅶ","ㅷ","ㅸ","ㅹ","ㅺ","ㅻ","ㅼ","ㅽ","ㅾ","ㅿ","ㆀ","ㆁ","ㆂ","ㆃ","ㆄ","ㆅ","ㆆ","ㆇ","ㆈ","ㆉ","ㆊ","ㆋ","ㆌ","ㆍ","ㆎ"],["Α","Β","Γ","Δ","Ε","Ζ","Η","Θ","Ι","Κ","Λ","Μ","Ν","Ξ","Ο","Π","Ρ","Σ","Τ","Υ","Φ","Χ","Ψ","Ω","α","β","γ","δ","ε","ζ","η","θ","ι","κ","λ","μ","ν","ξ","ο","π","ρ","σ","τ","υ","φ","χ","ψ","ω","\xc6","\xd0","Ħ","Ĳ","Ŀ","Ł","\xd8","Œ","\xde","Ŧ","Ŋ","\xe6","đ","\xf0","ħ","I","ĳ","ĸ","ŀ","ł","ł","œ","\xdf","\xfe","ŧ","ŋ","ŉ","Б","Г","Д","Ё","Ж","З","И","Й","Л","П","Ц","Ч","Ш","Щ","Ъ","Ы","Ь","Э","Ю","Я","б","в","г","д","ё","ж","з","и","й","л","п","ф","ц","ч","ш","щ","ъ","ы","ь","э","ю","я"],["ぁ","あ","ぃ","い","ぅ","う","ぇ","え","ぉ","お","か","が","き","ぎ","く","ぐ","け","げ","こ","ご","さ","ざ","し","じ","す","ず","せ","ぜ","そ","ぞ","た","だ","ち","ぢ","っ","つ","づ","て","で","と","ど","な","に","ぬ","ね","の","は","ば","ぱ","ひ","び","ぴ","ふ","ぶ","ぷ","へ","べ","ぺ","ほ","ぼ","ぽ","ま","み","む","め","も","ゃ","や","ゅ","ゆ","ょ","よ","ら","り","る","れ","ろ","ゎ","わ","ゐ","ゑ","を","ん","ァ","ア","ィ","イ","ゥ","ウ","ェ","エ","ォ","オ","カ","ガ","キ","ギ","ク","グ","ケ","ゲ","コ","ゴ","サ","ザ","シ","ジ","ス","ズ","セ","ゼ","ソ","ゾ","タ","ダ","チ","ヂ","ッ","ツ","ヅ","テ","デ","ト","ド","ナ","ニ","ヌ","ネ","ノ","ハ","バ","パ","ヒ","ビ","ピ","フ","ブ","プ","ヘ","ベ","ペ","ホ","ボ","ポ","マ","ミ","ム","メ","モ","ャ","ヤ","ュ","ユ","ョ","ヨ","ラ","リ","ル","レ","ロ","ヮ","ワ","ヰ","ヱ","ヲ","ン","ヴ","ヵ","ヶ"]],int:function(){var a="<div class=\"edit-tab-1\" data-m9-execute=\"tab({'on_class':'tab-btn-on','off_class':'tab-btn-off','slide':'down','accordion':'0','speed':'300'})\">";a+="<ul>";for(var e=0;e<this._char_btn.length;e++){var t=e+1,n="tab-btn-off",c="none";0==e&&(n="tab-btn-on",c="block"),a+='<li><a href="#" id="_tab-menu-special_char_'+t+'" class="'+n+"\" data-m9-tab-type=\"btn({'id':'tab"+t+"'})\">"+this._char_btn[e].name+'</a><div class="tab-content" style="display:'+c+";\" data-m9-tab-type=\"content({'id':'tab"+t+'\'})"><div class="special_char_box">';for(var i=0;i<this._char[e].length;i++)a+='<a href="#" onclick="special_char_obj.insert(\''+this._char[e][i]+'\');return false;" class="_special_btn">'+this._char[e][i]+"</a>";a+="</div></div></li>"}a+="</ul></div>",edit_window_obj.int("editWindow-special-char",a,msg_msg("special_characters"))},view:function(a){focus_obj.set(),M9TAB.btn_onclick(jQuery("#_tab-menu-special_char_1")[0]),m9_layer_position("editWindow-special-char",a,"down"),obj_fadeIn("#editWindow-special-char")},insert:function(a){focus_obj.set(),focus_obj.insert(a),undo_obj._add(editor._obj)}};
var video_obj={_now:!1,_real:!1,_scales:["auto","16x9","4x3"],_class_front:"m9-video-canvas-",ajax_url:"//app.mong9.com/index.cgi?page_code=ajax&code=get_video_url",int:function(e){if(video_obj.handle.int(),0==jQuery("#editWindow-video").length){var o='<ul class="_edit-list-1"><li><input type="radio" name="_video_sorce_type" id="_video_sorce_type0" value="0" checked onchange="video_obj.type_change();return false;" class="_drag-btn-3"><label for="_video_sorce_type0">'+msg_msg("enter_url")+'</label> <input type="radio" name="_video_sorce_type" id="_video_sorce_type1" value="1" onchange="video_obj.type_change();return false;" class="_drag-btn-3"><label for="_video_sorce_type1">'+msg_msg("enter_code")+'(Object, Embed)</label></li><li id="_video_sorce_type_box0"><input type="text" id="_video_iframe_url" class="_drag-btn-3"></li><li id="_video_sorce_type_box1" style="display:none"><textarea id="_video_code_source" class="_drag-btn-3"></textarea></li><li><input type="radio" name="_video_aspectRatio_type" id="_video_aspectRatio_type0" value="auto" onchange="video_obj.fix_ratio(this.value);return false;" class="_drag-btn-3"><label for="_video_aspectRatio_type0"><b>auto</b></label> <input type="radio" name="_video_aspectRatio_type" id="_video_aspectRatio_type1" value="16x9" onchange="video_obj.fix_ratio(this.value);return false;" class="_drag-btn-3"><label for="_video_aspectRatio_type1"><b>16x9</b></label> <input type="radio" name="_video_aspectRatio_type" id="_video_aspectRatio_type2" value="4x3" checked onchange="video_obj.fix_ratio(this.value);return false;" class="_drag-btn-3"><label for="_video_aspectRatio_type2"><b>4x3</b></label></li></ul><button onclick="video_obj.change()" class="curtain-btn editor-btn-yes _drag-btn-3">OK</button><span id="_video_return" style="display:none"></span>';edit_window_obj.int("editWindow-video",o,msg_msg("set_video"))}var i=function(e,o){var i=e.target;if(jQuery(i),o){jQuery("#_video_setting_box>div").css("display","none"),video_obj._now=i;var t=_get_box_info(i,1);jQuery("#_video_setting_box").css({display:"block",top:t.t,left:t.l,width:t.w,height:t.h}),"ie"==M9_SET.navigator&&jQuery("#_video_setting_box_iframe").css({display:"block",top:t.t,left:t.l,width:t.w,height:t.h})}else jQuery(i).is("#_video_setting_box")||0!=jQuery(i).parents("#_video_setting_box").length||(jQuery("#_video_setting_box").css({display:"none"}),"ie"==M9_SET.navigator&&jQuery("#_video_setting_box_iframe").css({display:"none"}))};editor_selector.set(e,[{_type:"mouseover",_kind:"is_parents",_selector:"iframe,object",_func:i,_ignore:1}])},check_viedo_and_set:function(){var e=jQuery(video_obj._now);if(!e.is("[class*="+this._class_front+"]")&&0==e.parents("[class*="+this._class_front+"]").length){var o=this._class_front+"auto",i=e.css("width"),t=e.css("height");e.wrap('<div class="'+o+'"></div>'),e.wrap("<div></div>"),e.css({width:i,height:t}).removeAttr("width").removeAttr("height")}},get_scale:function(e){e||(e=video_obj._now);var o=jQuery(e).parents("[class*="+this._class_front+"]")[0],i=jQuery(o).attr("class"),t="auto";if(i)for(var a=0;a<this._scales.length;a++){var s=this._class_front+this._scales[a];i.search(s)>-1&&(t=this._scales[a])}return t},check_scale:function(e){for(var o=0,i=0;i<this._scales.length;i++)this._scales[i]==e&&(o=i);jQuery("#_video_aspectRatio_type"+o).attr("checked",!0)},view:function(e){this.check_viedo_and_set(),e&&(video_obj._now=e),jQuery(video_obj._now).is("iframe")?(jQuery("#_video_iframe_url").val(jQuery(video_obj._now).attr("src")),jQuery("#_video_code_source").val(""),m9_set_radio_index("_video_sorce_type",0)):(jQuery("#_video_iframe_url").val(""),jQuery("#_video_code_source").val(jQuery(video_obj._now)[0].outerHTML),m9_set_radio_index("_video_sorce_type",1)),this.type_change();var o=this.get_scale();this.check_scale(o),jQuery("#_video_setting_box").css({display:"none"}),m9_layer_position("editWindow-video",e,"up",m9_getObject("body")),edit_window_obj.view("editWindow-video")},fix_ratio:function(e){for(var o=jQuery(video_obj._now).css("width"),i=jQuery(video_obj._now).css("height"),t=jQuery(video_obj._now).parents("[class*="+this._class_front+"]")[0],a=0;a<this._scales.length;a++)jQuery(t).removeClass(this._class_front+this._scales[a]);jQuery(t).addClass(this._class_front+e),"auto"==e?(jQuery(video_obj._now).css({width:o,height:i}),video_obj._real=video_obj._now):(jQuery(t).css({width:o,height:i}),video_obj._real=video_obj._now,video_obj._now=t),video_obj.change_size_finished()},type_change:function(){for(var e=m9_get_radio_index("_video_sorce_type"),o=0;o<2;o++){var i=o==e?"block":"none";jQuery("#_video_sorce_type_box"+o).css("display",i)}},change:function(){video_obj._now;var e=m9_get_radio_index("_video_sorce_type"),o="__this_is__random_class__"+Math.round(1e5*Math.random());if(0==e){var i=jQuery("#_video_iframe_url").val();m9_ajax_load_contents(video_obj.ajax_url+"&video="+encodeURIComponent(i),"_video_return",{whenever:!0},function(){var e=jQuery("#_video_return").text();""!=e&&(i=e),jQuery(video_obj._now).is("iframe")?jQuery(video_obj._now).attr("src",i):(jQuery(video_obj._now).is("object")||jQuery(video_obj._now).parents("object")[0],jQuery(video_obj._now).replaceWith('<div id="'+o+'"><iframe src="'+i+'" frameborder="0" allowfullscreen></iframe></div>'),video_obj._now=jQuery("#"+o).children()[0],jQuery(video_obj._now).unwrap()),jQuery("#_video_iframe_url").val(i),video_obj.after_change()})}else jQuery(video_obj._now).replaceWith('<div id="'+o+'">'+jQuery("#_video_code_source").val()+"</div>"),video_obj._now=jQuery("#"+o).children()[0],jQuery(video_obj._now).unwrap(),video_obj.after_change()},after_change:function(){jQuery("#_video_return").text(""),video_obj._real=video_obj._now,"auto"!=video_obj.get_scale()&&(video_obj._now=jQuery(video_obj._now).parents("[class*="+video_obj._class_front+"]")[0]),video_obj.change_size_finished(),undo_obj._add(video_obj._now),obj_fadeOut("#editWindow-video")},change_size_finished:function(e){var o=jQuery(video_obj._now),i=o.css("width"),t=o.css("height");"auto"!=video_obj.get_scale(video_obj._real)?(o.removeClass("_aspectRatio").css({width:i,height:"","min-width":"","min-height":"","max-width":"","max-height":""}).removeAttr("width").removeAttr("height"),jQuery(video_obj._real).removeClass("_aspectRatio").css({width:"",height:"","min-width":"","min-height":"","max-width":"","max-height":""}).removeAttr("width").removeAttr("height")):(jQuery(o.parents("[class*="+video_obj._class_front+"]")[0]).removeClass("_aspectRatio").css({width:"",height:"","min-width":"","min-height":"","max-width":"","max-height":""}).removeAttr("width").removeAttr("height"),o.removeClass("_aspectRatio").css({width:i,height:t,"min-width":"","min-height":"","max-width":"","max-height":""}).removeAttr("width").removeAttr("height")),video_obj._now=video_obj._real},handle:{int:function(){if(0==jQuery("#_video_setting_box").length){var e='<div id="_video_setting_box" class="_setting_area_box" style="display:none;"><div><a onclick="video_obj.handle.change_size();return false;" title="'+msg_msg("fix_size")+'" class="edit-btn _drag-btn-3 icon-arrows-alt hd-fix no"></a><a onclick="video_obj.view();return false;" title="'+msg_msg("set_video")+'" class="edit-btn-2 _drag-btn-3 icon-video hd-copy no"><i class="edit-btn-popup-2"></i></a><a onclick="video_obj.handle.del();return false;" title="'+msg_msg("delete")+'" class="edit-btn _drag-btn-3 icon-del hd-remove"></a></div></div>';if(jQuery("body").append(e),jQuery("#_video_setting_box").on("click",function(){jQuery(this).children().css("display","");var e=jQuery(video_obj._now).parents("[class*="+video_obj._class_front+"]").length>0?jQuery(video_obj._now).parents("[class*="+video_obj._class_front+"]")[0]:video_obj._now;element_obj.edit.convert_obj(e)}).on("mouseleave",function(){jQuery(this).css("display","none")}),"ie"==M9_SET.navigator){var e='<iframe id="_video_setting_box_iframe" style="z-index:10;position:absolute;top:0;left:0;filter:alpha(opacity=0);opacity:0.0;-moz-opacity:0.0;overflow:hidden;border:none;display:none"></iframe>';jQuery("body").append(e)}}},del:function(){var e=jQuery(video_obj._now);e.parents("[class*="+video_obj._class_front+"]").length>0&&(e=e.parents("[class*="+video_obj._class_front+"]")),e.fadeOut(300,function(){jQuery(this).remove(),video_obj._now=!1,jQuery("#_video_setting_box").css("display","none"),undo_obj._add(this)})},change_size:function(){jQuery("#_video_setting_box").css("display","none"),video_obj.check_viedo_and_set(),video_obj._real=video_obj._now,"auto"!=video_obj.get_scale()&&(video_obj._now=jQuery(video_obj._now).parents("[class*="+video_obj._class_front+"]")[0],jQuery(video_obj._now).addClass("_aspectRatio")),resize_obj.stop_callback=function(){video_obj.change_size_finished(),video_obj._real=void 0},resize_obj.change(video_obj._now)}}};

jQuery(function() {
	btn_obj.int();
	confirm_msg.int();
	tag_obj.int();
	html_obj.int();
	m9_delay('',500,function() {
		mong9_obj.get();
	});
});
