/************************************************************/

function openvisual(){
left.style.visibility = "visible";
}

function opencontent(){
content.style.visibility = "visible";
}

function opennotice(){
notice1.style.visibility = "visible";
notice2.style.visibility = "visible";
}

function closepop(){
pop.style.visibility = "hidden";
}



function message(){
	alert('ÁØºñÁß');
}


/*
isNN = document.layers ? 1 : 0; 
function noContext(){return false;}
function noContextKey(e) {
    if(isNN){
        if (e.keyCode == 96){ return (false);}
    } else {
        if (event.keyCode == 96){ return (false);}
    }
}
function noClick(e){
    if(isNN){
        if(e.which > 1) {return false;}
    } else { 
        if(event.button > 1){return false;}
    }
}
if(isNN){ 
    document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu = noContext;
document.onkeypress    = noContextKey;
document.onmousedown   = noClick;
document.onmouseup     = noClick;
*/


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

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src 

+"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

////////////////////////////////////////////////////////
		var stmnLEFT = 300; 
        var stmnGAP1 = 480; 
        var stmnGAP2 = 40; 
        var stmnBASE = 700;
        var stmnActivateSpeed = 100; 
        var stmnScrollSpeed = 5; 
        var stmnTimer;
        function ReadCookie(name)
        {
                var label = name + "=";
                var labelLen = label.length;
                var cLen = document.cookie.length;
                var i = 0;
                while (i < cLen) {
                        var j = i + labelLen;
                        if (document.cookie.substring(i, j) == label) {
                                var cEnd = document.cookie.indexOf(";", j);
                                if (cEnd == -1) cEnd = document.cookie.length;
                                return unescape(document.cookie.substring(j, cEnd));
                        }       
                        i++;
                }
               return;
        }
        function SaveCookie(name, value, expire)
        {
                var eDate = new Date();
                eDate.setDate(eDate.getDate() + expire);
                document.cookie = name + "=" + value + "; expires=" +  eDate.toGMTString()+ "; path=/";
        }
        function RefreshStaticMenu()
        {
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
                stmnStartPoint = parseInt(STATICMENU.style.top, 10);
                stmnEndPoint = document.body.scrollTop + stmnGAP2;
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
                stmnRefreshTimer = stmnActivateSpeed;
                if ( stmnStartPoint != stmnEndPoint ) {
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
                        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
                       stmnRefreshTimer = stmnScrollSpeed;
                }
               stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
        }
        function ToggleAnimate()
        {
        //        if (ANIMATE.checked) {
                        RefreshStaticMenu();
                        SaveCookie("ANIMATE", "true", 300);
        //        }
        //        else {
        //               clearTimeout(stmnTimer);
        //                STATICMENU.style.top = stmnGAP1;
        //                SaveCookie("ANIMATE", "false", 300);
        //        }
        }
        function InitializeStaticMenu()
        {
                STATICMENU.style.left = stmnLEFT;
        //        if (ReadCookie("ANIMATE") == "false") {
        //                ANIMATE.checked = false;
        //                STATICMENU.style.top = document.body.scrollTop + stmnGAP1;
        //        }
        //        else {
        //                ANIMATE.checked = true;
                        STATICMENU.style.top = document.body.scrollTop + stmnBASE;
                        RefreshStaticMenu();
						ToggleAnimate();
        //        }
        }

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


/*****************È®´ëÀÌ¹ÌÁö ÆË¾÷Ã¢ ½ºÅ©¸³Æ®************/

var win1Open = null

function viewimg(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}

//script language="JavaScript1.1"    
function viewimg(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"left=100,top=100,toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>¢Æ È®´ëÀÌ¹ÌÁöº¸±â ¢Æ</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 >"
htmlString += "<table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>"
htmlString += "<tr><td><a href=javascript:window.close()><img src=" + picName + " border=0 alt=´Ý±â></a></td></tr>"
htmlString += "</table></body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}

/**************************ÀÎµ¦½º °øÁö**************************************/
function popnotice1(){
window.open("notice1.htm","1","width=450, height=380, top=0,left=0,scrollbars=no");
}
function popnotice2(){
window.open("notice2.htm","2","width=640, height=550, top=0,left=0,scrollbars=yes");
}
/**************************±âº» ÇÃ·¡½Ã Á¤ÀÇ**************************************/

function visual_menu(pn){
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="1000" height="230" id="myFlash" align="middle">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="menu.swf" />')	
document.write('<param name="FlashVars" value="PageNum=' + pn + '">')
document.write('<param name="wmode" value="transparent" />')
document.write('<param name="quality" value="high">')
document.write('<embed src="menu.swf" quality="high" bgcolor="#b76f09" width="1000" height="230" name="myFlash" id="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function visual_left(mn){
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="500" height="450"  align="middle">'); 
document.write('<param name="allowScriptAccess" value="always"> ')	
document.write('<param name="movie" value="left.swf" />')	
document.write('<param name="FlashVars" value="main_num=' + mn + '">')
document.write('<param name="wmode" value="transparent" />')
document.write('<param name="quality" value="high">')
document.write('<embed src="left.swf" quality="high" allowScriptAccess="always" swLiveConnect=true width="500" height="450"  align="middle"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function visual_right(file){
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="500" height="370" id="index" align="middle">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="right_' + file +'.swf" />')
document.write('<param name="wmode" value="transparent" />')
document.write('<param name="quality" value="high">')
document.write('<embed src="right_'+ file +'.swf" quality="high" bgcolor="#a7312d" width="500" height="370" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}



/*****************************************************************************/

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args)	{

	if (command=="openvisual"){
		openvisual()}

	if (command=="opencontent"){
		opencontent()}

	if (command=="opennotice"){
		opennotice()}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call myFlash_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
} 
