_editor_url = "/estimate/_library/easy_editor";                      
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ '/editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }


var config = new Object();    // create new config object

function borderEditorInto(fields){
	var obj = document.getElementById(fields);	
	config.width = obj.style.width;
	config.height = obj.style.height;
	config.bodyStyle = 'background-color: white; font-family: "굴림"; font-size: x-small;';
	config.debug = 0;
	editor_generate(fields,config);
}

// NOTE:  You can remove any of these blocks and use the default config!

config.toolbar = [
    ['fontname'],
    ['fontsize'],
    ['fontstyle'],
    ['linebreak'],
    ['bold','italic','underline','separator'],
    ['justifyleft','justifycenter','justifyright','separator'],
    ['OrderedList','UnOrderedList','Outdent','Indent','separator'],
    ['forecolor','backcolor','separator'],
    ['HorizontalRule','Createlink','InsertImage','inserttable','htmlmode','separator'],
];

config.fontnames = {
  	"굴림":            "gulim",
  	"굴림체":          "gulimche",
  	"돋움":            "dotum",
  	"돋움체":          "dotumche",
  	"바탕":            "batang",
  	"바탕체":          "batangche",
	"Arial":           "arial, helvetica, sans-serif",
	"Courier New":     "courier new, courier, mono",
	"Georgia":         "Georgia, Times New Roman, Times, Serif",
	"Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
	"Times New Roman": "times new roman, times, serif",
	"Verdana":         "Verdana, Arial, Helvetica, sans-serif",
	"impact":          "impact",
 	"WingDings":       "WingDings"
};
config.fontsizes = {
	"1 (8 pt)":  "1",
	"2 (9 pt)":  "2",
	"3 (10 pt)": "3",
	"4 (12 pt)": "4",
	"5 (14 pt)": "5",
	"6 (18 pt)": "6",
	"7 (24 pt)": "7",
	"8 (36 pt)": "8"
  };


config.fontstyles = [   // make sure classNames are defined in the page the content is being display as well in or they won't work!
/*
  { name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
  { name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
  { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" }
*/
// leave classStyle blank if it's defined in config.stylesheet (above), like this:
//  { name: "verdana blue", className: "headline4", classStyle: "" }  
];

