

///////////////////////////////////////////////////////////////////////////////////////////////

function goTwitter() {
  var msg = document.title;
  var url = document.URL;
  var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
  var twitter = window.open(href, 'twitter', '');
  twitter.focus();
}
function goFaceBook() {
  var msg = document.title;
  var url = document.URL;
  var href = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg);
  var facebook = window.open(href, 'facebook', '');
  facebook.focus();
}
function goMe2Day() {
  var msg = document.title;
  var url = document.URL;
  var tag = "";
  var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);// + "&new_post[tags]=" + encodeURIComponent(tag);
  var me2Day = window.open(href, 'me2Day', '');
  me2Day.focus();
}


	function banner04_01()	
{
  var msg = document.title;
  var url = document.URL;
  var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
  var twitter = window.open(href, 'twitter', '');
  twitter.focus();
}
	function banner04_02()	
    {
  var msg = document.title;
  var url = document.URL;
  var href = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg);
  var facebook = window.open(href, 'facebook', '');
  facebook.focus();
}
	function banner04_03()	
    {
  var msg = document.title;
  var url = document.URL;
  var tag = "";
  var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);// + "&new_post[tags]=" + encodeURIComponent(tag);
  var me2Day = window.open(href, 'me2Day', '');
  me2Day.focus();
}


function main()	
{ self.location.href = '/index.php'; } 

 function full_menu01()
{ showHideLayer(true) }

function full_menu02()
{ showHideLayer(false) }


