
var CURRENTMENU = InitMenu;
var CURRENTLMENU = null;
var STATUSLMENU = 0;		//active = 1, nonactive = 0
var ArrMenu = new Array();
var check; // mouse over & out check

ArrMenu[0] = new Array();
ArrMenu[0][0] = ["",100];

	  
ArrMenu[1] = new Array();
ArrMenu[1][0] = new Array();
ArrMenu[1][0][0] = [100,"¾×ÅäÁî°¡ ÀüÇÕ´Ï´Ù.","/WebZine_0812/Contents/Contents_110.asp?ChkMenu=Comment"];

	ArrMenu[1][1] = new Array();
	ArrMenu[1][1][0] = [110,"¾×ÅäÁî ¿³º¸±â","/WebZine_0812/Contents/Contents_110.asp?ChkMenu=Comment"];	
				
	ArrMenu[1][2] = new Array();
	ArrMenu[1][2][0] = [120,"2È¸ »ç³»°ø¸ðÀü ´ç¼±ÀÛ ¹ßÇ¥","/WebZine_0812/Contents/Contents_120.asp?ChkMenu=Comment"];	
				
	ArrMenu[1][3] = new Array();
	ArrMenu[1][3][0] = [130,"3ÀÎ¹æÀÇ »õÇØ¸ÂÀÌ Ã»¼ÒÆ÷ºÎ","/WebZine_0812/Contents/Contents_130.asp?ChkMenu=Comment"];	



ArrMenu[2] = new Array();
ArrMenu[2][0] = new Array();
ArrMenu[2][0][0] = [200,"¹«ÇÑ¾×¼Ç,¾×ÅäÁö¾È!","/WebZine_0812/Contents/Contents_210.asp?ChkMenu=Comment"];

	ArrMenu[2][1] = new Array();
	ArrMenu[2][1][0] = [210,"3½Ö 6»ö ÄÚ¸àÆ®","/WebZine_0812/Contents/Contents_210.asp?ChkMenu=Comment"];	

	ArrMenu[2][2] = new Array();
	ArrMenu[2][2][0] = [220,"¼ÖÁ÷´ã¹é ÃëÁßÅäÅ©","/WebZine_0812/Contents/Contents_220.asp?ChkMenu=Comment"];	

	ArrMenu[2][3] = new Array();
	ArrMenu[2][3][0] = [230,"¾×ÅäÁî ¿Ï¼Ò³² ¿Ï¼Ò³à","/WebZine_0812/Contents/Contents_230.asp?ChkMenu=Comment"];	

	ArrMenu[2][4] = new Array();
	ArrMenu[2][4][0] = [240,"¿ì¸® Å¬·´À» ¼Ò°³ÇÕ´Ï´Ù!","/WebZine_0812/Contents/Contents_240.asp?ChkMenu=Comment"];					



ArrMenu[3] = new Array();
ArrMenu[3][0] = new Array();
ArrMenu[3][0][0] = [300,"ÀÎ»ýÀº ÇÑÆÇ°ÔÀÓ!","/WebZine_0812/Contents/Contents_310.asp?ChkMenu=Comment"];

	ArrMenu[3][1] = new Array();
	ArrMenu[3][1][0] = [310,"°ÔÀÓ°³¹ß Ä®·³","/WebZine_0812/Contents/Contents_310.asp?ChkMenu=Comment"];	

	ArrMenu[3][2] = new Array();
	ArrMenu[3][2][0] = [320,"¿µÀÚÀÇ Àü¼º½Ã´ë","/WebZine_0812/Contents/Contents_320.asp?ChkMenu=Comment"];	

	ArrMenu[3][3] = new Array();
	ArrMenu[3][3][0] = [330,"¶óÅ×ÀÏÀÇ ¼ûÀº ÀÌ¾ß±â","/WebZine_0812/Contents/Contents_330.asp?ChkMenu=Comment"];	



