// Nanum Font
jQuery(function($){
$('body').append('
나눔글꼴 설치 안내
이 PC에는 나눔글꼴이 설치되어 있지 않습니다.
이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
');
var bd = $('div.bd');
function installfontOut(){
$('#bd_font_install').fadeOut();
$('div.bd:visible .bd_font .select').focus();
return false;
};
$(document).keydown(function(event){
if($('#bd_font_install').is(':visible')){
if(event.keyCode!=27) return true;
return installfontOut();
};
});
$('#install_ng2 .tg_close2,#install_ng2 .close').click(installfontOut);
$('#install_ng2 .tg_blur2').focusin(installfontOut);
bd.find('.bd_font li a').click(function(){
var p = $(this).parent();
if(p.hasClass('ng') && $('#fontcheck_ng3').width()==$('#fontcheck_ng4').width()){
$('#bd_font_install').fadeIn(function(){
$(this).find('.tg_close2').focus();
});
} else {
var pC = p.attr('class');
if(p.hasClass('ui_font')){
$.removeCookie('bd_font');
location.reload();
} else {
$.cookie('bd_font',''+pC+'');
};
$('.bd,.bd input,.bd textarea,.bd select,.bd button,.bd table').removeClass('ng window_font tahoma').addClass(pC);
p.addClass('on').siblings('.on').removeClass('on');
$('.bd_font .select strong').text($(this).text());
};
return false;
});
});