function dEI(elementID){
	return document.getElementById(elementID);
}

// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function imglover(imgBoxID){
	var MenuCounts = dEI(imgBoxID).getElementsByTagName("img");
	for (i=0;i<MenuCounts.length;i++) {
		var numImg=MenuCounts.item(i);
		var ImgCheck = numImg.src.substring(numImg.src.length-6,numImg.src.length);
		if (ImgCheck!="on.gif") {
				numImg.onmouseover = function () {
					this.src = this.src.replace(".gif", "on.gif");
				}
				numImg.onmouseout = function () {
					this.src = this.src.replace("on.gif", ".gif");
				}
			}
	}
}
// ÀÌ¹ÌÁö ·Ñ¿À¹öjpg
function jpimglover(imgBoxID){
	var MenuCounts = dEI(imgBoxID).getElementsByTagName("img");
	for (i=0;i<MenuCounts.length;i++) {
		var numImg=MenuCounts.item(i);
		var ImgCheck = numImg.src.substring(numImg.src.length-7,numImg.src.length);
		if (ImgCheck!="_on.jpg") {
				numImg.onmouseover = function () {
					this.src = this.src.replace(".jpg", "_on.jpg");
				}
				numImg.onmouseout = function () {
					this.src = this.src.replace("_on.jpg", ".jpg");
				}
			}
	}
}
// IE6 PNG IMAGE SET
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 '';
}



//¾ÆÀÌÇÁ·¹ÀÓ Å©±â¸¦ document Å©±â·Î Á¶Á¤
function resizingIframeEvent()
{
		window.onload=function()
		{
			resizingIframe();
			try{document.body.focus();}catch(e){}
			
		}

		window.onunload=function()
		{
			//window.frameElement.height = 1;
		}
}
function resizingIframe()
{
		try
		{
			var width = window.frameElement.width;
			var height= window.frameElement.height;
			var heightNew = document.body.scrollHeight;
			window.frameElement.height = heightNew;
		}catch(e){}
}




//////////////////////////////////////////////////////////////////////
function popClose(){
	self.close();	
}

function moreGo(){ //¸ÞÀÎ¹è³Ê more
	location.href="#";
}

// °ÔÀÓ ´Ù¿î·Îµå
function GnxGameDownload(){  //Game Download
	parent.location.href="/main/page/nx.aspx?url=home/main&codeMenuID=0500";
}

// °ÔÀÓ Àç¼³Ä¡
function GnxGameReinstall(){  //Game Download
	javascript:NGM.ForceInstall(74256);
}

function GnxGameHome(){
	location.href="http://kavatina.nexon.com/main/page/nx.aspx?url=home/index";
}

function moreGo(){
	location.href="http://kavatina.nexon.com/main/page/nx.aspx?url=home/main&codeMenuID=0101";
}