function fontFace(layer,fontbox)
{
var x = getId(fontbox);
if (x.style.display == 'block')
{
x.style.display = 'none';
}
else {
var s = '';
s+= '
';
s+= '- 기본글꼴
';
s+= '- 맑은고딕
';
s+= '- 굴림
';
s+= '- 돋움
';
s+= '- 바탕
';
s+= '
';
x.innerHTML = s;
x.style.display = 'block';
}
}
function aplyFont(layer,fontbox,obj)
{
if (!obj)
{
getId(layer).style.fontFamily = 'gulim';
getId(layer).style.fontSize = '12px';
setCookie('myFontFamily',getId(layer).style.fontFamily,1);
setCookie('myFontSize',getId(layer).style.fontSize,1);
}
else {
getId(layer).style.fontFamily = obj.style.fontFamily;
setCookie('myFontFamily',obj.style.fontFamily,1);
}
getId(fontbox).style.display = 'none';
}
function fontResize(layer,type)
{
var l = getId(layer);
var nSize = l.style.fontSize ? l.style.fontSize : '12px';
var iSize = parseInt(nSize.replace('px',''));
if (type == '+')
{
if (iSize < 20) l.style.fontSize = (iSize + 1) + 'px';
}
else {
if (iSize > 6) l.style.fontSize = (iSize - 1) + 'px';
}
setCookie('myFontSize',l.style.fontSize,1);
}