Alice = {
	version:"0.41",
	creator:"GoodBug",
	mail:"unicorn@jakartaproject.com;tomcat5@paran.com",
	homepage:"http://www.jakartaproject.com",
	updated:"2008.04.02"
};

Alice.config = {
	uploadpath: '',
	imageroot: './img/',
	uploadroot: ''
};


(function() {

Web.EditorManager = {
	hash: new Hash,	
	pop: new Hash,
	sequence:0,
	path:'',
	put: function(el) {
		this.hash[el.aliceId] = el;
	},
	instance: function(id) {
		var h = null;
		var keys = this.hash.keys();
		for (var i = 0; i < keys.length; i++) {
			if (this.hash[keys[i]].instance == id) {
				h = this.hash[keys[i]];
				break;
			}
		}
		if (!h) {
			h = new Web.Editor(id, arguments[1]||{});			
		}
		return h;
	},
	get: function(id) {
		var h = this.hash[id];
		if (!h) {			
			h = null;
		}
		return h;
	},
	getId: function() {
		return "s."+(++this.sequence);
	},
	remove: function(id) {
		this.hash.remove(id);
	},
	removeAll: function() {
		var keys = this.hash.keys();
		for (var i = 0; i < keys.length; i++) {
			this.remove(keys[i]);
		}
	},
	disableRange: function(id) {
		this.hash[id].disableRange();
	},
	disableAllRange: function() {
		var keys = this.hash.keys();
		for (var i = 0; i < keys.length; i++) {
			this.disableRange(keys[i]);
		}
	},
	disableFocus: function(id) {
		this.hash[id].disableFocus();
	},
	disableAllFocus: function() {
		var keys = this.hash.keys();
		for (var i = 0; i < keys.length; i++) {
			this.disableFocus(keys[i]);
		}
	},	
	pushPop: function(p) {
		this.pop[p.id] = p;
	},
	pullPop: function(id) {
		var p = this.pop[id];
		if (p) {			
			p.innerHTML = '';
			p.style.display = 'none';
			this.pop.remove(id);			
		}
	},
	pullAllPop: function() {
		var keys = this.pop.keys();
		for (var i = 0; i < keys.length; i++) {
			this.pullPop(keys[i]);
		}
	},
	disableAlllayout: function() {
		var keys = this.hash.keys();
		for (var i = 0; i < keys.length; i++) {
			this.hash[keys[i]].fontDisplayHidden();
		}
	}
};

Web.Editor = Class.create();
Web.Editor.prototype = {
	initialize: function(id, params) {		
		this.instance = id;		
		this.seqId = Web.EditorManager.getId();
		this.aliceId = 'alice-'+this.seqId;
		this.mode = 'HTML';
		this.file = new Hash;
		this.preview = null;
		this.range = null;
		this.focus = false;
		this.status = 'MAX';
		this.anchors = '_blank';
		this.limit = params.limit||0;

		if (this.instance) {
			var o1 = $(this.instance);
			var o2 = $n(this.instance);
			
			var d = 0;
			while (o1 || d == 0) {
				if (o1 && o1.tagName.toLowerCase() == 'textarea') {
					break;
				}
				o1 = o2[d++];
			}
			
			if (!o1) {
				alert('The textarea width id or name is not found');
				return;
			}
		}
		else {
			alert('Id propery is required');
			return;
		}
		
		var w = 600;
		var h = 300;		
		var p = o1.parentElement||o1.parentNode;
		if (params.width) {
			var sw = params.width.toString();
			if (sw.include('%')) {			
				if (p) {					
					w = Web.util.Position.pure(params.width)/100 * Web.util.Position.pure(Element.getStyle(p,'width'));					
				}
			}
			else {
				w = Web.util.Position.pure(params.width);
				w = w < 400? 400:w;
			}
			if (!Web.isIE) {
				w -= 2;
			}
		}
		if (params.height) {
			var sh = params.height.toString();
			if (sh.include('%')) {			
				if (p) {
					h = Web.util.Position.pure(params.height)/100 * Web.util.Position.pure(Element.getStyle(p,'height'));
				}
			}
			else {
				h = Web.util.Position.pure(params.height);
				h = h < 300? 300:h;
			}
		}
		
		this.invoke = params.invoke;
		this.thumbnail = params.thumbnail||50;
		this.fontSize = params.size||'13px';
		this.fontFamily = params.family||'µ¸¿ò';
		this.aliceType = params.type||'detail'; 
		this.aliceType = this.aliceType.toLowerCase();
		this.aliceWidth = '650';//Web.util.Position.pure(w||Element.getStyle(o1, "width")||'600px');
		this.aliceHeight = Web.util.Position.pure(h||Element.getStyle(o1, "height")||'300px');
		this.initValue = o1.value;
		this.appendHtml(this.createHtml(), o1);
		this.appendStyle();
		this.loadAlice();
		this.extendContextWindow();
		Web.EditorManager.put(this);
		o1.style.display = 'none';
	},
	
	loadAlice: function() {
		var cw = this.getAliceContentWindow();		
		cw.document.designMode = "on";
		cw.document.open();
		cw.document.write("<style type='text/css'>body {background-color:#ffffff;scrollbar-face-color:#d0d0d0;scrollbar-highlight-color:#ffffff;scrollbar-3dlight-color:#d0d0d0;scrollbar-darkshadow-color:#666666;scrollbar-shadow-color:#a0a0a0;scrollbar-arrow-color:#ffffff;scrollbar-track-color:#feedf4;}</style>");
		cw.document.write("<style type='text/css'>P {font-family:"+(this.fontFamily)+";font-size:"+(this.fontSize)+";margin-top:3px;margin-bottom:3px;margin-left:3;margin-right:3;white-space: -moz-pre-wrap;word-break:break-all;}</style>");
		cw.document.close();
		cw.document.body.style.fontSize = "11pt";
		cw.document.body.style.fontFamily = "verdana,µ¸¿ò";

		this.focusAlice();
		this.loadContent();
		if (Web.isIE) {
			var range = cw.document.selection.createRange();
			this.setAliceRange(range);
		}
		
		Event.observe(cw.document, "keydown", this.appendEventKeyDown);		      // n
		if (Web.isIE) {
			Event.observe(cw.document, "mousedown", this.appendEventMouseDown);   // n
			Event.observe(this.aliceId, "focus", this.appendEventFocus);          // y  focus = true;			
			Event.observe(window.document, "click", this.appendEventAllClick);    // y  popup == false then range = null, focus = false
			document.body.oncontextmenu = function() { return false; }
		}
		Event.observe(cw.document, "click", this.appendEventClick);           	  // n
		Event.observe(this.aliceId, "mouseout", this.appendEventMouseout);        // y  set range
	},
	
	showAlice: function() {
		var id = "alc-box-"+this.seqId;
		$(id).style.display = '';
	},
	
	hideAlice: function() {
		var id = "alc-box-"+this.seqId;
		$(id).style.display = 'none';
	},
	
	disableAlice: function() {
		this.toggleAlice('HTML');
		var y = Web.util.Position.objectY("alc-box-"+this.seqId);
		var x = Web.util.Position.objectX("alc-box-"+this.seqId);
		
		var obj = $("alc-disabled.s"+this.seqId);
		if (!obj) {
			var div = document.createElement("div");
			div.setAttribute("id", "alc-disabled.s"+this.seqId);
			document.body.appendChild(div);
			obj = div;
		}
		obj.className = "alc-shadow";
		obj.style.top = y;
		obj.style.left = x;
		obj.style.width = this.aliceWidth;
		obj.style.height = this.aliceHeight;
		obj.style.zIndex = 9999999;
		obj.style.display = 'inline';
	},
	
	enableAlice: function() {
		var obj = $("alc-disabled.s"+this.seqId);
		if (obj) {
			obj.style.display = 'none';	
		}
	},
	
	loadContent: function() {
		if (this.initValue.length > 0) {
			var cw = this.getAliceContentWindow();
			cw.document.body.innerHTML = (cw.document.body.innerHTML||'') + this.initValue;
		}	
	},
	
	appendEventClick: function(event) {
		Web.EditorManager.pullAllPop();
		Web.EditorManager.disableAlllayout();
		
	},
	
	appendEventFocus: function(event) {
		var alice = event.srcElement;
		if (alice.id) {
			var el = Web.EditorManager.get(alice.id);
			if (el) {
				el.focus = true;				
			}
		}
	},
	
	appendEventAllClick: function(event) {
		var src = event.srcElement;
		if (src.name != undefined) {
			//only alc-bttns-s.*, alc-select-s.*
			if (src.name.include('alc-')) {
				return;
			}
		}
		Web.EditorManager.disableAllRange();
		Web.EditorManager.disableAllFocus();
	},
	
	appendEventKeyDown: function(event) {
		var alice = Web.isIE? event.srcElement : event.target;
		if(event.keyCode == 9) {
			alice.focus();
			space = "    ";
			if (Web.isIE) {
				alice.selection = document.selection.createRange();
				alice.selection.text = space;
			} 
			event.returnValue = false;  
		}  
	},	
	
	appendEventMouseout: function(event) {				
		var alice = Web.isIE? event.srcElement : event.target;
		if (alice.id) {
			var el = Web.EditorManager.get(alice.id);
			if (el) {
				var cw = el.getAliceContentWindow();
				if (Web.isIE) {					
					var range = cw.document.selection.createRange();
					el.setAliceRange(range);
				}
			}
		}		
	},
	
	appendEventMouseDown: function(event) {
		if (event.button == 2) {			
			var obj = event.srcElement;
			if (obj) {
				var tid = null;
				if (obj.tagName == 'TD') {					
					if (obj.parentElement.parentElement && obj.parentElement.parentElement.tagName == 'TABLE') {
						tid = obj.parentElement.parentElement.id;
					}
					else if (obj.parentElement.parentElement.parentElement && obj.parentElement.parentElement.parentElement.tagName == 'TABLE') {
						tid = obj.parentElement.parentElement.parentElement.id;
					}	
				}				
				if (obj.tagName == 'TABLE') {
					tid = obj.id;
				}
				
				if (tid) {
					var alice = tid.substring(tid.indexOf('alice'));
					alice = alice.substring(0, alice.indexOf('-t'));

					var div = document.createElement("div");
					div.setAttribute("id", "alc-tab-opt.s"+Web.Math.random());
					div.setAttribute("className", "alc-pop");
					document.body.appendChild(div);

					div.style.position = "absolute";
					div.style.top = Web.util.Position.objectY(alice)+event.clientY;
					div.style.left = Web.util.Position.objectX(alice)+event.clientX;
					Alice.table.srcElement = obj;
					var d1 = alice+"-menu-row";
					var d2 = alice+"-menu-col";
					var d3 = alice+"-menu-cel";
					div.innerHTML = ""+
					"<table border=0 cellspacing=2 cellpadding=0 class=alc-cntxt-box><tr><td><table border=0 cellspacing=0 cellpadding=2 class=alc-cntxt-bs>"+
						"<tr><td rowspan=4 class=alc-cntxt-main><img src="+Alice.config.imageroot+"alice/editor/table_row.gif></td><td rowspan=4 valign=top style=padding-top:4;width:70><b>Çà ¿É¼Ç</td><td onclick=\"Alice.table.appendRowBefore('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>À§¿¡ Çà Ãß°¡</td></tr>"+
						"<tr><td onclick=\"Alice.table.appendRowAfter('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>¾Æ·¡¿¡ Çà Ãß°¡</td></tr>"+
						"<tr><td onclick=\"Alice.table.removeRow('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÇØ´çÇà »èÁ¦</td></tr>"+
						"<tr><td onclick=\"Alice.color.togglePicker('"+d1+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÇØ´çÇà ¹è°æ»ö <div style=position:absolute;left:250;width:200px;display:none id='"+d1+"' onclick=\"Alice.table.colorRow('"+alice+"','"+tid+"')\"></div></td></tr>"+
						"<tr><td colspan=4 height=1 bgcolor=#dddddd></td></tr>"+
						"<tr><td rowspan=4 class=alc-cntxt-main><img src="+Alice.config.imageroot+"alice/editor/table_col.gif></td><td rowspan=4 valign=top style=padding-top:4><b>¿­ ¿É¼Ç</td><td onclick=\"Alice.table.appendColBefore('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÁÂÃø¿¡ ¿­ Ãß°¡</td></tr>"+
						"<tr><td onclick=\"Alice.table.appendColAfter('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>¿ìÃø¿¡ ¿­ Ãß°¡</td></tr>"+
						"<tr><td onclick=\"Alice.table.removeCol('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÇØ´ç¿­ »èÁ¦</td></tr>"+
						"<tr><td onclick=\"Alice.color.togglePicker('"+d2+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÇØ´ç¿­ ¹è°æ»ö <div style=position:absolute;left:250;width:200px;display:none id='"+d2+"' onclick=\"Alice.table.colorCol('"+alice+"','"+tid+"')\"></div></td></tr>"+
						"<tr><td colspan=4 height=1 bgcolor=#dddddd></td></tr>"+
						"<tr><td rowspan=4 class=alc-cntxt-main><img src="+Alice.config.imageroot+"alice/editor/table_cell.gif></td><td rowspan=4 valign=top style=padding-top:4><b>¼¿ ¿É¼Ç</td><td onclick=\"Alice.table.mergeLeft('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÁÂÃøÀ¸·Î ÇÕÄ¡±â</td></tr>"+
						"<tr><td onclick=\"Alice.table.mergeRight('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>¿ìÃøÀ¸·Î ÇÕÄ¡±â</td></tr>"+
						"<tr><td onclick=\"Alice.table.mergeDown('"+alice+"','"+tid+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>¾Æ·¡·Î ÇÕÄ¡±â</td></tr>"+
						"<tr><td onclick=\"Alice.color.togglePicker('"+d3+"')\" class=alc-cntxt-sub onmouseover=this.className='alc-cntxt-sub-o' onmouseout=this.className='alc-cntxt-sub'>ÇØ´ç¼¿ ¹è°æ»ö <div style=position:absolute;left:250;width:200px;display:none id='"+d3+"' onclick=\"Alice.table.colorCell('"+alice+"','"+tid+"')\"></div></td></tr>"+
					"</table></td></tr></table>";

					Web.EditorManager.pullAllPop();
					Web.EditorManager.pushPop(div);
					
					return true;
				}
			}
		}
	},
	
	disableRange: function() {
		if (!this.popup) {
			this.setAliceRange(null);
		}
	},
	
	disableFocus: function() {
		if (!this.popup) {
			this.focus = false;
		}
	},
	
	focusAlice: function() {
		this.getAliceContentWindow().focus();
	},
	
	getAliceRange: function() {
		var cw = this.getAliceContentWindow();
		var range = null;
		if (Web.isIE) {			
			range = this.range? this.range : cw.document.selection.createRange();
		}
		else {
			range = cw.getSelection().getRangeAt(0);
		}
		return range;
	},	
	
	setAliceRange: function(range) {
		this.range = range;
	},
	
	popupHide: function() {
		Web.CanvasManager.hideAll();
		if (Web.isIE) {
			if (!this.focus) {
				var cw = this.getAliceContentWindow();
				cw.focus();			
			}
			else {	
				if (this.range) {		
					this.range.select();
					this.focusAlice();
				}
			}
		}
		else {
			this.focusAlice();
		}
		this.popup = false;
	},
	
	toggleAlice: function(m) {
		var cw = this.getAliceContentWindow();
		var tv = this.getAliceTextViewer();
		var s = this.seqId;

		if ((!m && this.mode == 'TEXT') || (m && m == 'HTML' && this.mode == 'TEXT')) {
			$("alc-edit-view-"+s).style.display = "inline";
			tv.style.display = "none";
			cw.document.body.innerHTML = tv.value;
			if (this.status == "MAX") {
				Element.setStyle(this.aliceId,{height:Web.util.Position.clientHeight()-53});
			}
			else if (this.status == "NORMAL") {
				Element.setStyle(this.aliceId,{height:this.aliceHeight-53});
			}
			this.modifyImagePath();
			this.focusAlice();
			this.mode = 'HTML';
			
			var bttns = document.getElementsByTagName('button');
			for (var i = 0; i < bttns.length; i++) {
				if (bttns[i].name.include('alc-bttns') || bttns[i].name.include('alc-select')) {
					if (bttns[i].getAttribute("enablebutton") != "on") {
						if (Web.isIE) {
							bttns[i].style.filter = 'alpha(opacity=100)';
						}
						else {
							bttns[i].style.MozOpacity = 1;
						}
						bttns[i].disabled = false;
					}
				}	
			}
		} 
		else if ((!m && this.mode == 'HTML') || (m && m == 'TEXT' && this.mode == 'HTML')) {	
			$("alc-edit-view-"+s).style.display = "none";
			tv.style.display = "inline";
			if (this.status == "MAX") {
				Element.setStyle(tv,{height:Web.util.Position.clientHeight()-53});
			}
			else if (this.status == "NORMAL") {
				Element.setStyle(tv,{height:this.aliceHeight-53});
			}
			this.modifyImagePath();
			tv.value = cw.document.body.innerHTML;
			tv.focus();
			this.mode = 'TEXT';
			
			var bttns = document.getElementsByTagName('button');
			for (var i = 0; i < bttns.length; i++) {
				if (bttns[i].name.include('alc-bttns') || bttns[i].name.include('alc-select')) {
					if (bttns[i].getAttribute("enablebutton") != "on") {
						if (Web.isIE) {
							bttns[i].style.filter = 'alpha(opacity=50)';
						}
						else {
							bttns[i].style.MozOpacity = .5;	
						}
						bttns[i].disabled = true;
					}
				}	
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	getContentWithLimit: function() {
		var html = this.getHtml();
		if (this.isLimit()) {			
			Web.alert({title:'°æ°í', msg:'º»¹®À» ³Ê¹« ¸¹ÀÌ ÀÛ¼ºÇÏ¼Ì½À´Ï´Ù<br>ÃÖ´ë º»¹® ÀÛ¼º°¡´É ±ÛÀÚ¼ö´Â <b>'+this.limit+'</b>¹ÙÀÌÆ® ÀÔ´Ï´Ù<br>ÇöÀç ÀÛ¼º ±ÛÀÚ¼ö´Â <b>'+html.getByte()+'</b>¹ÙÀÌÆ® ÀÔ´Ï´Ù',width:400});
			return null;
		}
		return html;
	},
	
	getContent: function(v) {
		v = v||false;
		return this.getHtml(v);
	},
	
	isLimit: function() {
		var html = this.getHtml();
		return (this.limit > 0 && html.getByte() > this.limit);
	},
	
	getHtml: function(v) {
		var tv = this.getAliceTextViewer();
		var cw = this.getAliceContentWindow();
		if (this.mode == 'HTML') {
			if (!v) {
				this.modifyImagePath();
			}
			html = cw.document.body.innerHTML;
		}
		else if (this.mode == 'TEXT') {
			html = tv.value;	
		}

		return html;
	},
	
	setContent: function(v) {
		var cw = this.getAliceContentWindow();
		cw.document.body.innerHTML = v;
		this.modifyImagePath();
		this.focusAlice();
	},
	
	appendContent: function(v) {
		this.pasteHtmlToAlice(v);
	},
	
	getAliceContentWindow: function() {
		return $(this.aliceId).contentWindow;
	},
	
	getAliceTextViewer: function() {
		return $('alc-text-view-'+this.seqId);
	},
	
	appendStyle: function() {
		//this.setStyleSelectTag();
		this.setStyleButtonTag();
	},
	
	setStyleSelectTag: function() {
		var objs = $n("alc-select-"+this.seqId);
		for (var i = 0; i < objs.length; i++) {
			if (objs[i]) {				
				objs[i].style.borderStyle = "solid";
				objs[i].style.borderWidth = "1px";
				objs[i].style.borderColor = "#fafafa";
				objs[i].onmouseover = function() { this.style.borderColor = "#316ac5"; this.style.backgroundColor = "#dff1ff"; }
				objs[i].onmouseout = function() { this.style.borderColor = "#fafafa"; this.style.backgroundColor = "#fafafa"; }
			}
		}
	},
	
	setStyleButtonTag: function() {
		var objs = $n("alc-bttns-"+this.seqId);
		for (var i = 0; i < objs.length; i++) {
			if (objs[i]) {
				objs[i].style.borderStyle = "solid";
				objs[i].style.borderWidth = "1px";
				objs[i].style.borderColor = "#fafafa";
				objs[i].onmouseover = function() { this.style.borderColor = "#316ac5"; this.style.backgroundColor = "#dff1ff"; }
				objs[i].onmouseout = function() { this.style.borderColor = "#fafafa"; this.style.backgroundColor = "#fafafa"; }
			}
		}
	},
	
	modifyImagePath: function() {
		var cw = this.getAliceContentWindow();
		var images = cw.document.getElementsByName("alc-images");
		for (i = 0; i < images.length; i++) {
			var src = images[i].src;
			if (src.include('http://'+Web.Location.domain())) {
				images[i].src = src.gsub('http://'+Web.Location.domain(), '');
			}				
		}
		
		var anchors = cw.document.getElementsByTagName("a");
		for (i = 0; i < anchors.length; i++) {
			anchors.item(i).target = this.anchors;
		}
	},
	
	appendHtml: function(html, el) {
		if (el.insertAdjacentHTML) {
			el.insertAdjacentHTML('beforeBegin', html);
		}
		else {
			var oRange = document.createRange();
			oRange.setStartBefore(el);
			var oFragment = oRange.createContextualFragment(html);
			el.parentNode.insertBefore(oFragment, el);
		}
	},
	
	createHtml: function() {		
		var seq = this.seqId;
		var image = Alice.config.imageroot;
		var ma = 	"<div id=alc-box-"+seq+" class=alc-box style=\"width:"+this.aliceWidth+"px;height:"+this.aliceHeight+"px\">";
		var fu = "";
		if(this.aliceType == 'none'){
			fu = "<div id=alc-edit-property-"+seq+" style='visibility:hidden'></div>"+
				 "<div id=alc-text-property-"+seq+" style='visibility:hidden'></div>"+
				 "<span id=alc-font-style-box-"+seq+" style='visibility:hidden'></span>"+
				 "<span id=alc-font-family-box-"+seq+" style='visibility:hidden'></span>"+
				 "<span id=alc-font-size-box-"+seq+" style='visibility:hidden'></span>"+
				 "<span id=alc-font-bgcolor-box-"+seq+" style='visibility:hidden'></span>"+
				 "<span id=alc-font-forecolor-box-"+seq+" style='visibility:hidden'></span>"+
			     "";
		}else{
			fu =	"<div id=alc-edit-property-"+seq+" class=alc-edit-fields>"+
							"<span title='¼Ò½ºº¸±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').toggleAlice();return false;\" enablebutton=on><img src="+image+"alice/editor/source.gif></button></span>"+
							"<span title='¿¡µðÅÍ ³»¿ë ÃÊ±âÈ­'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').initContextWindow();return false;\"><img src="+image+"alice/editor/newpage.gif></button></span>"+
							"<span title='¹Ì¸®º¸±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').previewContextWindow();return false;\"><img src="+image+"alice/editor/preview.gif></button></span>"+
					    	"<span title='ÇÁ¸°Æ®'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').printContextWindow();return false;\"><img src="+image+"alice/editor/print.gif></button></span>"+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
					    	"<span title='½ÇÇà Ãë¼ÒÇÏ±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').command('Undo',-1);return false;\"><img src="+image+"alice/editor/undo.gif></button></span>"+
					    	"<span title='´Ù½Ã ½ÇÇàÇÏ±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').command('Redo',1);return false;\"><img src="+image+"alice/editor/redo.gif></button></span>"+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
					    	"<span title='ÀÌ¹ÌÁö »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupImage();return false;\"><img src="+image+"alice/editor/pic.gif></button></span>"+
					    	"<span title='ÀÌ¹ÌÁö ¸µÅ© »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupUrlImage();return false;\"><img src="+image+"alice/editor/urlpic.gif></button></span>"+
					    	"<span title='ÇÃ·¡½¬ »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupFlash();return false;\"><img src="+image+"alice/editor/flash.gif></button></span>"+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
					    	(this.aliceType == 'detail' || this.aliceType == 'normal' ? 
					    	"<span title='ÅØ½ºÆ® ¸µÅ© »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupCreateLink();return false;\"><img src="+image+"alice/editor/link.gif></button></span>"+
					    	"<span title='ÅØ½ºÆ® ¸µÅ© Á¦°Å'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Unlink');return false;\"><img src="+image+"alice/editor/unlink.gif></button></span>"+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"
					    	:"")+
					    	"<span title='Ç¥ »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupTable();return false;\"><img src="+image+"alice/editor/table.gif></button></span>"+
					    	"<span title='ÇÊµå¼Â »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupField();return false;\"><img src="+image+"alice/editor/fieldset.gif></button></span>"+
					    	(this.aliceType == 'detail'? 
					    	"<span title='¶óÀÎ »ðÀÔ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').paste('Line');return false;\"><img src="+image+"alice/editor/line.gif></button></span>"+
					    	"<span title='ÆäÀÌÁö ºê·¹ÀÌÅ© »ðÀÔ(ÇÁ¸°Æ®½Ã ´ÙÀ½ ÆäÀÌÁö·Î ¼³Á¤)'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').paste('Break');return false;\"><img src="+image+"alice/editor/pagebreak.gif></button></span>"
					    	:"")+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
					    	"<span title='¿À¸¥ÂÊ Á¤·Ä'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('JustifyRight');return false;\"><img src="+image+"alice/editor/right.gif></button></span>"+
					    	"<span title='°¡¿îµ¥ Á¤·Ä'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('JustifyCenter');return false;\"><img src="+image+"alice/editor/center.gif></button></span>"+
					    	"<span title='¿ÞÂÊ Á¤·Ä'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('JustifyLeft');return false;\"><img src="+image+"alice/editor/left.gif></button></span>"+
					    	"<span title='ÀüÃ¼ ¸ÂÃß±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('JustifyFull');return false;\"><img src="+image+"alice/editor/full.gif></button></span>"+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
					    	(this.aliceType == 'detail' || this.aliceType == 'normal' ? 
					    		(this.aliceType == 'detail'?
					    	"<span title='µé¿©¾²±â ÁÙÀÓ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Outdent');return false;\"><img src="+image+"alice/editor/tableft.gif></button></span>"+
					    	"<span title='µé¿©¾²±â ´Ã¸²'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Indent');return false;\"><img src="+image+"alice/editor/tabright.gif></button></span>"
					    		:"")+
					    	"<span title='¹øÈ£ÀÖ´Â ¸ñ·Ï ³Ö±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('InsertOrderedList');return false;\"><img src="+image+"alice/editor/number.gif></button></span>"+
					    	"<span title='¹øÈ£¾ø´Â ¸ñ·Ï ³Ö±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('InsertUnorderedList');return false;\"><img src="+image+"alice/editor/point.gif></button></span>"+
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"
					    	:"")+
					    	"<span title='¿¡µðÅÍ ÃÖ´ë»çÀÌÁî·Î'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').extendContextWindow();return false;\"><img src="+image+"alice/editor/extend.gif></button></span>"+					    	
					    	"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
						"</div>"+
						"<div id=alc-text-property-"+seq+" class=alc-text-fields>"+
							"<span title='½ºÅ¸ÀÏ Àû¿ë'>"+Web.util.Select.alice['alc-font-style'].gsub(/\{0\}/, seq).gsub(/\{1\}/, this.aliceId)+"</span>"+
							"<span title='ÆùÆ® Àû¿ë'>"+Web.util.Select.alice['alc-font-family'].gsub(/\{0\}/, seq).gsub(/\{1\}/, this.aliceId)+"</span>"+
							"<span title='ÆùÆ®Å©±â Àû¿ë'>"+Web.util.Select.alice['alc-font-size'].gsub(/\{0\}/, seq).gsub(/\{1\}/, this.aliceId)+"</span>"+
							"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
							"<span title='±ÛÀÚ ¹è°æ»ö ³Ö±â'>"+Web.util.Select.alice['alc-font-bgcolor'].gsub(/\{0\}/, seq).gsub(/\{1\}/, this.aliceId).gsub(/\{2\}/, Alice.color.picker(this.seqId))+"</span>"+
							"<span title='±ÛÀÚ»ö ³Ö±â'>"+Web.util.Select.alice['alc-font-forecolor'].gsub(/\{0\}/, seq).gsub(/\{1\}/, this.aliceId).gsub(/\{2\}/, Alice.color.picker(this.seqId))+"</span>"+
							"<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
						    "<span title='±ÛÀÚ ±½°Ô'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Bold');return false;\"><img src="+image+"alice/editor/bold.gif></button></span>"+
						    (this.aliceType == 'detail' || this.aliceType == 'normal' ? 
						    "<span title='±ÛÀÚ ±â¿ïÀÌ±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Italic');return false;\"><img src="+image+"alice/editor/italic.gif></button></span>"+
						    "<span title='±ÛÀÚ ¹ØÁÙ³Ö±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Underline');return false;\"><img src="+image+"alice/editor/underline.gif></button></span>"+
						    "<span title='±ÛÀÚ Ãë¼ÒÇ¥½Ã'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Strikethrough');return false;\"><img src="+image+"alice/editor/strikethrough.gif></button></span>"
						    :"")+
						    "<span><img src="+image+"alice/editor/gray_separator.gif></span>"+
						    (this.aliceType == 'detail' || this.aliceType == 'normal' ? 
						    	(this.aliceType == 'detail'?
						    "<span title='¾Æ·§ Ã·ÀÚ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Subscript');return false;\"><img src="+image+"alice/editor/subscript.gif></button></span>"+
						    "<span title='À­ Ã·ÀÚ'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('Superscript');return false;\"><img src="+image+"alice/editor/superscript.gif></button></span>"+
						    "<span><img src="+image+"alice/editor/gray_separator.gif></span>"
						    	:"")+
						    "<span title='Æ÷¸Ë Áö¿ì±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('RemoveFormat');return false;\"><img src="+image+"alice/editor/removeformat.gif></button></span>"+						    
						    	(this.aliceType == 'detail'?
						    "<span title='¾ÆÀÌÄÜ ³Ö±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupIcon();return false;\"><img src="+image+"alice/editor/icon.gif></button></span>"+
						    "<span title='ÀüÃ¼ ¼±ÅÃÇÏ±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').execute('SelectAll');return false;\"><img src="+image+"alice/editor/selectall.gif></button></span>"
						    	:"")+
						    "<span title='Æ¯¼ö¹®ÀÚ ³Ö±â'><button name=alc-bttns-"+seq+" onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupSpecialChar();return false;\"><img src="+image+"alice/editor/specialchar.gif></button></span>"+
						    "<span><img src="+image+"alice/editor/gray_separator.gif></span>"
						    :"")+
					  	"</div>";
				}
		var bo = 		"<div>"+
							"<textarea id=alc-text-view-"+seq+" class=alc-dummy></textarea>"+
							"<span id=alc-edit-view-"+seq+">"+
								"<iframe id=alice-"+seq+" class=alc-frame marginwidth=10 marginheight=10 frameborder=0 border=0 scrolling="+(Web.isIE? "yes":"auto")+"></iframe>"+
							"</span>"+
						"</div>";
		var fo = 	"</div>";
		return ma+fu+bo+fo;
	},
	
	pasteHtmlToAlice: function(value) {
		if (value != null) {			
			var range = this.getAliceRange();			
			if (Web.isIE) {
				if (!this.focus) {
					var cw = this.getAliceContentWindow();
					var type = cw.document.selection.type;
					cw.focus();
					cw.document.selection.createRange().pasteHTML(value);
				}
				else {
					if (range) {
						var cw = this.getAliceContentWindow();
						var type = cw.document.selection.type;
						range.select();
						try {
							range.pasteHTML(value);
						}
						catch(e){}
						this.focusAlice();
					}
				}
			}
			else {
				this.focusAlice();
				if (range) {
					range.deleteContents();
					range.insertNode(range.createContextualFragment(value));
				}
			}
		}
	},
	
	command: function(cmd, optn) {
		var cw = this.getAliceContentWindow();
		if (Web.isIE) {
			var range = this.getAliceRange();
			if ('Undo,Redo,SelectAll'.include(cmd)) {
				range = cw.document.selection.createRange();
				range.select();
				var type = cw.document.selection.type;
				var target = (type == "None" ? cw.document : range);
					target.execCommand(cmd, false, optn);	
			}
			else {
				if (!this.focus) {
					var cw = this.getAliceContentWindow();
					cw.focus();
					cw.document.selection.createRange().execCommand(cmd, false, optn);
				}
				else {
					if (range) {
						range.select();
						range.execCommand(cmd, false, optn);
					}
				}
			}			
		} 
		else {
			cw.document.execCommand(cmd, false, optn);
		}
		this.focusAlice();
	},
	
	paste: function(cmd, v) {
		if (cmd == 'Break') {
			this.pasteHtmlToAlice("<div style=\"PAGE-BREAK-AFTER: always\"><span style=\"DISPLAY: none\">&nbsp;</span></div>");
		}
		else if (cmd == 'Line') {
			this.pasteHtmlToAlice("<P><HR></P>");
		}
		else if (cmd == 'Char' || cmd == 'Icon') {
			this.pasteHtmlToAlice(v);
		}
	},
	
	appendFile: function(args) {
		this.file[args.physical] = {phsical:args.physical, full:args.full, logical:args.logical, size:args.size};
		if (this.invoke) {
			eval(this.invoke+"('"+args.physical+"','"+args.logical+"', "+args.size+")");
		}
	},
	
	getPysicalFile: function() {
		var keys = this.file.keys();
		return keys.toJSON();
	},
	
	getLogicalFile: function() {
		var keys = this.file.keys();
		var ary = new Array;
		for (var i = 0; i < keys.length; i++) {
			ary.push(this.file[keys[i]].logical);
		}
		return ary.toJSON();
	},
	
	getFullPhsycalFile: function() {
		var keys = this.file.keys();
		var ary = new Array;
		for (var i = 0; i < keys.length; i++) {
			ary.push(this.file[keys[i]].full);
		}
		return ary.toJSON();
	},
	
	initContextWindow: function() {
		var cw = this.getAliceContentWindow();  
		var rg = this.range;
		Web.yesno({title:'¿¡µðÅÍ ÃÊ±âÈ­',msg:'¿¡µðÅÍ ³»¿ëÀ» ÃÊ±âÈ­ ÇÕ´Ï´Ù', fnyes:function() {
			cw.document.body.innerHTML = '';
			cw.focus();
		}, fnno:function() {
			cw.focus();
			if (rg) {
				rg.select();
			}
		}});
	},
	
	extendContextWindow: function() {
		if (this.status == "MAX") {
			$("alc-box-"+this.seqId).style.zIndex = 0;
			$("alc-box-"+this.seqId).style.position = "relative";
			Element.setStyle("alc-box-"+this.seqId, {width:this.aliceWidth,height:this.aliceHeight});
			Element.setStyle(this.aliceId, {width:'100%',height:this.aliceHeight-53});
			this.status = "NORMAL";
		}
		else if (this.status == "NORMAL") {
			$("alc-box-"+this.seqId).style.zIndex = 8080;
			$("alc-box-"+this.seqId).style.position = "absolute";
			$("alc-box-"+this.seqId).style.top = "0";
			$("alc-box-"+this.seqId).style.left = "0";
			
			if (Web.isIE) {
				Element.setStyle("alc-box-"+this.seqId, {width:Web.util.Position.clientWidth(),height:Web.util.Position.clientHeight()});
				Element.setStyle(this.aliceId,{height:Web.util.Position.clientHeight()-53});
			}
			else {
				Element.setStyle("alc-box-"+this.seqId, {width:Web.util.Position.clientWidth()-18,height:Web.util.Position.clientHeight()-2});
				Element.setStyle(this.aliceId,{height:Web.util.Position.clientHeight()-53});
			}
			this.status = "MAX";
		}
		
	},
	
	previewContextWindow: function() {
		if(this.preview != null) {
			this.preview.close();
		}
		
		var w = (this.aliceWidth).toString();
		w = Web.util.Position.pure(w);
		var windowprops="scrollbars=yes,left=50,top=50,width="+(parseInt(w)+18)+",height=650";
		this.preview = window.open("about:blank", "_preview", windowprops);
    	
		var cw = this.getAliceContentWindow();
		var txt ="<title>¹Ì¸®º¸±â</title>"+
				 "<style type='text/css'>P {margin-top:3px;margin-bottom:3px;margin-left:3;margin-right:3;white-space: -moz-pre-wrap;word-break:break-all;}</style>"+
				 "<table border=0 cellspacing=0 cellpadding=0 width=100% height=100% style=\"cursor:pointer\" onclick=\"window.close()\"><tr><td align=center valign=top>"+
				 "<table border=0 cellspacing=1 cellpadding=0 bgcolor=#dddddd width=98% height=100%><tr><td valign=top>"+
				 "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff width=100% height=100%><tr><td align=center>"+
				 "<table border=0 cellspacing=0 cellpadding=0 width=98% height=98%><tr><td valign=top><br>"+
				 cw.document.body.innerHTML+
				 "</td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
    	
		this.preview.document.open();
		this.preview.document.write(txt);
		this.preview.document.close();
	},
	
	printContextWindow: function() {
		this.focusAlice();
		window.print();
	},
	
	execute: function(cmd) {
		this.command(cmd);
	},
	
	popupFontStyle: function() {
		this.fontDisplayHidden("alc-font-style-box-");
	},
	
	popupFontFamily: function() {
		this.fontDisplayHidden("alc-font-family-box-");
	},	
	
	popupFontSize: function() {
		this.fontDisplayHidden("alc-font-size-box-");
	},
	
	popupBackgroundColor: function() {
		this.fontDisplayHidden("alc-font-bgcolor-box-");
	},
	
	popupForegroundColor: function() {
		this.fontDisplayHidden("alc-font-forecolor-box-");
	},
	
	fontDisplayHidden: function(id) {
		if (!id) {
			this.fontStyleHidden();
			this.fontFamilyHidden();
			this.fontSizeHidden();
			this.fontBackColorHidden();
			this.fontForeColorHidden();
		}
		else {
			if ("alc-font-style-box-" != id) {
				this.fontStyleHidden();
			}
			if ("alc-font-family-box-" != id) {
				this.fontFamilyHidden();
			}
			if ("alc-font-size-box-" != id) {
				this.fontSizeHidden();
			}
			if ("alc-font-bgcolor-box-" != id) {
				this.fontBackColorHidden();
			}
			if ("alc-font-forecolor-box-" != id) {
				this.fontForeColorHidden();
			}
			this.toggleDisplay(id+this.seqId);
		}		
	},
	
	fontStyleHidden: function() {
		$("alc-font-style-box-"+this.seqId).style.display = 'none';
	},
	
	fontFamilyHidden: function() {
		$("alc-font-family-box-"+this.seqId).style.display = 'none';
	},
	
	fontSizeHidden: function() {
		$("alc-font-size-box-"+this.seqId).style.display = 'none';
	},
	
	fontBackColorHidden: function() {
		$("alc-font-bgcolor-box-"+this.seqId).style.display = 'none';
	},
	
	fontForeColorHidden: function() {
		$("alc-font-forecolor-box-"+this.seqId).style.display = 'none';
	},
	
	toggleDisplay: function(id) {
		if ($(id).style.display == 'inline') {
			$(id).style.display = 'none';
		}
		else {
			$(id).style.display = 'inline';
		}
	},
	
	encodeHtml: function(txt) {
		if (typeof(txt) != "string") {
			txt = txt.toString();
		}
		txt = txt.replace(
			/&/g, "&amp;").replace(
			/"/g, "&quot;").replace(
			/</g, "&lt;").replace(
			/>/g, "&gt;") ;
		return txt;
	},
	
	popupImage: function() {
		this.popup = true;
		var txt = ""+
			"<h3>ÀÌ¹ÌÁö ¼³Á¤</h3>"+
			"<form name=aliceForm id=aliceForm target=alc-hidden-frame action='"+Alice.config.uploadpath+"alice-upload' method=post enctype='multipart/form-data'>"+
			"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+			
			"<tr>"+
				"<td class=alc-pop-bs1><li>ÀÌ¹ÌÁö</li></td><td><input type=file name=alc-image-upload id=alc-image-upload style=width:325 onkeypress=this.blur()></td>"+
			"</tr>"+
			"<tr>"+
				"<td class=alc-pop-bs1><li>ÀÌ¹ÌÁö ¼³¸í</li></td><td><input type=text id=alc-image-alt style=width:325></td>"+
			"</tr>"+
			"<tr><td align=center colspan=2><br><span id=alc-image-uploadbtn onclick=\"Alice.image.upload()\">"+Web.util.Image.alice['alc-crud-upload']+"</span><span id=alc-image-loading style=display:none>"+Web.util.Image.alice['alc-crud-loading']+"</span></td></tr>"+
			"<tr>"+
				"<td colspan=2>"+
					"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>³Êºñ</li></td><td><input type=text id=alc-image-width title\"³Êºñ\" style=width:50 onkeyup=Alice.image.keyupWidth()></td>"+
						"<td align=center rowspan=7 class=alc-pop-bs0 valign=top><strong>¹Ì¸®º¸±â</strong><br><div style='padding:2px 2px 2px 2px;width:250px;height:130px;overflow:auto;border:1px solid #336699;background-color:#fff;font-size:8pt' id=alc-image-preview-text>"+
							"<img id=alc-image-preview style='filter:gray(enabled=false) xray(enabled=false) fliph(enabled=false) flipv(enabled=false) blur(enabled=false,add:1,direction:135) invert(enabled=false);display:none'>"+
								"µ¿ÇØ¹°°ú ¹éµÎ»êÀÌ ¸¶¸£°í ´âµµ·Ï ÇÏ´À´ÔÀÌ º¸¿ìÇÏ»ç ¿ì¸® ³ª¶ó ¸¸¼¼ ³²»êÀ§¿¡ Àú ¼Ò³ª¹« Ã¶°©À» µÎ¸¥µí ¹Ù¶÷¼­¸® ºÒº¯ÇÔÀº ¿ì¸® ±â»óÀÏ¼¼ °¡À» ÇÏ´Ã °øÈ°ÇÑµ¥ ³ô°í ±¸¸§ ¾øÀÌ ¹àÀº ´ÞÀº ¿ì¸® °¡½¿ ÀÏÆí ´Ü½ÉÀÏ¼¼ ÀÌ ±â»ó°ú ÀÌ ¸¾À¸·Î Ãæ¼ºÀ» ´ÙÇÏ¿© ±«·Î¿ì³ª Áñ°Å¿ì³ª ³ª¶ó »ç¶ûÇÏ¼¼"+
							"</div></td>"+
					"</tr>"+     
					"<tr>"+      
						"<td class=alc-pop-bs1><li>³ôÀÌ</li></td><td><input type=text id=alc-image-height title\"³ôÀÌ\" style=width:50 onkeyup=Alice.image.keyupHeight()></td>"+
					"</tr>"+     
					"<tr>"+			   		
						"<td class=alc-pop-bs1><li>Å×µÎ¸®</li></td><td><input type=text id=alc-image-border title\"Å×µÎ¸®\" style=width:50 onkeyup=Alice.image.keyupBorder()></td>"+
					"</tr>"+     
					"<tr>"+      
						"<td class=alc-pop-bs1><li>¼öÆò¿©¹é</li></td><td><input type=text id=alc-image-hspace title\"¼öÆò¿©¹é\" style=width:50 onkeyup=Alice.image.keyupHspace()></td>"+
					"</tr>"+     
					"<tr>"+      
						"<td class=alc-pop-bs1><li>¼öÁ÷¿©¹é</li></td><td><input type=text id=alc-image-vspace title\"¼öÁ÷¿©¹é\" style=width:50 onkeyup=Alice.image.keyupVspace()></td>"+
					"</tr>"+     
					"<tr>"+      
						"<td class=alc-pop-bs1><li>Á¤·Ä</li></td><td>"+
							"<select id=alc-image-order onchange=Alice.image.changeOrder()>"+
								"<option></option>"+
								"<option value=left>¿ÞÂÊ</option>"+
								"<option value=right>¿À¸¥ÂÊ</option>"+
								"<option value=top>À§ÂÊ</option>"+
								"<option value=bottom>¾Æ·¡ÂÊ</option>"+
								"<option value=absmiddle>ÁÙÁß°£</option>"+
								"<option value=absbottom>ÁÙ¾Æ·¡</option>"+
								"<option value=baseline>±âÁØ¼±</option>"+
								"<option value=textTop>±ÛÀÚÀ§</option>"+								
							"</select>"+
							"<input type=hidden id=alc-is-upload value=N>"+
							"<input type=hidden id=thumbsize name=thumbsize value="+this.thumbnail+">"+
						"</td>"+
					"</tr>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>±Û°úºÐ¸®</li></td><td><input type=checkbox id=alc-image-break onclick=Alice.image.insertBreak()></td>"+
					"</tr>"+
					(Web.isIE? 
					"<tr>"+
						"<td colspan=3>"+
							"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+								
								"<tr>"+
									"<td class=alc-pop-bs1><li>Èæ¹éÀüÈ¯</li></td><td valign=top><input type=checkbox id=alc-image-black onclick=Alice.image.transformGray()></td>"+
									"<td class=alc-pop-bs1><li>¿¢½º·¹ÀÌ</li></td><td valign=top><input type=checkbox id=alc-image-xray onclick=Alice.image.transformXray()></td>"+
									"<td class=alc-pop-bs1><li>»ö»ó¹Ý´ë</li></td><td valign=top><input type=checkbox id=alc-image-invert onclick=Alice.image.transformInvert()></td>"+
								"</tr>"+
								"<tr>"+
								"<td class=alc-pop-bs1><li>ºÎµå·´°Ô</li></td><td valign=top><input type=checkbox id=alc-image-blur onclick=Alice.image.transformBlur()></td>"+
									"<td class=alc-pop-bs1><li>ÁÂ¿ìº¯°æ</li></td><td valign=top><input type=checkbox id=alc-image-fliph onclick=Alice.image.transformFliph()></td>"+
									"<td class=alc-pop-bs1><li>»óÇÏº¯°æ</li></td><td valign=top><input type=checkbox id=alc-image-flipv onclick=Alice.image.transformFlipv()></td>"+
								"</tr>"+
							"</table>"+
						"</td>"+
					"</tr>":"")+
					"</table>"+
				"</td>"+
			"</tr>"+
			"</table>"+
			"</form>"+
			"<center><span onclick=Alice.image.apply('"+this.aliceId+"')>"+Web.util.Image.alice['alc-crud-apply']+"</span>"+
					"<span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>"+			
			"<iframe src=about:blank name=alc-hidden-frame id=alc-hidden-frame class=alc-hddn-frame></iframe>";

		Web.popup({title:'ÀÌ¹ÌÁö ¼³Á¤',msg:txt,width:500,height:440});
		Web.Form.setStyle("aliceForm");
	},
	
	popupFlash: function() {
		this.popup = true;

		var txt = ""+						
			"<h3>ÇÃ·¡½¬ ¼³Á¤</h3>"+
			"<form name=aliceForm id=aliceForm target=alc-hidden-frame action="+Alice.config.uploadpath+"alice-upload method=post enctype='multipart/form-data'>"+
			"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+
			"<tr>"+
				"<td class=alc-pop-bs1><li>ÇÃ·¡½¬</li></td><td><input type=file name=alc-flash-upload id=alc-flash-upload style=width:320 onkeypress=this.blur()></td>"+
			"</tr>"+
			"<tr><td align=center colspan=2><br><span id=alc-flash-uploadbtn onclick=\"Alice.flash.upload()\">"+Web.util.Image.alice['alc-crud-upload']+"</span><span id=alc-flash-loading style=display:none>"+Web.util.Image.alice['alc-crud-loading']+"</span></td></tr>"+
			"<tr>"+
				"<td colspan=2 >"+
					"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+
					"<tr>"+
						"<td valign=top width=180><br>"+
							"<table border=0 cellspacing=0 cellpadding=0>"+
								"<tr>"+
									"<td valign=top class=alc-pop-bs1><li>³Êºñ</li></td><td valign=top><input type=text id=alc-flash-width style=width:70 onkeyup=Alice.flash.keyupWidth()></td>"+
								"</tr>"+
								"<tr>"+
									"<td valign=top class=alc-pop-bs1><li>³ôÀÌ</li></td><td valign=top><input type=text id=alc-flash-height style=width:70 onkeyup=Alice.flash.keyupHeight()></td>"+						
								"</tr>"+
							"</table>"+
						"</td>"+
						"<td align=center class=alc-pop-bs0 valign=top>"+
							"<strong>¹Ì¸®º¸±â</strong><br><div style='padding:2px 2px 2px 2px;width:230px;height:130px;overflow:auto;border:1px solid #336699;background-color:#fff' id=alc-flash-preview></div></td>"+
					"</table>"+
				"</td>"+
			"</tr>"+			
			"</table>"+
			"</form>"+
			"<center><span onclick=Alice.flash.apply('"+this.aliceId+"')>"+Web.util.Image.alice['alc-crud-apply']+"</span>"+
					"<span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>"+
			"<input type=hidden name=alc-is-upload id=alc-is-upload value=N>"+			
			"<iframe src=about:blank name=alc-hidden-frame id=alc-hidden-frame class=alc-hddn-frame></iframe>";

		Web.popup({title:'ÇÃ·¡½¬ ¼³Á¤',msg:txt,width:500,height:350});
		Web.Form.setStyle("aliceForm");
	},
	
	popupTable: function() {
		this.popup = true;

		var txt = ""+			
			"<h3>Å×ÀÌºí ¼³Á¤</h3>"+
			"<form name=aliceForm>"+
			"<table border=0 width=100% cellspacing=0 cellpadding=0 class=alc-pop-bs0>"+				
				"<tr height=25>"+
					"<td width=25%><li>°¡·ÎÁÙ</li></td>"+
					"<td width=25%><Input type=text id=trow size=4 value=3></td>"+
					"<td width=25%><li>³Êºñ</li></td>"+
					"<td width=25%><input type=text id=twidth size=4 value=200> <select id=tsize><option value=picxel>ÇÈ¼¿</option><option value=percentage>ÆÛ¼¾Æ®</option></select></td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>¼¼·ÎÁÙ</li></td>"+
					"<td><input type=text id=tcol size=4 value=2></td>"+
					"<td><li>³ôÀÌ</li></td>"+
					"<td><input type=text id=theight size=4> ÇÈ¼¿</td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>Å×µÎ¸® Å©±â</li></td>"+
					"<td><input type=text id=tborder size=4 value=1></td>"+
					"<td><li>¼¿°£°Ý</li></td>"+
					"<td><input type=text id=tspacing size=4 value=1></td>"+
				"</tr>"+
				"<tr height=25>"+
				 	"<td><li>Á¤·Ä</li></td>"+
				 	"<td><select id=talign>"+
				 	     "<option value=no>¼³Á¤µÇÁö¾ÊÀ½</option>"+
				 	     "<option value=left>¿ÞÂÊ</option>"+
				 	     "<option value=center>°¡¿îµ¥</option>"+
				 	     "<option value=right>¿À¸¥ÂÊ</option>"+
				 	    "</select>"+
				 	"</td>"+
					"<td><li>¼¿¿©¹é</li></td>"+
					"<td><input type=text id=tpadding size=4 value=1></td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>Å×µÎ¸®¹àÀº»ö</li></td>"+
					"<td><input type=text id=tlight size=8 value=#999999></td>"+
					"<td><li>Å×µÎ¸®¾îµÎ¿ì»ö</li></td>"+
					"<td><input type=text id=tdark size=8 value=#ffffff></td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>Ä¸¼Ç</li></td>"+
					"<td colspan=3><input type=text id=tcap style=width:400></td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>ÅÛÇÃ¸´</li></td>"+
					"<td colspan=3>"+
					 "<table border=0>"+
					 	"<tr bgcolor=#ffffff>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"')\"                      border=1 cellspacing=0 cellpadding=0><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"',null,null,'#eeeeee')\"               border=1 cellspacing=0 cellpadding=0><tr bgcolor=#eeeeee><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"','black','#ffffff')\"          border=1 cellspacing=0 cellpadding=0 bordercolorlight=black bordercolordark=#ffffff><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"','black','#ffffff','#eeeeee')\"   border=1 cellspacing=0 cellpadding=0 bordercolorlight=black bordercolordark=#ffffff><tr bgcolor=#eeeeee><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"','#555555','#ffffff')\"        border=1 cellspacing=0 cellpadding=0 bordercolorlight=#555555 bordercolordark=#ffffff><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"','#555555','#ffffff','#eeeeee')\" border=1 cellspacing=0 cellpadding=0 bordercolorlight=#555555 bordercolordark=#ffffff><tr bgcolor=#eeeeee><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"','#999999','#ffffff')\"        border=1 cellspacing=0 cellpadding=0 bordercolorlight=#999999 bordercolordark=#ffffff><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	 	"<td><table onmouseover=this.style.backgroundColor='#f5f5f5' onmouseout=this.style.backgroundColor='' style=cursor:pointer onclick=\"Alice.table.template('"+this.aliceId+"','#999999','#ffffff','#eeeeee')\" border=1 cellspacing=0 cellpadding=0 bordercolorlight=#999999 bordercolordark=#ffffff><tr bgcolor=#eeeeee><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr><tr><td width=20>&nbsp;</td><td width=20>&nbsp;</td></tr></table></td>"+
					 	"</tr>"+
					 "</table>"+
					"</td>"+
				"</tr>"+				
			"</table>"+
			"</form>"+
			"<center><span onclick=Alice.table.auto('"+this.aliceId+"')>"+Web.util.Image.alice['alc-crud-apply']+"</span>"+
					"<span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>";
		
		Web.popup({title:'Å×ÀÌºí ¼³Á¤',msg:txt,width:570,height:340});
		Web.Form.setStyle("aliceForm");
	},
	
	popupField: function() {
		this.popup = true;
		var txt = ""+			
			"<h3>ÇÊµå¼Â ¼³Á¤</h3>"+	
			"<form name=aliceForm>"+
			"<table border=0 width=100% cellspacing=0 cellpadding=0 class=alc-pop-bs0>"+				
				"<tr height=25>"+
					"<td width=25%><li>³Êºñ</li></td>"+
					"<td width=25%><input type=text id=fwidth size=4 value=100> <select id=fsize><option value=picxel>ÇÈ¼¿</option><option value=percentage selected>ÆÛ¼¾Æ®</option></select></td>"+
					"<td width=25%><li>³ôÀÌ</li></td>"+
					"<td width=25%><input type=text id=fheight size=4>ÇÈ¼¿</td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>Á¤·Ä</li></td>"+
					"<td><select id=falign>"+
						"<option value=no>¼³Á¤µÇÁö¾ÊÀ½</option>"+
						"<option value=left>¿ÞÂÊ</option>"+
						"<option value=center>°¡¿îµ¥</option>"+
						"<option value=right>¿À¸¥ÂÊ</option>"+
						"</select>"+
					"</td>"+
					"<td><li>±ÛÀÚ»ö</li></td>"+
					"<td><input type=text id=fcolor size=8></td>"+
				"</tr>"+ 
				"<tr height=25>"+
					"<td><li>¿ÞÂÊ¿©¹é</li></td>"+
					"<td><input type=text id=fpleft size=4 value=5></td>"+
					"<td><li>À§ÂÊ¿©¹é</li></td>"+
					"<td><input type=text id=fptop size=4 value=5> ÇÈ¼¿</td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>¿À¸¥ÂÊ¿©¹é</li></td>"+
					"<td><input type=text id=fpright size=4 value=5></td>"+
					"<td><li>¾Æ·¡ÂÊ¿©¹é</li></td>"+
					"<td><input type=text id=fpbottom size=4 value=5></td>"+
				"</tr>"+ 
				"<tr height=25>"+
					"<td><li>¹è°æ»ö</li></td>"+
					"<td><Input type=text id=fbgcolor size=8 value=#ffffff></td>"+
					"<td><li>Å×µÎ¸®</li></td>"+
					"<td><Input type=text id=fborder size=4 value=1></td>"+
				"</tr>"+ 
				"<tr height=25>"+
					"<td><li>Å×µÎ¸®»ö</li></td>"+
					"<td><input type=text id=fbordercolor size=8 value=#999999></td>"+
					"<td><li>Å×µÎ¸®½ºÅ¸ÀÏ</li></td>"+
					"<td><input type=radio name=fborderstyle value=solid checked>¼± <input type=radio name=fborderstyle value=dotted>Á¡¼± <input type=radio name=fborderstyle value='none'>¾øÀ½</td>"+
				"</tr>"+
				"<tr height=25>"+
					"<td><li>Á¦¸ñ</li></td>"+
					"<td colspan=3><input type=text id=ftitle style=width:445></td>"+
				"</tr>"+
				"<tr>"+
					"<td><li>ÅÛÇÃ¸´</li></td>"+
					"<td colspan=3>"+
						"<table border=0 cellspacing=0 cellpadding=0 style=font-size:9pt><tr>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#eeeeee','solid')\" onmouseover=this.style.color='red' onmouseout=this.style.color='' style='cursor:pointer;background-color:#eeeeee;width:50;height:40;margin :0;padding:0;'><center><br>ÇÊµå¼Â</center></fieldset></td>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#eeeeee','none')\" onmouseover=this.style.color='red' onmouseout=this.style.color='' style='cursor:pointer;background-color:#eeeeee;width:50;height:40;margin :0;padding:0;border:none'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#eeeeee','dotted')\" onmouseover=this.style.color='red' onmouseout=this.style.color='' style='cursor:pointer;background-color:#eeeeee;width:50;height:40;margin :0;padding:0;border:1px dotted #999999'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#f5f7f8','solid')\" onmouseover=this.style.color='red' onmouseout=this.style.color='' style='cursor:pointer;background-color:#f5f7f8;width:50;height:40;margin :0;padding:0;'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#f5f7f8','none')\" onmouseover=this.style.color='red' onmouseout=this.style.color='' style='cursor:pointer;background-color:#f5f7f8;width:50;height:40;margin :0;padding:0;border:none'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#ffffee','solid','#660066')\" onmouseover=this.style.color='red' onmouseout=this.style.color='#660066' style='cursor:pointer;background-color:#ffffee;width:50;height:40;margin :0;padding:0;color:#660066'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#ffffee','dotted','#660066')\" onmouseover=this.style.color='red' onmouseout=this.style.color='#660066' style='cursor:pointer;background-color:#ffffee;width:50;height:40;margin :0;padding:0;color:#660066;border:1px dotted #999999'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"<td style=padding-right:4px><fieldset onclick=\"Alice.fieldset.template('"+this.aliceId+"', '#ffffee','none','#660066')\" onmouseover=this.style.color='red' onmouseout=this.style.color='#660066' style='cursor:pointer;background-color:#ffffee;width:50;height:40;margin :0;padding:0;color:#660066;border:none'><center><br>ÇÊµå¼Â</center></fieldset>"+
							"</tr>"+
						"</table>"+
					"</td>"+
				"</tr>"+				
			"</table>"+			
			"</form>"+
			"<center><span onclick=Alice.fieldset.apply('"+this.aliceId+"')>"+Web.util.Image.alice['alc-crud-apply']+"</span>"+
					"<span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>";
		
		Web.popup({title:'ÇÊµå¼Â ¼³Á¤',msg:txt,width:600,height:340});
		Web.Form.setStyle("aliceForm");
	},
	
	popupUrlImage: function() {
		this.popup = true;
		var txt = ""+			
			"<h3>ÀÌ¹ÌÁö ¸µÅ© ¼³Á¤</h3>"+
			"<form name=aliceForm>"+
			"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+			
			"<tr>"+
				"<td class=alc-pop-bs1><li>ÀÌ¹ÌÁö</li></td><td><input type=text id=alc-urlimage-link style=width:325></td>"+
			"</tr>"+
			"<tr>"+
				"<td class=alc-pop-bs1><li>ÀÌ¹ÌÁö ¼³¸í</li></td><td><input type=text id=alc-urlimage-alt style=width:325></td>"+
			"</tr>"+
			"<tr><td align=center colspan=2><br><span onclick=\"Alice.urlimage.change()\">"+Web.util.Image.alice['alc-crud-select']+"</span></td></tr>"+
			"<tr>"+
				"<td colspan=2>"+
					"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>³Êºñ</li></td><td><input type=text id=alc-urlimage-width title=\"³Êºñ\" style=width:50 onkeyup=Alice.urlimage.keyupWidth()></td>"+
						"<td align=center rowspan=6 class=alc-pop-bs0 valign=top><strong>¹Ì¸®º¸±â</strong><br><div style='padding:2px 2px 2px 2px;width:250px;height:130px;overflow:auto;border:1px solid #336699;background-color:#fff' id=alc-urlimage-preview-text>"+
							"<img id=alc-urlimage-preview style=display:none>"+
								"°æÂû¿¡ µû¸£¸é ¿À¾¾ ³²¸Å´Â Àü³óµ¿, Áß°îµ¿, Ã»·®¸®¿¡ °¢°¢ °øÀå, Àç´Ü¹æ, Ã¢°í¸¦ ¸¶·ÃÇØµÎ°í ¿ÃÇØ 5¿ùºÎÅÍ ÃÖ±Ù±îÁö ¸íÇ°°ú ¶È°°ÀÌ »ý±ä °¡¹æ 9Ãµ145°³(Á¤Ç°°¡ 110¾ï¿ø)¸¦ ¸¸µç µÚ ÇØ´ç »óÇ¥¸¦ ºÙ¿© µ¿´ë¹®°ú ³²´ë¹® »ó°¡ÀÇ µµ¼Ò¸Å»óµé¿¡°Ô ÆÇ¸ÅÇÑ ÇøÀÇ¸¦ ¹Þ°í ÀÖ´Ù. Á¶»ç °á°ú ±¸¼ÓµÈ ¿À¾¾´Â ÁÖ¿ä ¸íÇ°È¸»çµéÀÌ ºí·¢¸®½ºÆ® 1¼øÀ§¿¡ ¿Ã·Á³õÀº ÇÑ±¹ ÃÖ°íÀÇ Â¦Åü ±â¼úÀÚ·Î¼­ ´Ù¸¥ Â¦Åü ¾÷ÀÚµéÀÌ ÁúÅõÇØ °í¹ßÇÏ´Â °É ÇÇÇÏ±â À§ÇØ Ä£Çü°ú ¿©µ¿»ýÀ» °¢°¢ Àç´Ü¹æ°ú °øÀåÀÇ Ã¥ÀÓÀÚ·Î °í¿ëÇÑ °ÍÀ¸·Î µå·¯³µ´Ù."+
							"</div></td>"+
					"</tr>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>³ôÀÌ</li></td><td><input type=text id=alc-urlimage-height title\"³ôÀÌ\" style=width:50 onkeyup=Alice.urlimage.keyupHeight()></td>"+
					"</tr>"+
					"<tr>"+					
						"<td class=alc-pop-bs1><li>Å×µÎ¸®</li></td><td><input type=text id=alc-urlimage-border title\"Å×µÎ¸®\" style=width:50 onkeyup=Alice.urlimage.keyupBorder()></td>"+
					"</tr>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>¼öÆò¿©¹é</li></td><td><input type=text id=alc-urlimage-hspace title\"¼öÆò¿©¹é\" style=width:50 onkeyup=Alice.urlimage.keyupHspace()></td>"+
					"</tr>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>¼öÁ÷¿©¹é</li></td><td><input type=text id=alc-urlimage-vspace title\"¼öÁ÷¿©¹é\" style=width:50 onkeyup=Alice.urlimage.keyupVspace()></td>"+
					"</tr>"+
					"<tr>"+
						"<td class=alc-pop-bs1><li>Á¤·Ä</li></td><td>"+
							"<select id=alc-urlimage-order onchange=Alice.urlimage.changeOrder()>"+
								"<option></option>"+
								"<option value=left>¿ÞÂÊ</option>"+
								"<option value=right>¿À¸¥ÂÊ</option>"+
								"<option value=top>À§ÂÊ</option>"+
								"<option value=bottom>¾Æ·¡ÂÊ</option>"+
								"<option value=absmiddle>ÁÙÁß°£</option>"+
								"<option value=absbottom>ÁÙ¾Æ·¡</option>"+
								"<option value=baseline>±âÁØ¼±</option>"+
								"<option value=textTop>±ÛÀÚÀ§</option>"+								
							"</select>"+
							"<input type=hidden id=alc-is-createlink value=N>"+
						"</td>"+
					"</tr>"+
					"</table>"+
				"</td>"+
			"</tr>"+
			"<tr>"+
				"<td class=alc-pop-bs1><li>±Û°úºÐ¸®</li></td><td><input type=checkbox id=alc-urlimage-break onclick=Alice.urlimage.insertBreak()></td>"+
			"</tr>"+			
			"</table>"+
			"</form>"+
			"<center><span onclick=Alice.urlimage.apply('"+this.aliceId+"')>"+Web.util.Image.alice['alc-crud-apply']+"</span>"+
					"<span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>";

		Web.popup({title:'ÀÌ¹ÌÁö ¸µÅ© ¼³Á¤',msg:txt,width:500,height:380});
		Web.Form.setStyle("aliceForm");
	},
	
	popupIcon: function() {
		this.popup = true;
		var image = Alice.config.imageroot;
		var txt = ""+
			"<h3>¾ÆÀÌÄÜ »ðÀÔ</h3>"+
			"<table border=0 cellspacing=0 cellpadding=2 width=100%>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','01')\"><img src="+image+"alice/icon/01.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','02')\"><img src="+image+"alice/icon/02.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','03')\"><img src="+image+"alice/icon/03.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','04')\"><img src="+image+"alice/icon/04.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','05')\"><img src="+image+"alice/icon/05.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','06')\"><img src="+image+"alice/icon/06.gif></td>"+
			"</tr>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','07')\"><img src="+image+"alice/icon/07.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','08')\"><img src="+image+"alice/icon/08.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','09')\"><img src="+image+"alice/icon/09.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','10')\"><img src="+image+"alice/icon/10.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','11')\"><img src="+image+"alice/icon/11.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','12')\"><img src="+image+"alice/icon/12.gif></td>"+
			"</tr>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','13')\"><img src="+image+"alice/icon/13.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','14')\"><img src="+image+"alice/icon/14.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','15')\"><img src="+image+"alice/icon/15.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','16')\"><img src="+image+"alice/icon/16.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','17')\"><img src="+image+"alice/icon/17.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','18')\"><img src="+image+"alice/icon/18.gif></td>"+
			"</tr>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','19')\"><img src="+image+"alice/icon/19.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','20')\"><img src="+image+"alice/icon/20.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','21')\"><img src="+image+"alice/icon/21.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','22')\"><img src="+image+"alice/icon/22.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','23')\"><img src="+image+"alice/icon/23.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','24')\"><img src="+image+"alice/icon/24.gif></td>"+
			"</tr>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','25')\"><img src="+image+"alice/icon/25.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','26')\"><img src="+image+"alice/icon/26.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','27')\"><img src="+image+"alice/icon/27.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','28')\"><img src="+image+"alice/icon/28.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','29')\"><img src="+image+"alice/icon/29.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','30')\"><img src="+image+"alice/icon/30.gif></td>"+
			"</tr>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','31')\"><img src="+image+"alice/icon/31.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','32')\"><img src="+image+"alice/icon/32.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','33')\"><img src="+image+"alice/icon/33.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','34')\"><img src="+image+"alice/icon/34.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','35')\"><img src="+image+"alice/icon/35.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','36')\"><img src="+image+"alice/icon/36.gif></td>"+
			"</tr>"+
			"<tr>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','37')\"><img src="+image+"alice/icon/37.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','38')\"><img src="+image+"alice/icon/38.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','39')\"><img src="+image+"alice/icon/39.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','40')\"><img src="+image+"alice/icon/40.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','41')\"><img src="+image+"alice/icon/41.gif></td>"+
				"<td onclick=\"Alice.icon.apply('"+this.aliceId+"','42')\"><img src="+image+"alice/icon/42.gif></td>"+
			"</tr>"+
			"</table>"+
			"<br>"+
			"<center><span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>";

		Web.popup({title:'¾ÆÀÌÄÜ »ðÀÔ',msg:txt,width:250,height:280});
	},
	
	popupSpecialChar: function() {
		this.popup = true;
		var txt = ""+
			"<h3>Æ¯¼ö¹®ÀÚ »ðÀÔ</h3>"+
			"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+
				"<tr>"+
			 	"<td width=82 align=center><input type=text id=alc-char-preivew readonly></td>"+
			    "<td bgcolor=#C6D5E7>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Í');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Í class='alc-bttns-char'>¨Í</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Î');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Î class='alc-bttns-char'>¨Î</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ï');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ï class='alc-bttns-char'>¨Ï</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ð class='alc-bttns-char'>¨Ð</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ñ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ñ class='alc-bttns-char'>¨Ñ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ò');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ò class='alc-bttns-char'>¨Ò</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ó');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ó class='alc-bttns-char'>¨Ó</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ô');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ô class='alc-bttns-char'>¨Ô</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Õ class='alc-bttns-char'>¨Õ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ö');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ö class='alc-bttns-char'>¨Ö</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨×');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨× class='alc-bttns-char'>¨×</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ø');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ø class='alc-bttns-char'>¨Ø</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ù');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ù class='alc-bttns-char'>¨Ù</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ú');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ú class='alc-bttns-char'>¨Ú</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Û');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Û class='alc-bttns-char'>¨Û</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ü');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ü class='alc-bttns-char'>¨Ü</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ý');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ý class='alc-bttns-char'>¨Ý</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Þ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Þ class='alc-bttns-char'>¨Þ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ß');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ß class='alc-bttns-char'>¨ß</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨à');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨à class='alc-bttns-char'>¨à</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨á class='alc-bttns-char'>¨á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨â class='alc-bttns-char'>¨â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ã class='alc-bttns-char'>¨ã</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ä');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ä class='alc-bttns-char'>¨ä</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨å');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨å class='alc-bttns-char'>¨å</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨æ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨æ class='alc-bttns-char'>¨æ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ç');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ç class='alc-bttns-char'>¨ç</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨è');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨è class='alc-bttns-char'>¨è</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨é');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨é class='alc-bttns-char'>¨é</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ê');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ê class='alc-bttns-char'>¨ê</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ë');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ë class='alc-bttns-char'>¨ë</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ì');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ì class='alc-bttns-char'>¨ì</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨í');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨í class='alc-bttns-char'>¨í</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨î');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨î class='alc-bttns-char'>¨î</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ï');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ï class='alc-bttns-char'>¨ï</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ð class='alc-bttns-char'>¨ð</button>"+      
			    "</td>"+
			    "</tr>"+
			    "<tr>"+
			   	"<td colspan=2 bgcolor=#C6D5E7>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ñ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ñ class='alc-bttns-char'>¨ñ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ò');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ò class='alc-bttns-char'>¨ò</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ó');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ó class='alc-bttns-char'>¨ó</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ô');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ô class='alc-bttns-char'>¨ô</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨õ class='alc-bttns-char'>¨õ</button>"+     
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤ï');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤ï class='alc-bttns-char'>¤ï</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤ð class='alc-bttns-char'>¤ð</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤ñ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤ñ class='alc-bttns-char'>¤ñ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤õ class='alc-bttns-char'>¤õ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤é');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤é class='alc-bttns-char'>¤é</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤è');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤è class='alc-bttns-char'>¤è</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¤ô');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¤ô class='alc-bttns-char'>¤ô</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨ö');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨ö class='alc-bttns-char'>¨ö</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','££');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=££ class='alc-bttns-char'>££</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¦');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¦ class='alc-bttns-char'>£¦</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£ª');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£ª class='alc-bttns-char'>£ª</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£À');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£À class='alc-bttns-char'>£À</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡×');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡× class='alc-bttns-char'>¡×</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ø');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ø class='alc-bttns-char'>¡Ø</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ù');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ù class='alc-bttns-char'>¡Ù</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ú');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ú class='alc-bttns-char'>¡Ú</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Û');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Û class='alc-bttns-char'>¡Û</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ü');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ü class='alc-bttns-char'>¡Ü</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ý');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ý class='alc-bttns-char'>¡Ý</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Þ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Þ class='alc-bttns-char'>¡Þ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ß');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ß class='alc-bttns-char'>¡ß</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡à');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡à class='alc-bttns-char'>¡à</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡á class='alc-bttns-char'>¡á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡â class='alc-bttns-char'>¡â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ã class='alc-bttns-char'>¡ã</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ä');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ä class='alc-bttns-char'>¡ä</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡å');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡å class='alc-bttns-char'>¡å</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡æ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡æ class='alc-bttns-char'>¡æ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ç');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ç class='alc-bttns-char'>¡ç</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡è');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡è class='alc-bttns-char'>¡è</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡é');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡é class='alc-bttns-char'>¡é</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ê');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ê class='alc-bttns-char'>¡ê</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ë');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ë class='alc-bttns-char'>¡ë</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢·');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢· class='alc-bttns-char'>¢·</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¸');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¸ class='alc-bttns-char'>¢¸</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¹');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¹ class='alc-bttns-char'>¢¹</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢º');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢º class='alc-bttns-char'>¢º</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢»');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢» class='alc-bttns-char'>¢»</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¼');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¼ class='alc-bttns-char'>¢¼</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢½');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢½ class='alc-bttns-char'>¢½</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¾');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¾ class='alc-bttns-char'>¢¾</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¿');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¿ class='alc-bttns-char'>¢¿</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢À');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢À class='alc-bttns-char'>¢À</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Á class='alc-bttns-char'>¢Á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Â class='alc-bttns-char'>¢Â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ã class='alc-bttns-char'>¢Ã</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ä');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ä class='alc-bttns-char'>¢Ä</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Å');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Å class='alc-bttns-char'>¢Å</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Æ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Æ class='alc-bttns-char'>¢Æ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ç');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ç class='alc-bttns-char'>¢Ç</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢È');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢È class='alc-bttns-char'>¢È</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢É');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢É class='alc-bttns-char'>¢É</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ê');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ê class='alc-bttns-char'>¢Ê</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ë');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ë class='alc-bttns-char'>¢Ë</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ì');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ì class='alc-bttns-char'>¢Ì</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Í');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Í class='alc-bttns-char'>¢Í</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Î');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Î class='alc-bttns-char'>¢Î</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ï');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ï class='alc-bttns-char'>¢Ï</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ð class='alc-bttns-char'>¢Ð</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ñ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ñ class='alc-bttns-char'>¢Ñ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ò');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ò class='alc-bttns-char'>¢Ò</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ó');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ó class='alc-bttns-char'>¢Ó</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ô');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ô class='alc-bttns-char'>¢Ô</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Õ class='alc-bttns-char'>¢Õ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ö');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ö class='alc-bttns-char'>¢Ö</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢×');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢× class='alc-bttns-char'>¢×</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ø');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ø class='alc-bttns-char'>¢Ø</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ù');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ù class='alc-bttns-char'>¢Ù</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ú');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ú class='alc-bttns-char'>¢Ú</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Û');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Û class='alc-bttns-char'>¢Û</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ü');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ü class='alc-bttns-char'>¢Ü</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Ý');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Ý class='alc-bttns-char'>¢Ý</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢Þ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢Þ class='alc-bttns-char'>¢Þ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢ß');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢ß class='alc-bttns-char'>¢ß</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢à');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢à class='alc-bttns-char'>¢à</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢á class='alc-bttns-char'>¢á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢â class='alc-bttns-char'>¢â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢ã class='alc-bttns-char'>¢ã</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢ä');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢ä class='alc-bttns-char'>¢ä</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢å');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢å class='alc-bttns-char'>¢å</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢ç');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢ç class='alc-bttns-char'>¢ç</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¢');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¢ class='alc-bttns-char'>£¢</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡²');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡² class='alc-bttns-char'>¡²</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡³');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡³ class='alc-bttns-char'>¡³</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡´');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡´ class='alc-bttns-char'>¡´</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡µ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡µ class='alc-bttns-char'>¡µ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡®');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡® class='alc-bttns-char'>¡®</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¯');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¯ class='alc-bttns-char'>¡¯</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡°');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡° class='alc-bttns-char'>¡°</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡±');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡± class='alc-bttns-char'>¡±</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¶');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¶ class='alc-bttns-char'>¡¶</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡·');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡· class='alc-bttns-char'>¡·</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¸');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¸ class='alc-bttns-char'>¡¸</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¹');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¹ class='alc-bttns-char'>¡¹</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡º');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡º class='alc-bttns-char'>¡º</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡»');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡» class='alc-bttns-char'>¡»</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¼');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¼ class='alc-bttns-char'>¡¼</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡½');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡½ class='alc-bttns-char'>¡½</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¤');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¤ class='alc-bttns-char'>£¤</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¥');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¥ class='alc-bttns-char'>£¥</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£Ü');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£Ü class='alc-bttns-char'>£Ü</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡É');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡É class='alc-bttns-char'>¡É</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ê');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ê class='alc-bttns-char'>¡Ê</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ë');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ë class='alc-bttns-char'>¡Ë</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Í');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Í class='alc-bttns-char'>¡Í</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢µ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢µ class='alc-bttns-char'>¢µ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§¤');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§¤ class='alc-bttns-char'>§¤</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§¥');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§¥ class='alc-bttns-char'>§¥</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§¦');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§¦ class='alc-bttns-char'>§¦</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§§');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§§ class='alc-bttns-char'>§§</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§¨');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§¨ class='alc-bttns-char'>§¨</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§©');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§© class='alc-bttns-char'>§©</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§ª');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§ª class='alc-bttns-char'>§ª</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','§Ù');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=§Ù class='alc-bttns-char'>§Ù</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥È');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥È class='alc-bttns-char'>¥È</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥Î');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥Î class='alc-bttns-char'>¥Î</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥Ò');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥Ò class='alc-bttns-char'>¥Ò</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥Õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥Õ class='alc-bttns-char'>¥Õ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥×');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥× class='alc-bttns-char'>¥×</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥Ø');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥Ø class='alc-bttns-char'>¥Ø</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥á class='alc-bttns-char'>¥á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥â class='alc-bttns-char'>¥â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥ã class='alc-bttns-char'>¥ã</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥ð class='alc-bttns-char'>¥ð</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥ö');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥ö class='alc-bttns-char'>¥ö</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥÷');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥÷ class='alc-bttns-char'>¥÷</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¥ø');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¥ø class='alc-bttns-char'>¥ø</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£«');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£« class='alc-bttns-char'>£«</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£­');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£­ class='alc-bttns-char'>£­</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¼');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¼ class='alc-bttns-char'>£¼</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£½');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£½ class='alc-bttns-char'>£½</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¾');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¾ class='alc-bttns-char'>£¾</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¾');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¾ class='alc-bttns-char'>¡¾</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¿');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¿ class='alc-bttns-char'>¡¿</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡À');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡À class='alc-bttns-char'>¡À</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Á class='alc-bttns-char'>¡Á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Â class='alc-bttns-char'>¡Â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ã class='alc-bttns-char'>¡Ã</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ä');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ä class='alc-bttns-char'>¡Ä</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Å');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Å class='alc-bttns-char'>¡Å</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Î');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Î class='alc-bttns-char'>¡Î</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ï');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ï class='alc-bttns-char'>¡Ï</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ð class='alc-bttns-char'>¡Ð</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ñ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ñ class='alc-bttns-char'>¡Ñ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ò');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ò class='alc-bttns-char'>¡Ò</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ó');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ó class='alc-bttns-char'>¡Ó</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ô');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ô class='alc-bttns-char'>¡Ô</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Õ class='alc-bttns-char'>¡Õ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡Ö');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡Ö class='alc-bttns-char'>¡Ö</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ì');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ì class='alc-bttns-char'>¡ì</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡í');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡í class='alc-bttns-char'>¡í</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡î');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡î class='alc-bttns-char'>¡î</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ï');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ï class='alc-bttns-char'>¡ï</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ð');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ð class='alc-bttns-char'>¡ð</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ñ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ñ class='alc-bttns-char'>¡ñ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ò');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ò class='alc-bttns-char'>¡ò</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ó');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ó class='alc-bttns-char'>¡ó</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ô');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ô class='alc-bttns-char'>¡ô</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡õ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡õ class='alc-bttns-char'>¡õ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ö');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ö class='alc-bttns-char'>¡ö</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡÷');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡÷ class='alc-bttns-char'>¡÷</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ø');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ø class='alc-bttns-char'>¡ø</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ù');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ù class='alc-bttns-char'>¡ù</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ú');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ú class='alc-bttns-char'>¡ú</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡û');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡û class='alc-bttns-char'>¡û</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ü');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ü class='alc-bttns-char'>¡ü</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡ý');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡ý class='alc-bttns-char'>¡ý</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡þ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡þ class='alc-bttns-char'>¡þ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¡');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¡ class='alc-bttns-char'>¢¡</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¢');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¢ class='alc-bttns-char'>¢¢</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢£');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢£ class='alc-bttns-char'>¢£</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¤');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¤ class='alc-bttns-char'>¢¤</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢±');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢± class='alc-bttns-char'>¢±</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢²');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢² class='alc-bttns-char'>¢²</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢³');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢³ class='alc-bttns-char'>¢³</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¯');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¯ class='alc-bttns-char'>£¯</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¡');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¡ class='alc-bttns-char'>£¡</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£¿');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£¿ class='alc-bttns-char'>£¿</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£ß');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£ß class='alc-bttns-char'>£ß</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','£þ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=£þ class='alc-bttns-char'>£þ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¥');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¥ class='alc-bttns-char'>¡¥</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¦');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¦ class='alc-bttns-char'>¡¦</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¨');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¨ class='alc-bttns-char'>¡¨</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡¬');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡¬ class='alc-bttns-char'>¡¬</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¡­');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¡­ class='alc-bttns-char'>¡­</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¢¦');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¢¦ class='alc-bttns-char'>¢¦</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨±');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨± class='alc-bttns-char'>¨±</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨²');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨² class='alc-bttns-char'>¨²</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨³');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨³ class='alc-bttns-char'>¨³</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨´');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨´ class='alc-bttns-char'>¨´</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨µ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨µ class='alc-bttns-char'>¨µ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨¶');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨¶ class='alc-bttns-char'>¨¶</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨·');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨· class='alc-bttns-char'>¨·</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨¸');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨¸ class='alc-bttns-char'>¨¸</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨¹');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨¹ class='alc-bttns-char'>¨¹</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨º');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨º class='alc-bttns-char'>¨º</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨»');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨» class='alc-bttns-char'>¨»</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨¼');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨¼ class='alc-bttns-char'>¨¼</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨½');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨½ class='alc-bttns-char'>¨½</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨¾');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨¾ class='alc-bttns-char'>¨¾</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨¿');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨¿ class='alc-bttns-char'>¨¿</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨À');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨À class='alc-bttns-char'>¨À</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Á');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Á class='alc-bttns-char'>¨Á</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Â');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Â class='alc-bttns-char'>¨Â</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ã');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ã class='alc-bttns-char'>¨Ã</button><br>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ä');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ä class='alc-bttns-char'>¨Ä</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Å');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Å class='alc-bttns-char'>¨Å</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Æ');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Æ class='alc-bttns-char'>¨Æ</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ç');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ç class='alc-bttns-char'>¨Ç</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨È');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨È class='alc-bttns-char'>¨È</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨É');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨É class='alc-bttns-char'>¨É</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ê');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ê class='alc-bttns-char'>¨Ê</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ë');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ë class='alc-bttns-char'>¨Ë</button>"+
			    "<button onclick=\"Alice.char.apply('"+this.aliceId+"','¨Ì');return false;\" onmouseover=Alice.char.over(this); onmouseout=Alice.char.out(this); value=¨Ì class='alc-bttns-char'>¨Ì</button>"+
			    "</td>"+
			    "</tr>"+
			"</table><br>"+
			"<center><span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>";

		Web.popup({title:'Æ¯¼ö¹®ÀÚ »ðÀÔ',msg:txt,width:460,height:600});
	},
	
	popupCreateLink: function() {
		this.popup = true;
		var txt = ""+			
			"<h3>ÅØ½ºÆ® ¸µÅ© ¼³Á¤</h3>"+
			"<form name=aliceForm>"+
			"<table border=0 cellspacing=0 cellpadding=0 width=100%>"+			
			"<tr>"+
				"<td class=alc-pop-bs1><li>¸µÅ©</li></td><td><input type=text id=alc-link-url style=width:325></td>"+
			"</tr>"+
			"<tr>"+
				"<td class=alc-pop-bs1><li>ÅØ½ºÆ®</li></td><td><input type=text id=alc-link-text style=width:325></td>"+
			"</tr>"+			
			"</table>"+
			"</form>"+
			"<center><span onclick=Alice.link.apply('"+this.aliceId+"')>"+Web.util.Image.alice['alc-crud-apply']+"</span>"+
					"<span onclick=\"Web.EditorManager.get('"+this.aliceId+"').popupHide()\">"+Web.util.Image.alice['alc-crud-cancel']+"</span>"+
			"</center>";

		Web.popup({title:'ÅØ½ºÆ® ¸µÅ© ¼³Á¤',msg:txt,width:500,height:150});
		Web.Form.setStyle("aliceForm");
	}
};

})();

