// {{{ domMenu_worship: data

domMenu_data.set('domMenu_worship', new Hash(
    1, new Hash(
        'contents', 'HOME',
        'contentsHover', 'HOME',
        'uri', applicationDir + 'Index.php',
        'target', '_top',
        'statusText', 'HOME',
		'selMenuItem', 'Home'
	),
	
    2, new Hash(
        'contents', 'ABOUT US',
        'contentsHover', 'ABOUT US',
        'statusText', 'ABOUT US',
		'selMenuItem', 'AboutUs',
        1, new Hash(
			'contents', 'our vision',
			'uri', applicationDir + 'Index.php?page=our_vision',
			'target', '_top',
			'statusText', 'our vision'
		),
		2, new Hash(
			'contents', 'meet our team',
			'uri', applicationDir + 'Index.php?page=meet_our_team',
			'target', '_top',
			'statusText', 'meet our team'
		),
		3, new Hash(
			'contents', 'contact us',
			'uri', applicationDir + 'Index.php?page=contact_us',
			'target', '_top',
			'statusText', 'contact us'
		)
	),
	
	3, new Hash(
        'contents', 'MINISTRIES',
        'contentsHover', 'MINISTRIES',
        'statusText', 'MINISTRIES',
		'selMenuItem', 'Ministries',
        1, new Hash(
            'contents', 'adult choir',
            'uri', applicationDir + 'Index.php?page=adult_choir',
            'target', '_top',
            'statusText', 'adult choir'
		),
		2, new Hash(
            'contents', 'adult orchestra',
			'uri', applicationDir + 'Index.php?page=instrumentals',
			'target', '_top',
			'statusText', 'adult orchestra'
		),
		3, new Hash(
            'contents', 'audio & lighting',
			'uri', applicationDir + 'Index.php?page=audio_lighting',
			'target', '_top',
			'statusText', 'audio & lighting'
		),
		4, new Hash(
            'contents', 'concerts',
			'uri', 'Index.php?page=concerts',
			'target', '_top',
			'statusText', 'house of praise concerts'
		),
		5, new Hash(
            'contents', 'elementary school choir',
			'uri', applicationDir + 'Index.php?page=elementary_school_choir',
			'target', '_top',
			'statusText', 'elementary school choir'
		),
		6, new Hash(
            'contents', 'hand bells',
			'uri', applicationDir + 'Index.php?page=hand_bells',
			'target', '_top',
			'statusText', 'hand bells'
		),
		7, new Hash(
            'contents', 'high school choir',
			'uri', applicationDir + 'Index.php?page=high_school_choir',
			'target', '_top',
			'statusText', 'high school choir'
		),
		8, new Hash(
            'contents', 'middle school choir',
			'uri', applicationDir + 'Index.php?page=middle_school_choir',
			'target', '_top',
			'statusText', 'middle school choir'
		),
		9, new Hash(
            'contents', 'praiseworthy class',
			'uri', applicationDir + 'Index.php?page=praiseworthy_class',
			'target', '_top',
			'statusText', 'praiseworthy class'
		),
		10, new Hash(
			'contents', 'the studio',
			'uri', applicationDir + 'the_studio/index.php',
			'target', '_blank',
			'statusText', 'the studio'
		),
		11, new Hash(
            'contents', 'vocal ensembles',
			'uri', applicationDir + 'Index.php?page=vocal',
			'target', '_top',
			'statusText', 'vocal ensembles'
        ),
		12, new Hash(
            'contents', 'youth orchestra',
			'uri', applicationDir + 'Index.php?page=youth_orchestra',
			'target', '_top',
			'statusText', 'youth orchestra'
        )
	),	
	
	4, new Hash(
        'contents', 'MEMBERS',
        'contentsHover', 'MEMBERS',
        'statusText', 'MEMBERS',
		'selMenuItem', 'MembersOnly',
        1, new Hash(
            'contents', 'noteworthy',
            'uri', applicationDir + 'Index.php?page=noteworthy',
            'target', '_top',
            'statusText', 'noteworthy'
		),
		2, new Hash(
            'contents', 'colonial mailing lists',
            'uri', 'http://list.colonial.org/mailman/listinfo',
            'target', '_blank',
            'statusText', 'list maintenance'
		),
		3, new Hash(
            'contents', 'rehearsal music',
            'statusText', 'rehearsal music',
			1, new Hash(
				'contents', 'adult',
				'uri', applicationDir + 'Index.php?page=rehearsal_music',
				'target', '_top',
				'statusText', 'Downloadable MP3s'
			),
			2, new Hash(
				'contents', 'youth',
				'uri', applicationDir + 'Index.php?page=rehearsal_music_youth',
				'target', '_top',
				'statusText', 'Downloadable MP3s'
			),
			3, new Hash(
				'contents', 'K-1 Choir',
				'uri', applicationDir + 'Index.php?page=rehearsal_music_k_1',
				'target', '_top',
				'statusText', 'Downloadable MP3s'
			),
			4, new Hash(
				'contents', '2-5 Choir',
				'uri', applicationDir + 'Index.php?page=rehearsal_music_2_5',
				'target', '_top',
				'statusText', 'Downloadable MP3s'
			)
		),
		4, new Hash(
            'contents', 'staff',
            'statusText', 'staff',
			1, new getAttendanceMaintenanceHash(),
			2, new Hash(
				'contents', 'calendars & registrations',
				'uri', 'https://my.serviceu.com/login.asp?&&bhcp=1',
				'target', '_blank',
				'statusText', 'EventU'
			),
			3, new Hash(
				'contents', 'mailing list maintenance',
				'uri', 'http://list.colonial.org/mailman/admin',
				'target', '_blank',
				'statusText', 'mailing list maintenance'
			),
			4, new getMP3MaintenanceHash(),
			5, new Hash(
				'contents', 'news & events Maint',
				'uri', applicationDir + 'Index.php?page=WorshipAdmin/NewsEventsAdmin',
				'target', '_top',
				'statusText', 'news & events Maint'
			),
			6, new getWebMaintenanceHash(),
			7, new Hash(
				'contents', 'user maintenance',
				'uri', applicationDir + 'Index.php?page=WebAdmin/Users',
				'target', '_top',
				'statusText', 'user maintenance'
			)	
        )
	),
	5, new Hash(
        'contents', 'RESOURCES',
        'contentsHover', 'RESOURCES',
        'statusText', 'RESOURCES',
		'selMenuItem', 'Resources',
        1, new Hash(
            'contents', 'colonial floor plan',
            'uri', applicationDir + 'pdfs/detailed_floor_plan.pdf',
            'target', '_blank',
            'statusText', 'PDF File'
		),
		2, new Hash(
            'contents', 'request prox card',
            'uri', applicationDir + 'https://public.serviceu.com/registration/default.asp?OrgID=1010&EventID=2912352&OccID=88626955',
            'target', '_blank',
            'statusText', 'request prox card'
		),
		3, new Hash(
            'contents', 'resource links',
            'uri', applicationDir + 'Index.php?page=resource_links',
            'target', '_top',
            'statusText', 'resource links'
		),
		4, new Hash(
            'contents', 'site index',
            'uri', applicationDir + 'Index.php?page=site_index',
            'target', '_top',
            'statusText', 'site index'
		)
	)
));

