// ÇÃ·¡½Ã
function content_flash(strSrc, strW, strH , sxml , jsfunction )
{
	document.write('<Object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="'+strW+'" HEIGHT="'+strH+'" id="company_flash_sub_v1" ALIGN="">');
	document.write('<PARAM NAME=movie VALUE="'+strSrc+'"> ');
	document.write('<PARAM NAME=menu VALUE=false> ');
	document.write('<PARAM NAME=quality VALUE=high> ');
	document.write('<PARAM NAME=wmode VALUE=transparent> ');
	document.write('<PARAM NAME=bgcolor VALUE=#CCCCCC> ');
	document.write('<PARAM NAME=flashvars VALUE="jsfunction='+jsfunction+'&menuXML='+sxml+'"> ');
	document.write('<EMBED src="'+strSrc+'" menu=false quality=high wmode=transparent bgcolor=#CCCCCC  WIDTH="'+strW+'" HEIGHT="'+strH+'" NAME="company_flash_sub_v1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write('</OBJECT>');
}
/*////////////////////////  À¥Á¢±Ù¼º ³×ÀÌ°ÔÀÌ¼Ç  /////////////////////////*/

//±Û·Î¹ú ³×ºñ°ÔÀÌ¼Ç(2Depth ¸Þ´º±×·ì)¿¡ ´ëÇÑ ¸¶¿ì½º ¶Ç´Â Å°º¸µå ¹ÝÀÀ(º¸ÀÓ/¼û±è)¼³Á¤
function menuD2block(id) {
	for(num=1; num<=12; num++){
		if(document.getElementById('D2MG'+num)){
			document.getElementById('D2MG'+num).style.display='none'; //D2MG1~D2MG5 ±îÁö ¼û±ä ´ÙÀ½
		}
	}
	if(document.getElementById(id)){
		document.getElementById(id).style.display='block'; //ÇØ´ç ID¸¸ º¸ÀÓ
		}
}
function menuD2displaynone() {
	for(num=1; num<=12; num++){
		if(document.getElementById('D2MG'+num)){
			document.getElementById('D2MG'+num).style.display='none';
		}
		} //D2MG1~D2MG5 ±îÁö ¼û±ä ´ÙÀ½
}
//·ÎÄÃ ³×ºñ°ÔÀÌ¼Ç(4Depth ¸Þ´º±×·ì)¿¡ ´ëÇÑ ¸¶¿ì½º ¶Ç´Â Å°º¸µå ¹ÝÀÀ(º¸ÀÓ/¼û±è)¼³Á¤
function menuD4MGblock(id) {
	for(num=1; num<=12; num++){
		if(document.getElementById('D4MG'+num)){
			document.getElementById('D4MG'+num).style.display='none';
			}
		} //D4MG1~D4MG5 ±îÁö ¼û±ä ´ÙÀ½
		if(document.getElementById(id)){
			document.getElementById(id).style.display='block'; //ÇØ´ç ID¸¸ º¸ÀÓ
			}
	
}

// ÇöÀç ÆäÀÌÁöÀÇ ¸Þ´º »óÅÂ Ç¥½Ã(ÆíÀÇ»ó ¸ðµÎ ¾ð´õ¶óÀÎÀ¸·Î ¼³Á¤µÇ¾î ÀÖÀ¸¸ç body onLoad ½Ã ½ÇÇàµÊ)
function menuD1on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD2on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD3on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD4on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD5on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD6on(id) {
	document.getElementById(id).style.textDecoration='underline';
}

// »õÃ¢ ±èÀÏ±Ô
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}




// À¥Á¢±Ù¼º È®´ë Ãà¼Ò ±èÀÏ±Ô
function getIframDocument(iframeObject) {
    if(navigator.appName.indexOf("Internet Explorer") == -1) {
        return iframeObject.contentDocument
   }  else {
        return iframeObject.Document
   }
}
function getCookieVal (offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
    return (document.cookie.substring(offset, endstr));
}

function FixCookieDate (date) {
    var base = new Date(0);
    var skew = base.getTime(); // dawn of (Unix) time - should be 0
    if (skew > 0) // Except on the Mac - ahead of its time
        date.setTime (date.getTime() - skew);
}

function GetCookie (name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return getCookieVal (j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break;
    }
    return null;
}

function SetCookie (name,value,expires,path,domain,secure) {
    document.cookie = name + "=" +  (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
}

function DeleteCookie (name,path,domain) {
    path = "/";
    if (GetCookie(name)) {
        document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}


    document.onkeypress = getKey;

    function getKey(keyStroke) {
        isNetscape=(document.layers);
        eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
        which = String.fromCharCode(eventChooser).toLowerCase();
        which2 = eventChooser;

        var el=event.srcElement;

        if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))
        {
            if(which == "+" )
                zoomInOut('zoom', 'in');
            else if(which == "-" )
                zoomInOut('zoom', 'out');
        }

    }

    var zoomRate = 10;
    var maxRate = 300;
    var minRate = 100;
    var divMenu_left;

    function zoomInOut(contentid, how) {

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            STATICMENU.style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%';
            STATICMENU.style.zoom = '100%';
            currZoom = '100%';
        }

        if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) {
            return;
        }

        if (how == "in") {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)+zoomRate+'%';
            STATICMENU.style.zoom = parseInt(STATICMENU.style.zoom)+zoomRate+'%';

        }
        else {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%';
            STATICMENU.style.zoom = parseInt(STATICMENU.style.zoom)-zoomRate+'%';
        }

        expires = new Date();
        expires.setTime(expires.getTime() + 24 * 60 * 60 * 365 * 5);
        SetCookie("zoomVal",document.all[contentid].style.zoom,expires,"/","","");
        //SetCookie("SeatLeft",STATICMENU.style.left,expires,"/","","");

        GoZoomLeft();
    }

    function GoZoom(contentid){
        var rate = parseInt(GetCookie("zoomVal")) - 100;

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            STATICMENU.style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%';
            STATICMENU.style.zoom = '100%';
            currZoom = '100%';
        }
        GoZoomLeft();
    }

    function GoZoomMain(contentid){
        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%';
            currZoom = '100%';
        }
    }

    function GoZoomLeft(){
        var rate = 0 ;

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            rate = parseInt(GetCookie("zoomVal")) - 100;
        }
        document.all['STATICMENU'].style.top = 3*rate ;
        document.all['STATICMENU'].style.left = 1.3*rate;
    }
// ÃÊ±âÈ­Ãß°¡ ±èÀÏ±Ô
function normal() {
	location.reload();
}
