// JavaScript Document

function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")document.body.focus();
}
// Å¬¸¯ ½Ã Á¡¼± ¾ø¾Ö´Â ½ºÅ©¸³Æ®

var old_menu = '';
var old_tit = '';

function sh_script(submenu, tit) {
    var submenu = document.getElementById(submenu);
    var tit = document.getElementById(tit);
  
    if( old_menu != submenu ) {
        if( old_menu !='' ) {
            old_menu.style.display = 'none';
        }
		
        submenu.style.display = 'block';
        old_menu = submenu;
		
    } else {
        submenu.style.display = 'none';
        old_menu = '';
    }
	
	if( old_tit != tit) {
		
        if( old_tit !='' ) {
            old_tit.style.fontWeight = 'lighter';
			old_tit.style.color = '#555555';
			old_tit.style.background = '#ffffff';
        }
		
        tit.style.fontWeight = 'bold';
		tit.style.color = '#ffffff';
		tit.style.background = '#b3c8e4';
		
        old_tit = tit;
		
    } else {
        tit.style.fontWeight = 'lighter';
		tit.style.color = '#555555';
		tit.style.background = '#ffffff';
		
        old_tit = '';
    }
}
// °ÔÀÓ ¼Ò°³ ¸Þ´º º¸ÀÌ°í °¡¸®´Â ½ºÅ©¸³Æ®

var old_world = '';

function world_change(submenu) {
    var submenu = document.getElementById(submenu);
  
    if( old_world != submenu ) {
        if( old_world !='' ) {
            old_world.style.display = 'none';
        } else {
			
		}
		
        submenu.style.display = 'block';
		
        old_world = submenu;
		
    } else {
        submenu.style.display = 'none';
        old_world = '';
    }
}
// ¿ùµå ¼Ò°³ ¸Þ´º º¸ÀÌ°í °¡¸®´Â ½ºÅ©¸³Æ®

/*
function world_info(obj, a) {
 
 var new_img = document.getElementById(a);
 new_img.style.display = 'block';
 
 obj.style.display = "none";
}

function world_info(a) {
 
 var new_img = document.getElementById(a);
 new_img.style.display = 'block';
 
 this.style.display = "none";
}*/

function world_info(a, b) {
	
	var new_img = document.getElementById(a);
	new_img.style.display = 'block';
	
	var old_img = document.getElementById(b);
	old_img.style.display = "none";
}

function default_view(a, b) {
	var new_img = document.getElementById(a);
	new_img.style.display = 'block';
	
	var new_img2 = document.getElementById(b);
	new_img2.style.display = 'block';
}
// ¿ùµå¼Ò°³ ¸Ê ÀÌ¹ÌÁö ¹Ù²ãÁÖ´Â ½ºÅ©¸³Æ®

function field_img() {
	if (Login.login_id.value == "") Login.login_id.style.backgroundImage= "url('/img/common/value_id.jpg')"; 
	if (Login.login_pass.value == "") Login.login_pass.style.backgroundImage= "url('/img/common/value_pass.jpg')";
}
// ·Î±×ÀÎ ¹Ú½º ¹è°æ ÀÌ¹ÌÁö Æ÷Ä¿½º Ã³¸® ½ºÅ©¸³Æ®

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 '';
}
// ie6.0 png È¸»ö ¹è°æ Ã³¸® ½ºÅ©¸³Æ®

// ¸ÖÆ¼¹Ìµð¾î ½ºÅ©¸³Æ®
var old_num = '';
var old_multi_num = '';
function multi(a, b) {
    var a = document.getElementById(a);
	var b = document.getElementById(b);
  
    if( old_num != a ) {
        if( old_num !='' ) {
            old_num.style.display = 'none';
        }
		
        a.style.display = 'block';
        old_num = a;
		
    } else {
        a.style.display = 'none';
        old_num = '';
    }
	
	if( old_multi_num != b) {
		
        if( old_multi_num !='' ) {
//            old_multi_num.style.fontWeight = 'lighter';
//			old_multi_num.style.color = '#fff';
//			old_multi_num.style.background = '#2e4c72';
			old_multi_num.className = 'non_active';
//			b.className = 'non_active';
        }
		
		b.className = 'active';
//        b.style.fontWeight = 'bold';
//		b.style.color = '#2e4c72';
//		b.style.background = '#fff';
        old_multi_num = b;
		
    } else {
//        b.style.fontWeight = 'lighter';
//		b.style.color = '#fff';
//		b.style.background = '#2e4c72';
		b.className = 'non_active';
        old_multi_num = '';
    }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}
