<!--
//.. swf

function swf(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <embed src="'+add+'" quality=high menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}
function swf_wmode(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=quality value=high><param name=wmode value=transparent><embed src="'+add+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}

function GoTop() {
//	if (document.body.scrollTop == 0) {
//		window.scrollTo(0,document.body.scrollHeight);
//	} else {
		window.scrollTo(0,0);
//	}
}

function GoTop_Call() {
	document.body.ondblclick = Top;	
}

	function gobo(page,name,x,y){
	opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=no,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
	window.open(page,name,opt)
	}

// Banner Scroll ÀÇ À§ÇÑ Layer »ý¼º
document.writeln('<div id=gotop style="Z-INDEX: 1; LEFT: 790px; TOP: 700px; WIDTH: 20px; HEIGHT: 12px; POSITION: absolute; visibility: visible;"><a href="javascript:GoTop();"  onFocus="this.blur()"><img src="/kor/01_intro/top.gif" width="15" height="33" border="0"></a></DIV>');
//document.writeln('<SCRIPT language=JavaScript src="gotop.js"></SCRIPT>');


// Banner Scroll À» À§ÇÑ ½ºÅ©¸³Æ® 
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["gotop"].top;
                yMenuTo     = top.pageYOffset + 500;   // gotop Layer ÀÇ Ã³À½ À§Ä¡
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (gotop.style.top, 10);

				yMenuTo = document.body.scrollTop + 500;  // gotop Layer ÀÇ Ã³À½ À§Ä¡

		}

        timeoutNextCheck = 10;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }

        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 5 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 5 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["gotop"].top += yOffset;
                else if ( bExplorer4plus )
                        gotop.style.top = parseInt (gotop.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["gotop"].top = top.pageYOffset ;
                document["gotop"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                gotop.style.top = document.body.scrollTop ;
                gotop.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}

OnLoad();
//-->
