/* author: info@jevkei.nl */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 16-9-2005 */
// Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***
//
// menu[menuNumber][0] = new Menu(Vertical menu? (true/false), 'popout indicator', left, top,
// width, 'mouseover colour', 'background colour', 'border stylesheet', 'text stylesheet');
//
// Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or
// for the root menu, the top-left corner of the page.
//
// menu[menuNumber][itemNumber] = new Item('Text', 'URL', 'target frame', length of menu item,
//  additional spacing to next menu item, number of target menu to popout);
//
// If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use
// frames, pass an empty string as a frame target.
//
// Something that needs explaining - the Vertical Menu setup. You can see most menus below
// are 'true', that is they are vertical, except for the first root menu. The 'length' and
// 'width' of an item depends on its orientation -- length is how long the item runs for in
// the direction of the menu, and width is the lateral dimension of the menu. Just look at
// the examples and tweak the numbers, they'll make sense eventually :).

var menu = new Array();

// Default colours passed to most menu constructors (just passed to functions, not
// a global variable - makes things easier to change later in bulk).
var defOver = '#336699', defBack = '#003366';

// Default 'length' of menu items - item height if menu is vertical, width if horizontal.
var defLength = 22;

// Menu 0 is the special, 'root' menu from which everything else arises.
menu[0] = new Array();
// A non-vertical menu with a few different colours and no popout indicator, as an example.
// *** MOVE ROOT MENU AROUND HERE ***  it's positioned at (5, 100) and is 24px high now.
menu[0][0] = new Menu(false, '', 5, 140, 24, '#669999', '#006666', '', 'itemText');
// Notice how the targets are all set to nonzero values...
// The 'length' of each of these items is 40, and there is spacing of 10 to the next item.
// Most of the links are set to '#' hashes, make sure you change them to actual files.
menu[0][1] = new Item('  Home', 'index.php', '', 40, 5, 1);
menu[0][2] = new Item('  Nieuws', '#', '', 50, 5, 2);
menu[0][3] = new Item('  Agenda', '#', '', 50, 5, 3);
menu[0][4] = new Item('  Foto albums', '#', '', 80, 5, 4);
menu[0][5] = new Item('  Ledenlijst', 'll/index.php', '_blank', 60, 5, 5);
menu[0][6] = new Item('  Links', '#', '', 40, 5, 6);
menu[0][7] = new Item('  Interessant', '#', '', 70, 5, 7);
menu[0][8] = new Item('  Handig', '#', '', 50, 5, 8);
menu[0][9] = new Item('  Instructiefilmpjes', '#', '', 100, 5, 9);
menu[0][10] = new Item('  Contact', 'index.php?varincl=incl/reactieform.inc.html', '', 50, 5, 0);
menu[0][11] = new Item('  Gastenboek', 'index.php?varincl=incl/gastenmain.php', '', 70, 10, 0);
menu[0][12] = new Item('  E&C @ Hyves', 'http://duikteam-ec.hyves.nl', '_blank', 85, 5, 0);

// Home menu.
menu[1] = new Array();
// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.
// All text in this menu has the stylesheet class 'item' -- see the <style> section above.
// We've passed a 'greater-than' sign '>' as a popout indicator. Try an image...?
menu[1][0] = new Menu(true, '', 0, 22, 120, defOver, defBack, 'itemBorder', 'itemText');
menu[1][1] = new Item('Info pagina', 'index.php?varincl=incl/home.inc.php', '', defLength, 0, 0);
menu[1][2] = new Item('Prijslijst', 'index.php?varincl=incl/Prijslijst_ec.htm', '', defLength, 0, 0);
menu[1][3] = new Item('Reactie formulier', 'index.php?varincl=incl/reactieform.inc.html', '', defLength, 0, 0);