ArrMenu[4] = new Array();
ArrMenu[4][0] = new Array();
ArrMenu[4][0][0] = [400,"¿­¸° ¹®È­°ø°£","/WebZine_0812/Contents/Contents_410.asp?ChkMenu=Comment"];

	ArrMenu[4][1] = new Array();
	ArrMenu[4][1][0] = [410,"¾×ÅäÁî in Game Industry","/WebZine_0812/Contents/Contents_410.asp?ChkMenu=Comment"];	
				
	ArrMenu[4][2] = new Array();
	ArrMenu[4][2][0] = [420,"ÀÌ¼ø½Å ¿©Çà±â","/WebZine_0812/Contents/Contents_420.asp?ChkMenu=Comment"];	



ArrMenu[5] = new Array();
ArrMenu[5][0] = new Array();
ArrMenu[5][0][0] = [500,"ÀÌº¥Æ®","/WebZine_0812/Event/Square.asp"];

	ArrMenu[5][1] = new Array();
	ArrMenu[5][1][0] = [510,"³×¸ðÄûÁî","/WebZine_0812/Event/Square.asp"];	
				
	ArrMenu[5][2] = new Array();
	ArrMenu[5][2][0] = [520,"1È£ ÀÌº¥Æ® ´çÃ·ÀÚ ¹ßÇ¥","/WebZine_0812/Contents/Contents_520.asp?ChkMenu=Comment"];	



ArrMenu[6] = new Array();
ArrMenu[6][0] = new Array();
ArrMenu[6][0][0] = [600,"ÀÇ°ßÀ» µè½À´Ï´Ù","/WebZine_0812/Poll/List.asp?ChkMenu=Poll"];

	ArrMenu[6][1] = new Array();
	ArrMenu[6][1][0] = [610,"¼³¹®Á¶»ç","/WebZine_0812/Poll/List.asp?ChkMenu=Poll"];	
				
	ArrMenu[6][2] = new Array();
	ArrMenu[6][2][0] = [620,"ÀÚÀ¯°Ô½ÃÆÇ","/WebZine_0812/Board/List.asp?ChkMenu=Free"];	



ArrMenu[7] = new Array();
ArrMenu[7][0] = new Array();
ArrMenu[7][0][0] = [700,"±âÅ¸",""];

	ArrMenu[7][1] = new Array();
	ArrMenu[7][1][0] = [710,"Á¦ÀÛÈÄ±â","/WebZine_0812/Contents/Contents_710.asp"];	
				
	ArrMenu[7][2] = new Array();
	ArrMenu[7][2][0] = [720,"±¸µ¶½ÅÃ»","/WebZine_0812/"];	

	ArrMenu[7][3] = new Array();
	ArrMenu[7][3][0] = [730,"°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§","/WebZine_0812/Contents/Contents_730.asp"];	



function GoMain(Num)
{	
	//alert(Num);	

	var tmpUrl="";

	if (Num == '1')   
	{
		tmpUrl = "/WebZine_0812/main.asp";
	}
	else
	{
		tmpUrl = "";
	}

	document.location.href = tmpUrl;
}

function DelayMenu(no)
{	
	var no = no.toString();
	//alert(no);
	setTimeout('LinkMenu(' + no + ')',3000);
}

function AccessPage(no)
{	
	no = no.toString();
	document.inBoard.location.href = "/WebZine_0812/AccessLink.asp?LinkNum=" + no ;	
}

function LinkMenu(no)
{	
	no = no.toString();
	var TopMenu = no.substring(0,1);
	var SubMenu = no.substring(1,2);
	var DetailMenu = no.substring(2,no.length);

	//alert(no);
	
	document.location.href = ArrMenu[TopMenu][SubMenu][DetailMenu][2];	
}
	     
	  
// trim
function trim(tmp)
{
	var i, tmp2, tmp3;
	
	tmp3 = "";
	tmp2 = tmp.split(" ");
	for (i = 0; i < tmp2.length; i++)
		tmp3 += tmp2[i]
	
	return tmp3;	
}

