// 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='menu.js';
ns4Script='menuNS4.js';
mImgDir="./images/ahm2008/";
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:85,
pMainUrl: '',
pahmUrl:'./about/index.html',
pMainImgTxt: 'About'
},
[
{pUrl:'./about/index.html',pTxt:'History'},

{pUrl:'./about/pc.html',pTxt:'Programme Committee'},

{pUrl:'./about/sponsorship_opportunities.html',pTxt:'Sponsorship Opportunities'},
{pUrl:'./about/sponsors.html',pTxt:'Funding & Sponsorship'},
{pUrl:'./about/contact.html',pTxt:'Contact Information'}
]
);
addMenu(
{
pId:'registration',
pMainImgW:120,
pMainUrl: '',
pahmUrl:'./registration/index.html',
pMainImgTxt: 'Registration'
},
[
 
{pUrl:'./registration/index.html',pTxt:'Registration'},

{pUrl:'./registration/travel.html',pTxt:'Travel'},

{pUrl:'http://www.edinburgh.org/',pTxt:'About Edinburgh'}


]
);
addMenu(
{
pId:'conference',
pMainImgW:120,
pMainUrl: '',
pahmUrl:'./conference/index.html',
pMainImgTxt: 'Conference'
},
[
{pUrl:'./conference/index.html',pTxt:'Overview'},
{pUrl:'./conference/dates.html',pTxt:'Important Dates'},
{pUrl:'./conference/venue.html',pTxt:'Venue'},
{pUrl:'./conference/accommodation.html',pTxt:'Accommodation'},
{pUrl:'./conference/wireless.html',pTxt:'Wireless Network'},
{pUrl:'./conference/promomaterial.html',pTxt:'Promotional Material'}

]
);
addMenu(
{
pId:'programme',
pMainImgW:110,
pMainUrl: '',
pahmUrl:'./programme/index.html',
pMainImgTxt: 'Technical Program'
},
[{pUrl:'./programme/index.html',pTxt:'Full Programme'},{pUrl:'./programme/demonstrations.html',pTxt:'Demonstrations'},
 {pUrl:'./programme/call.html',pTxt:'Call for Papers AHM2008'},
 {pUrl:'./programme/submission_guidelines.html',pTxt:'Submission Guidelines'},
 {pUrl:'./programme/speakers.html',pTxt:'Plenary Speakers'},
 {pUrl:'./programme/workshops.html',pTxt:'Workshops'},
 {pUrl:'./programme/bofs.html',pTxt:'BoFs'},
 {pUrl:'./programme/posters.html',pTxt:'Posters'},
{pUrl:'./programme/proceedings.html',pTxt:'Proceedings'}
 

]
);
addMenu(
{
pId:'exhibits',
pMainImgW:90,
pMainUrl: '',
pahmUrl:'./exhibits/index.html',
pMainImgTxt: 'Exhibits'
},
[
{pUrl:'./exhibits/index.html',pTxt:'Exhibitors'},
{pUrl:'./exhibits/demonstrations.html',pTxt:'Demonstrations'}

]
);
addMenu(
{
pId:'news',
pMainImgW:146,
pMainUrl: '',
pahmUrl:'./news/index.html',
pMainImgTxt: 'News &amp; Press'
},
[
{pUrl:'./news/index.html',pTxt:'AHM News &amp; Announcements'},
{pUrl:'./news/rss.html',pTxt:'RSS Feeds'}

]
);
addMenu(
{
pId:'archive',
pMainImgW:90,
pMainUrl: '',
pahmUrl:'./archive/index.html',
pMainImgTxt: 'Archive'
},
[
{pUrl:'/2007/',pTxt:'AHM 2007 Website'},
{pUrl:'/2006/',pTxt:'AHM 2006 Website'},
{pUrl:'/2005/',pTxt:'AHM 2005 Website'},
{pUrl:'/2004/',pTxt:'AHM 2004 Website'},
{pUrl:'http://www.nesc.ac.uk/events/ahm2003/presentations/',pTxt:'AHM 2003 Website'},
{pUrl:'/2002/',pTxt:'AHM 2002 Website'},
{pUrl:'./programme/proceedings.html',pTxt:'AHM 2008 Proceedings'},
{pUrl:'/2007/proceedings/',pTxt:'AHM 2007 Proceedings'},
{pUrl:'/2006/proceedings/',pTxt:'AHM 2006 Proceedings'},
{pUrl:'/2005/proceedings/',pTxt:'AHM 2005 Proceedings'},
{pUrl:'/2004/proceedings/',pTxt:'AHM 2004 Proceedings'},
{pUrl:'http://www.nesc.ac.uk/events/ahm2003/AHMCD/',pTxt:'AHM 2003 Proceedings'},
{pUrl:'/2002/proceedings/Conference-Digest-AHC-2002.pdf',pTxt:'AHM 2002 Proceedings'}
]
);
// Write Browser Functions
document.write("<script language='JavaScript1.2' src='"+(NS4?ns4Script:defaultScript)+"' type='text/javascript'></script>");
OPR6=OPR&&document.body.offsetWidth?1:0

