﻿var baseUrl = "/";

var  menuArr;
var  titles;

// Initialize with number of menus, and max number of items in a menu

Initialize(7,4);

//For each menu, set a title and number of items

titles[0][0] = "Home"; 
titles[0][1] = 0;

titles[1][0] = "About Us";
titles[1][1] = 4;

titles[2][0] = "Trials & Research";
titles[2][1] = 2;

titles[3][0] = "News & Publications";
titles[3][1] = 4;

titles[4][0] = "Links";
titles[4][1] = 0;

titles[5][0] = "Members";
titles[5][1] = 2;

menuArr[1][0][0]="&nbsp;&nbsp;&nbsp;Mission and Aims";//caption
menuArr[1][0][1]="window.location=\\\'" + baseUrl + "content.aspx?page=mission\\\';";//action
menuArr[1][0][2]="Mission and Aims";//status bar

menuArr[1][1][0]="&nbsp;&nbsp;&nbsp;Organisational Chart";
menuArr[1][1][1]="window.location=\\\'" + baseUrl + "content.aspx?page=orgchart\\\';"
menuArr[1][1][2]="Organisational Chart";

menuArr[1][2][0]="&nbsp;&nbsp;&nbsp;Committees";
menuArr[1][2][1]="window.location=\\\'" + baseUrl + "content.aspx?page=committees\\\';";
menuArr[1][2][2]="Committees";

menuArr[1][3][0]="&nbsp;&nbsp;&nbsp;Contact Us";
menuArr[1][3][1]="window.location=\\\'" + baseUrl + "content.aspx?page=contact\\\';";
menuArr[1][3][2]="Contact Us";

menuArr[2][0][0]="&nbsp;&nbsp;&nbsp;Current Trials";
menuArr[2][0][1]="window.location=\\\'" + baseUrl + "content.aspx?page=currenttrials\\\';";
menuArr[2][0][2]="Current Trials";

menuArr[2][1][0]="&nbsp;&nbsp;&nbsp;Trials Under Development";
menuArr[2][1][1]="window.location=\\\'" + baseUrl + "content.aspx?page=futuretrials\\\';"
menuArr[2][1][2]="Trials Under Development";

menuArr[3][0][0]="&nbsp;&nbsp;&nbsp;Recent News";
menuArr[3][0][1]="window.location=\\\'" + baseUrl + "news.aspx\\\';";
menuArr[3][0][2]="Recent News";

menuArr[3][1][0]="&nbsp;&nbsp;&nbsp;Newsletters";
menuArr[3][1][1]="window.location=\\\'" + baseUrl + "content.aspx?page=newsletters\\\';"
menuArr[3][1][2]="Newsletters";

menuArr[3][2][0]="&nbsp;&nbsp;&nbsp;Publications";
menuArr[3][2][1]="window.location=\\\'" + baseUrl + "content.aspx?page=publications\\\';"
menuArr[3][2][2]="Publications";

menuArr[3][3][0]="&nbsp;&nbsp;&nbsp;Photos";
menuArr[3][3][1]="window.location=\\\'" + baseUrl + "gallerieslist.aspx\\\';"
menuArr[3][3][2]="Photos";

menuArr[5][0][0]="&nbsp;&nbsp;&nbsp;Update Profile";
menuArr[5][0][1]="window.location=\\\'" + baseUrl + "member/updateprofile.aspx\\\';";
menuArr[5][0][2]="Update Profile";

menuArr[5][1][0]="&nbsp;&nbsp;&nbsp;Change Password";
menuArr[5][1][1]="window.location=\\\'" + baseUrl + "member/changepassword.aspx\\\';";
menuArr[5][1][2]="Change Password";

for(c=0; c <= 5; c++)
{
   i = c;
   
   //CreatePopUpMenu(cellid,x,y,width,height,hbgColor,dbgColor,barColor,htColor,dtColor,font,items,align,border,padding,sepImage)
   
   if (sniffIE())
   {			
	  CreatePopUpMenu(i,0,0,200,16,'#7696CE','#7696CE','#FFFFFF','#B5C6E4','#FFFFFF', "line-height:16px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold;",titles[i][1],'left',0,5,null);
   }
   else
   {
	  CreatePopUpMenu(i,0,0,200,12,'#7696CE','#7696CE','#FFFFFF','#B5C6E4','#FFFFFF', "line-height:12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold;",titles[i][1],'left',0,7,null);
   }
}