
function WriteTopMenu(menuID, subID)
{
	var param = "?pageNum=" + menuID;
	if(subID != "0") param += "&subNum=" + subID;	
		
	document.write('<OBJECT codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="730" height="59" VIEWASTEXT>');
	document.write('<PARAM NAME="Movie" VALUE="/flash/main_menu.swf' + param + '">');	
	document.write('<PARAM NAME="quality" VALUE="high">');
	document.write('<PARAM NAME="bgcolor" VALUE="#FFFFFF">');
	document.write('<PARAM NAME="WMode" VALUE="Transparent">');
	document.write('<embed src="/flash/main_menu.swf' + param + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="730" height="59" wmode="transparent"></embed>');	
	document.write('</OBJECT>');
}

function WriteLeftMenu(mainID, subID)
{
	var menuID = mainID + "_" + subID;	
	
	document.write('<OBJECT codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="450" width="150" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" VIEWASTEXT>');
	document.write('<PARAM NAME="Movie" VALUE="/flash/side_menu' + menuID + '.swf">');
	document.write('<PARAM NAME="quality" VALUE="high">');
	document.write('<PARAM NAME="bgcolor" VALUE="#FFFFFF">');
	document.write('<PARAM NAME="WMode" VALUE="Transparent">');	
	document.write('<embed src="/flash/side_menu' + menuID + '.swf" width="150" height="450" wmode="transparent" quality="high" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
	document.write('</OBJECT>');
}