// linemap
function contentstitle()
{
	var pos, pos2, lTitle, rLocation, tmp;
	
	pos = CURRENTMENU;
	pos = pos.toString(10);
	pos2 = pos.split("");
	
	rLocation = "";
	tmp = "&nbsp;&gt;&nbsp;";
	if ( parseInt(CURRENTMENU / 100, 10) == 1)
		rLocation += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	rLocation += "<a href=/main.asp onFocus=this.blur(); >Home</a>" // HOME


	if (pos2[0] != 8)
	{
		rLocation += tmp;	
		rLocation += "<a href=" + ArrMenu[pos2[0]][0][0][2] + " onFocus=this.blur();>" + ArrMenu[pos2[0]][0][0][1] + "</a>";
	}
	
	if (pos2[0] != 8)
	{
		if (pos2[1] != 0)
		{
			rLocation += tmp;
			rLocation += "<a href=" + ArrMenu[pos2[0]][pos2[1]][0][2] + " onFocus=this.blur();>" + ArrMenu[pos2[0]][pos2[1]][0][1] + "</a>";
		}
	}
	
		
	if (pos2[2] != 0)
	{
		rLocation += tmp;
		rLocation += "<a href=" + ArrMenu[pos2[0]][pos2[1]][pos2[2]][2] + " onFocus=this.blur();>" + ArrMenu[pos2[0]][pos2[1]][pos2[2]][1] + "</a>";
	}
	
	Navi.innerHTML = rLocation;
}


function Go_URL()
{
	var myindex = document.frmUrl.GoSelectURL.selectedIndex;

	if (document.frmUrl.GoSelectURL.options[myindex].value != "")
	{
		top.document.location.href = document.frmUrl.GoSelectURL.options[myindex].value;

	}
}


function ShowFlash(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor)
{
	//page url
	var pageUrl = self.window.location.href;
	
	if(pageUrl.substring(0,5) == 'https') 
	{
		swfUrl = "https";
	} 
	else 
	{
		swfUrl = "http";
	}
	
	/* Default Value Setting */
	if (objID == "")
	{
		objID = 'ShockwaveFlash1';
	}
	if (objWidth == "") 
	{
		objWidth = '0';
	}
	if (objHeight == "") 
	{
		objHeight = '0';
	}
	if (objQuality == "") 
	{
		objQuality = 'best';
	}
	if (objWmode == "") 
	{
		objWmode = 'transparent';
	} 
	else 
	{
		objWmode = '';
	}
	
	/* Flash 8.0 version */
	document.write('<OBJECT id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('type="application/x-shockwave-flash" ');
	document.write('data="' + objSource + '" ');
	document.write('codebase="' + swfUrl +'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '">');
	document.write('<PARAM NAME=menu value=false>');
	document.write('<PARAM NAME=allowScriptAccess value=always>');
	document.write('<PARAM NAME=wmode value="'+ objWmode +'">');
	document.write('<PARAM NAME=movie VALUE="'+ objSource +'">');
	document.write('<PARAM NAME=quality VALUE="'+ objQuality +'">');
	document.write('<PARAM NAME=bgcolor VALUE="'+ objBgcolor +'">');
	document.write('<embed allowScriptAccess="always" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + objWidth + '" height="' + objHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}


function fullScreen(theURL)
{
	var W = (screen.width) - 10;
	var H = (screen.height) - 50;
	window.open(theURL, "WebZine","width="+W.toString()+",height="+H.toString()+",resizable=no,left=0,top=0,screenX=0,screenY=0,scrollbars=no, menubar=no, titlebar=no, toolbar=no, status=no, directories=no");
	return;
}


function Echeck(FName,FEmail) 
{   
	document.getElementById('inEcheck').src = "/Subscribe/Apply.asp?NameMail=" + FName + "&Mail=" + FEmail + "";
}