function getAttendanceMaintenanceHash(){
	if (choirWebAdmin){
		return new Hash(
            'contents', 'attendance maintenance',
            'statusText', 'attendance maintenance',
		    1, new Hash(
				'contents', 'Members',
				'uri', applicationDir + 'Index.php?page=AttendanceAdmin/Members',
				'target', '_top',
				'statusText', 'Members'
			),
			2, new Hash(
				'contents', 'Add Member',
				'uri', applicationDir + 'Index.php?page=AttendanceAdmin/MemberDetail',
				'target', '_top',
				'statusText', 'Add Member'
			),
			3, new Hash(
				'contents', 'Events',
				'uri', applicationDir + 'Index.php?page=AttendanceAdmin/Events',
				'target', '_top',
				'statusText', 'Events'
			),
			4, new Hash(
				'contents', 'Add Event',
				'uri', applicationDir + 'Index.php?page=AttendanceAdmin/EventDetail',
				'target', '_top',
				'statusText', 'Add Event'
			),
			5, new Hash(
				'contents', 'Reports',
				'uri', applicationDir + 'Index.php?page=AttendanceAdmin/EventDetail',
				'target', '_top',
				'statusText', 'Reports'
			),
			6, new Hash(
				'contents', 'Change Password',
				'uri', applicationDir + 'Index.php?page=AttendanceAdmin/Login&Action=ChangePassword',
				'target', '_top',
				'statusText', 'Change Password'
			)
		)
	}
	else{//normal menu item
 		return new Hash(
            'contents', 'attendance maintenance',
            'uri', applicationDir + 'Index.php?page=AttendanceAdmin/Members',
            'target', '_top',
            'statusText', 'attendance maintenance'
        )
	}
}

