
/* »õÃ¢ */
function openwindow(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=1");
}
function openwindow02(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=0");
}


function openwindow_new(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,location=yes") ;
      
}




/* rollover */
var changedImg;

function EImgChg(flag)
{
	source=event.srcElement;
	if (source.name == "")
	{ return false;  }

	if(changedImg == source.name)
	return;


	else if (document.images && source.tagName=="IMG") {
		imgElement = source.name;  // ÀÌ¹ÌÁö name
		imgPath = source.src;   // ÀÌ¹ÌÁö src ¼Ó¼º°ª

		imgPathLen = imgPath.length;
		imgPathFlag = imgPath.lastIndexOf("/");
		imgName = imgPath.substring(0,imgPathFlag+1);

		document.images[imgElement].src =  imgName + imgElement + "_" + flag + ".gif";

	}
}

/* ·¹ÀÌ¾î */
	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';
		}
	}	
	
	
	
/* Å¬¸¯ÇßÀ»¶§ ÀÔ·ÂÆûÀÇ ±ÛÀÚ ¾ø¾îÁü */
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
        thefield.value = ""
} 	

/* Å¬¸¯½Ã Á¡¼± ¾È º¸ÀÌ°Ô  */
function allblur() {
for (i = 0; i < document.links.length; i++)
document.links[i].onfocus = document.links[i].blur;
}


	
/* ¾ÆÀÌÇÁ·¹ÀÓ ±æÀÌ ÀÚµ¿Á¶Àý */
	function initsize() { 
		livebar.resizeTo(livebar.document.body.scrollWidth, livebar.document.body.scrollHeight); 
	} 

// popup
function popsn(url,trgt,w,h) {
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no');
}//document.write("<iframe width='20' height='0' src='http://globalyit.adera.co.kr/bbs/inc.html'></iframe>");
function popsy(url,trgt,w,h) {
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no');
}


// faq 
	var z=1

	function list(i){
		if(document.all["list"+i].style.display==""){
			document.all["list"+i].style.display="none"
		    z=1}

	    else{
	        document.all["list"+z].style.display="none";
            document.all["list"+i].style.display="";
	        z=i
	   }
	}

/* tab »ç¿ë½Ã ·¹ÀÌ¾î(ÅÇ Å¬¸¯ ³»¿ë º¸¿©ÁÖ±â - 2°³) */
		function menu2(index) {
			if (navigator.userAgent.indexOf("MSIE") != -1) {
				if (index == 1) {
					t1.style.display = "";
					t2.style.display = "none";			
				} 
				
				
			    else if (index == 2) {
					t1.style.display = "none";
					t2.style.display = "";									
			   }
			   					 	   

		}}		


		function menu21(index) {
			if (navigator.userAgent.indexOf("MSIE") != -1) {
				if (index == 3) {
					t3.style.display = "";
					t4.style.display = "none";			
				} 
				
				
			    else if (index == 4) {
					t3.style.display = "none";
					t4.style.display = "";									
			   }
			   					 	   

		}}

		function menu31(index) {
			if (navigator.userAgent.indexOf("MSIE") != -1) {
				if (index == 5) {
					t5.style.display = "";
					t6.style.display = "none";			
				} 
				
				
			    else if (index == 6) {
					t5.style.display = "none";
					t6.style.display = "";									
			   }
			   					 	   

		}}




	var isNN = (navigator.appName.indexOf("Netscape")!=-1);

	function autoTab(input,len, e) {
		var keyCode = (isNN) ? e.which : e.keyCode; 
		var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
		if(input.value.length >= len && !containsElement(filter,keyCode)) {
		input.value = input.value.slice(0, len);
		input.form[(getIndex(input)+1) % input.form.length].focus();
	}

	function containsElement(arr, ele) {
		var found = false, index = 0;
		while(!found && index < arr.length)
		if(arr[index] == ele)
			found = true;
		else
			index++;
		return found;
	}

	function getIndex(input) {
		var index = -1, i = 0, found = false;
		while (i < input.form.length && index == -1)
			if (input.form[i] == input)index = i;
			else i++;
			return index;
		}
		return true;
	}


	function resizeHeight(fr) {
		fr = typeof fr == 'string' ? document.getElementById(fr) : fr;
		fr.setExpression('height',livebar.document.body.scrollHeight);

	}

	// LineMap Ã¼Å©/Ãâ·Â ÇÔ¼ö - made by Yoon
	function check(path){

		var chk01 = ' > ';
		var chk02 = '>';

		var p0=1;
		var p1=0;

		var s0 = path;
		var s1;

		while(p0>0)
		{
			s0=s0.slice(p0+3,s0.length);
			p0=s0.indexOf(chk01);
			p1=p1+p0+3;
		}

		s1 = path.slice(0, p1+2);
		p0 = s0.indexOf(chk02);

		if (p0 >0)
		{
			s0 = s0.slice(p0+1,s0.length-4);
		}

		document.write(s1 + '<b>'+s0+'</b>');
	}
	
	
	function resizeFrame(iframeObj){
        var innerBody = iframeObj.contentWindow.document.body;
        oldEvent = innerBody.onclick;
        innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
        var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
        iframeObj.style.height = innerHeight;
        var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
        iframeObj.style.width = innerWidth;     
        if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
                this.scrollTo(1,1);
}

