function fontFace(layer,fontbox) { var x = getId(fontbox); if (x.style.display == 'block') { x.style.display = 'none'; } else { var 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); }