// Welkom
// Nieuws
// Beheer
//      - Overzicht schermen (lees clients)
//      - Overzicht pagina's (lees uw schermen)
//      - Afbeelding toevoegen
//      - Configuratiescherm
// Contact
// Bedrijfsprofiel
//	- Waarom mosavIZIon
//	- Hoe werkt mosavIZIon
//	- Over ons
// Faq
//
// Inloggen/Uitloggen

// Requires loggedin boolean to be set.

with(new menuname("Main")){
alwaysvisible=1;
maxwidth=200;
_menuCloseDelay=1000;
menuwidth=200;
orientation="vertical";
position="relative";
style=menuStyleMain;
aI("text=Welkom;url=/");
aI("text=Nieuws;url=/news.php");
if (loggedin) {
	aI("showmenu=Beheer;text=Beheer");
}
else {
	aI("text=Beheer;disabled=1;offcolor=#a9c8d7");
}
aI("text=Contact;url=/contact.php");
aI("showmenu=Bedrijfsprofiel;text=Bedrijfsprofiel");
aI("text=Vaak gestelde vragen;url=/faq.php");
if (loggedin) {
	aI("text=Uitloggen;url=/logout.php");
}
else {
	aI("text=Inloggen;url=/login.php");
}
}


if (loggedin) {
with(new menuname("Beheer")){
overflow="scroll";
style=menuStyleSub;
aI("text=Overzicht schermen;url=/beheer/clients.php");
aI("text=Overzicht pagina's;url=/beheer/sheets.php");
//aI("text=Afbeelding toevoegen;url=/beheer/imageAdd.php");
aI("text=Uw afbeeldingen;url=/beheer/images.php");
aI("text=Configuratiescherm;url=/beheer/config.php");
aI("showmenu=Uw scherm status;text=Uw scherm status");
aI("text=Notificatie melding;url=/beheer/notification.php");
}

with(new menuname("Uw scherm status")){
overflow="scroll";
style=menuStyleSub;
aI("text=Aan;url=/beheer/setDisplayState.php?enabled=1&r=" + Math.random());
aI("text=Uit;url=/beheer/setDisplayState.php?enabled=0&r=" + Math.random());
}
}


with(new menuname("Bedrijfsprofiel")){
overflow="scroll";
style=menuStyleSub;
aI("text=Waarom mosavIZIon;url=/content.php?id=BedrijfsProfiel_Waarom");
aI("text=Hoe werkt mosavIZIon;url=/content.php?id=BedrijfsProfiel_Hoe");
aI("text=Over ons;url=/content.php?id=BedrijfsProfiel_Over");
}

drawMenus();
