// *** (1) ITjeEMSTYLES ***
//


// 'horizontal Bar' style: menu items that use this ItemStyle are 40px wide, have 10px gaps
// between them, no popout indicator (the ">" in some menus) or popout indicator position,
// 0px padding of the text within items, #336699 background colour, a hover colour of #6699CC,
// 'highText' is the stylesheet class used for the menu text both normally and when highlighted,
// no border styles, 'null' means fully opaque items (set them to numbers between 0 and 100 to
// enable semitranslucency), and the 'hand'/'default' cursors are used for linked/submenu items.


var hBar = new ItemStyle(120, 5, '', 0, 0, '', '', '', '', '', '', null, null, 'hand', 'default');
var dBlue = new ItemStyle(20, 0, '<img src="images/folderopen.gif">', -20, 3, '#666699', '#336699', 'itemText', 'itemHover', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var dTop = new ItemStyle(20, 0, '', 0, 0, '', '', 'MenuText', 'MenuHover', '', '', null, null, 'hand', 'default');



// *** (2) MENU DATA ***
//
var pMenu = new PopupMenu('pMenu');
with (pMenu)
{



// *** MOVE OR CENTRE THE MENU HERE ***



//startMenu('root', false, 'page.winW()/2 - pMenu.menu.root[0].menuW/2', 0, 17, hBar); // Centres.
//startMenu('root', false, 10, 'page.scrollY()', 17, hBar); // Floats with window as you scroll.
//startMenu('root', false, 10, 0, 17, hBar, 'frameName'); // To create in subframe.
// The 'root' menu is horizontal, positioned at (x = 10, y = 0) and is 17px high, and items
// by default use the colours and dimensions in the 'hBar' ItemStyle defined above.
// This menu is also positioned over a similarly-coloured table in the HTML document above.


startMenu('root', false, '165', 131, 25, hBar);



// *****************  Top menu  ***********************
// *******************************************************


// The text is a space then 'File', and this item pops out the 'mFile' submenu when moused over as
// we've set 'sm:' as the action type.
addItem('<center><br>Onze Club</center>', 'mClub', 'sm:',dTop , 90, 10);
addItem('<center><br>Bond GS</center>', 'mBond', 'sm:',dTop, 90, 10);
addItem('<center>De<br>handboogsport</center>', 'mSport', 'sm:',dTop, 110, 10);
addItem('<center>Handboog links<br>en diversens</center>', 'mDiversen', 'sm:',dTop, 110, 10);
addItem('<center>Gemeente<br>Echt-Susteren</center>', 'mEcht', 'sm:',dTop, 110, 10);



// To open a file in a frame named 'main' we would use the following syntax:
// addItem('Text', 'file.html', 'parent.main');
// Next is an example of a Javascript function embedded in the menu, to open a new window...
// Also, note the extra optional 4th and 5th parameters -- this menu item is 80px long,
// rather than the default length from the ItemStyle.


// ***************  1 De Ster menu ********************
// *******************************************************


startMenu('mClub', true, 0, 35, 138, dBlue);
// The URLs are set to # here, be sure to replace them with your path/file names or JS functions!
// Also note how all the types are '', indicating these links open in the current frame.


addItem('De vereniging', 'mainDiv.load("de-ster/intro/intro.htm")', 'js:');
addItem('De Historie van de vereniging', 'mainDiv.load("de-ster/historie/historie.htm")', 'js:', dBlue, 36, 0);
addItem('Jubileum boekje 1972',  
'window.open("de-ster/historie/boekje/pag0.htm","pop","width=550,height=650,left=0,top=0,scrollbars=no")', 'js:', dBlue, 20, 0);
addItem('Ons lokaal', 'mainDiv.load("de-ster/ons-lokaal/ons_lokaal.htm")', 'js:');
addItem('Ons lokaal panorama',  
'window.open("http://www.hbsdester.com/de-ster/ons-lokaal/panorama/hbsdester.htm","pop","width=700,height=550,left=0,top=0,scrollbars=no")', 'js:', dBlue, 20, 0);
addItem('Open Limburgse <br>Jeugd Kamp', 'mOpenjeugd', 'sm:', dBlue, 36, 0);
addItem('Wintertoernooi', 'mWintertoernooi', 'sm:');
addItem('de Ster Wedstrijd uitslagen', 'mInterneWedstrijden', 'sm:', dBlue, 36, 0);


// Open Jeugd
startMenu('mOpenjeugd', true, 140, 0, 150, dBlue);
addItem('2001',  'mainDiv.load("de-ster/open-jeugd/2001/open_jeugd_2001.htm")', 'js:', dBlue, 20, 0);
addItem('2002',  'mainDiv.load("de-ster/open-jeugd/2002/open_jeugd_2002.htm")', 'js:', dBlue, 20, 0);
addItem('2003',  'mainDiv.load("de-ster/open-jeugd/2003/open_jeugd_2003.htm")', 'js:', dBlue, 20, 0);
addItem('2004',  'mainDiv.load("de-ster/open-jeugd/2004/open_jeugd_2004.htm")', 'js:', dBlue, 20, 0);
addItem('2005',  'mainDiv.load("de-ster/open-jeugd/2005/open_jeugd_2005.htm")', 'js:', dBlue, 20, 0);
addItem('2006',  'mainDiv.load("de-ster/open-jeugd/2006/open jeugd 2006.htm")', 'js:', dBlue, 20, 0);
addItem('2007',  'mainDiv.load("de-ster/open-jeugd/2007/uitslag.htm")', 'js:', dBlue, 20, 0);
addItem('2008',  'mainDiv.load("de-ster/open-jeugd/2008/uitslag.htm")', 'js:', dBlue, 20, 0);
addItem('2009','window.open("http://www.hbsdester.com/de-ster/open-jeugd/2009/uitslag-2009.pdf")', 'js:');
addItem('2010','window.open("http://www.hbsdester.com/de-ster/open-jeugd/2010/uitslagen/einduitslag 2010.pdf")', 'js:');

// Wintertoernooi
startMenu('mWintertoernooi', true, 140, 0, 150, dBlue);
addItem('Uitslagen 1999',  'mainDiv.load("de-ster/wintertoernooi/1999.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2000',  'mainDiv.load("de-ster/wintertoernooi/2000.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2001',  'mainDiv.load("de-ster/wintertoernooi/2001.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2002',  'mainDiv.load("de-ster/wintertoernooi/2002.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2003',  'mainDiv.load("de-ster/wintertoernooi/2003.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2004',  'mainDiv.load("de-ster/wintertoernooi/2004.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2005',  'mainDiv.load("de-ster/wintertoernooi/2005.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2006',  'mainDiv.load("de-ster/wintertoernooi/2006.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2007',  'mainDiv.load("de-ster/wintertoernooi/2007.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2008',  'mainDiv.load("de-ster/wintertoernooi/2008.htm")', 'js:', dBlue, 20, 0);
addItem('Uitslagen 2009','window.open("http://www.hbsdester.com/de-ster/wintertoernooi/uitslag-2009.xls")', 'js:');




// Interne Wedstrijden
startMenu('mInterneWedstrijden', true, 140, -40, 98, dBlue);
addItem('1999', 'mIW1999', 'sm:');
addItem('2000', 'mIW2000', 'sm:');
addItem('2001', 'mIW2001', 'sm:');
addItem('2002', 'mIW2002', 'sm:');
addItem('2003', 'mIW2003', 'sm:');
addItem('2004', 'mIW2004', 'sm:');
addItem('2005', 'mIW2005', 'sm:');
addItem('2006', 'mIW2006', 'sm:');
addItem('2007', 'mIW2007', 'sm:');
addItem('2008', 'mIW2008', 'sm:');
addItem('2009', 'mIW2009', 'sm:');



// Interne Wedstrijden 1999
startMenu('mIW1999', true, 100, 0, 150, dBlue);
addItem('Burgemeester beker',  'mainDiv.load("de-ster/wedstrijden/1999/burgemeesterbeker.htm")', 'js:', dBlue, 20, 0);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/1999/koningschieten.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2000
startMenu('mIW2000', true, 100, 0, 150, dBlue);
addItem('Burgemeester beker',  'mainDiv.load("de-ster/wedstrijden/2000/burgemeesterbeker.htm")', 'js:', dBlue, 20, 0);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2000/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2000/klubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2001
startMenu('mIW2001', true, 100, 0, 150, dBlue);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2001/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2001/klubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2002
startMenu('mIW2002', true, 100, 0, 150, dBlue);
addItem('Burgemeester beker',  'mainDiv.load("de-ster/wedstrijden/2002/burgemeesterbeker.htm")', 'js:', dBlue, 20, 0);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2002/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2002/klubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2003
startMenu('mIW2003', true, 100, 0, 150, dBlue);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2003/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Burgemeester beker',  'mainDiv.load("de-ster/wedstrijden/2003/burgemeesterbeker.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2003/Clubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2004
startMenu('mIW2004', true, 100, 0, 150, dBlue);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2004/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2004/klubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2005
startMenu('mIW2005', true, 100, 0, 150, dBlue);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2005/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Burgemeester beker',  'mainDiv.load("de-ster/wedstrijden/2005/burgemeesterbeker.htm")', 'js:', dBlue, 20, 0);
addItem('Carnaval',  'mainDiv.load("de-ster/wedstrijden/2005/carnaval 2005.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2005/klubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2006
startMenu('mIW2006', true, 100, 0, 150, dBlue);
addItem('Carnaval',  'mainDiv.load("de-ster/wedstrijden/2006/carnaval 2006.htm")', 'js:', dBlue, 20, 0);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2006/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2006/klubkamp.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2007
startMenu('mIW2007', true, 100, 0, 150, dBlue);
addItem('Carnaval',  'mainDiv.load("de-ster/wedstrijden/2007/carnaval 2007.htm")', 'js:', dBlue, 20, 0);
addItem('Koning schieten',  'mainDiv.load("de-ster/wedstrijden/2007/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap',  'mainDiv.load("de-ster/wedstrijden/2007/klubkamp_2007.htm")', 'js:', dBlue, 20, 0);


// Interne Wedstrijden 2008
startMenu('mIW2008', true, 100, 0, 150, dBlue);
addItem('Carnaval', 'mainDiv.load("de-ster/wedstrijden/2008/carnaval2008.htm")', 'js:', dBlue, 20, 0);
addItem('Koning schieten', 'mainDiv.load("de-ster/wedstrijden/2008/koningschieten.htm")', 'js:', dBlue, 20, 0);
addItem('Club Kampioenschap','window.open("http://www.hbsdester.com/de-ster/wedstrijden/2008/uitslag-clubkampioenschap-2008.xls")', 'js:');



// Interne Wedstrijden 2009
startMenu('mIW2008', true, 100, 0, 150, dBlue);
addItem('Koning schieten','window.open("http://www.hbsdester.com/de-ster/wedstrijden/2009/uitslag koningschieten 2009.xls")', 'js:');



// **************** 2 Bond menu  **********************
// *******************************************************


startMenu('mBond', true, 0, 35, 138, dBlue);
// The URLs are set to # here, be sure to replace them with your path/file names or JS functions!
// Also note how all the types are '', indicating these links open in the current frame.


addItem('De bond', 'mainDiv.load("bond-gs/de-bond/de_bond.htm")', 'js:');
addItem('GS websites', 'mGswebsites', 'sm:');
addItem('Klasse indeling 2010','window.open("http://www.hbsdester.com/bond-gs/klasse-indeling/Klassenindeling-2010.xls")', 'js:');


// *** GS websites ***
startMenu('mGswebsites', true, 140, -36, 178, dBlue);
addItem('Bond G.S.','window.open("http://www.gezelligsamenzijn.nl")', 'js:');
addItem('----------------------',  'mainDiv.load("")', 'js:');
addItem('Boukoul - Soranus','window.open("http://www.soranusboukoul.nl")', 'js:');
addItem('Echt - Nimrod','window.open("http://www.hbs-nimrod.nl ")', 'js:');
addItem('Haler-Uffelse - Grensschutters','window.open("http://www.degrensschutters.nl")', 'js:');
addItem('Heel - De Zonnebloem','window.open("http://www.handboogheel.nl")', 'js:');
addItem('Heibloem - Heideroosje','window.open("http://www.heideroosjeheibloem.nl")', 'js:');
addItem('Herkenbosch - Boschjagers','window.open("http://www.boschjagers.nl")', 'js:');
addItem('Heythuysen - O.V.U.','window.open("http://www.onzevrijeuren.nl")', 'js:');
addItem('Horn - Wilhelmina','window.open("http://www.hbvwilhelmina.nl/")', 'js:');
addItem('Myhl (D) - Silberpfeil','window.open("http://www.bsc-silberpfeil.de")', 'js:');
addItem('Pey-Echt - H.B.S. de Ster','window.open("http://www.hbsdester.com")', 'js:');
addItem('Posterholt - Ontspanning na arbeid ','window.open("http://www.hbs-onaposterholt.nl")', 'js:');
addItem('Roggel - Ons Genoegen ','window.open("http://www.hbv-onsgenoegen.nl")', 'js:');
addItem('Slek-Echt - Zwarte Roos','window.open("http://www.dezwarteroos.com")', 'js:');
addItem('Tegelen - Batavieren','window.open("http://www.hbvbatavieren.nl")', 'js:');
addItem('Vlodrop - De Snelle Pijl','window.open("http://www.desnellepijl.com ")', 'js:');



// ***************  3 Sport menu  **********************
// *******************************************************


startMenu('mSport', true, 0, 35, 138, dBlue);
// The URLs are set to # here, be sure to replace them with your path/file names or JS functions!
// Also note how all the types are '', indicating these links open in the current frame.
addItem('De Geschiedenis<br>van de boog', 'mGeschiedenis', 'sm:', dBlue, 36, 0);
addItem('schiet inleiding', 'mInleiding', 'sm:');
addItem('De Aanschaf', 'mAanschaf', 'sm:');
addItem('De Boog afstelling', 'mAfstellen', 'sm:');
addItem('Het schieten', 'mSchieten', 'sm:');
addItem('Paraplegies',  'mainDiv.load("de-sport/paraplegies/paraplegies.htm")', 'js:', dBlue, 20, 0);
addItem('Veld en Jacht', 'mVeldjacht', 'sm:');
addItem('Bogen gebruikers<br>gidsen', 'mRefguide', 'sm:', dBlue, 36, 0);


// *** Geschiedenis ***
startMenu('mGeschiedenis', true, 140, 0, 128, dBlue);
addItem('Prehistorisch boogschieten',  'mainDiv.load("de-sport/history/prehistoric archery intro.htm")', 'js:', dBlue, 20, 0);
addItem('De vroege en late steentijd',  'mainDiv.load("de-sport/history/de vroege en late steentijd.htm")', 'js:', dBlue, 36, 0);
addItem('Vetzi de ijs mummie',  'mainDiv.load("de-sport/history/oetzi de ijs mummie.htm")', 'js:', dBlue, 20, 0);
addItem('Van Perzik tot Egypte',  'mainDiv.load("de-sport/history/perzen en egypte.htm")', 'js:', dBlue, 20, 0);
addItem('De Grieken',  'mainDiv.load("de-sport/history/de grieken.htm")', 'js:', dBlue, 20, 0);
addItem('De Romeinen',  'mainDiv.load("de-sport/history/de romeinen.htm")', 'js:', dBlue, 20, 0);
addItem('De Hunnen',  'mainDiv.load("de-sport/history/de hunnen.htm")', 'js:', dBlue, 20, 0);
addItem('Militaire boogschutters in de Middel Eeuwen',  'mainDiv.load("de-sport/history/in den beginne.htm")', 'js:', dBlue, 54, 0);
addItem('De teloorgang',  'mainDiv.load("de-sport/history/de teloorgang.htm")', 'js:', dBlue, 20, 0);
addItem('Boogschieten als sport',  'mainDiv.load("de-sport/history/boogschieten als sport.htm")', 'js:', dBlue, 36, 0);
addItem('Van Victoria tot nu',  'mainDiv.load("de-sport/history/van victoria tot heden.htm")', 'js:', dBlue, 20, 0);

// *** Inleiding***
startMenu('mInleiding', true, 140, 0, 128, dBlue);
addItem('Soorten bogen',  'mainDiv.load("de-sport/inleiding/1 soorten bogen.htm")', 'js:', dBlue, 20, 0);
addItem('De composietboog',  'mainDiv.load("de-sport/inleiding/2 de composietboog.htm")', 'js:', dBlue, 20, 0);
addItem('De boogkeuze',  'mainDiv.load("de-sport/inleiding/3 de boogkeuze.htm")', 'js:', dBlue, 20, 0);
addItem('De beginnende schutter',  'mainDiv.load("de-sport/inleiding/4 de beginnende schutter.htm")', 'js:', dBlue, 36, 0);
addItem('De trekkracht',  'mainDiv.load("de-sport/inleiding/5 de trekkracht.htm")', 'js:', dBlue, 20, 0);
addItem('Het opspannen',  'mainDiv.load("de-sport/inleiding/6 het opspannen.htm")', 'js:', dBlue, 20, 0);

// *** de aanschaf***
startMenu('mAanschaf', true, 140, 0, 128, dBlue);
addItem('Aanschaf materiaal',  'mainDiv.load("de-sport/de aanschaf/aanschaf_materiaal.htm")', 'js:', dBlue, 20, 0);
addItem('Stapsgewijs',  'mainDiv.load("de-sport/de aanschaf/aanschaf_stapsgewijs.htm")', 'js:', dBlue, 20, 0);
addItem('De Kosten',  'mainDiv.load("de-sport/de aanschaf/kosten.htm")', 'js:', dBlue, 20, 0);

// *** de Boogafstelling ***
startMenu('mAfstellen', true, 140, 0, 128, dBlue);
addItem('De pijlen',  'mainDiv.load("de-sport/afstellen/1 de pijlen.htm")', 'js:', dBlue, 20, 0);
addItem('De carbonpijl',  'mainDiv.load("de-sport/afstellen/2 de carbonpijl.htm")', 'js:', dBlue, 20, 0);
addItem('De veren',  'mainDiv.load("de-sport/afstellen/3 de veren.htm")', 'js:', dBlue, 20, 0);
addItem('De pijlreflex',  'mainDiv.load("de-sport/afstellen/4 de pijlreflex.htm")', 'js:', dBlue, 20, 0);
addItem('De spine',  'mainDiv.load("de-sport/afstellen/5 spine.htm")', 'js:', dBlue, 20, 0);
addItem('Gewicht en balans',  'mainDiv.load("de-sport/afstellen/6 weight en balans.htm")', 'js:', dBlue, 20, 0);
addItem('zelf de pijlen maken',  'mainDiv.load("de-sport/afstellen/7 zelf pijlen maken.htm")', 'js:', dBlue, 20, 0);
addItem('De pees',  'mainDiv.load("de-sport/afstellen/8 de pees.htm")', 'js:', dBlue, 20, 0);
addItem('De stabilisatie',  'mainDiv.load("de-sport/afstellen/9 de stabilisatie.htm")', 'js:', dBlue, 20, 0);
addItem('De nadelen van stabilisatie',  'mainDiv.load("de-sport/afstellen/10 de nadelen van stabilisatie.htm")', 'js:', dBlue, 36, 0);
addItem('Het nokpunt bepalen',  'mainDiv.load("de-sport/afstellen/11 het nokpunt bepalen.htm")', 'js:', dBlue, 20, 0);
addItem('De tuning',  'mainDiv.load("de-sport/afstellen/12 tuning.htm")', 'js:', dBlue, 20, 0);
addItem('De nokpunt hoogte',  'mainDiv.load("de-sport/afstellen/13 nokpunthoogte.htm")', 'js:', dBlue, 20, 0);
addItem('Het drukpunt bepalen',  'mainDiv.load("de-sport/afstellen/14 drukpunt bepalen.htm")', 'js:', dBlue, 20, 0);
addItem('De fijnafstelling',  'mainDiv.load("de-sport/afstellen/15 fijnafstelling.htm")', 'js:', dBlue, 20, 0);


// *** het schieten  ***
startMenu('mSchieten', true, 140, 0, 128, dBlue);

addItem('De ademhaling',  'mainDiv.load("de-sport/het schieten/ademhaling.htm")', 'js:', dBlue, 20, 0);
addItem('De concentratie',  'mainDiv.load("de-sport/het schieten/concentratie.htm")', 'js:', dBlue, 20, 0);
addItem('De warming up',  'mainDiv.load("de-sport/het schieten/warming up.htm")', 'js:', dBlue, 20, 0);
addItem('----------------------',  'mainDiv.load("")', 'js:', dBlue, 20, 0);
addItem('Het boogschieten',  'mainDiv.load("de-sport/het schieten/1 het boogschieten.htm")', 'js:', dBlue, 20, 0);
addItem('De stand',  'mainDiv.load("de-sport/het schieten/2 de stand.htm")', 'js:', dBlue, 20, 0);
addItem('De booghand',  'mainDiv.load("de-sport/het schieten/3 de booghand.htm")', 'js:', dBlue, 20, 0);
addItem('De handgreep',  'mainDiv.load("de-sport/het schieten/4 handgreep.htm")', 'js:', dBlue, 20, 0);
addItem('Plaatsen trekhand',  'mainDiv.load("de-sport/het schieten/5 plaatsen trekhand.htm")', 'js:', dBlue, 20, 0);
addItem('Aantrekken',  'mainDiv.load("de-sport/het schieten/6 aantrekken.htm")', 'js:', dBlue, 20, 0);
addItem('Het ankeren',  'mainDiv.load("de-sport/het schieten/7 het ankeren.htm")', 'js:', dBlue, 20, 0);
addItem('Het richten',  'mainDiv.load("de-sport/het schieten/8 het richten.htm")', 'js:', dBlue, 20, 0);
addItem('Het doortrekken',  'mainDiv.load("de-sport/het schieten/9 het doortrekken.htm")', 'js:', dBlue, 20, 0);
addItem('Het lossen',  'mainDiv.load("de-sport/het schieten/10 het lossen.htm")', 'js:', dBlue, 20, 0);
addItem('Het narichten',  'mainDiv.load("de-sport/het schieten/11 het narichten.htm")', 'js:', dBlue, 20, 0);



// *** Veld en Jacht  ***
startMenu('mVeldjacht', true, 140, 0, 128, dBlue);
addItem('3d ronde',  'mainDiv.load("de-sport/veld en jacht/3d-ronde.htm")', 'js:', dBlue, 20, 0);
addItem('Veld en Jacht',  'mainDiv.load("de-sport/veld en jacht/veld en jacht.htm")', 'js:', dBlue, 20, 0);


// *** Reference guides  ***
startMenu('mRefguide', true, 140, -50, 128, dBlue);
addItem('Compound boog<br>gebruikers gids',  
'window.open("de-sport/ref-guide/compound.htm","pop","width=500,height=200,left=0,top=0,scrollbars=no")', 'js:', dBlue, 36, 0);
addItem('Recurve Boog<br>gebruikers gids',  
'window.open("http://www.archersreference.pwp.blueyonder.co.uk/download.html","pop","width=800,height=600,left=0,top=0,scrollbars=yes")', 'js:', dBlue, 36, 0);
addItem('Easton downloads',  
'window.open("http://www.eastonarchery.com/downloads/","pop","width=800,height=600,left=0,top=0,scrollbars=yes")', 'js:', dBlue, 20, 0);



// ***********  4 Diversen menu  *********************
// *******************************************************


startMenu('mDiversen', true, 0, 35, 138, dBlue);
// Here we add extra optional parameters to specify an individual popout indicator, positioned 3px
// from the left edge of this item,  along with the normal dimensions etc, instead of declaring a new
// ItemStyle especially for this item. You have to add all parameters up to the one you're specifying. 
addItem('Archery Links', 'mAlinks', 'sm:');



// *** Archery Links ***
startMenu('mAlinks', true, -132, 0, 128, dBlue);
addItem('Internationale Organisaties','mainDiv.load("handboog.links/organisations/x1x.htm")', 'js:', dBlue, 36, 0);
addItem('Fabrikanten en winkels','mainDiv.load("handboog.links/stores/x1x.htm")', 'js:', dBlue, 36, 0);
addItem('----------------------',  'mainDiv.load("")', 'js:', dBlue, 20,0);
addItem('Amerika', 'mainDiv.load("handboog.links/usa/x1x.htm")','js:');
addItem('Australie','mainDiv.load("handboog.links/australia/x1x.htm")', 'js:');
addItem('Belgie','mainDiv.load("handboog.links/belgie/x1x.htm")', 'js:');
addItem('Canada', 'mainDiv.load("handboog.links/canada/x1x.htm")','js:');
addItem('Duitsland','mainDiv.load("handboog.links/germany/x1x.htm")', 'js:');
addItem('Engeland', 'mainDiv.load("handboog.links/uk/x1x.htm")','js:');
addItem('Frankrijk','mainDiv.load("handboog.links/france/x1x.htm")', 'js:');
addItem('Italie', 'mainDiv.load("handboog.links/italy/x1x.htm")','js:');
addItem('Nederland','mainDiv.load("handboog.links/netherlands/x1x.htm")', 'js:');
addItem('Spanje', 'mainDiv.load("handboog.links/spain/x1x.htm")','js:');
addItem('Zwitserland', 'mainDiv.load("handboog.links/switserland/x1x.htm")','js:');
addItem('Zweden', 'mainDiv.load("handboog.links/sweden/x1x.htm")','js:');
addItem('----------------------',  'mainDiv.load("")', 'js:', dBlue, 20,0);
addItem('Resterend','mainDiv.load("handboog.links/remaining/x1x.htm")', 'js:');



// ************  5 Echt-Susteren * *********************
// *******************************************************


// startMenu('mEcht', true, -10, 35, 100, dBlue);
// Here we add extra optional parameters to specify an individual popout indicator, positioned 3px
// from the left edge of this item,  along with the normal dimensions etc, instead of declaring a new
// ItemStyle especially for this item. You have to add all parameters up to the one you're specifying. 
// addItem('Recommend this page',  'mainDiv.load("de-sport/lessen/les13.htm")', 'js:', dBlue, 20, 0);


startMenu('mEcht', true, 0, 35, 138, dBlue);
addItem('gemeente-echt-susteren.startpagina.nl',  
'window.open("http://gemeente-echt-susteren.startpagina.nl","pop",",,left=0,top=0,scrollbars=yes")', 'js:', dBlue, 36, 0);
addItem('Grensscheiding tussen Gulik en Geldere 1551','mainDiv.load("echt.online/grensverdrag.htm")', 'js:');
addItem('Oude Landkaart Echt anno 1867',  
'window.open("http://www.hbsdester.com/echt.online/landkaarten/echt-kaart.jpg","pop",",,left=0,top=0,scrollbars=yes")', 'js:', dBlue, 36, 0);
addItem('Oude Landkaart Maasbracht anno 1867',  
'window.open("http://www.hbsdester.com/echt.online/landkaarten/maasbracht-kaart.jpg","pop",",,left=0,top=0,scrollbars=yes")', 'js:', dBlue, 36, 0);
addItem('Oude Landkaart Susteren anno 1868',  
'window.open("http://www.hbsdester.com/echt.online/landkaarten/susteren-kaart.jpg","pop",",,left=0,top=0,scrollbars=yes")', 'js:', dBlue, 36, 0);

}


// *** (3) MENU EFFECTS AND ANIMATION ***


// addMenuBorder(menuObject, ItemStyle,
//  opacity of border, 'border colour', border width, 'padding colour', padding width);
// Opacity is a number from 0 to 100, or null for no filter, like the ItemStyles.


addMenuBorder(pMenu, window.dBlue, null, '#666666', 0, '#ffffff', 0);

// [opacity, 'layer colour', X offset, Y offset, Width Difference, Height difference]



addDropShadow(pMenu, window.dBlue,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);



if (!isOp && navigator.userAgent.indexOf('rv:0.')==-1)
{
pMenu.showMenu = new Function('mN','menuAnim(this, mN, 20)');
pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -10)');
}




// *** (4) EVENTS ***


if (!isNS4)
{
 // Write menus now in non-NS4 browsers, by calling the "Fast" mode .update(true) method.
 pMenu.update(true);
 //anotherMenu.update(true);
}
else
{
 // For Netscape 4, back up the old onload function and make a new one to update our menus.
 // This is the regular "Dynamic" mode menu update, it works in IE and NS6 too if required.
 var popOldOL = window.onload;
 window.onload = function()
 {
  if (popOldOL) popOldOL();
  pMenu.update();
  //anotherMenu.update();
 }
}


var nsWinW = window.innerWidth, nsWinH = window.innerHeight, popOldOR = window.onresize;
window.onresize = function()
{
 if (popOldOR) popOldOR();
 if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) history.go(0);
 pMenu.position();
 //anotherMenu.position();
}


window.onscroll = function()
{
 pMenu.position();
 //anotherMenu.position();
}


// NS4 can't reliably capture clicks on layers, so here's a workaround.
if (isNS4)
{
 document.captureEvents(Event.CLICK);
 document.onclick = function(evt)
 {
  with (pMenu) if (overI) click(overM, overI);
  //with (anotherMenu) if (overI) click(overM, overI);
  return document.routeEvent(evt);
 }
}


// Activate the window.onscroll() event in non-Microsoft browsers.
if (!isIE || isOp)
{
 var nsPX=pageXOffset, nsPY=pageYOffset;
 setInterval('if (nsPX!=pageXOffset || nsPY!=pageYOffset) ' +
 '{ nsPX=pageXOffset; nsPY=pageYOffset; window.onscroll() }', 50);
}



// ANIMATION:
//


function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;


 with (mD)
 {
  // Stop any existing animation.
  clearTimeout(timer);


  // If the layer doesn't exist (cross-frame navigation) quit.
  if (!lyr || !lyr.ref) return;
  // Show the menu if that's what we're doing.
  if (dir>0) lyr.vis('visible');
  // Also raise showing layers above hiding ones.
  lyr.sty.zIndex = 1001 + dir;


  // Alpha fade in IE5.5+. Mozilla's opacity isn't well suited to this as it's an inheritable
  // property rather than a block-level filter, and it's slow, but uncomment and try it perhaps.
  // WARNING: This looks funny if you're mixing opaque and translucent items e.g. solid menus
  // with dropshadows. If you're going to use it, make sure all your alpha values for a given
  // menus are numbers, or they're all null (solid).
  //if (isIE && window.createPopup) lyr.alpha(counter&&(counter<100) ? counter : null);


  // Clip the visible area. Tweak this if you want to change direction/acceleration etc.
  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  // Remove clipping in NS6 on completion, seems to help old versions.
  if ((isDOM&&!isIE) && (counter>=100)) lyr.sty.clip='';


  // Increment the counter and if it hasn't reached the end (10 steps either way),
  // set the timer to call the show/hide function again in 40ms.
  counter += dir;
  if (counter>100) counter = 100;
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout(menuObj.myName+'.'+(dir>0?'show':'hide')+'Menu("'+menuName+'")', 40);
 }
}


