var hBar = new ItemStyle(40, 23, '', 0, 0, '', '#004070', 'mainText', 'itemHover', '', '', null, null, 'hand', 'hand');
var hBarNH = new ItemStyle(40, 23, '', 0, 0, '', '#004070', 'mainText', 'itemHover', '', '', null, null, 'default', 'default');
var dBlue = new ItemStyle(22, 0, '&gt;', -20, 3, '#3A6EA5', '#004070', 'itemText', 'itemHover', 'itemBorder', 'itemBorder', 87, null, 'hand', 'hand');
var dBlueNH = new ItemStyle(22, 0, '&gt;', -20, 3, '#3A6EA5', '#004070', 'itemText', 'itemHover', 'itemBorder', 'itemBorder', 87, null, 'default', 'default');
var dSubBlue = new ItemStyle(22, 0, '&gt;', -5, 3, '#5A8DC5', '#004070', 'itemText', 'itemHover', 'itemBorder', 'itemBorder', 97, null, 'hand', 'hand');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{
startMenu('root', false, 2, 55, 17, hBar, 'topFr');
addItem('&nbsp; Site News', 'mSite', 'sm:', '', 68)
	.onclick='botFr.location.href="/home.htm"';
addItem('&nbsp; Scatterthoughts', 'mThoughts', 'sm:', '', 100)
	.onclick='botFr.location.href="/scatterthoughts.htm"';
addItem('&nbsp; Photo Galleries', 'mPhotos', 'sm:', '', 98)
	.onclick='botFr.location.href="/galleries/2004/200409.htm"';
addItem('&nbsp; My Stuff', 'mStuff', 'sm:', hBarNH, 54);
addItem('&nbsp; Ins & Outs', 'mLinks', 'sm:', hBarNH, 70);
addItem('&nbsp; Weather', '/weather.htm', 'botFr', '', 58);

startMenu('mSite', true, 3, 'botFr.page.scrollY()', 88, dBlue, 'botFr');
addItem('About', 'mRuss', 'sm:')
	.onclick='botFr.location.href="/about_russ.htm"';
addItem('Site Map', '/site_map.htm', 'botFr');
addItem('Site Updates', '/site_updates.htm', 'botFr');

	startMenu('mRuss', true, 76, 'botFr.page.scrollY()+5', 101, dSubBlue, 'botFr');
	addItem('Scatterthought', '/about_scatterthought.htm', 'botFr');
	addItem('Russ Wong', '/about_russ.htm', 'botFr');
	addItem('Russ\'s Resumé', 'Resume()', 'js:');

startMenu('mThoughts', true, 3, 'botFr.page.scrollY()', 78, dBlue, 'botFr');
addItem('September', '/the_archive/2005/09.htm', 'botFr');
addItem('August', '/the_archive/2005/08.htm', 'botFr');
addItem('July', '/the_archive/2005/07.htm', 'botFr');
addItem('May', '/the_archive/2005/05.htm', 'botFr');
addItem('The Archive', 'the_archive.htm', 'botFr');

startMenu('mPhotos', true, 3, 'botFr.page.scrollY()', 115, dBlue, 'botFr');
addItem('2004 Galleries', 'mP2004', 'sm:', dBlueNH);
addItem('2003 Galleries', 'mP2003', 'sm:', dBlueNH);
addItem('2002 Galleries', 'mP2002', 'sm:', dBlueNH);
addItem('December 2001', '/galleries/2002/200112.htm', 'botFr');

	startMenu('mP2004', true, 104, 'botFr.page.scrollY()+5', 75, dSubBlue, 'botFr');
//	addItem('December', '/galleries/2004/200412.htm', 'botFr');
//	addItem('November', '/galleries/2004/200410.htm', 'botFr');
//	addItem('October', '/galleries/2004/200410.htm', 'botFr');
	addItem('September', '/galleries/2004/200409.htm', 'botFr');
	addItem('August', '/galleries/2004/200408.htm', 'botFr');
	addItem('July', '/galleries/2004/200407.htm', 'botFr');
	addItem('June', '/galleries/2004/200406.htm', 'botFr');
	addItem('May', '/galleries/2004/200405.htm', 'botFr');
	addItem('Apr #1', '/galleries/2004/200404_1.htm', 'botFr');
	addItem('Apr #2', '/galleries/2004/200404_2.htm', 'botFr');
	addItem('Apr #3', '/galleries/2004/200404_3.htm', 'botFr');
	addItem('Jan-Mar', '/galleries/2004/20040103.htm', 'botFr');

	startMenu('mP2003', true, 104, 'botFr.page.scrollY()+5', 75, dSubBlue, 'botFr');
	addItem('December', '/galleries/2003/200312.htm', 'botFr');
	addItem('Oct-Nov', '/galleries/2003/20031011.htm', 'botFr');
	addItem('September', '/galleries/2003/200309.htm', 'botFr');
	addItem('August II', '/galleries/2003/2003085.htm', 'botFr');
	addItem('August', '/galleries/2003/200308.htm', 'botFr');
	addItem('July', '/galleries/2003/200307.htm', 'botFr');
	addItem('June', '/galleries/2003/200306.htm', 'botFr');
	addItem('Apr-May', '/galleries/2003/20030405.htm', 'botFr');
	addItem('Jan-Feb', '/galleries/2003/20030102.htm', 'botFr');

	startMenu('mP2002', true, 104, 'botFr.page.scrollY()+26', 64, dSubBlue, 'botFr');
	addItem('Sept-Dec', '/galleries/2002/20020912.htm', 'botFr');
	addItem('August', '/galleries/2002/200208.htm', 'botFr');
	addItem('July', '/galleries/2002/200207.htm', 'botFr');
	addItem('June', '/galleries/2002/200206.htm', 'botFr');
	addItem('May', '/galleries/2002/200205.htm', 'botFr');
	addItem('April', '/galleries/2002/200204.htm', 'botFr');

startMenu('mStuff', true, 3, 'botFr.page.scrollY()', 124, dBlue, 'botFr');
addItem('My Cars', 'mAutos', 'sm:')
	.onclick='botFr.location.href="/links/autos.htm"';
addItem('Digital Cameras', 'mCameras', 'sm:')
	.onclick='botFr.location.href="/links/cameras.htm"';
addItem('PocketPCs', 'mPocketPC', 'sm:')
	.onclick='botFr.location.href="/links/pocketpc.htm"';
addItem('Writings', 'mWritings', 'sm:')
	.onclick='botFr.location.href="/links/writings.htm"';

	startMenu('mAutos', true, 113, 'botFr.page.scrollY()+5', 131, dSubBlue, 'botFr');
	addItem('2003 Mazda Protegé5', '/links/autos.htm#Protege5', 'botFr');
	addItem('1991 Honda Civic CX', '/links/autos.htm#Civic', 'botFr');

	startMenu('mCameras', true, 113, 'botFr.page.scrollY()+26', 141, dSubBlue, 'botFr');
	addItem('Olympus Links', '/links/cameras.htm#Olympus', 'botFr');
	addItem('Canon Links', '/links/cameras.htm#Canon', 'botFr');
	addItem('News & Reviews', '/links/cameras.htm#Sites', 'botFr');
	addItem('Guides & Tips', '/links/cameras.htm#Guides_Tips', 'botFr');
	addItem('Photo Sharing', '/links/cameras.htm#Photo_Sharing', 'botFr');
	addItem('Software & Accessories', '/links/cameras.htm#Software_Accessories', 'botFr');

	startMenu('mPocketPC', true, 113, 'botFr.page.scrollY()+47', 106, dSubBlue, 'botFr');
	addItem('Dell Axim Links', '/links/pocketpc.htm#Dell', 'botFr');
	addItem('Reviews & News', '/links/pocketpc.htm#Sites', 'botFr');
	addItem('Software', '/links/pocketpc.htm#Software', 'botFr');

	startMenu('mWritings', true, 113, 'botFr.page.scrollY()+68', 124, dSubBlue, 'botFr');
	addItem('Technology', '/links/writings.htm#Technology', 'botFr');
	addItem('Social Commentary', '/links/writings.htm#Social', 'botFr');
	addItem('Rhetoric & Literature', '/links/writings.htm#Rhetoric_Literature', 'botFr');
	addItem('Philosophy', '/links/writings.htm#Philosophy', 'botFr');
	addItem('Poetry', '/links/writings.htm#Poetry', 'botFr');

startMenu('mLinks', true, 3, 'botFr.page.scrollY()', 131, dBlue, 'botFr');
addItem('Inside Links', 'mInside', 'sm:')
	.onclick='botFr.location.href="/links/inside.htm"';
addItem('Outside Links', 'mOutside', 'sm:')
	.onclick='botFr.location.href="/links/outside.htm"';
addItem('Project Web sites', 'mSites', 'sm:')
	.onclick='botFr.location.href="/links/sites.htm"';
addItem('Places I\'ve Been', '/links/travel.htm', 'botFr');
addItem('Warriors Band', '/links/WB.htm', 'botFr');

	startMenu('mInside', true, 120, 'botFr.page.scrollY()+5', 93, dSubBlue, 'botFr');
	addItem('Online Friends', '/links/inside.htm#Friends', 'botFr');
	addItem('Not-for-profits', '/links/inside.htm#Not-for-profit', 'botFr');
	addItem('My Bands', '/links/inside.htm#Bands', 'botFr');
	addItem('Memorials', '/links/inside.htm#Memorials', 'botFr');

	startMenu('mOutside', true, 120, 'botFr.page.scrollY()+26', 131, dSubBlue, 'botFr');
	addItem('Irrelevant Sites', '/links/outside.htm#Irrelevant', 'botFr');
	addItem('Personality Indicators', '/links/outside.htm#Personality', 'botFr');
	addItem('Web Development', '/links/outside.htm#Web', 'botFr');
	addItem('Fonts for the Web', '/links/outside.htm#Fonts', 'botFr');

	startMenu('mSites', true, 120, 'botFr.page.scrollY()+47', 119, dSubBlue, 'botFr');
	addItem('Hypertext Argument', 'window.open("/writings/hypertext_argument")', 'js:');
	addItem('Opt-312', 'window.open("/writings/opt312")', 'js:');
}

