// Global Menu Vars
var menusExist;
mProps=[""];
// top-level array for each menu group
mCount=0;
aActiveItem=[""];
aActiveItem[0].on=0; // temp array for menu items
aActiveGroup=[""]; // temp array for menu group/containers (ie. "menu2")
aActiveGroupImg=[""];
mTimer=0;
mTimerS=0;
hideTimeout=400;
defaultScript='mFunctions.js';
ns4Script='mFunctionsNS4.js';
mImgDir="/images/nav/";
mTop=0;mLeft=0;
mWidth=186;
mMainImgH=25;
mBgColor="#4D4D4D";
mBgColorOver="#717171";
mFontColor="#9C9C9C";
mFontColorOver="#ffffff";
mFontColorOn="#42BBFF";
mHrColor="#797979";
//// Common functions
function addMenu(aGroupProps,aItemProps) {
	mCount++;
	mProps[mCount]=[];
	mProps[mCount][0]={}
	for (var k in aGroupProps) {
		eval("mProps[mCount][0]."+k+"=aGroupProps."+k);
	}
	for (var i=0;i<aItemProps.length;i++) {
		mProps[mCount][i+1]={};
		for (var j in aItemProps[i]) {
			eval("mProps[mCount][i+1]."+j+"=aItemProps[i]."+j);
		}
	}
}
function getMenuNum(mId){
	for(var i=1;i<=mCount;i++) {
		if(mId==mProps[i][0].pId)break;
	}
	return i;
}
function go(mNum,mItemNum) {
	var aItemProps=mProps[mNum][mItemNum],winProps="directories=1,location=1,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1";
	finishHide();
	if(aItemProps.pTarget=="newWin") {
		window.open(aItemProps.pUrl,"",winProps);
		return;
	} else if(aItemProps.pTarget=="pop") {
		window.open(aItemProps.pUrl,"",winProps);
		return;
	} else {
		document.location=mProps[mNum][0].pMainUrl+aItemProps.pUrl;
		return;
	}
}
// Menu Definitions
addMenu(
{
pId:'about',
pMainImgW:74,
pMainUrl: '/about/',
pMainImgTxt: 'About'
},
[
{pUrl:'history.php',pTxt:'History'},
{pUrl:'committees.php',pTxt:'SC06 Committees'},
{pUrl:'techpaper_committee.php',pTxt:'Technical Program Committees'},
{pUrl:'steering.php',pTxt:'Steering Committee'},
{pUrl:'advisory.php',pTxt:'Advisory Committee'},
{pUrl:'outreach.php',pTxt:'Minority Outreach'},
{pUrl:'volunteers.php',pTxt:'Student Volunteers'},
{pUrl:'sponsors.php',pTxt:'Conference Sponsors'},
//{pUrl:'acknowledgements.php',pTxt:'Acknowledgements'},
{pUrl:'contact.php',pTxt:'Contact Information'}
]
);
addMenu(
{
pId:'registration',
pMainImgW:111,
pMainUrl: '/registration/',
pMainImgTxt: 'Registration'
},
[
{pUrl:'/registration/attendee.php',pTxt:'Attendee Registration'},
{pUrl:'/registration/exhibitor_reg.php',pTxt:'Exhibitor Registration'},
{pUrl:'http://www.csm.ornl.gov/SC2006/SC06mediaReg.html',pTxt:'Media Registration'},
{pUrl:'/registration/scdesktop.php',pTxt:'SC Desktop Registration'}
]
);
addMenu(
{
pId:'conference',
pMainImgW:101,
pMainUrl: '/conference/',
pMainImgTxt: 'Conference'
},
[
{pUrl:'overview.php',pTxt:'Overview'},
{pUrl:'schedule.php',pTxt:'Schedule'},
{pUrl:'dates.php',pTxt:'Important Dates'},
{pUrl:'build_schedule.php',pTxt:'My Itinerary'},
{pUrl:'keynote_speaker.php',pTxt:'Keynote Speaker'},
{pUrl:'awards.php',pTxt:'Awards &amp Prizes'},
{pUrl:'gordon_bell_prize.php',pTxt:'Gordon Bell Prizes'},
{pUrl:'hpc_competitions.php',pTxt:'HPC Competitions'},
{pUrl:'hpc_education.php',pTxt:'HPC Education'},
{pUrl:'scglobal.php',pTxt:'SC Global / SC Desktop'},
{pUrl:'scinet.php',pTxt:'SCinet'},
{pUrl:'exotic_technologies.php',pTxt:'Exotic Technologies'}
]
);
addMenu(
{
pId:'techprogram',
pMainImgW:152,
pMainUrl: '/techprogram/',
pMainImgTxt: 'Technical Program'
},
[
{pUrl:'speakers.php',pTxt:'Invited Speakers'},
{pUrl:'tutorials.php',pTxt:'Tutorials'},
{pUrl:'papers.php',pTxt:'Technical Papers'},
{pUrl:'masterworks.php',pTxt:'Masterworks'},
{pUrl:'panels.php',pTxt:'Panels'},
{pUrl:'posters.php',pTxt:'Posters'},
{pUrl:'workshops.php',pTxt:'Workshops'},
{pUrl:'bofs.php',pTxt:'BOFs'},
{pUrl:'scatter_gather.php',pTxt:'Scatter/Gather'},
{pUrl:'gordonbell.php',pTxt:'Gordon Bell Prize'}
]
);
addMenu(
{
pId:'exhibits',
pMainImgW:77,
pMainUrl: '/exhibits/',
pMainImgTxt: 'Exhibits'
},
[
{pUrl:'industry.php',pTxt:'Industry Exhibits'},
{pUrl:'research.php',pTxt:'Research Exhibits'},
{pUrl:'scinet.php',pTxt:'SCinet'},
{pUrl:'exhibitor_forum.php',pTxt:'Exhibitor Forum'},
{pUrl:'facilities.php',pTxt:'Facilities &amp; Floorplan'},
{pUrl:'industry_info.php',pTxt:'Info for Industry Exhibitors'},
{pUrl:'research_info.php',pTxt:'Info for Research Exhibitors'}
]
);
addMenu(
{
pId:'news',
pMainImgW:112,
pMainUrl: '/news/',
pMainImgTxt: 'News &amp; Press'
},
[
{pUrl:'press_releases.php',pTxt:'Press Releases'},
{pUrl:'newsletters.php',pTxt:'Newsletters'},
{pUrl:'media.php',pTxt:'For Media Professionals'}
]
);
addMenu(
{
pId:'travel',
pMainImgW:74,
pMainUrl: '/travel/',
pMainImgTxt: 'Travel'
},
[
{pUrl:'hotels.php',pTxt:'Conference Hotels'},
{pUrl:'maps.php',pTxt:'Maps &amp; Directions'},
{pUrl:'about_tampa.php',pTxt:'About Tampa'}
]
);
// Write Browser Functions
document.write("<script language='JavaScript1.2' src='/js/"+(NS4?ns4Script:defaultScript)+"' type='text/javascript'></script>");
OPR6=OPR&&document.body.offsetWidth?1:0