// Nieuws menu.
menu[2] = new Array();
menu[2][0] = new Menu(true, '', 0, 22, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[2][1] = new Item('Nieuwspagina', 'index.php?varincl=incl/nieuws.inc.php', '', defLength, 0, 0);
menu[2][2] = new Item('Wijzigen berichten', 'incl/beheer/index.php', '', defLength, 0, 0);

// Agenda menu
menu[3] = new Array();
menu[3][0] = new Menu(true, '>', 0, 22, 60, defOver, defBack, 'itemBorder', 'itemText');
menu[3][1] = new Item('2005', 'index.php?varincl=incl/agenda.inc.php&varjaar=2005', '', defLength, 0, 0);
menu[3][2] = new Item('2006', 'index.php?varincl=incl/agenda.inc.php&varjaar=2006', '', defLength, 0, 0);
menu[3][3] = new Item('2007', 'index.php?varincl=incl/agenda.inc.php&varjaar=2007', '', defLength, 0, 0);
menu[3][4] = new Item('2008', 'index.php?varincl=incl/agenda.inc.php&varjaar=2008', '', defLength, 0, 0);
menu[3][5] = new Item('2009', 'index.php?varincl=incl/agenda.inc.php&varjaar=2009', '', defLength, 0, 0);
menu[3][6] = new Item('2010', 'index.php?varincl=incl/agenda.inc.php&varjaar=2010', '', defLength, 0, 0);
menu[3][7] = new Item('2011', 'index.php?varincl=incl/agenda.inc.php&varjaar=2011', '', defLength, 0, 0);

//Fotoalbum menu
menu[4] = new Array();
menu[4][0] = new Menu(true, '', 0, 22, 200, defOver, defBack, 'itemBorder', 'itemText');
menu[4][1] = new Item('Safaga 2002', 'http://80.101.4.114/e-c/incl/safaga2002/index.html', '_blank', defLength, 0, 0);
menu[4][2] = new Item('Karten 6 maart 2005', 'incl/20050306karten/index.html', '_blank', defLength, 0, 0);
menu[4][3] = new Item('Maarsseveen 24 mei 2005', 'incl/20050524MVeen/index.html', '_blank', defLength, 0, 0);
menu[4][4] = new Item('Bieschbosch 12 juni 2005', 'incl/20050612Biesbosch/index.html', '_blank', defLength, 0, 0);
menu[4][5] = new Item('Nieuwjaarsduik 2006', 'incl/2006ECnieuwjaarsduik/index.html', '_blank', defLength, 0, 0);
menu[4][6] = new Item('Zwembad 14 februari 2006', 'incl/20060214zwembad/index.html', '_blank', defLength, 0, 0);
menu[4][7] = new Item('E&C nieuwjaarsduik 2007', 'incl/200701ecnieuwjaarsduik/index.html', '_blank', defLength, 0, 0);
menu[4][8] = new Item('E&C nieuwjaarsduik 2008', 'incl/2008nwjr/index.html', '_blank', defLength, 0, 0);
menu[4][9] = new Item('E&C zeelandweekend juni 2008', 'incl/200806zeeland/index.html', '_blank', defLength, 0, 0);
menu[4][10] = new Item('E&C zeelandweekend juli 2008', 'incl/200807zeeland/index.html', '_blank', defLength, 0, 0);
menu[4][11] = new Item('E&C nieuwjaarsduik 2009', 'incl/2009nwjr/index.html', '_blank', defLength, 0, 0);
menu[4][12] = new Item('Diverse 2009', 'incl/2009div/index.html', '_blank', defLength, 0, 0);
menu[4][13] = new Item('E&C Zeeland weekend 2009', 'incl/200906zeeland/index.html', '_blank', defLength, 0, 0);
menu[4][14] = new Item('E&C Zeeland weekend 2010', 'incl/201006zeeland/index.html', '_blank', defLength, 0, 0);

// Leden
menu[5] = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
menu[5][0] = new Menu(true, '', 0, 22, 80, defOver, defBack, 'itemBorder', 'itemText');
//menu[5][1] = new Item('Ledenlijst', '../ec/besloten/ledenlijst/index.php', '_blank', defLength, 0, 0);

//Links
menu[6] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[6][0] = new Menu(true, '', 0, 22, 80, defOver, defBack, 'itemBorder', 'itemText');
menu[6][1] = new Item('Linkpagina', 'index.php?varincl=incl/links.html', '', defLength, 0, 0);

//Interessant
menu[7] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[7][0] = new Menu(true, '', 0, 22, 215, defOver, defBack, 'itemBorder', 'itemText');
menu[7][1] = new Item('Stille Bellen', 'index.php?varincl=incl/Stille bellen.html', '', defLength, 0, 0);
menu[7][2] = new Item('Mosselen vangst bij de Zeelandbrug', 'index.php?varincl=incl/mosselenzeelandbrug.html', '', defLength, 0, 0);

//Handig
menu[8] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[8][0] = new Menu(true, '', 0, 22, 215, defOver, defBack, 'itemBorder', 'itemText');
menu[8][1] = new Item('handige links', 'index.php?varincl=incl/hdl.html', '', defLength, 0, 0);
//menu[8][2] = new Item('Duiken voor gevorderden', '', '', 155, 0, 0);

//Duiken voor beginners
menu[9] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[9][0] = new Menu(false, '', 15, 25, 22, defOver, defBack, 'itemBorder', 'itemText');
menu[9][1] = new Item('Duiken voor beginners', '', '', 140, 0, 10);
menu[9][2] = new Item('Duiken voor gevorderden', '', '', 155, 0, 11);

//Duiken voor beginners
menu[10] = new Array();
menu[10][0] = new Menu(true, '', 0, 22, 250, defOver, defBack, 'itemBorder', 'itemText');
menu[10][1] = new Item('Gebruik ademautomaat ', 'http://www.youtube.com/watch?v=vRBe3dKKXLU', '_blank', defLength, 0, 0);
menu[10][2] = new Item('Gebruik jacket / BCD ', 'hhttp://www.youtube.com/watch?v=sKUV4BBxDag', '_blank', defLength, 0, 0);
menu[10][3] = new Item('Jacket / BCD onderhouden', 'http://www.youtube.com/watch?v=wlLZ69KLFwk', '_blank', defLength, 0, 0);
menu[10][4] = new Item('Bevestiging automaat aan fles', 'http://www.youtube.com/watch?v=zndUQE5CCJ8', '_blank', defLength, 0, 0);
menu[10][5] = new Item('Schoonmaken ademautomaat', 'http://www.youtube.com/watch?v=YQdwNAH0SFk', '_blank', defLength, 0, 0);
menu[10][6] = new Item('Leegblazen masker', 'http://www.youtube.com/watch?v=dEtm_BiCjjA', '_blank', defLength, 0, 0);
menu[10][7] = new Item('Kiezen masker, vinnen & snorkel', 'http://www.youtube.com/watch?v=oi1Fwa65pJc', '_blank', defLength, 0, 0);
menu[10][8] = new Item('In de gaten houden van meters', 'http://www.youtube.com/watch?v=TlLSnV5JYMQ', '_blank', defLength, 0, 0);
menu[10][9] = new Item('De componenten van mijn duikuitrusting', 'http://www.youtube.com/watch?v=R8EbS6BZmlI', '_blank', defLength, 0, 0);
menu[10][10] = new Item('Aan de oppervlakte komen', 'http://www.youtube.com/watch?v=9oBNhq5Yeco', '_blank', defLength, 0, 0);

//Duiken voor gevorderden
menu[11] = new Array();
menu[11][0] = new Menu(true, '', 0, 22, 250, defOver, defBack, 'itemBorder', 'itemText');
menu[11][1] = new Item('Rescue diver ', 'http://www.youtube.com/watch?v=BnzUoQ8ajJU', '_blank', defLength, 0, 0);


// *** OPTIONAL CODE FROM HERE DOWN ***

// These two lines handle the window resize bug in NS4. See <body onResize="...">.
// I recommend you leave this here as otherwise when you resize NS4's width menus are hidden.

var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');


// This is a quick snippet that captures all clicks on the document and hides the menus
// every time you click. Use if you want.

if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function clickHandle(evt)
{
 if (isNS4) document.routeEvent(evt);
 hideAllBut(0);
}


// This is just the moving command for the example.

function moveRoot()
{
 with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5);
}
//  End -->
