
// ---------------------------- In-Line Code Begins Here ---------------------------- //

var imgs = new Array();
var level = new Array();
var pushed = new Array();
var button = new Array();
	button[0] = 'index';
	button[1] = 'suites';
	button[2] = 'events';
	button[3] = 'exper';
	button[4] = 'about';
	button[5] = 'query';	// special case: needs ".shtml"
var updelay = 100;
var downdelay = 10;
var i,j;

document.write('<DIV ID="Menu" ALIGN="center">');
if (document.images) {
	for (i=0; i<button.length; i++) {
		imgs[button[i]] = new Array();
		for (j=0; j<5; j++) {
			imgs[button[i]][j] = new Image(120,40);	// preload buttons
			imgs[button[i]][j].src = "images/nav/" + button[i] + "/" + j + ".gif";
		}
		level[button[i]] = 0;
		if (module!=button[i]) {	// generate button HTML for rollover effects
			document.write('<A HREF="' + button[i] + '.');
			if (button[i]=='query') document.write('s');	// for ".shtml" files
			document.write('html" onMouseover="b_dn(' + i + ');" onMouseout="b_up('
			+ i + 		');"><IMG SRC="images/nav/' + button[i]
			+ '/0.gif" WIDTH="120" HEIGHT="40" BORDER="0" VSPACE="3" ALT="" NAME="'
			+ button[i] + '"></A><BR>');
		} else document.write('<IMG SRC="images/nav/' + button[i]
			+ '/4.gif" WIDTH="120" HEIGHT="40" BORDER="0" VSPACE="3" ALT="" NAME="'
			+ button[i] + '"><BR>');
}	}

document.write('<DIV ID="copyright">&copy; 1994&ndash;2012<BR>Dayman Productions<BR><IMG SRC="images/xdot.gif" WIDTH=1 HEIGHT=3 BORDER=0 ALT=""><BR>All Rights Reserved</DIV></DIV>');

// ---------------------------- Button Functions Begin Here ---------------------------- //

function b_dn(bnum) {
	if (document.images) {
		pushed[button[bnum]] = 1;
		buttondown(button[bnum]);
}	}

function b_up(bnum) {
	if (document.images) {
		pushed[button[bnum]] = 0;
		buttonup(button[bnum]);
}	}

function buttondown(bname) {
	if (pushed[bname] && (level[bname] < 3)) {
		document.images[bname].src = imgs[bname][++level[bname]].src;
		setTimeout("buttondown('" + bname + "')",downdelay);
}	}

function buttonup(bname) {
	if ((!pushed[bname]) && (level[bname] > 0)) {
		document.images[bname].src = imgs[bname][--level[bname]].src;
		setTimeout("buttonup('" + bname + "')",updelay);
}	}


