var applicantsMenu = new WebFXMenu;
applicantsMenu.add(new WebFXMenuItem("All Applicants", "#", "All Applicants"));
applicantsMenu.add(new WebFXMenuItem("Australian Defence Force Registrars", "#", "Australian Defence Force Registrars"));
applicantsMenu.add(new WebFXMenuItem("Doctors with Conditional Registration", "#", "Doctors with Conditional Registration"));
applicantsMenu.add(new WebFXMenuItem("International Medical Graduates", "#", "International Medical Graduates"));
applicantsMenu.add(new WebFXMenuItem("Rural Bonded Scholars", "#", "Rural Bonded Scholars"));

var gpRegistrarsMenu = new WebFXMenu;	
gpRegistrarsMenu.add(new WebFXMenuItem("All GP Registrars", "/index.php?action=view&view=7198&pid=5412", "All GP Registrars"));
gpRegistrarsMenu.add(new WebFXMenuItem("Australian Defence Force GP Registrars", "/index.php?action=view&view=7530&pid=5412", "Australian Defence Force Registrars"));
gpRegistrarsMenu.add(new WebFXMenuItem("Doctors with Conditional Registration", "/index.php?action=view&view=7556&pid=5412", "Doctors with Conditional Registration"));
gpRegistrarsMenu.add(new WebFXMenuItem("International Medical Graduates", "/index.php?action=view&view=7548&pid=5412", "International Medical Graduates"));
gpRegistrarsMenu.add(new WebFXMenuItem("Part-time GP Registrars", "/index.php?action=view&view=11611", "Part-time GP Registrars"));
gpRegistrarsMenu.add(new WebFXMenuItem("Rural Bonded Scholars", "/index.php?action=view&view=7539&pid=5412", "Rural Bonded Scholars"));

var practiceManagersMenu = new WebFXMenu;	
practiceManagersMenu.add(new WebFXMenuItem("Managers of Training Practices", "/index.php?action=view&view=8125&pid=5424", "Managers of Training Practices"));
//practiceManagersMenu.add(new WebFXMenuItem("Practice Management Training", "/index.php?action=view&view=5425", "Practice Management Training"));

var partnerOrganisationsMenu = new WebFXMenu;	
//partnerOrganisationsMenu.add(new WebFXMenuItem("Applicants for GP Training", "/index.php?action=view&view=7702", "Applicants for GP Training"));
partnerOrganisationsMenu.add(new WebFXMenuItem("Interested in Becoming a GP", "/index.php?action=view&view=7703", "Interested in Becoming a GP"));
partnerOrganisationsMenu.add(new WebFXMenuItem("Hospital Posts", "/index.php?action=view&view=7704", "Hospital Posts"));
partnerOrganisationsMenu.add(new WebFXMenuItem("Partner Organisations", "/index.php?action=view&view=7706", "Partner Organisations"));
partnerOrganisationsMenu.add(new WebFXMenuItem("Special/Extended Skills Training Posts", "/index.php?action=view&view=7705", "Special/Extended Skills Training Posts"));

document.write(applicantsMenu);	
document.write(gpRegistrarsMenu);
document.write(practiceManagersMenu);
document.write(partnerOrganisationsMenu);

function displayMenu(showThisMenu, here)
{	
	// Hide them all first
	applicantsMenu.hide(); 
	gpRegistrarsMenu.hide(); 
	practiceManagersMenu.hide();
	partnerOrganisationsMenu.hide();

	// Show the one we want		
	webFXMenuHandler.showMenu(showThisMenu, here);
}


function createBookmark(url, title) {
	if ( title == '' ) 
		title = url;

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if ( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title);
	} else if (window.opera && window.print) { // Opera Hotlist
		return true;
	} else {
		return false;
	}
}