function getMP3MaintenanceHash(){
	if (mp3Admin){
		return new Hash(
            'contents', 'rehearsal music maint',
            'statusText', 'rehearsal music maint',
		    1, new Hash(
				'contents', 'Music',
				'uri', applicationDir + 'Index.php?page=MP3Admin/MP3',
				'target', '_top',
				'statusText', 'Music'
			),
			2, new Hash(
				'contents', 'Terms of Use',
				'uri', applicationDir + 'Index.php?page=MP3Admin/Footnote',
				'target', '_top',
				'statusText', 'Terms of Use'
			),
			3, new Hash(
				'contents', 'Change Password',
				'uri', applicationDir + 'Index.php?page=MP3Admin/Login&Action=ChangePassword',
				'target', '_top',
				'statusText', 'Change Password'
			)
		)
	}
	else{//normal menu item
		return new Hash(
            'contents', 'rehearsal music maint',
            'uri', applicationDir + 'Index.php?page=MP3Admin/MP3',
            'target', '_top',
            'statusText', 'rehearsal music maint'
        )
	}
}

function getWebMaintenanceHash(){	
	if (worshipAdmin){ //admin
		return new Hash(
            'contents', 'web front maintenance',
            'statusText', 'web front maintenance',
		    1, new Hash(
				'contents', 'Page Content',
				'uri', applicationDir + 'Index.php?page=WorshipAdmin/PageContent',
				'target', '_top',
				'statusText', 'Page Content'
			),
			2, new Hash(
				'contents', 'Page Image Maint',
				'uri', applicationDir + 'Index.php?page=WorshipAdmin/PageImageAdmin',
				'target', '_top',
				'statusText', 'Page Image Maintainace'
			),
			3, new Hash(
				'contents', 'Demo Page',
				'uri', applicationDir + 'Index.php?page=WorshipAdmin/Page',
				'target', '_top',
				'statusText', 'Demo Page'
			),
			4, new Hash(
				'contents', 'Change Password',
				'uri', applicationDir + 'Index.php?page=WorshipAdmin/Login&Action=ChangePassword',
				'target', '_top',
				'statusText', 'Change Password'
			)
        )	
	}
	else{ //normal menu item
		return new Hash(
            'contents', 'web front maintenance',
            'uri', applicationDir + 'Index.php?page=WorshipAdmin/PageContent',
            'target', '_top',
            'statusText', 'web front maintenance'
        )
	}
}

// }}}
// {{{ domMenu_main: settings

domMenu_settings.set('domMenu_worship', new Hash(
    'subMenuWidthCorrection', 0,
    'verticalSubMenuOffsetX', -1,
    'verticalSubMenuOffsetY', -1,
    'horizontalSubMenuOffsetX', -1,
	'horizontalSubMenuOffsetY', -1,
    'openMouseoverMenuDelay', 250,
    'closeMouseoutMenuDelay', 250,
    'expandMenuArrowUrl', applicationDir + '/Images/arrow.gif',
	'menuBarClass', 'domMenu_WorshipMenuBar',	
	'menuElementClass', 'domMenu_WorshipMenuElement',
	'menuElementHoverClass', 'domMenu_WorshipMenuElementHover',
	'subMenuBarClass', 'domMenu_WorshipsubMenuBar',
	'subMenuElementClass', 'domMenu_WorshipsubMenuElement',
	'subMenuElementHoverClass', 'domMenu_WorshipsubMenuElementHover'  
));

// }}}
// }}}

