var states = ['mout', 'mover', 'mdown'],

MENU_ITEMS0 = [
	[wrap_root('Home'), 'index.htm', {'sw' : 96},
		['&nbsp;<img src="house.png" height=16 width=16 align="absmiddle">&nbsp; Home Page', 'index.htm'],
		['&nbsp;<img src="note_edit.png" height=16 width=16 align="absmiddle">&nbsp; Feedback','feedback.php']
	],
	[wrap_root('Average Size'), 'results.htm', {'sw' : 120},
		['&nbsp;<img src="ruleri.gif" height=16 width=16 align="absmiddle">&nbsp; Size Results', 'results.htm'],
		['&nbsp;<img src="chart_bar.png" height=16 width=16 align="absmiddle">&nbsp; Analysis', 'stats.htm'],
		['&nbsp;<img src="triangle.gif" height=16 width=16 align="absmiddle">&nbsp; Measure Yourself', 'measure.htm'],
		['&nbsp;<img src="comp.gif" height=16 width=16 align="absmiddle">&nbsp; Compare Yourself', 'sizer.php']
	],
	[wrap_root('Average Info'), 'size.htm', {'sw' : 120},
		['&nbsp;<img src="penis.gif" height=16 width=16 align="absmiddle">&nbsp; Does Size Matter?', 'size.htm'],
		['&nbsp;<img src="mag.gif" height=16 width=16 align="absmiddle">&nbsp; Making it Bigger', 'bigger.htm'],
		['&nbsp;<img src="condom.gif" height=16 width=16 align="absmiddle">&nbsp; Condoms', 'condom.htm'],
		['&nbsp;<img src="weights.gif" height=16 width=16 align="absmiddle">&nbsp; Penis Exercises', 'pv_exc.htm'],
		['&nbsp;<img src="info.png" height=16 width=16 align="absmiddle">&nbsp; Hints for Owners', 'hints.htm']
	],
	[wrap_root('Avearge Fun'), 'weird.htm', {'sw' : 96},
		['&nbsp;<img src="nobba.gif" height=16 width=16 align="absmiddle">&nbsp; Photocopy Willie', 'silly.htm'],
		['&nbsp;<img src="dice.gif" height=16 width=16 align="absmiddle">&nbsp; Sex Games', 'strip.htm'],
		['&nbsp;<img src="chem.gif" height=16 width=16 align="absmiddle">&nbsp; Experiments', 'science.htm'],
		[wrap_par('Weird Stuff', 1), 'weird.htm', {'bw' : 100, 'bl' : 90, 'sb' : 'Weird Stuff'},
            ['&nbsp; Penis Plugs', 'plugger.htm']

	    ]	
	],
	[wrap_root('Average Supplies'), 'joy.htm', {'sw' : 120},
		['&nbsp;<img src="basket.png" height=16 width=16 align="absmiddle">&nbsp; We Recommend', 'joy.htm']
	],
	[wrap_root('Comments'), 'feedback.php', {'sw' : 120},
		['&nbsp;<img src="note_edit.png" height=16 width=16 align="absmiddle">&nbsp; Feedback','feedback.php'],
		['&nbsp;<img src="chat.gif" height=16 width=16 align="absmiddle">&nbsp; Forum','/willtalk/notice.php']
	]

];

function wrap_par (text,pos, icon) {
	var res=[];
	for (var i=0; i<3; i++)
		res[i]=['<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=100% class="minner">&nbsp;', icon == null ? '' : ('<img height="16" width="15" src="' + (icon ? ''+icon : 'menu_files/pixel') + '.gif" align="absmiddle">'), ' ', text, '</td>', pos?['<td nowrap>&nbsp;<img src="', i, 'rarrow.gif" width=12 height=12 align="absmiddle">&nbsp;</td>'].join(''):'', '</tr></table>'].join('');
	return res;
}

function wrap_root (text) {
	var res = []; 
	for (var i=0; i<3; i++)
		res[i] = ['&nbsp;', text, '&nbsp;<img src="', i, 'darrow.gif" width="12" height="12" align="absmiddle">&nbsp;'].join('');
	return res;
}