function banner06_01()	
{ window.open("http://twitter.com/#!/keceyecom", "newTwitter", "width=500,height=400,menubar=yes,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); 	}
function banner06_02()	
{ window.open("http://www.facebook.com/pages/keceye/103246976446015", "newFaceBook", "width=500,height=400,menubar=yes,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); 	}
//{ window.open("http://ko-kr.facebook.com/people/È«Á¾¿í/100002809914885"); 	}
//{ window.open("http://ko-kr.facebook.com/people/%ED%99%8D%EC%A2%85%EC%9A%B1/100002809914885"); 	}
//function banner06_02()	
//{ window.open("http://www.facebook.com/pages/103246976446015", "newTwitter", "width=500,height=400,menubar=yes,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes"); 	}
//

function family_kfsa01()	
{window.open("/event/event_family_kfsa.htm");}

function family_kfsa02()	
{window.open("/event2_tower/event_family_kfsa.htm");}

function family_kfsa03()	
{window.open("/event3_bny/event_family_kfsa.htm");}

function family_kfsa04()	
{window.open("/event4_orange/event_family_kfsa.htm");}

function family_kfsa05()	
{window.open("/event/family_keceye_venture.html");}

function family_kfsa06()	
{window.open("/event2_tower/family_tower_venture.htm");}

function family_kfsa07()	
{window.open("/event3_bny/family_bny_venture.html");}

function family_kfsa08()	
{window.open("/event4_orange/family_orange_venture.html ");}






function family01()	
{window.open("/event/event_family.htm");}

function family02()	
{window.open("/event2_tower/event_family.htm");}

function family03()	
{window.open("/event3_bny/event_family.htm");}

function family04()	
{window.open("/event4_orange/event_family.htm");}


function main01()	
{window.open("http://hi.nhic.or.kr/portal/site/hi");}
function main02()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040101'; }



function main01()	
{window.open("http://hi.nhic.or.kr/portal/site/hi");}
function main02()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040101'; }



function menu010101()	
{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010101'; }	
function menu010201()	
{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010201'; } 	
function menu010301()	
{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010301'; } 	
function menu010401()	
{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010401'; } 
function menu010501()	
{ self.location.href = '/?control=bbs&md=list&bo_table=media_center&mg=sub01&p_id=010501'; } 
function menu010601()	
{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010601#naverMap'; } 	
function menu010701()	
{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010701'; } 



function menu020101()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020101'; }
function menu020101_2()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020101_2#swfMap1'; }
function menu020201()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020201'; }
function menu020201_2()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020201_2#swfMap1'; }
function menu020301()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020301'; }
function menu020401()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020401'; }
function menu020501()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=safe_icl&mg=sub02&p_id=020501'; }
function menu020501_2()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020501_2#gogo'; }

function menu020601()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020601'; }	
function menu020701()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020701'; } //½Ã·Â±³Á¤¼ö¼úÅ¬¸®´Ð > ¾ÈÀü¶ó½Ä°¡ÀÌµå
//{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020701'; }
function menu020801()	
{ self.location.href = '/index.php?control=html&mg=sub02&p_id=020801'; } //½Ã·Â±³Á¤¼ö¼úÅ¬¸®´Ð > ¶ó½ÄÀÚ°¡Áø´Ü

function menu030101()	
{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030101'; }
function menu030201()	
{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030201'; }
function menu030301()	
{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030301'; }
function menu030401()	
{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030401'; }
function menu030501()	
{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030501'; }
function menu030601()	
{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030601'; }

function menu040101()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040101'; }
function menu040201()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040201'; }
function menu040301()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040301'; }
function menu040401()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040401'; }
function menu040501()	
{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040501'; }


function menu050101()	
{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050101'; }
function menu050201()	
{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050201'; }
function menu050301()	
{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050301'; }
function menu050401()	
{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050401'; }
function menu050501()	
{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050501'; }
function menu050601()	
{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050601'; } //¾È°úÁ¤º¸¸¶´ç > ½ÅºñÇÑ´«Ã¼Çè
	function menu050602()	
	{ self.location.href = '/index.php?control=html&mg=sub05&p_id=050602'; } //¾È°úÁ¤º¸¸¶´ç > ½ÅºñÇÑ´«Ã¼Çè2

 


//function menu060101()	
//{ self.location.href = '/?control=bbs&md=list&bo_table=event&mg=sub06&p_id=060101'; }//ÀÌº¥Æ®
//function menu060201()	
//{ self.location.href = '/?control=bbs&md=list&bo_table=column&mg=sub06&p_id=060301'; }//¹Ìµð¾î¼¾ÅÍ
function menu060101()	
{ self.location.href = '/?control=bbs&md=list&bo_table=notice&mg=sub06&p_id=060101'; }//º´¿ø¼Ò½Ä
function menu060201()	
{ self.location.href = '/?control=bbs&md=list&bo_table=column&mg=sub06&p_id=060201'; }//ÄÃ·³



function menu070101()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=online_qna&mg=sub07&p_id=070101'; } //¿Â¶óÀÎ »ó´ã½Ç
function menu070201()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=faq&mg=sub07&p_id=070201'; } //ÀÚÁÖÇÏ´Â Áú¹®
function menu070301()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=pay_consult&mg=sub07&p_id=070301'; } //¼ö¼úºñ¿ë»ó´ã
function menu070401()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=res_board&mg=sub07&p_id=070401'; } //°Ë»ç / ¼ö¼ú ¿¹¾à
function menu070501()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=after&mg=sub07&p_id=070501'; } //¼ö¼úÈÄ±â
function menu070601()	
{ self.location.href = '/index.php?control=bbs&md=list&bo_table=after_ent&mg=sub07&p_id=070601'; } //¿¬¿¹ÀÎ¼ö¼úÈÄ±â


function menu090101()	
{ self.location.href = '/?control=member&md=login&mg=sub10&p_id=010101'; } //·Î±×ÀÎ
function menu090201()	
{ self.location.href = '/?control=member&md=join&mg=sub10&p_id=010201'; } //È¸¿ø°¡ÀÔ
function menu090301()	
{ self.location.href = '/?control=member&md=modify&mg=sub10&p_id=010301'; } //È¸¿øÁ¤º¸¼öÁ¤
function menu090401()	
{ self.location.href = '/?control=member&md=logout'; } //·Î±×¾Æ¿ô

function menu100101()	
{ self.location.href = '#'; } 
function menu100201()	
{ self.location.href = '#'; } 
function menu100301()	
{ self.location.href = '#'; } 
function menu100401()	
{ self.location.href = '#'; } 
function menu100501()	
{ self.location.href = '/index.php?control=html&mg=sub10&p_id=100501'; } 


function top02()	
{ self.location.href = '/index.php?control=member&md=login&mg=sub08&p_id=080101'; } 
function top03()	
{ self.location.href = '/index.php?control=member&md=join&mg=sub08&p_id=080201'; }
function top04()	
{ self.location.href = '/index.php?control=member&md=logout&mg=sub08&p_id=080401'; }
function top05()	
{ self.location.href = '/index.php?control=member&md=modify&mg=sub08&p_id=080301'; }
function top06()	
{ self.location.href = '/index.php?control=html&mg=sub09&p_id=090101'; }
//function top08()	
//{ self.location.href = '/index.php?control=html&mg=sub08&p_id=080101'; }
    


/*-------------------------------------------------------------------------------------------------------------
	DDDDD    EEEEEE  SSSSSS   IIIIII   GGGGG   NN   NN
	DD   D   EE      SS         II    GG       N N  NN
	DD    D  EEEEEE   SSSSS     II    GG  GGG  NN N NN
	DD   D   EE           SS    II    GG   GG  NN  N N
	DDDDD    EEEEEE  SSSSSS   IIIIII   GGGGG   NN   NN
-------------------------------------------------------------------------------------------------------------*/


// Image rollover
var changedImg;

function EImgChg(flag) {
    source = event.srcElement;
    if (source.name == "") {
        return false;
    }

    if (changedImg == source.name) return;

    else if (document.images && source.tagName == "IMG") {
        imgElement = source.name;
        imgPath = source.src;

        imgPathLen = imgPath.length;
        imgPathFlag = imgPath.lastIndexOf("/");
        imgName = imgPath.substring(0, imgPathFlag + 1);

        document.images[imgElement].src = imgName + imgElement + "_" + flag + ".gif";
    }
}


function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr;
    for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_preloadImages() { //v3.0
    var d = document;
    if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length,
            a = MM_preloadImages.arguments;
        for (i = 0; i < a.length; i++)
        if (a[i].indexOf("#") != 0) {
            d.MM_p[j] = new Image;
            d.MM_p[j++].src = a[i];
        }
    }
}

function MM_findObj(n, d) { //v4.01
    var p, i, x;
    if (!d) d = document;
    if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document;
        n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n];
    for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n);
    return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0,
        x, a = MM_swapImage.arguments;
    document.MM_sr = new Array;
    for (i = 0; i < (a.length - 2); i += 3)
    if ((x = MM_findObj(a[i])) != null) {
        document.MM_sr[j++] = x;
        if (!x.oSrc) x.oSrc = x.src;
        x.src = a[i + 2];
    }
}

function MM_showHideLayers() { //v6.0
    var i, p, v, obj, args = MM_showHideLayers.arguments;
    for (i = 0; i < (args.length - 2); i += 3) if ((obj = MM_findObj(args[i])) != null) {
        v = args[i + 2];
        if (obj.style) {
            obj = obj.style;
            v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v;
        }
        obj.visibility = v;
    }
}


function show_layer(lname, flag) {
    var layer = (navigator.appName == 'Netscape') ? document.layers[lname] : document.all[lname];
    if (lname == '') return;
    if (navigator.appName == 'Netscape') layer.visibility = (flag == 0) ? 'show' : 'hide';
    else layer.style.visibility = (flag == 0) ? 'visible' : 'hidden';
}


function show_layer(lname, flag) {
    var layer = (navigator.appName == 'Netscape') ? document.layers[lname] : document.all[lname];
    if (lname == '') return;
    if (navigator.appName == 'Netscape') layer.visibility = (flag == 0) ? 'show' : 'hide';
    else layer.style.visibility = (flag == 0) ? 'visible' : 'hidden';
}

function resizeIframe(fr) {
    fr.setExpression('height', eval(fr.id + ".document.body.scrollHeight"));
    //fr.setExpression('width',eval(fr.id+".document.body.scrollWidth"));
}


function showHideLayer(stat){
//alert(stat);
        if(stat){
                document.all.sitemap02.style.visibility="visible";
                document.all.sitemap01.style.visibility="hidden";
        }else{
                document.all.sitemap02.style.visibility="hidden";
                document.all.sitemap01.style.visibility="visible";
        }
}


function flashWrite(url, w, h, id, bg, vars, win, zin) {

    // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
    var flashStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' style='z-index:" + zin + ";' width='" + w + "' height='" + h + "' id='" + id + "' align='middle'>" + "<param name='allowScriptAccess' value='always' />" + "<param name='movie' value='" + url + "' />" + "<param name='FlashVars' value='" + vars + "' />" + "<param name='wmode' value='" + win + "' />" + "<param name='menu' value='false' />" + "<param name='quality' value='high' />" + "<param name='bgcolor' value='" + bg + "' />" + "<embed src='" + url + "' FlashVars='" + vars + "' wmode='" + win + "' menu='false' quality='high' bgcolor='" + bg + "' width='" + w + "' height='" + h + "' name='" + id + "' style='z-index:" + zin + ";' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />" + "</object>";

    // ÇÃ·¡½Ã ÄÚµå Ãâ·Â
    document.write(flashStr);

}

function flashWrite2(url, w, h, id, bg, vars, win) {

    // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
    var flashStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + w + "' height='" + h + "' id='" + id + "' align='middle'>" + "<param name='allowScriptAccess' value='always' />" + "<param name='movie' value='" + url + "' />" + "<param name='FlashVars' value='" + vars + "' />" + "<param name='menu' value='false' />" + "<param name='bgcolor' value='" + bg + "' />" + "<embed src='" + url + "' FlashVars='" + vars + "' wmode='" + win + "' menu='false' bgcolor='" + bg + "' width='" + w + "' height='" + h + "' name='" + id + "' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />" + "</object>";

    // ÇÃ·¡½Ã ÄÚµå Ãâ·Â
    document.write(flashStr);

}
//µ¿¿µ»ó


function aviPlay(src, w, h) {
    document.write('<embed src="' + src + '" width=' + w + ' height=' + h + '>')
}



function showHideLayer(stat) {
    //alert(stat);
    if (stat) {
        document.all.sitemap02.style.visibility = "visible";
        document.all.sitemap01.style.visibility = "hidden";

    } else {
        document.all.sitemap02.style.visibility = "hidden";
        document.all.sitemap01.style.visibility = "visible";
    }
}


