Cat=0;
Sounds=new Array();
Menu=new Array();
Num=0;
Games=0;
theDate="";
Total=0;
New=0;

GameShow=-1;

gamerows=0;
gamedisp=0;


function ZS_Menu() {
	if (arguments[0]=="GAME") {
		Menu[Games]=new Array(arguments.length);
		for (i=0; i<4; i++) { Menu[Games][i]=arguments[i]; }
		Games++;
	} else if (arguments[0]=="UPDATED") {
		theDate=arguments[1];
		document.write('<center><font color="#FFFF00" face="Franklin Gothic Book, Lucida Sans, Arial"><b>*</b>&nbsp;&nbsp;Updated '+theDate+'&nbsp;&nbsp;<b>*</b></font></center>');
	} else if (arguments[0]=="SOUNDS") {
		Total=arguments[1];
		New=arguments[2];
		document.write('<center><font color="#FFFF00" face="Franklin Gothic Book, Lucida Sans, Arial">Total Sounds: '+Total+' ('+New+' new)</font></center>');
	} else if (arguments[0]=="BR") { document.write('<br>'); }
	else if (arguments[0]=="LINE") { document.write('<hr width=400>'); }
	else if (arguments[0]=="GAMELINKS") {
		gamerows=Math.ceil(Games/2);
		document.write('<table width="95%" align="center" border=0 cellpadding=0 cellspacing=0><tr><td align="left"><font size="+1">Select a game:</font><p><table width="100%" align="center" border=3 cellpadding=0 cellspacing=0><tr><td><table width="100%" align="center" border=0 cellpadding=2 cellspacing=3>');
		for (ii=0; ii<gamerows; ii++) {
			for (iii=0; iii<2; iii++) {
				gamedisp=ii+(iii*gamerows);
				if (iii==0) { document.write('<tr>'); }
				document.write('<td width="50%" background="Gradient.png" bgcolor="#5F5F5F" align="');
				if (iii==0) { document.write('left">&nbsp;') }
				else { document.write('right">') }
				if (gamedisp<Games) {
					document.write('<font size="+1">');
					if (Menu[gamedisp][3]==1) { document.write('<font color="#FF0000"><b>*</b></font>'); }
					document.write('<a href="'+Menu[gamedisp][2]+'/index.html" target="SoundFrame"><font color="'+LinkLink+'">'+Menu[gamedisp][1]+'</font></a>');
					if (Menu[gamedisp][3]==1) { document.write('<font color="#FF0000"><b>*</b></font>'); }
					document.write('</font>');
				}
				if (iii==1) { document.write('&nbsp;</td></tr>'); }
				else { document.write('</td>'); }
			}
		}
		document.write('</table></td></tr></table><p align="center"><font face="Franklin Gothic Demi, Lucida Sans, Arial"><font color="#FFFF00">Note:</font>&nbsp;&nbsp;This site NOT spoiler-free!</font></td></tr></table>');
	}
}