function Resume() {
window.open('/resume/index.html','windowResume','top=80,left=60,width=730,height=580'); }

pMenu.onmouseover = function(mN, iN) { with (this)
{
if (mN == 'root')
{
if (iN == 1) status = 'All you need to know about Russ and this site';
if (iN == 2) status = 'Random thoughts that cross my mind';
if (iN == 3) status = 'Russ\'s Photo Galleries';
if (iN == 4) status = 'Russ\'s Stuff (probably the most useful section of this site)';
if (iN == 5) status = '/links to inside information and the outside world';
if (iN == 6) status = 'Six different kinds of weather';
}}}

pMenu.onmouseout = function() { status = '' }

if (!isOp && navigator.userAgent.indexOf('rv:0.')==-1)
{
pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -10)');
}

function menuAnim(menuObj, menuName, dir)
{
var mD = menuObj.menu[menuName][0];
if (!mD.timer) mD.timer = 0;
if (!mD.counter) mD.counter = 0;
with (mD)
{
clearTimeout(timer);
if (!lyr || !lyr.ref) return;
if (dir>0) lyr.vis('visible');
lyr.sty.zIndex = 1001 + dir;
lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
if ((isDOM&&!isIE) && (counter>=100)) lyr.sty.clip='';
counter += dir;
if (counter>100) counter = 100;
else if (counter<0) { counter = 0; lyr.vis('hidden') }
else timer = setTimeout(menuObj.myName+'.'+(dir>0?'show':'hide')+'Menu("'+menuName+'")', 40);
}}

function menuFilterShow(menuObj, menuName, filterName)
{
var mD = menuObj.menu[menuName][0];
with (mD.lyr)
{
sty.filter = filterName;
var f = ref.filters;
if (f&&f.length&&f[0]) f[0].Apply();
vis('visible');
if (f&&f.length&&f[0]) f[0].Play();
}}