/************************************************************************************************/
/* Select Menu Section Function                                                                 */
/************************************************************************************************/
function selMenuSection(idx) {
	switch (idx) {
		case 1 :
			return "Introduction";
			break;
		case 2 :
			return "Performance";
			break;
		case 3 :
			return "Exhibition";
			break;
		case 4 :
			return "Help";
			break;
		case 5 :
			return "Member";
			break;
		case 6 :
			return "Community";
			break;
		case 7 :
			return "FunnyZone";
			break;
		case 8 :
			return "Community";
			break;
		default :
			return "Main";
	}
}


/************************************************************************************************/
/* Draw Top Menu Function                                                                       */
/* idx : 1Depth Index / idy : 2Depth Index                                                      */
/************************************************************************************************/
function drawTopMenu(idx, idy, lstate) {
	var strTemp = "";
	var baseURL = selMenuSection(idx);
	if (lstate == null || lstate == "undefined") lstate = "";

	strTemp += "<iframe id=\"topFlash\" name=\"topFlash\" src=\"/Top.asp?baseURL="+baseURL+"&mmnu="+idx+"&smnu="+idy+"&lstate="+lstate+"\" width=\"100%\" height=\"211\" allowTransparency=\"true\" frameBorder=\"0\" scrolling=\"no\"></iframe>";
/*
	strTemp += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">";
	strTemp += "	<tr>";
	strTemp += "		<td background=\"/Img/"+baseURL+"/Common/bgTopImg00.gif\">";
	strTemp += "			<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"900\" height=\"211\" id=\"topImage\">";
	strTemp += "			<param name=\"movie\" value=\"/Flash/CommonTop.swf?mmnu="+idx+"&smnu="+idy+"&lstate="+lstate+"\">";
	strTemp += "			<param name=\"menu\" value=\"false\">";
	strTemp += "			<param name=\"quality\" value=\"high\">";
	strTemp += "			<param name=\"bgcolor\" value=\"#ffffff\">";
	strTemp += "			<embed src=\"/Flash/CommonTop.swf?mmnu="+idx+"&smnu="+idy+"&lstate="+lstate+"\" menu=\"false\" quality=\"high\" bgcolor=#ffffff  width=\"900\" height=\"211\" name=\"topImage\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	strTemp += "			</object>";
	strTemp += "		</td>";
	strTemp += "	</tr>";
	strTemp += "</table>";
*/
	document.write(strTemp);
}


/************************************************************************************************/
/* Draw Top Menu Function                                                                       */
/* idx : 1Depth Index / idy : 2Depth Index                                                      */
/************************************************************************************************/
function drawMainTopMenu(lstate) {
	var strTemp = "";
	if (lstate == null || lstate == "undefined") lstate = "";

	strTemp += "<iframe id=\"topFlash\" name=\"topFlash\" src=\"/MainTop.asp\" width=\"100%\" height=\"123\" allowTransparency=\"true\" frameBorder=\"0\" scrolling=\"no\"></iframe>";
/*
	strTemp += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">";
	strTemp += "	<tr>";
	strTemp += "		<td background=\"/Img/"+baseURL+"/Common/bgTopImg00.gif\">";
	strTemp += "			<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"900\" height=\"211\" id=\"topImage\">";
	strTemp += "			<param name=\"movie\" value=\"/Flash/CommonTop.swf?mmnu="+idx+"&smnu="+idy+"&lstate="+lstate+"\">";
	strTemp += "			<param name=\"menu\" value=\"false\">";
	strTemp += "			<param name=\"quality\" value=\"high\">";
	strTemp += "			<param name=\"bgcolor\" value=\"#ffffff\">";
	strTemp += "			<embed src=\"/Flash/CommonTop.swf?mmnu="+idx+"&smnu="+idy+"&lstate="+lstate+"\" menu=\"false\" quality=\"high\" bgcolor=#ffffff  width=\"900\" height=\"211\" name=\"topImage\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	strTemp += "			</object>";
	strTemp += "		</td>";
	strTemp += "	</tr>";
	strTemp += "</table>";
*/
	document.write(strTemp);
}



/************************************************************************************************/
/* Draw Copyright Function                                                                      */
/************************************************************************************************/
function drawCopyright() {
	var strTemp = "";
	strTemp += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
 	strTemp += "  <tr><td height=\"1\" bgcolor=\"EEEEEE\"></td></tr>";
	strTemp += "  <tr><td valign=\"center\" bgcolor=\"F6F6F6\"><img src=\"/Img/Main/Common/copywrite.gif\" vspace=5></td></tr>";
	strTemp += "  <tr><td height=\"1\" bgcolor=\"EEEEEE\"></td></tr>";
	strTemp += "</table>";
	document.write(strTemp);
}



function drawQuickMenu(t) {
	var strTemp = "";
	if (t == null || t == undefined) t = 235;
	strTemp += "<div id=\"quickBar\" name=\"quickBar\" style=\"position:absolute;top:"+t+";left:900\">";
	strTemp += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
	strTemp += "	<tr>";
	strTemp += "		<td>";
	strTemp += "			<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"58\" height=\"250\" id=\"quickMenu\">";
	strTemp += "			<param name=\"movie\" value=\"/Flash/QuickMenu.swf\">";
	strTemp += "			<param name=\"menu\" value=\"false\">";
	strTemp += "			<param name=\"quality\" value=\"high\">";
	strTemp += "			<param name=\"bgcolor\" value=\"#ffffff\">";
	strTemp += "			<embed src=\"/Flash/QuickMenu.swf\" menu=\"false\" quality=\"high\" bgcolor=#ffffff  width=\"58\" height=\"250\" name=\"quickMenu\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	strTemp += "			</object>";
	strTemp += "		</td>";
	strTemp += "	</tr>";
	strTemp += "</table>";
	strTemp += "</div>";

	document.write(strTemp);
}