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

MENU_ITEMS0 = [
	[wrap_root('Literature Auctions'), 'catalogue.php?auctionnum=308', {'sb' : 'PhilatelyBooks Auction','sw' : 135},
		[wrap_par('Current Auction'), 'catalogue.php?auctionnum=308'],
		[wrap_par('Buyers Terms of Sale'), 'terms.php'],
		[wrap_par('Symbols & Gradings'), 'symbols.php'],
	],
	[wrap_root(' Online Bidding Tools '), 'catalogue.php?auctionnum=308', {'sw' : 170, 'sb' : 'PhilatelyBooks Auction', 'bw' : 190},
		[wrap_par('Current Auction Listings', 1), 'catalogue.php?auctionnum=308', null,
				['&nbsp;List by Lot', 'catbylot.php?auctionnum=308'],
				['&nbsp;List by Country', 'catbycountry.php?auctionnum=308'],
				['&nbsp;List by Theme', 'catbytheme.php?auctionnum=308'],
		],
		[wrap_par('Register'), 'register.php'],
		[wrap_par('Login'), 'login.php'],
		[wrap_par('Lost Password'), 'forgotten.php'],
		[wrap_par('My Details'), 'login.php'],
		[wrap_par('Change Contact Details'), 'edit_details.php'],
		[wrap_par('My Bidsheet'), 'bidsheet.php'],
		[wrap_par('My Watch This Lists'), 'mylists.php'],
		[wrap_par('My Auction Results'), 'results.php'],
	
	],
	[wrap_root('Direct Sales'),'http://www.philatelybooks.com/', {'sw' : 110, 'sb' : 'PhilatelyBooks Auction', 'bw' : 180},
		[wrap_par('View Books by Country'), 'http://www.philatelybooks.com/cat_area.php'],
		[wrap_par('View Books by Theme'), 'http://www.philatelybooks.com/cat_theme.php'],
	],
	[wrap_root('prestigephilately.com'), 'http://www.prestigephilately.com', {'sw' : 150, 'sb' : 'Prestige Philately', 'bw' : 180},
		[wrap_par('Current Auction'), 'http://www.prestigephilately.com/catalogue.php?auctionnum=168'],
		[wrap_par('Previous Auctions'), 'http://www.prestigephilately.com/generala.php'],
	],
	[wrap_root('Resources'), 'http://www.prestigephilately.com', {'sw' : 80, 'sb' : 'PhilatelyBooks Auction', 'bw' : 180},
		[wrap_par('www.prestigephilately.com'), 'http://www.prestigephilately.com'],
		[wrap_par('PhilaFinder'), 'search.php'],
		[wrap_par('Prestige Clock'), 'clock.php'],
		[wrap_par('Currency Converter'), 'currency.php'],
		[wrap_par('DayCheck'), 'calendar.php'],

	],
	['&nbsp;<img src="jscripts/menu_files/icons/email.gif" height=16 width=15 align="absmiddle">&nbsp;Feedback', 'customer_service.php', {'sw' : 80} 
	]
];

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 ? 'jscripts/menu_files/icons/'+icon : 'menu_files/pixel') + '.gif" align="absmiddle">'), ' ', text, '</td>', pos?['<td nowrap>&nbsp;<img src="jscripts/menu_files/icons/', 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="jscripts/menu_files/icons/', i, 'darrow.gif" width="12" height="12" align="absmiddle">&nbsp;'].join('');
	return res;
}