// Here's the alternative IE5.5+ filter animation function.
function menuFilterShow(menuObj, menuName, filterName)
{
 var mD = menuObj.menu[menuName][0];
 with (mD.lyr)
 {
  sty.filter = filterName;
  var f = ref.filters;
  if (f&&f.length&&f[0]) f[0].Apply();
  vis('visible');
  if (f&&f.length&&f[0]) f[0].Play();
 }
}


// BORDERS AND DROPSHADOWS:
//
function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 // Loop through the menu array of that object, finding matching ItemStyles.
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  // Loop through the items in that menu, move them down and to the right a bit.
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  // Extend the total dimensions of menu accordingly.
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);


  // Set the menu's extra content string with divs/layers underneath the items.
  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+(alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
}


function addDropShadow(mObj, iS)
{
 // Pretty similar to the one above, just loops through list of extra parameters making
 // dropshadow layers (from arrays) and extending the menu dimensions to suit.
 for (var mN in mObj.menu)
 {
  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;
  if (mD.itemSty != iS) continue;
  for (var shad=2; shad<a.length; shad++)
  {
   var s = a[shad];
   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+
    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';
   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+
    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; z-index:'+
    (a.length-shad)+'; '+(s[0]!=null?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+(s[0]/100):'')+
    '"></div>';
   addW=Math.max(addW, s[2]+s[4]);
   addH=Math.max(addH, s[3]+s[5]);
  }
  mD.menuW+=addW; mD.menuH+=addH;
 }
}
