
// '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, #FFFFFF background colour, a hover colour of #FFFFFF,
// '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(40, 0, '', 0, 0, '15#94d6e7', '10#C6EFF7', 'lowText', 'lowText', 
'', '', null, null , 'hand', 'default');

// The 'sub Menu' items: these have popout indicators of "Greater Than" signs ">" 15px from their
// right edge, and CSS borders. Text class also changes on mouseover.
var subM = new ItemStyle(22, 0, '', -15, 3, '#94d6e7', '#C6EFF7', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var subM1 = new ItemStyle(22, 0, '', -15, 3, '#ffffff', '#e0e0e0', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');


// Create a PopupMenu() object, and pass its own name so it can reference itself later on.
// We also use a 'with' block to work with its properties and functions below.

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

// Here's what the values in the next startMenu() command mean, in order:
//  'root': the name of this menu.
//   false: orientated as a horizontal menu (true creates a vertical menu).
//     30: the 'left' offset of this menu in pixels.
//      15: the 'top' offset of this menu in pixels.
//      20: the height of this menu (for vertical menus, this becomes the menu width).
//    hBar: the ItemStyle used to give this menu colours and layout/formatting.
//      '': this menu does not display within a frame (see the Frameset Example Script to do that).
//   false: this menu shows submenus on mouseover. 'true' means show on click.
//
// Most of the items are 'sm:' items popping out submenus, except the last 'js:' JavaScript command
// to pop open a new window. I've also given each item a length in pixels, overriding the ItemStyle.

startMenu('root', false, 30, 15, 20, hBar, '', false);
addItem(' &nbsp; Cyclades ' , 'pmenu2', 'sm:', null, 70);
addItem('&nbsp;  Dodecanese ' , 'pmenu4', 'sm:', null, 90);
addItem('&nbsp;  Ionian Islands ' , 'pmenu1', 'sm:', null, 95);
addItem(' &nbsp; Evia & the Sporades ' , 'pmenu3', 'sm:', null, 130);
addItem(' &nbsp; North-Eastern Aegean ' , 'pmenu6', 'sm:', null, 135);
addItem('&nbsp;  Crete ' , 'pmenu7', 'sm:', null, 45);
addItem('&nbsp;  Mainland ' , 'pmenu5', 'sm:', null, 70);
addItem('&nbsp;  Links ' , 'links.htm', '', null, 50);
addItem('&nbsp;  Contact ' , 'contact.htm', '', null, 50);

// This is a vertical menu positioned 0px across and 22px down from its trigger, and is 80px wide.
// The URLs are set to # here, be sure to replace them with your path/file names or JS functions!
// Also note how the types are '', indicating these links open in the current frame/window.

startMenu('pmenu3', true, 0, 22, 100, subM, '', false);
addItem(' Skiathos ', 'sporades/skiathos/index.htm', '');
addItem(' Skopelos ', 'sporades/skopelos/index.htm', '');
addItem(' Alonissos ', 'sporades/alonissos/index.htm', '');
addItem(' Evia ', 'sporades/evia/index.htm', '');

startMenu('pmenu2', true, 0, 22, 100, subM, '', false);
addItem(' Paros ', 'cyclades/paros/index.htm', '');
addItem(' Antiparos ', 'cyclades/antiparos/index.htm', '');
addItem(' Koufonissia ', 'cyclades/koufonissia/index.htm', '');
addItem(' Schinoussa ', 'cyclades/schinoussa/index.htm', '');
addItem(' Kea ', 'cyclades/kea/index.htm', '');
addItem(' Serifos ', 'cyclades/serifos/index.htm', '');
addItem(' Sifnos ', 'cyclades/sifnos/index.htm', '');
addItem(' Milos ', 'cyclades/milos/index.htm', '');
addItem(' Folegandros ', 'cyclades/folegandros/index.htm', '');
addItem(' Santorini ', 'cyclades/santorini/index.htm', '');
addItem(' Amorgos ', 'cyclades/amorgos/index.htm', '');
addItem(' Mykonos ', 'cyclades/mykonos/index.htm', '');
addItem(' Delos ', 'cyclades/delos/index.htm', '');
addItem(' Syros ', 'cyclades/syros/index.htm', '');

startMenu('pmenu1', true, 0, 22, 100, subM, '', false);
addItem(' Paxos ','ionian/paxos/index.htm', '');

startMenu('pmenu6', true, 0, 22, 100, subM, '', false);
addItem(' Ikaria ', 'north/ikaria/index.htm','');
addItem(' Fourni ', 'north/fourni/index.htm','');
addItem(' Samos ', 'north/samos/index.htm','');
addItem(' Limnos ', 'north/limnos/index.htm','');
addItem(' Chios ', 'north/chios/index.htm','');

startMenu('pmenu4', true, 0, 22, 100, subM, '', false);
addItem(' Rhodes ', 'dodecanese/rhodes/index.htm', '');
addItem(' Symi ', 'dodecanese/symi/index.htm', '');
addItem(' Tilos ', 'dodecanese/tilos/index.htm', '');
addItem(' Karpathos ', 'dodecanese/karpathos/index.htm', '');
addItem(' Astypalaea ', 'dodecanese/astypalaea/index.htm', '');
addItem(' Kalymnos ', 'dodecanese/kalymnos/index.htm', '');
addItem(' Patmos ', 'dodecanese/patmos/index.htm', '');
addItem(' Lipsi ', 'dodecanese/lipsi/index.htm', '');
addItem(' Kos ', 'dodecanese/kos/index.htm', '');



startMenu('pmenu5', true, 0, 22, 100, subM, '', false);
addItem(' Athens ', 'mainland/athens/index.htm', '');
addItem(' Pilion ', 'mainland/pilion/index.htm', '');
addItem(' Parga ', 'mainland/parga/index.htm', '');
addItem(' The Mani ', 'mainland/mani/index.htm', '');



startMenu('pmenu7', true, 0, 22, 100, subM, '', false);
addItem(' Heraklion ','crete/heraklion/index.htm', '');

// End of 'with (pMenu)' block. That's one menu object created!

}


