// Last change July 14 2003
// Developed by ddmenu@inbox.ru


// constants

// Offsets from element control lines up with (RH)
var xOffset = 0;
var yOffset = 32;

// x-coordinate of top left corner of dropdown menu 
var initX             = 10; 
if (navigator.appName=='Microsoft Internet Explorer')
{
  initX = 20; 
}
else
{
  initX = 18; 
}


// y-coordinate of top left corner of dropdown menu 
var initY             = 138; 
if (navigator.appName=='Microsoft Internet Explorer')
{
  initY = 142; 
}
else
{
  initY = 131; 
}

// the background color of dropdown menu (set empty '' for transparent)
//var backColor         = '#000099'; 
backColor  = new Array ();
backColor[0] = '#F8C26D';
backColor[1] = '#EDE2EF';
backColor[2] = '#BB82C0';
backColor[3] = '#E7F1E6';
backColor[4] = '#8FC389';
backColor[5] = '#EDE2EF';
backColor[6] = '#BB82C0';
backColor[7] = '#E7F1E6';

// the background color of selected menu items, set empty '' for transparent
var activeBackColor   = '#B0C4DE'; 

// the color of dropdown menu border
//var borderColor = 'white'; 
borderColor  = new Array ();
borderColor[0] = '#6DAC66';
borderColor[1] = '#94529A';
borderColor[2] = '#DECBE1';
borderColor[3] = '#6DAC66';
borderColor[4] = '#94529A';
borderColor[5] = '#94529A';
borderColor[6] = '#DECBE1';
borderColor[7] = '#6DAC66';

// the width of menu border
var borderSize  = '1'; 

// height of menu itesm
var itemHeight  = 20;

// overlapping between 
var xOverlap    = 5;
var yOverlap    = 10;

// end of constants


menuContent     = new Array ();

menuContent [0] = new Array ( 
-1, 
-1, 
120, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'find a photo', '?MODE=FINDAPHOTO', 
'showcase', '?MODE=SHOWCASE',
'lightbox', '?MODE=SELECTLIB', 
'words that work', '?MODE=WORDLIST'
));

menuContent [1] = new Array ( 
-1, 
-1,
120, // the width of current menu list 
-1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'who we are', '?MODE=WHOWEARE', 
'cv and credits', '?MODE=CV',
'contact', '?MODE=CONTACT'
));

menuContent [2] = new Array ( 
-1, 
1,
120, // the width of current menu list 
390, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'symbiosis', '?MODE=SYMBIOSIS', 
'photo-lobbying ', '?MODE=PHOTOLOBBYING'
));

menuContent [3] = new Array ( 
-1, 
1,
120, // the width of current menu list 
390, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'all about latvia',          '?MODE=ALLABOUTLATVIA', 
'latvia gallery',            '?MODE=LATVIAGALLERY', 
'latvia links',              '?MODE=FINDOUTMORE',
'norway in autumn',          '?DISPLAYSHOWCASE=../slideshows/norwayinautumn.htm&WIDTH=620&HEIGHT=620',
'wild children',             '?DISPLAYSHOWCASE=../slideshows/wildchildren.htm&WIDTH=620&HEIGHT=620', 
'european lynx',             '?DISPLAYSHOWCASE=../slideshows/europeanlynx.htm&WIDTH=620&HEIGHT=620', 
'plain and simple',          '?DISPLAYSHOWCASE=../slideshows/plainandsimple.htm&WIDTH=620&HEIGHT=620',
'estonian bogs',             '?DISPLAYSHOWCASE=../slideshows/estonianbogs.htm&WIDTH=620&HEIGHT=620',
'the estonian forest',       '?DISPLAYSHOWCASE=../slideshows/estonainforest.htm&WIDTH=520&HEIGHT=520', 
'low and wet',               '?DISPLAYSHOWCASE=../slideshows/lowandwet.htm&WIDTH=520&HEIGHT=520', 
'the wide view',             '?DISPLAYSHOWCASE=../slideshows/thewideview.htm&WIDTH=670&HEIGHT=420',
'montrose basin commission', '?DISPLAYSHOWCASE=../slideshows/montrosebasin.htm&WIDTH=520&HEIGHT=520',
'newfoundland',              '?DISPLAYSHOWCASE=../slideshows/newfoundland.htm&WIDTH=520&HEIGHT=520',
'patterns',                  '?DISPLAYSHOWCASE=../slideshows/patterns.htm&WIDTH=520&HEIGHT=520', 
'northern forests',          '?DISPLAYSHOWCASE=../slideshows/northern.htm&WIDTH=520&HEIGHT=520', 
'norway in winter',          '?DISPLAYSHOWCASE=../slideshows/norway.htm&WIDTH=520&HEIGHT=520',
'european beavers',          '?DISPLAYSHOWCASE=../slideshows/beavers.htm&WIDTH=520&HEIGHT=520', 
'scottish wildlife',         '?DISPLAYSHOWCASE=../slideshows/scottish.htm&WIDTH=520&HEIGHT=520', 
'nature and culture',        '?DISPLAYSHOWCASE=../slideshows/culture.htm&WIDTH=520&HEIGHT=520', 
'estonian meadows',          '?DISPLAYSHOWCASE=../slideshows/estonianmeadows.htm&WIDTH=620&HEIGHT=620',
'israel in spring',          '?DISPLAYSHOWCASE=../slideshows/israelinspring.htm&WIDTH=620&HEIGHT=620'
));

menuContent [4] = new Array ( 
-1, 
1,
120, // the width of current menu list 
390, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'books', '?MODE=VIEWSTORIES&TYPE=BOOKS', 
'stories about wild nature and us', '?MODE=VIEWSTORIES&TYPE=ARTICLESNATURE', 
'photography articles', '?MODE=VIEWSTORIES&TYPE=ARTICLESPHOTO', 
'equipment reviews', '?MODE=VIEWSTORIES&TYPE=REVIEWS'
));

menuContent [5] = new Array ( 
-1, 
1,
120, // the width of current menu list 
390, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'tution and training', '?MODE=TUITIONANDTRAINING',
'course content', '?MODE=TUITIONANDTRAINING&PAGE=COURSECONTENT',
'terms and conditions', '?MODE=TUITIONANDTRAINING&PAGE=TERMSANDCONDITIONS',
'booking form', '?MODE=TUITIONANDTRAINING&PAGE=BOOKINGFORM'
));

menuContent [6] = new Array ( 
-1, 
1,
120, // the width of current menu list 
390, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'doing business with us', '?MODE=DOINGBUSINESS', 
'contact', '?MODE=CONTACT'
));

menuContent [7] = new Array ( 
-1, 
1,
120, // the width of current menu list 
390, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
-1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'scanning service', '?MODE=SCANNING', 
'what it all costs', '?MODE=PRICES'
));