var timer;
function init_woori() {
    var ua = navigator.userAgent;
    var un = navigator.appName;

    if(un == 'Microsoft Internet Explorer') {
        //IEÀÎ °æ¿ì.
        if(ua.indexOf('MSIE 7.0') > 0) {
            //IE7.0ÀÎ °æ¿ì-AX ¼³Ä¡ÇÒÇÊ¿ä¾øÀ½.
            // document.getElementById('info').innerHTML = document.getElementById('msie7').innerHTML;

        } else {
            //IE7.0ÀÌÇÏ¹öÁ¯.

            if(ua.indexOf('Windows 98') > 0) {
                //98
                // document.location.href = 'index_win98.html';
                return false;
            } else if(ua.indexOf('Windows NT 5.1') > 0) {
                //WINDOWS XP
                document.getElementById("ax_container").innerHTML =
                    '<OBJECT id="CTAdjust" ' +
                    'codeBase="http://download.microsoft.com/download/7/E/6/7E6A8567-DFE4-4624-87C3-163549BE2704/clearadj.cab#version=1,0,0,4" ' +
                    'classid="CLSID:DE22A7AB-A739-4C58-AD52-21F9CD6306B7" VIEWASTEXT> ' +
                    '</OBJECT>';
            } else if(ua.indexOf('Windows NT 5.0')) {
                //2000
                document.getElementById("ax_container").innerHTML =
                    '<OBJECT id="CTAdjust" ' +
                    'codeBase="http://download.microsoft.com/download/7/E/6/7E6A8567-DFE4-4624-87C3-163549BE2704/clearadj.cab#version=1,0,0,4" ' +
                    'classid="CLSID:DE22A7AB-A739-4C58-AD52-21F9CD6306B7" VIEWASTEXT> ' +
                '</OBJECT>';
            } else {
                //other os.
                //document.location.href = 'index_other_os.html';
                return false;
            }
			//document.all["ct"].className="ArticleAll";
			//document.all["ct_para3"].className="ArticleAll";
			//document.all["ct_t"].className="ArticleTitle";

            check_ctadjust();
        }
    } else {
        //IE°¡ ¾Æ´Ñ°æ¿ì.
        //$('#info').html($('#not_ie').html());
       alert('Áö±Ý ÆäÀÌÁö´Â IE ¿¡¼­ ÃÖÀûÈ­ µÇ¾î ÀÖ½À´Ï´Ù.');
    }
}

function check_ctadjust() {
    var CTAdjust = document.getElementById('CTAdjust');
    var ua = navigator.userAgent;
    var un = navigator.appName;

    if(CTAdjust && (CTAdjust.SmoothType == 0 || CTAdjust.SmoothType == 1 || CTAdjust.SmoothType ==2)) {
        //$("#msg").html('Microsoft¿¡¼­ Á¦°øµÇ´Â Cleartype Tuner ÇÁ·Î±×·¥ÀÌ ¼³Ä¡µÇ¾ú½À´Ï´Ù.');
        if(ua.indexOf('Windows NT 5.1') > 0) {
            //XPÀÎ °æ¿ì.
            if(CTAdjust.SmoothType == 2) {
                //document.getElementById('info').innerHTML = document.getElementById('cleartype_was_on').innerHTML;
            } else {
                CTAdjust.SmoothType = 2;
                //document.getElementById('info').innerHTML = document.getElementById('cleartype_was_off').innerHTML;
            }
        } else {
            CTAdjust.SmoothType = 1;
            //document.getElementById('info').innerHTML = document.getElementById('cleartype_was_0').innerHTML;
        }
    } else {
        timer = setTimeout("check_ctadjust()", 500);
    }
}