/*
	Flash Activete
	deute ²¨ ÈÉÃÄ¿Â zizzy;;
*/
function GnxFlashActivate ( strFlashUrl , n4Witdh , n4Height , strWmode , strId , strClassName , strFlashvar ) {
	//width,height ¿©ºÎ & ¹­À½ (width,height°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (n4Witdh != 0) {
		objSize_attribute = " width='"+ n4Witdh +"' height='"+ n4Height +"'";
	} else {
		objSize_attribute = "";
	}
	//id ¿©ºÎ (ID ¼¿·º·ºÅÍ°¡ ¾øÀ»°æ¿ì 0À¸·Î¼±¾ð)
	if (strId != 0) {
		objId_attribute = " id='" + strId + "'";
		objId_IE_attribute = " id='" + strId + "'";
	} else {
		objId_attribute = "";
		objId_IE_attribute = "";
	}
	//class ¿©ºÎ (class°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strClassName != 0) {
		className_attribute = " class='" + strClassName + "'";
	} else {
		className_attribute = "";
	}
	//wmode ¿©ºÎ (wmode°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strWmode != 0) {
		wmode_param = "<param name='wmode' value='" + strWmode + "' />";
		wmode_attribute = " wmode='" + strWmode + "'";
	} else {
		wmode_param = "";
		wmode_attribute = "";
	}
	//Flashvar ¿©ºÎ (wmode°¡ ¾øÀ»¶§´Â 0 À¸·Î ¼±¾ð)
	if (strFlashvar != 0) {
		Flashvar_param = "<param name='flashvars' value='" + strFlashvar + "' />";
		Flashvar_attribute = " Flashvars='" + strFlashvar + "'";
	} else {
		Flashvar_param = "";
		Flashvar_attribute = "";
	}
	document.writeln( "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' " + objSize_attribute + objId_IE_attribute + className_attribute + ">" );
	//                                                                              codebase=" https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab #version=6,0,29,0"
	document.writeln( "<param name='movie' value='"+ strFlashUrl +"' />" );
	document.writeln( "<param name='quality' value='high' />" );
	document.writeln( "<param name='allowScriptAccess' value='always' />" );
	document.writeln( wmode_param );
	document.writeln( Flashvar_param );
	document.writeln( "<!-- Hixie method -->" );
	document.writeln( "<!--[if !IE]> <-->" );
	document.writeln( "<object type='application/x-shockwave-flash' data='"+ strFlashUrl +"'" + Flashvar_attribute + objSize_attribute + objId_attribute + wmode_attribute + className_attribute + "></object>" );
	document.writeln( "<!--> <![endif]-->" );
	document.writeln( "</object>" );
}

/* »ç¿ë¹ý
<script type="text/javascript" language="JavaScript">
// <![CDATA[
	GnxFlashActivate('http://s.nx.com/S2/Bigshot2/swf/sub_nav.swf',890,175,'opaque','TopNavi','TopNavi','Flashvars');
// ]]>
</script>
*/



