
ns4 = (document.layers)?true:false
ie4 = (document.all)?true:false

/**********************************************************************************
	Layer Show Hide
***********************************************************************************/

function LayerSH(LayerName,Status) {
ns4 = (document.layers)?true:false
ie4 = (document.all)?true:false

	if (ns4) {
		LayerN = document.layers[LayerName]
		if (Status == 'show') LayerN.visibility = 'show';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}
	if (ie4) {
		LayerN = document.all[LayerName].style
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}
}

/**********************************************************************************
	Image Roll Over
***********************************************************************************/

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
function imgChg(imgName,imgObj) {
	if (document.images) {
		document.images[imgName].src = eval(imgObj+".src")
	}
}


	


/*********************************************************************************
  Jump Menu
**********************************************************************************/

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


////////////////////////////////////////////////////////////////////////////////////////////////////

// window.onload = img_resize;

function img_resize(){
	img_total = document.images.length;	// ÆäÀÌÁö¿¡ µé¾î¿À´Â ¸ðµç ÀÌ¹ÌÁöÀÇ °¹¼ö
	for (i=0; i<img_total; i++){
		if(document.images[i].name == "orgimg"){
			if(document.images[i].width > 400){
				document.images[i].width = 400;
			}
		}
	}
}

function img_resize_b(){
// ÀÌ¹ÌÁö »çÀÌÁî Á¶Àý.
for(i=1;i<6;i++){
		if ( eval('document.orgimg_' + i + '.width > 400') ) {
			eval('document.orgimg_' + i + '.width = 400') ;
		}
	}
}

function login(go_url,PL)
{
	window.open("/MyPage/login.asp?url="+go_url+"&PL="+PL,"","left=300;top=300,toolbar=0,menubar=0,scrollbars=no,resizable=no,width=300,height=222;")
}

function pop(pop,width,height)
{
	var url = pop;
	var wd = width;
	var he = height;

	window.open(url,'',"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
}
function pop2(pop,width,height)
{
	var url = pop;
	var wd = width;
	var he = height;

	window.open(url,'',"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
}