Alice.image = {
	filename:'',
	filesize:0,
	upload: function() {
		if (!$("alc-image-upload").present()) {
			Web.alert({title:'°æ°í',msg:'¾÷·ÎµåÇÒ ÀÌ¹ÌÁö¸¦ ¼±ÅÃÇÏ¼¼¿ä'});
			return;	
		}
		
		if (!Web.Form.validateFile("alc-image-upload", "gif", "jpg", "pnp", "jpeg")) {
			Web.alert({title:'°æ°í',msg:'GIF,JPG,PNP,JPEG ÆÄÀÏ¸¸ ¾÷·Î°¡ °¡´ÉÇÕ´Ï´Ù'});
			return;	
		}
		
		this.loading(true);
		$("aliceForm").submit();	
	},
	preview: function(args) {
		this.loading(false);
		$("alc-image-preview").style.display = '';		
		$("alc-image-preview").src = (Alice.config.uploadroot.empty()? args.upload : Alice.config.uploadroot)+"/"+args.filename.substring(0,8)+"/"+args.filename;
		//$("alc-image-width").value = "";
		//$("alc-image-height").value = "";
		//$("alc-image-border").value = "";
		//$("alc-image-hspace").value = "";
		//$("alc-image-vspace").value = "";
		//$("alc-image-order").selectedIndex = 0;
		$("alc-is-upload").value = "Y";
		$("alc-image-break").checked = false;
		this.filename = args.filename;
		this.filesize = args.filesize;
	},
	transformGray: function() {
		if ($("alc-image-black").checked) {
			$("alc-image-preview").filters[0].Enabled = true;
		}
		else {
			$("alc-image-preview").filters[0].Enabled = false;
		}		
	},
	transformXray: function() {
		if ($("alc-image-xray").checked) {
			$("alc-image-preview").filters[1].Enabled = true;
		}
		else {
			$("alc-image-preview").filters[1].Enabled = false;
		}		
	},
	transformFliph: function() {
		if ($("alc-image-fliph").checked) {
			$("alc-image-preview").filters[2].Enabled = true;
		}
		else {
			$("alc-image-preview").filters[2].Enabled = false;
		}
	},
	transformFlipv: function() {
		if ($("alc-image-flipv").checked) {
			$("alc-image-preview").filters[3].Enabled = true;
		}
		else {
			$("alc-image-preview").filters[3].Enabled = false;
		}
	},
	transformBlur: function() {
		if ($("alc-image-blur").checked) {
			$("alc-image-preview").filters[4].Enabled = true;
		}
		else {
			$("alc-image-preview").filters[4].Enabled = false;
		}
	},
	transformInvert: function() {
		if ($("alc-image-invert").checked) {
			$("alc-image-preview").filters[5].Enabled = true;
		}
		else {
			$("alc-image-preview").filters[5].Enabled = false;
		}
	},
	keyupWidth: function() {
		if ($("alc-image-width").present() && Web.Form.validateNum("alc-image-width")) {
			Element.setStyle("alc-image-preview", {width:($("alc-image-width").value.include('px')? $("alc-image-width").value:$("alc-image-width").value+'px')});
		}
	},
	keyupHeight: function() {
		if ($("alc-image-height").present() && Web.Form.validateNum("alc-image-height")) {
			Element.setStyle("alc-image-preview", {height:($("alc-image-height").value.include('px')? $("alc-image-height").value:$("alc-image-height").value+'px')});
		}
	},
	keyupBorder: function() {
		if ($("alc-image-border").present() && Web.Form.validateNum("alc-image-border")) {
			$("alc-image-preview").border = $("alc-image-border").value;
		}
	},
	keyupHspace: function() {
		if ($("alc-image-hspace").present() && Web.Form.validateNum("alc-image-hspace")) {
			$("alc-image-preview").hspace = $("alc-image-hspace").value;
		}
	},
	keyupVspace: function() {
		if ($("alc-image-vspace").present() && Web.Form.validateNum("alc-image-vspace")) {
			$("alc-image-preview").vspace = $("alc-image-vspace").value;
		}
	},
	changeOrder: function() {
		$("alc-image-preview").align = $("alc-image-order").value;
	},
	removeClear: function() {
		var c = $("alc-image-preview-text").innerHTML;		
		var v1 = c.indexOf('clear=all');
		if (v1 > -1) {
			var v2 = c.substring(0, v1-4);
			var v3 = c.substring(v1+10, c.length);
			$("alc-image-preview-text").update(v2+v3);
		}
	},	
	insertBreak: function() {
		if ($("alc-is-upload").value == "Y") {
			if ($("alc-image-break").checked) {
				var c = $("alc-image-preview-text").innerHTML;
				var v1 = c.indexOf('>');
				var v2 = c.substring(0, v1+1);
				var v3 = c.substring(v1+1, c.length);
				$("alc-image-preview-text").update(v2+"<BR clear=all>"+v3);
			}
			else {
				this.removeClear();
			}
		}
	},
	
	apply: function(id) {
		if (!$("alc-image-upload").present() || $("alc-is-upload").value != "Y") {
			Web.alert({title:'°æ°í',msg:'ÀÌ¹ÌÁö¸¦ ¼±ÅÃÈÄ ¾÷·Îµå ¹öÆ°À» Å¬¸¯ÇÏ¼¼¿ä'});
			return;	
		}
		var img = "<img src="+$("alc-image-preview").src+" name=alc-images id=alc-images"+
					($("alc-image-width").present()? "width="+$("alc-image-width").value:"")+" "+
					($("alc-image-height").present()? "height="+$("alc-image-height").value:"")+" "+
					($("alc-image-border").present()? "border="+$("alc-image-border").value:"")+" "+
					($("alc-image-hspace").present()? "hspace="+$("alc-image-hspace").value:"")+" "+
					($("alc-image-vspace").present()? "vspace="+$("alc-image-vspace").value:"")+" "+
					($("alc-image-order").selectedIndex>0? "align="+$("alc-image-order").value:"")+" "+
					($("alc-image-alt").present()? "alt="+$("alc-image-alt").value.gsub(/"/,''):"")+" "+
					"onclick=\"this.src.viewer()\" "+
					"style='cursor:pointer;"+
					(Web.isIE? "filter:":"")+
					(Web.isIE && $("alc-image-black").checked ? "gray(enalbed=true)":"")+" "+
					(Web.isIE && $("alc-image-xray").checked ? "xray(enalbed=true)":"")+" "+
					(Web.isIE && $("alc-image-fliph").checked ? "fliph(enalbed=true)":"")+" "+
					(Web.isIE && $("alc-image-flipv").checked ? "flipv(enalbed=true)":"")+" "+
					(Web.isIE && $("alc-image-blur").checked ? "blur(enalbed=true,add:1,direction:135)":"")+" "+
					(Web.isIE && $("alc-image-invert").checked ? "invert(enalbed=true)":"")+" "+
					"'>"+
					($("alc-image-break").checked? "<br clear=all>":"");

		var sp = $("alc-image-upload").value.split("\\");
		var fn = sp[sp.length-1];
		var sc = $("alc-image-preview").src;
		if (sc.include('http://'+Web.Location.domain())) {
			sc = sc.gsub('http://'+Web.Location.domain(), '');
		}

		var el = Web.EditorManager.get(id);
		el.popupHide();
		el.pasteHtmlToAlice(img);
		el.appendFile({physical:this.filename, full:sc, logical:fn, size:this.filesize});
	},
	loading: function(bu) {
		if (bu) {
			$("alc-image-uploadbtn").style.display = 'none';
			$("alc-image-loading").style.display = '';
		}
		else {
			$("alc-image-uploadbtn").style.display = '';
			$("alc-image-loading").style.display = 'none';
		}
	}
};

Alice.urlimage = {
	change: function() {
		if ($("alc-urlimage-link").present()) {
			$("alc-urlimage-preview").style.display = '';
			$("alc-urlimage-preview").src = $("alc-urlimage-link").value;
			$("alc-urlimage-width").value = "";
			$("alc-urlimage-height").value = "";
			$("alc-urlimage-border").value = "";
			$("alc-urlimage-hspace").value = "";
			$("alc-urlimage-vspace").value = "";
			$("alc-urlimage-order").selectedIndex = 0;
			$("alc-urlimage-break").checked = false;
			$("alc-is-createlink").value = "Y";
		}
		else {
			Web.alert({title:'°æ°í',msg:'ÀÌ¹ÌÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä',focus:"alc-urlimage-link"});
		}
	},
	keyupWidth: function() {
		if ($("alc-urlimage-width").present() && Web.Form.validateNum("alc-urlimage-width")) {
			Element.setStyle("alc-urlimage-preview", {width:$("alc-urlimage-width").value+'px'});
		}
	},
	keyupHeight: function() {
		if ($("alc-urlimage-height").present() && Web.Form.validateNum("alc-urlimage-height")) {
			Element.setStyle("alc-urlimage-preview", {height:$("alc-urlimage-height").value+'px'});
		}
	},
	keyupBorder: function() {
		if ($("alc-urlimage-border").present() && Web.Form.validateNum("alc-urlimage-border")) {
			$("alc-urlimage-preview").border = $("alc-urlimage-border").value;
		}
	},
	keyupHspace: function() {
		if ($("alc-urlimage-hspace").present() && Web.Form.validateNum("alc-urlimage-hspace")) {
			$("alc-urlimage-preview").hspace = $("alc-urlimage-hspace").value;
		}
	},
	keyupVspace: function() {
		if ($("alc-urlimage-vspace").present() && Web.Form.validateNum("alc-urlimage-vspace")) {
			$("alc-urlimage-preview").vspace = $("alc-urlimage-vspace").value;
		}
	},
	changeOrder: function() {
		$("alc-urlimage-preview").align = $("alc-urlimage-order").value;
	},
	removeClear: function() {
		var c = $("alc-urlimage-preview-text").innerHTML;		
		var v1 = c.indexOf('clear=all');
		if (v1 > -1) {
			var v2 = c.substring(0, v1-4);
			var v3 = c.substring(v1+10, c.length);
			$("alc-urlimage-preview-text").update(v2+v3);
		}
	},
	insertBreak: function() {
		if ($("alc-is-createlink").value == "Y") {
			if ($("alc-urlimage-break").checked) {
				var c = $("alc-urlimage-preview-text").innerHTML;
				var v1 = c.indexOf('>');
				var v2 = c.substring(0, v1+1);
				var v3 = c.substring(v1+1, c.length);
				$("alc-urlimage-preview-text").update(v2+"<BR clear=all>"+v3);
			}
			else {
				this.removeClear();
			}
		}
	},
	apply: function(id) {
		if ($("alc-is-createlink").value != "Y") {
			Web.alert({title:'°æ°í',msg:'ÀÌ¹ÌÁö ÁÖ¼Ò¸¦ ÀÔ·Â ÈÄ ¾÷·Îµå ¹öÆ°À» Å¬¸¯ÇÏ¼¼¿ä',focus:"alc-urlimage-link"});
			return;	
		}
		var img = "<img src="+$("alc-urlimage-preview").src+" name=alc-urlimages "+
					($("alc-urlimage-width").present()? "width="+$("alc-urlimage-width").value:"")+" "+
					($("alc-urlimage-height").present()? "height="+$("alc-urlimage-height").value:"")+" "+
					($("alc-urlimage-border").present()? "border="+$("alc-urlimage-border").value:"")+" "+
					($("alc-urlimage-hspace").present()? "hspace="+$("alc-urlimage-hspace").value:"")+" "+
					($("alc-urlimage-vspace").present()? "vspace="+$("alc-urlimage-vspace").value:"")+" "+
					($("alc-urlimage-order").selectedIndex>0? "align="+$("alc-urlimage-order").value:"")+" "+
					($("alc-urlimage-alt").present()? "alt="+$("alc-urlimage-alt").value.gsub(/"/,''):"")+
					">"+
					($("alc-urlimage-order").checked ? "<br clear=all>":"");

		var el = Web.EditorManager.get(id);
		el.popupHide();
		el.pasteHtmlToAlice(img);		
	}
};


Alice.flash = {
	src:'',
	width:'',
	height:'',
	filename:'',
	filesize:0,
	upload: function() {
		if (!$("alc-flash-upload").present()) {
			Web.alert({title:'°æ°í',msg:'¾÷·ÎµåÇÒ ÇÃ·¡½¬¸¦ ¼±ÅÃÇÏ¼¼¿ä'});
			return;	
		}
		
		if (!Web.Form.validateFile("alc-flash-upload", "swf")) {
			Web.alert({title:'°æ°í',msg:'SWF ÆÄÀÏ¸¸ ¾÷·ÎµåÇØÁÖ¼¼¿ä'});
			return;	
		}
		this.loading(true);
		$("aliceForm").submit();
	},
	preview: function(args) {
		this.width = '';
		this.height = '';
		this.src = (Alice.config.uploadroot.empty()? args.upload : Alice.config.uploadroot)+"/"+args.filename.substring(0,8)+"/"+args.filename;

		this.loading(false);
		$("alc-flash-preview").update(this.get({}));
		$("alc-is-upload").value = "Y";
		this.filename = args.filename;
		this.filesize = args.filesize;
	},
	keyupWidth: function() {
		$("alc-flash-preview").update(this.get({fwidth:$("alc-flash-width").value, fheight:this.height}));
		this.width = $("alc-flash-width").value;
	},
	keyupHeight: function() {
		$("alc-flash-preview").update(this.get({fwidth:this.width,fheight:$("alc-flash-height").value}));
		this.height = $("alc-flash-height").value;
	},
	get: function(args) {
		return "<object name=alc-flashes classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+
                       "  codeBase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" type=\"application/x-shockwave-flash\" "+
                       (args.fwidth && args.fwidth.notEmpty() ? "width="+args.fwidth:"")+" "+
                       (args.fheight && args.fheight.notEmpty() ? "height="+args.fheight:"")+">"+
                       "  <param name=\"movie\" value=\""+this.src+"\">"+
                       "  <param name=\"quality\" value=\"high\">"+
                       "  <embed src=\""+this.src+"\" quality=\"high\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" "+
                       (args.fwidth && args.fwidth.notEmpty() ? "width="+args.fwidth:"")+" "+
                       (args.fheight && args.fheight.notEmpty() ? "height="+args.fheight:"")+"></embed>"+
                "</object>";
	},
	apply: function(id) {
		if (!$("alc-flash-upload").present() || $("alc-is-upload").value != "Y") {
			Web.alert({title:'°æ°í',msg:'ÇÃ·¡½¬¸¦ ¼±ÅÃÈÄ ¾÷·Îµå ¹öÆ°À» Å¬¸¯ÇÏ¼¼¿ä'});
			return;	
		}

		var sp = $("alc-flash-upload").value.split("\\");
		var fn = sp[sp.length-1];
		var sc = this.src;
		if (sc.include('http://'+Web.Location.domain())) {
			sc = sc.gsub('http://'+Web.Location.domain(), '');
		}
		
		var el = Web.EditorManager.get(id);
		el.popupHide();
		el.pasteHtmlToAlice(this.get({fwidth:this.width, fheight:this.height}));
		el.appendFile({physical:this.filename, full:sc, logical:fn, size:this.filesize});
	},
	loading: function(bu) {
		if (bu) {
			$("alc-flash-uploadbtn").style.display = 'none';
			$("alc-flash-loading").style.display = '';
		}
		else {
			$("alc-flash-uploadbtn").style.display = '';
			$("alc-flash-loading").style.display = 'none';
		}
	}
};

Alice.table = {
	trow:'',
	tcol:'',
	tsize:'',
	twidth:'',
	theight:'',
	tborder:'',
	tspacing:'',
	tpadding:'',
	talign:'',
	tlight:'',
	tdark:'',
	tcap:'',
	tbody:'',
	srcElement:null,
	
	initialize: function() {
		this.trow = !$("trow").present()? 1:$("trow").value;
		this.tcol = !$("tcol").present()? 1:$("tcol").value;
		this.tsize = $("tsize").value;
		this.twidth = !$("twidth").present()? '':($("tsize").value == 'picxel' ? 'width='+$("twidth").value:'width='+$("twidth").value+'%');
		this.theight = !$("theight").present()? '':'height='+$("theight").value;
		this.tborder = !$("tborder").present()? '':'border='+$("tborder").value;
		this.tspacing =! $("tspacing").present()? '':'cellspacing='+$("tspacing").value;
		this.tpadding = !$("tpadding").present()? '':'cellpadding='+$("tpadding").value;
		this.talign = $("talign").value == 'no'? '':'align='+$("talign").value;
		this.tlight = !$("tlight").present()? '':'bordercolorlight='+$("tlight").value;
		this.tdark = !$("tdark").present()? '':'bordercolordark='+$("tdark").value;
		this.tcap = !$("tcap").present()? '':'<caption>'+$("tcap").value+'</caption>';
	},
	
	template: function(id,tl,td,tb) {
		this.initialize();
		this.tlight = tl? 'bordercolorlight='+tl:'';
		this.tdark = td? 'bordercolordark='+td:'';
		this.tspacing = 'cellspacing=0';
		this.tpadding = 'cellpadding=0';
		tb = tb? 'bgcolor='+tb:'';
		var body = '';
		for (var i = 0; i < this.trow; i++) {
			if (i == 0) {
				body += '<tr '+tb+'>';
			}
			else {
				body += '<tr>';
			}
			for (var k = 0; k < this.tcol; k++) {
				body += '<td>&#160;</td>';
			}
			body += '</tr>';
		}
		this.tbody = body;
		this.apply(id);
	},
	
	auto: function(id) {
		this.initialize();
		var body = '';
		for (var i = 0; i < this.trow; i++) {
			body += '<tr>';
			for (var k = 0; k < this.tcol; k++) {
				body += '<td>&#160;</td>';
			}
			body += '</tr>';
		}
		this.tbody = body;
		this.apply(id);
	},
	
	getMaxCellLength: function(id,t) {
		var max = 0;
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			for (var i = 0; i < tab.rows.length; i++) {
				var row = tab.rows[i];
				if (max < row.cells.length) {
					max = row.cells.length;	
				}
			}
		}
		return max;
	},
	
	getRowIndex: function(id,t) {
		var r = 0;
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			for (var i = 0; i < tab.rows.length; i++) {
				var row = tab.rows[i];
				for (var j = 0; j < row.cells.length; j++) {
					var cell = row.cells[j];
					if (cell == this.srcElement) {
						r = i;
						break;
					}
				}
			}
		}
		return r;
	},
	
	getCellIndex: function(id,t) {
		var c = 0;
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
		
			for (var i = 0; i < tab.rows.length; i++) {
				var row = tab.rows[i];
				for (var j = 0; j < row.cells.length; j++) {
					var cell = row.cells[j];
					if (cell == this.srcElement) {
						c = j;
						break;
					}
				}
			}
		}
		return c;
	},
	
	appendRowBefore: function(id,t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			var r = this.getRowIndex(id,t);
			this.appendRow(id,t,r);			
		}
	},
	
	appendRowAfter: function(id,t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			var r = this.getRowIndex(id,t);
			this.appendRow(id,t,r+1);
		}		
	},
	
	appendRow: function(id, t, v) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			if (tab.rows.length <= v) {
				v = -1;	
			}			
			var rm = this.getMaxCellLength(id,t);
			var r = tab.insertRow(v);			
			for (var i = 0; i < rm; i++) {
				r.insertCell().innerHTML = "&#160";	
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	removeRow: function(id, t, v) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();
			var tab = cw.document.getElementById(t);
			
			var v1 = v == undefined? this.getRowIndex(id,t):v;
			if (tab.rows.length > 1 && tab.rows.length > v1) {
				tab.deleteRow(v1);
			}
			else {
				Web.alert({title:'°æ°í',msg:'»èÁ¦ÇÒ ¼ö ÀÖ´Â ¹üÀ§°¡ ¾Æ´Õ´Ï´Ù'});
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	appendColBefore: function(id, t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			var c = this.getCellIndex(id,t);
			this.appendCell(id,t,c);
		}
	},
	
	appendColAfter: function(id, t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			var c = this.getCellIndex(id,t);
			this.appendCell(id,t,c+1);
		}
	},
	
	appendCell: function(id, t, v) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();
			var tab = cw.document.getElementById(t);
			var r = this.getRowIndex(id,t);
			if (tab.rows(r).cells.length <= v) {
				v = -1;
			}
			for (var i = 0; i < tab.rows.length; i++) {
				tab.rows[i].insertCell(v).innerHTML = "&#160";	
			}			
		}
		Web.EditorManager.pullAllPop();
	},
	
	removeCol: function(id, t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();
			var tab = cw.document.getElementById(t);		
			var v = this.getCellIndex(id,t);
			var r = this.getRowIndex(id,t);
			if (tab.rows(r).cells.length > 1 && tab.rows(r).cells.length > v) {
				for (var i = 0; i < tab.rows.length; i++) {
					tab.rows[i].deleteCell(v);
				}			
			}
			else {
				Web.alert({title:'°æ°í',msg:'»èÁ¦ÇÒ ¼ö ÀÖ´Â ¹üÀ§°¡ ¾Æ´Õ´Ï´Ù'});
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	mergeLeft : function(id,t) {				
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
		
			var c = this.getCellIndex(id,t);
			var r = this.getRowIndex(id,t);
			c--;
			if (c > -1) {
				var cells = new Hash;
				for (var i = 0; i < tab.rows.length; i++) {
					if (i == r) {
						var row = tab.rows[i];
						for (var j = 0; j < row.cells.length; j++) {
							var cell = row.cells[j];
							cells[j] = {txt:cell.innerHTML,colSpan:cell.colSpan,rowSpan:cell.rowSpan};
						}
					}
				}
				
				var cl = tab.rows(r).cells.length;
				this.removeRow(id,t,r);
				var row = tab.insertRow(r);
				for (var i = 0; i < cl; i++) {
					var cell = row.insertCell();
					if (c == i) {
						cell.colSpan = (parseInt(cells[i].colSpan)+ parseInt(cells[i+1].colSpan)).toString();
						cell.rowSpan = cells[i].rowSpan;
						cell.innerHTML = cells[i].txt;
						cell.style.textAlign = "center";
						i++;
					}
					else {
						cell.colSpan = cells[i].colSpan;
						cell.rowSpan = cells[i].rowSpan;
						cell.innerHTML = cells[i].txt;
					}
				}
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	mergeRight: function(id,t) {				
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
		
			var c = this.getCellIndex(id,t);
			var r = this.getRowIndex(id,t);
			var cl = tab.rows(r).cells.length;
			
			if (c < cl-1) {
				var cells = new Hash;
				for (var i = 0; i < tab.rows.length; i++) {
					if (i == r) {
						var row = tab.rows[i];
						for (var j = 0; j < row.cells.length; j++) {
							var cell = row.cells[j];
							cells[j] = {txt:cell.innerHTML,colSpan:cell.colSpan,rowSpan:cell.rowSpan};
						}
					}
				}
				
				var cl = tab.rows(r).cells.length;
				this.removeRow(id,t,r);
				var row = tab.insertRow(r);
				for (var i = 0; i < cl; i++) {
					var cell = row.insertCell();
					if (c ==i) {
						cell.colSpan = (parseInt(cells[i].colSpan)+ parseInt(cells[i+1].colSpan)).toString();
						cell.rowSpan = cells[i].rowSpan;
						cell.innerHTML = cells[i+1].txt;
						cell.style.textAlign = "center";
						i++;
					}
					else {
						cell.colSpan = cells[i].colSpan;
						cell.rowSpan = cells[i].rowSpan;
						cell.innerHTML = cells[i].txt;
					}
				}
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	mergeDown: function(id,t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
		
			var c = this.getCellIndex(id,t);
			var r = this.getRowIndex(id,t);

			if (r < tab.rows.length) {
				var rw = 0;
				for (var i = 0; i < tab.rows.length; i++) {
					var row = tab.rows[i];
					for (var j = 0; j < row.cells.length; j++) {
						var cell = row.cells[j];
						if (i == r && j == c) {
							rw = parseInt(cell.rowSpan);	
						}
					}
				}
				
				var upCells = new Hash;
				var dwCells = new Hash;
				for (var i = 0; i < tab.rows.length; i++) {
					var row = tab.rows[i];
					for (var j = 0; j < row.cells.length; j++) {
						var cell = row.cells[j];
						if (i == r) {
							upCells[j] = {txt:cell.innerHTML,colSpan:cell.colSpan,rowSpan:cell.rowSpan,rno:cell.getAttribute('rno')||0};
						}
						else if (i == (r+rw)) {
							dwCells[j] = {txt:cell.innerHTML,colSpan:cell.colSpan,rowSpan:cell.rowSpan,rno:cell.getAttribute('rno')||0};
						}
					}
				}

				var cl1 = upCells.size();
				var cl2 = dwCells.size();
				var c2 = 0;
				this.removeRow(id,t,r);
				var row = tab.insertRow(r);
				var rc = 0;
				for (var i = 0; i < cl1; i++) {
					var cell = row.insertCell();
					if (c == i) {
						c2 = i-rc+upCells[i].rno;
						cell.colSpan = upCells[i].colSpan;
						cell.rowSpan = (parseInt(upCells[i].rowSpan)+parseInt(dwCells[c2]? dwCells[c2].rowSpan:0)).toString();
						cell.innerHTML = upCells[i].txt;
					}
					else {
						cell.colSpan = upCells[i].colSpan;
						cell.rowSpan = upCells[i].rowSpan;
						cell.innerHTML = upCells[i].txt;
					}
					if (parseInt(upCells[i].rowSpan) > 1) {
						rc++;
					}
					cell.setAttribute('rno', upCells[i].rno);
				}

				this.removeRow(id,t,r+rw);
				row = tab.insertRow(r+rw);
				for (var i = 0; i < cl2; i++) {
					if ((c2) ==i) {
						continue;
					}
					else {
						var cell = row.insertCell();
						cell.colSpan = dwCells[i].colSpan;
						cell.rowSpan = dwCells[i].rowSpan;
						cell.innerHTML = dwCells[i].txt;
						if (i > c2) {
							cell.setAttribute('rno', dwCells[i].rno+1);
						}
						else {
							cell.setAttribute('rno', dwCells[i].rno);
						}
					}
				}
			}
		}
		Web.EditorManager.pullAllPop();
	},
	
	colorRow: function(id,t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			var r = this.getRowIndex(id,t);
			for (var i = 0; i < tab.rows.length; i++) {
				if (i == r) {
					var row = tab.rows[i];
					for (var j = 0; j < row.cells.length; j++) {					
						row.cells[j].style.backgroundColor = Alice.color.selectedColor;
					}
				}
			}
			this.coloring = true;
		}		
		Web.EditorManager.pullAllPop();
	},
	
	colorCol: function(id,t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);
			var c = this.getCellIndex(id,t);
			for (var i = 0; i < tab.rows.length; i++) {
				var row = tab.rows[i];
				for (var j = 0; j < row.cells.length; j++) {					
					if (c == j) {
						row.cells[j].style.backgroundColor = Alice.color.selectedColor;
					}
				}
			}
			this.coloring = true;
		}
		Web.EditorManager.pullAllPop();
	},
	
	colorCell: function(id,t) {
		var el = Web.EditorManager.get(id);
		if (el) {
			var cw = el.getAliceContentWindow();			
			var tab = cw.document.getElementById(t);		
			var c = this.getCellIndex(id,t);
			var r = this.getRowIndex(id,t);
			
			for (var i = 0; i < tab.rows.length; i++) {				
				if (r == i) {
					var row = tab.rows[i];
					for (var j = 0; j < row.cells.length; j++) {					
						if (c == j) {
							row.cells[j].style.backgroundColor = Alice.color.selectedColor;
						}
					}
				}
			}
			this.coloring = true;
		}
		Web.EditorManager.pullAllPop();
	},
	
	apply: function(id) {		
		var txt = '<table id=alc-tab-'+id+'-t.'+(Web.Math.random())+' '+this.twidth+' '+
						this.theight+' '+
						this.tborder+' '+
						this.tspacing+' '+
						this.tpadding+' '+
						this.talign+' '+
						this.tlight+' '+
						this.tdark+' >'+
						this.tcap+
						'<tbody>'+
							this.tbody+
						'</tbody>'+
					'</table>';
					
		var el = Web.EditorManager.get(id);
		el.popupHide();
		el.pasteHtmlToAlice(txt);		
	}
};

Alice.fieldset = {
	fpleft:'',
	fpright:'',
	fptop:'',
	fpbottom:'',
	fbgcolor:'',
	fwidth:'', 
	fheight:'',
	fsize:'',
	fborder:'',
	fbordercolor:'',
	fborderstyle:'',
	fborderstr:'',
	falign:'',
	ftitle:'',
	fcolor:'',

	initialize: function() {
		this.fpright = !$("fpright").present()? 0:$("fpright").value;
		this.fpleft = !$("fpleft").present()? 0:$("fpleft").value;
		this.fpbottom = !$("fpbottom").present()? 0:$("fpbottom").value;
		this.fptop = !$("fptop").present()? 0:$("fptop").value;
		this.fbgcolor = !$("fbgcolor").present()? '':'background-color:'+$("fbgcolor").value+';';
		this.fsize = !$("fsize").value == 'picxel'? 'px':'%';
		this.fwidth = !$("fwidth").present()? '':'width:'+$("fwidth").value+this.fsize+';';
		this.fheight = !$("fheight").present()? '':'height:'+$("fheight").value+'px;';
		this.fbordercolor = !$("fbordercolor").present()? '':$("fbordercolor").value;
		var nm = $n("fborderstyle");
		for (var i = 0; i < nm.length; i++) {
			if (nm[i].checked) {
				this.fborderstyle = nm[i].value;
				break;
			}
		}
		this.fborder = !$("fborder").present()? '':$("fborder").value;
		this.fborderstr = (this.fborderstyle == 'none')? 'border:none;':'border:'+this.fborder+'px '+this.fbordercolor+' '+this.fborderstyle+';';
		this.falign = $("falign").value == 'no'? '':'align='+$("falign").value;
		this.ftitle = !$("ftitle").present()? '':'<legend>'+$("ftitle").value+'</legend>';
		this.fcolor = !$("fcolor").present()? '':'color:'+$("fcolor").value+';';
	},
	template: function(id,fb,fs,fc) {
		this.initialize();
		this.fbgcolor = !fb.present()? '':'background-color:'+fb+';';
		this.fcolor = fc? '':'color:'+fc+';';
		this.fborderstr = fs == 'none'? 'border:none;':'border:1px #999999 '+fs+';';
		this.apply(id);	
	},
	auto: function(id) {
		this.initialize();
		this.apply(id);	
	},
	apply: function(id) {
		var txt = '<fieldset style=\"padding:'+
						this.fpright+','+
						this.fpright+','+
						this.fpbottom+','+
						this.fptop+';'+
						this.fbgcolor+
						this.fwidth+
						this.fheight+
						this.fborderstr+
						this.fcolor+' '+
						this.falign+'\">'+
	          			this.ftitle+
	          			"&#160;"+
					'</fieldset>';

		var el = Web.EditorManager.get(id);
		el.popupHide();
		el.pasteHtmlToAlice(txt);
	}
};

Alice.font = {
	setSize: function(id,sz) {
		var el = Web.EditorManager.get(id);
		el.fontSizeHidden();
		el.command('FontSize',sz);
	},
	
	setFamily: function(id,fn) {
		var el = Web.EditorManager.get(id);
		el.fontFamilyHidden();
		el.command('FontName',fn);
		
	},
	
	setStyle: function(id,st) {
		var el = Web.EditorManager.get(id);
		el.fontStyleHidden();
		el.command('FormatBlock',st);		
	},
	
	setStylePlus: function(id,st) {
		if (st == 'STYLE01') {
			var el = Web.EditorManager.get(id);
			el.fontStyleHidden();
			el.command('Bold');
			el.command('ForeColor','#FF0000');
			//el.command('FontName', 'Impact');			
			el.command('FontSize', '4');			
		}
		else if (st == 'STYLE02') {
			var el = Web.EditorManager.get(id);
			el.fontStyleHidden();			
			el.command('Bold');
			el.command('ForeColor','#0000FF');
			//el.command('FontName', 'Impact');
			el.command('FontSize', '4');
		}
		else if (st == 'STYLE03') {
			var el = Web.EditorManager.get(id);
			el.fontStyleHidden();			
			el.command('Bold');
			el.command('ForeColor','#000000');
			//el.command('FontName', 'Impact');			
			el.command('FontSize', '4');
			el.command('Underline');
		}
		else if (st == 'STYLE04') {
			var el = Web.EditorManager.get(id);
			el.fontStyleHidden();			
			el.command('BackColor','#FFFF00');
		}
		else if (st == 'STYLE05') {
			var el = Web.EditorManager.get(id);
			el.fontStyleHidden();			
			el.command('BackColor','#00FF00');
		}
	}
};

Alice.link = {
	apply: function(id) {
		if (!$("alc-link-url").present() || !$("alc-link-text").present()) {
			Web.alert({title:'°æ°í',msg:'¸µÅ©¸¦ ¸¸µé ÁÖ¼Ò¿Í ÅØ½ºÆ®¸¦ ÀÔ·ÂÇÏ¼¼¿ä',focus:"alc-link-url"});
			return;	
		}
		
		var txt = "<a href='"+$("alc-link-url").value+"' target=_blank>"+$("alc-link-text").value.gsub(/"/,'')+"</a>";
		var el = Web.EditorManager.get(id);
		el.popupHide();
		el.pasteHtmlToAlice(txt);
	}
};


Alice.color = {
	hash: new Hash,
	seed:0,
	selectedColor:'#000000',
	
	apply: function(id, cmd) {
		var el = Web.EditorManager.get(id);
		el.fontBackColorHidden();
		el.fontForeColorHidden();
		el.command(cmd,this.selectedColor);
	},
	
	picker: function(seq) {
		this.seed++;
		var txt = "<div class=alc-pick-box>";
		for(var k=0x00; k<0x100; k+=0x33) {
			for(var j=0x00; j<0x80; j+=0x33) {
				for(var i=0x00; i<0x100; i+=0x33) {
					n=""+(k.toString(16)==0?'00':k.toString(16))+
					     (j.toString(16)==0?'00':j.toString(16))+
					     (i.toString(16)==0?'00':i.toString(16));
						txt += "<div style='background-color:"+n+"' title='"+n+"' onmouseover=\"Alice.color.pick('"+n+"','"+seq+"','"+Alice.color.seed+"')\"></div>";
				}
			}
			txt += "";
		}

		for(var k=0x00; k<0x100; k+=0x33) {
			for(var j=0x99; j<0x100; j+=0x33) {
				for(var i=0x00; i<0x100; i+=0x33) {
					n=""+(k.toString(16)==0?'00':k.toString(16))+
					     (j.toString(16)==0?'00':j.toString(16))+
					     (i.toString(16)==0?'00':i.toString(16));
						txt += "<div style='background-color:"+n+"' title='"+n+"' onmouseover=\"Alice.color.pick('"+n+"','"+seq+"','"+Alice.color.seed+"')\"></div>";
				}
			}
			txt += "";
		}
		txt += 	"<div style='background-color:000000' title='000000' onmouseover=\"Alice.color.pick('000000','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:111111' title='111111' onmouseover=\"Alice.color.pick('111111','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:222222' title='222222' onmouseover=\"Alice.color.pick('222222','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:333333' title='333333' onmouseover=\"Alice.color.pick('333333','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:444444' title='444444' onmouseover=\"Alice.color.pick('444444','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:555555' title='555555' onmouseover=\"Alice.color.pick('555555','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:666666' title='666666' onmouseover=\"Alice.color.pick('666666','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:777777' title='777777' onmouseover=\"Alice.color.pick('777777','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:888888' title='888888' onmouseover=\"Alice.color.pick('888888','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:999999' title='999999' onmouseover=\"Alice.color.pick('999999','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:aaaaaa' title='aaaaaa' onmouseover=\"Alice.color.pick('aaaaaa','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:bbbbbb' title='bbbbbb' onmouseover=\"Alice.color.pick('bbbbbb','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:cccccc' title='cccccc' onmouseover=\"Alice.color.pick('cccccc','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:dddddd' title='dddddd' onmouseover=\"Alice.color.pick('dddddd','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:eeeeee' title='eeeeee' onmouseover=\"Alice.color.pick('eeeeee','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:ffffff' title='ffffff' onmouseover=\"Alice.color.pick('ffffff','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:ffffff' title='ffffff' onmouseover=\"Alice.color.pick('ffffff','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"<div style='background-color:ffffff' title='ffffff' onmouseover=\"Alice.color.pick('ffffff','"+seq+"','"+Alice.color.seed+"')\"></div>"+
				"</div><div style='clear:both;text-align:center;' id=w-picker-space-"+seq+"-"+this.seed+"></div>";
		return txt;
	},
	
	pick: function(c,s,n) {
    	$("w-picker-space-"+s+"-"+n).style.background="#"+c;
    	$("w-picker-space-"+s+"-"+n).innerHTML="<em><strong>#"+c+"</strong></em>";
    	this.selectedColor = c;
    },
    
	viewPicker: function(id) {
    	if ($(id)) {
    		this.hiddenAllPicker(id);
    		$(id).update(this.getPicker(id));
    	}    	
    },
    
    togglePicker: function(id) {
    	if ($(id)) {
     		if ($(id).style.display == 'none') {
    			$(id).style.display = '';
    			this.viewPicker(id);
    		}
    		else {
    			this.hiddenPicker(id);
    			$(id).style.display = 'none';
    		}
    	}
    },
    
    hiddenPicker: function(id, nid) {
    	if ($(id)) {
			$(id).update('');
			if (id != nid) {
				$(id).style.display = 'none';
			}
		}
	},
    
    hiddenAllPicker: function(id) {
    	var keys = this.hash.keys();
    	for (var i = 0; i < keys.length; i++) {
    		this.hiddenPicker(keys[i], id);
    	}
    },
    
    getPicker: function(id) {    	
    	var p = null;
    	if (this.hash[id]) {
    		p = this.hash[id];
    	}
    	else {
    		p = this.picker(id);
    		this.hash[id] = p;
    	}
    	return p;
    }
};

Alice.char = {
	over: function(obj) {
		obj.className = "alc-bttns-char-o";
		$("alc-char-preivew").value = obj.value;
	},
	
	out: function(obj) {
		obj.className = "alc-bttns-char";
	},
	
	apply: function(id, v) {
		var el = Web.EditorManager.get(id);
		el.paste('Char', v);
		el.popupHide();
	}
};

Alice.icon = {
	apply: function(id, v) {
		var el = Web.EditorManager.get(id);
		el.paste('Icon', '<img src="'+Alice.config.imageroot+'/alice/icon/'+v+'.gif" style=vertical-align:middle name=alc-images>');
		el.popupHide();
	}
};


(function() {

Object.extend(Web.util.Image, {
	alice: {
		'alc-crud-upload':'<span title="¾÷·Îµå" class=alc-crud><img src='+Alice.config.imageroot+'alice/button/btn_upload.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/button/btn_upload_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/button/btn_upload.gif"></span>',
		'alc-crud-apply':'<span title="Àû¿ëÇÏ±â" class=alc-crud><img src='+Alice.config.imageroot+'alice/button/btn_apply.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/button/btn_apply_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/button/btn_apply.gif"></span>',
		'alc-crud-cancel':'<span title="Ãë¼Ò" class=alc-crud><img src='+Alice.config.imageroot+'alice/button/btn_cancel.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/button/btn_cancel_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/button/btn_cancel.gif"></span>',
		'alc-crud-select':'<span title="¼±ÅÃÇÏ±â" class=alc-crud><img src='+Alice.config.imageroot+'alice/button/btn_check.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/button/btn_check_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/button/btn_check.gif"></span>',
		'alc-crud-loading':'<span title="·ÎµùÁß" class=alc-crud><img src='+Alice.config.imageroot+'alice/form/i_loading.gif></span>',
		'alc-etc-up':'<span title="Áõ°¡" class=alc-crud><img src='+Alice.config.imageroot+'alice/button/btn_up.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/button/btn_up_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/button/btn_up.gif"></span>',
		'alc-etc-down':'<span title="°¨¼Ò" class=alc-crud><img src='+Alice.config.imageroot+'alice/button/btn_down.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/button/btn_down_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/button/btn_down.gif"></span>'
	}
});

Object.extend(Web.util.Select, {
	alice: {
		'alc-font-style':'<div><button name=alc-select-{0} style=width:98 onclick="Web.EditorManager.get(\'{1}\').popupFontStyle();return false;"><img src='+Alice.config.imageroot+'alice/form/sel_style.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/form/sel_style_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/form/sel_style.gif" class=alc-img-b></button></div>'+
			'<div id=alc-font-style-box-{0} class=alc-font-box>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStylePlus(\'{1}\',\'STYLE01\')" style=color:red;font-size:14px;font-weight:bold>RED TITLE</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStylePlus(\'{1}\',\'STYLE02\')" style=color:blue;font-size:14px;font-weight:bold>BLUE TITLE</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStylePlus(\'{1}\',\'STYLE03\')" style=font-size:14px;font-weight:bold;font-style:underline>BLACK TITLE</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStylePlus(\'{1}\',\'STYLE04\')" style=height:25px;><span style="background-color:yellow">Marker Yellow</span></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStylePlus(\'{1}\',\'STYLE05\')" style=height:25px;><span style="background-color:lime">Marker Green</span></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<P>\')">Normal&lt;P&gt;</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<DIV>\')">Normal&lt;DIV&gt;</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<PRE>\')">Formated&lt;PRE&gt;</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<ADDRESS>\')"><address>Address</address></div>'+				
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<DD>\')" style=height:20px>DD</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<H6>\')" style=height:20px><h6 style=font-size:10px;font-weight:bold>Heading 6</h6></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<H5>\')" style=height:20px><h5 style=font-size:12px;font-weight:bold>Heading 5</h5></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<H4>\')" style=height:25px><h4 style=font-size:16px;font-weight:bold>Heading 4</h4></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<H3>\')" style=height:30px;vertical-align:middle;><h3 style=font-size:18px;font-weight:bold>Heading 3</h3></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<H2>\')" style=height:35px;vertical-align:middle;><h2 style=font-size:24px;font-weight:bold>Heading 2</h2></div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setStyle(\'{1}\',\'<H1>\')" style=height:40px;vertical-align:middle><h1 style=font-size:32px;font-weight:bold>Heading 1</h1></div>'+
			'</div>',
		'alc-font-family':'<div><button name=alc-select-{0} style=width:98 onclick="Web.EditorManager.get(\'{1}\').popupFontFamily();return false;"><img src='+Alice.config.imageroot+'alice/form/sel_font.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/form/sel_font_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/form/sel_font.gif" class=alc-img-b></button></div>'+
			'<div id=alc-font-family-box-{0} class=alc-font-box>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'±¼¸²\')" style="font-family:±¼¸²">±¼¸²</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'±Ã¼­\')" style="font-family:±Ã¼­">±Ã¼­</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'µ¸¿ò\')" style="font-family:µ¸¿ò">µ¸¿ò</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'¹ÙÅÁ\')" style="font-family:¹ÙÅÁ">¹ÙÅÁ</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Arial\')" style="font-family:Arial">Arial</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Arial Black\')" style="font-family:Arial Black">Arial Black</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Comic Sans MS\')" style="font-family:Comic Sans MS">Comic Sans MS</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Courier New\')" style="font-family:Courier New">Courier New</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Impact\')" style="font-family:Impact">Impact</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Tahoma\')" style="font-family:Tahoma">Tahoma</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Times New Roman\')" style="font-family:Times New Roman">Times New Roman</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Verdana\')" style="font-family:Verdana">Verdana</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Webdings\')" style="font-family:Webdings">Webdings</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setFamily(\'{1}\',\'Wingdings\')" style="font-family:Wingdings">Wingdings</div>'+
			'</div>',
		'alc-font-size':'<div><button name=alc-select-{0} style=width:98 onclick="Web.EditorManager.get(\'{1}\').popupFontSize();return false;"><img src='+Alice.config.imageroot+'alice/form/sel_size.gif onmouseover=this.src="'+Alice.config.imageroot+'alice/form/sel_size_o.gif" onmouseout=this.src="'+Alice.config.imageroot+'alice/form/sel_size.gif" class=alc-img-b></button></div>'+
			'<div id=alc-font-size-box-{0} class=alc-font-box>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'1\')" style=height:20px;font-size:10px;>Size 1</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'2\')" style=height:20px;font-size:12px;>Size 2</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'3\')" style=height:20px;vertical-align:middle;font-size:14px;>Size 3</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'4\')" style=height:25px;vertical-align:middle;font-size:16px;font-weight:bold>Size 4</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'5\')" style=height:30px;vertical-align:middle;font-size:18px;font-weight:bold>Size 5</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'6\')" style=height:35px;vertical-align:middle;font-size:24px;font-weight:bold>Size 6</div>'+
				'<div class=alc-select-font-style onmouseover=this.className="alc-select-font-style-o" onmouseout=this.className="alc-select-font-style" onclick="Alice.font.setSize(\'{1}\',\'7\')" style=height:40px;vertical-align:middle;font-size:32px;font-weight:bold>Size 7</div>'+
			'</div>',
		'alc-font-bgcolor':'<div onclick="Web.EditorManager.get(\'{1}\').popupBackgroundColor()"><button name=alc-bttns-{0} onclick="return false;"><img src='+Alice.config.imageroot+'alice/editor/bgcolor.gif></button></div>'+
			'<div id=alc-font-bgcolor-box-{0} class=alc-font-color-box onclick="Alice.color.apply(\'{1}\',\'BackColor\')">{2}</div>',
		'alc-font-forecolor':'<div onclick="Web.EditorManager.get(\'{1}\').popupForegroundColor()"><button name=alc-bttns-{0} onclick="return false;"><img src='+Alice.config.imageroot+'alice/editor/color.gif></button></div>'+
			'<div id=alc-font-forecolor-box-{0} class=alc-font-color-box onclick="Alice.color.apply(\'{1}\',\'ForeColor\')">{2}</div>'
	}
});
})();
