//updated: December 6, 2008
//
// function call notes: TMainMenu(name,direction)
// ------------------------------------------------------------------------
// name: presently set to 'drop'
// direction: orientation of the main menu selections 'horizontal' across the page, 'vertical' vertically on the left side of the page, the popups behave normally in both cases
//
// function call notes: TPopMenu(label,icon,clickType,clickParam,status)
// ------------------------------------------------------------------------
// label: the name which appears on the nav bar button
// icon: this inserts an icon to the left of the label on the nav bar button, shifting the label to the right. "0" determines no icon, and the label is centred; '' offsets the label to the right as if an invisible icon exists.
// clickType: this defines the behaviour of the click on that menu selection, including target of the URL
//	"function": 
//	"f":
//	"address": the URL entered in the "clickParam" will be set to target="_blank" (new window)
//	"a": the URL entered in the "clickParam" will be set to target="_top"
//	"a_fr": the URL entered in the "clickParam" will be set to a frame target="mainFrame"
// clickParam: the destination URL
// status: what appears in the status bar of the browser (works on IE, but in FF, this must be enabled under "advanced javascript")
// 
var drop = new TMainMenu('drop','horizontal');

var dropHome = new TPopMenu('&nbsp;&nbsp;&nbsp;&nbsp;h&nbsp;o&nbsp;m&nbsp;e&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;','0','a','index.php?pg=h0','  home  ');

var dropAbout = new TPopMenu('&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;b&nbsp;o&nbsp;u&nbsp;t&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;E&nbsp;M&nbsp;M&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;N&nbsp;o&nbsp;v&nbsp;a&nbsp;&nbsp;S&nbsp;c&nbsp;o&nbsp;t&nbsp;i&nbsp;a&nbsp;&nbsp;&nbsp;','0','','','about Nova Scotia Chapter');
  	var dropAbout_about = new TPopMenu('a b o u t&nbsp;&nbsp;&nbsp;A E M M A&nbsp;&nbsp;&nbsp;N S','','a_fr','misc/about.htm',' about AEMMA NS');
  	var dropAbout_news = new TPopMenu('A E M M A&nbsp;&nbsp;&nbsp;N S&nbsp;&nbsp;i n&nbsp;&nbsp;&nbsp;t h e&nbsp;&nbsp;&nbsp;n e w s','','a_fr','misc/news.htm#news',' AEMMA NS in the news');
  	var dropAbout_guest = new TPopMenu('s i g n&nbsp;&nbsp;/&nbsp;&nbsp;v i e w&nbsp;&nbsp;&nbsp;t h e&nbsp;&nbsp;&nbsp;g u e s t b o o k','','a_fr','guestBook/gbns_body.htm',' sign/view the guestbook');
  	var dropAbout_roll = new TPopMenu('<b>r o l l&nbsp;&nbsp;&nbsp;o f&nbsp;&nbsp;&nbsp;a r m s</b>&nbsp;&nbsp;<img src="images/tinyShield.gif" style="vertical-align:middle" alt="" /><img src="images/tinyShield.gif" style="vertical-align:middle" alt="" /><img src="images/tinyShield.gif" style="vertical-align:middle" alt="" />...','','a_fr','http://www.aemma.org/arms/roll_startPage.htm',' selected: about AEMMA ==> roll of arms');

var dropTrain = new TPopMenu('&nbsp;&nbsp;t&nbsp;r&nbsp;a&nbsp;i&nbsp;n&nbsp;i&nbsp;n&nbsp;g&nbsp;&nbsp;','0','','',' selected: training');
  	var dropTrain_training = new TPopMenu('p h y s i c a l&nbsp;&nbsp;&nbsp;t r a i n i n g','','a_fr','misc/train.htm',' selected: training ==> physical training');
  	var dropTrain_schedule = new TPopMenu('s c h e d u l e&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp;l o c a t i o n','','a_fr','misc/train.htm#schedule',' selected: training ==> schedule &amp; location');
  	var dropTrain_fees = new TPopMenu('f e e s','','a_fr','misc/train.htm#fees',' selected: training ==> fees');
	var dropTrain_spacer = new TPopMenu('--------------------------------------','','a_fr','misc/train.htm','--------------------------------------');
  	var dropTrain_private = new TPopMenu('p r i v a t e&nbsp;&nbsp;&nbsp;l e s s o n s','','a_fr','misc/privateLessons.htm',' selected: training ==> private lessons');

var dropEvents = new TPopMenu('&nbsp;&nbsp;e&nbsp;v&nbsp;e&nbsp;n&nbsp;t&nbsp;s&nbsp;&nbsp;','0','a_fr','misc/events.htm','events');

var dropContact = new TPopMenu('&nbsp;&nbsp;c&nbsp;o&nbsp;n&nbsp;t&nbsp;a&nbsp;c&nbsp;t&nbsp;&nbsp;','0','a_fr','misc/contact.htm','contact');

var dropAEMMA = new TPopMenu('&nbsp;&nbsp;&nbsp;A&nbsp;E&nbsp;M&nbsp;M&nbsp;A&nbsp;&nbsp;T&nbsp;o&nbsp;r&nbsp;o&nbsp;n&nbsp;t&nbsp;o&nbsp;&nbsp;&nbsp;','0','address','http://www.aemma.org','AEMMA Toronto');


// ---Add Navigation Objects--------------------------------------------------------------------------------

// Navigation
drop.Add(dropHome);

drop.Add(dropAbout);
	dropAbout.Add(dropAbout_about);
	dropAbout.Add(dropAbout_news);
	dropAbout.Add(dropAbout_guest);
	dropAbout.Add(dropAbout_roll);

drop.Add(dropTrain);
	dropTrain.Add(dropTrain_training);
	dropTrain.Add(dropTrain_schedule);
	dropTrain.Add(dropTrain_fees);
	dropTrain.Add(dropTrain_spacer);
	dropTrain.Add(dropTrain_private);

drop.Add(dropEvents);

drop.Add(dropContact);

drop.Add(dropAEMMA);


