var hBar = new ItemStyle(70, 5, '', 0, 0, '', '', 'highText', 'highText', '', '', null, null, 'hand', 'default');
var subM = new ItemStyle(16, 0, '&gt;', -15, 1, '#E1E1E1', '#A4311E', 'lowText', 'highText2', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var subBlank = new ItemStyle(16, 0, '&gt;', -15, 1, '#CCCCDD', '#6699CC', 'lowText', 'highText2', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var button = new ItemStyle(22, 1, '&gt;', -15, 2, '#006633', '#CC6600', 'buttonText', 'buttonHover', 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');
var pMenu = new PopupMenu('pMenu');

with (pMenu)
{
// -- THE MENU --------------------------------------------------------------

startMenu('root', false, winW-28, 62, 12, hBar);
addItem('&nbsp;Præsentation', 'mPres', 'sm:', hBar, 89);
addItem('&nbsp;Foredrag & rejser', 'mLect', 'sm:', hBar, 110);
// addItem('&nbsp;Vinrejser', 'mTravel', 'sm:', hBar, 66);
addItem('&nbsp;Vininformation', 'mTech', 'sm:', hBar, 100);
addItem('&nbsp;Smagninger', 'mTaste', 'sm:', hBar, 81);
addItem('&nbsp;Smagsnotater', 'mNotes', 'sm:', hBar, 92);
// addItem('&nbsp;Artikler', 'mArticles', 'sm:', hBar, 65);
addItem('&nbsp;Links', 'links_misc.php', '', hBar, 45);
//addItem('&nbsp;In English', 'dummy.htm', '', hBar, 80);

// -- TOP MENUS -------------------------------------------------------------

startMenu('mPres', true, 0, 15, 150, subM);
addItem('&nbsp;Forsiden', 'index.php', '');
addItem('&nbsp;Om Jesper Hedegaard', 'pres_about.htm', '');
addItem('&nbsp;Kontakt', 'pres_contact.htm', '');
// addItem('&nbsp;Links', 'links_misc.htm', '');

startMenu('mLect', true, 0, 15, 100, subM);
addItem('&nbsp;Aftenskoler', 'mLectSchool', 'sm:');
addItem('&nbsp;Virksomheder', 'lect_comp.htm', '');
addItem('&nbsp;Tema forslag', 'mLectSugg', 'sm:');
addItem('&nbsp;Priser & info.', 'lect_price.htm', '');
addItem('&nbsp;Vinrejser', 'mTravelExmp', 'sm:');

// startMenu('mTravel', true, 0, 15, 100, subM);
// addItem('&nbsp;Eksempler', 'mTravelExmp', 'sm:');
// addItem('&nbsp;Priser & info.', 'travel_price.htm', '');

startMenu('mTech', true, 0, 15, 110, subM);
addItem('&nbsp;Smageteknik',     'mTasteTech', 'sm:');
addItem('&nbsp;Årgangstabeller', 'tech_vintages.htm', '');
addItem('&nbsp;Klassifikationer', 'mTechClass', 'sm:');
//addItem('&nbsp;Vinifikation',     'mTechWine.htm', 'sm:');

startMenu('mTaste', true, 0, 15, 90, subM);
addItem('&nbsp;Kommende',     'story_future.htm', '');
addItem('&nbsp;2009',     'mTaste2009', 'sm:');
addItem('&nbsp;2006',     'mTaste2006', 'sm:');
addItem('&nbsp;2005',     'mTaste2005', 'sm:');
addItem('&nbsp;2004',     'mTaste2004', 'sm:');
addItem('&nbsp;2003',     'mTaste2003', 'sm:');
addItem('&nbsp;2002',     'mTaste2002', 'sm:');
// addItem('&nbsp;2001',     'mTaste2001', 'sm:');
addItem('&nbsp;2000',     'mTaste2000', 'sm:');

startMenu('mNotes', true, 0, 15, 100, subM);
addItem('&nbsp;Frankrig',   'mFrance', 'sm:');
addItem('&nbsp;Italien',    'mItaly', 'sm:');
addItem('&nbsp;Spanien',    'mSpain', 'sm:');
addItem('&nbsp;Portugal',   'mPortugal', 'sm:');
addItem('&nbsp;USA',        'mUSA', 'sm:');
addItem('&nbsp;Sydafrika',  'mSouthAfrica', 'sm:');
addItem('&nbsp;Australien', 'mAustralia', 'sm:');
addItem('&nbsp;Chile',      'mChile', 'sm:');
addItem('&nbsp;Argentina',  'mArgentina', 'sm:');
addItem('&nbsp;New Zealand','mNewZealand', 'sm:');

startMenu('mArticles', true, 0, 15, 120, subM);
addItem('&nbsp;Bordeaux 1945',     'story_bordeaux1945.htm', '');
addItem('&nbsp;Bordeaux 1982',     'story_bordeaux1982.htm', '');

startMenu('mLinks', true, 0, 15, 100, subM);
addItem('&nbsp;Vinsmagning',     '#', '');

// -- SUB MENUS -------------------------------------------------------------

// Tech SUB MENU
startMenu('mTasteTech', true, 100, 0, 160, subM);
addItem('&nbsp;Hvordan smager man?',  'tech_howto.htm', '');
addItem('&nbsp;Point & vurderinger',      'tech_ratings.htm', '');

startMenu('mTechVintages', true, 100, 0, 160, subM);
addItem('&nbsp;Årgangstabeller',           'tech_vint.htm', '');

startMenu('mTechClass', true, 100, 0, 160, subM);
addItem('&nbsp;Bordeaux 1855',           'tech_class_bordeaux.htm', '');
addItem('&nbsp;Pomerol',           'tech_class_pomerol.htm', '');
addItem('&nbsp;St. Emilion',           'tech_class_stemilion.htm', '');
addItem('&nbsp;Chateauneuf du Pape',           'tech_class_chatneuf.htm', '');
addItem('&nbsp;Rhône - Nord',           'tech_class_rhonenorth.htm', '');
addItem('&nbsp;Champagne',           'tech_class_champagne.htm', '');

// Travel SUB MENU
startMenu('mTravelExmp', true, 85, 0, 160, subM);
addItem('&nbsp;Cotes-du-Rhône...', 'tour_2005.php', '');
addItem('&nbsp;Bordeaux - Cognac...', 'travel_ex1.htm', '');
addItem('&nbsp;Bordeaux - Champagne...', 'travel_ex2.htm', '');
addItem('&nbsp;Priser & info', 'travel_price.htm', '');

// VIRKSOMHEDER SUB MENU
startMenu('mLectSugg', true, 90, 0, 160, subM);
addItem('&nbsp;Introduktion til vinens verden', 'lect_sugg_intro.htm', '');
addItem('&nbsp;Cabernet Sauvignon fra hele verden', 'lect_sugg_cabworld.htm', '');
addItem('&nbsp;Rhône', 'lect_sugg_rhone.htm', '');
addItem('&nbsp;Californiske vine', 'lect_sugg_california.htm', '');
addItem('&nbsp;Champagne', 'lect_sugg_champ.htm', '');
addItem('&nbsp;Champagne og andre mousserende vine', 'lect_sugg_champother.htm', '');
addItem('&nbsp;”Tour de France" - Bordeaux, Bourgogne og Rhône', 'lect_sugg_tdfbbr.htm', '');
addItem('&nbsp;Chateauneuf du Pape', 'lect_sugg_cdp.htm', '');
addItem('&nbsp;Østrig', 'lect_sugg_austria.htm', '');
addItem('&nbsp;New Zealand', 'lect_sugg_nz.htm', '');
addItem('&nbsp;Australien', 'lect_sugg_au.htm', '');
addItem('&nbsp;Parkers magt og fejl...', 'lect_sugg_rppower.htm', '');
addItem('&nbsp;1. Cru Bordeaux', 'lect_sugg_1cru.htm', '');
addItem('&nbsp;Cognac', 'lect_sugg_cognac.htm', '');


// AFTENSKOLER SUB MENU
startMenu('mLectSchool', true, 85, 0, 160, subM);
addItem('&nbsp;Generel info', 'lect_school.htm', '');
addItem('&nbsp;AOF Gentofte...', 'mAOFGentofte', 'sm:');
addItem('&nbsp;FOF Glostrup', 'mFOFGlostrup', 'sm:');
addItem('&nbsp;FOF København - Frb.', 'mFOFKbhFred', 'sm:');

/*
addItem('&nbsp;AOF, Store Vine 2', 'lect_school_03_2030.htm', '');
addItem('&nbsp;AOF, Cognac...', 'lect_school_03_5900.htm', '');
addItem('&nbsp;FOF, Introduktion...', 'lect_school_03_6231.htm', '');
addItem('&nbsp;FOF, Store Vinopl. 1', 'lect_school_03_6223.htm', '');
addItem('&nbsp;FOF, Store Vinopl. 2', 'lect_school_03_6227.htm', '');
addItem('&nbsp;Tidligere foredrag', 'lect_school_old.htm', '')
*/

// SMAGNINGER SUB MENU
startMenu('mTaste2009', true, 85, 0, 155, subM);
addItem('&nbsp;Bordeaux 1989', 'story_bordeaux1989.php', '');

startMenu('mTaste2006', true, 85, 0, 155, subM);
addItem('&nbsp;Latour i 30 årgange', 'story_latour30.php', '');
addItem('&nbsp;40 års smagning', 'story_lars40.php', '');

startMenu('mTaste2005', true, 85, 0, 155, subM);
addItem('&nbsp;Bordeaux 1990', 'story_bordeaux1990.php', '');
addItem('&nbsp;Bordeaux 1998', 'story_bordeaux1998.php', '');
addItem('&nbsp;Krug Clos du Mesnil', 'story_krug_cdm.php', '');
addItem('&nbsp;Domaine Leflaive', 'story_leflaive.php', '');

startMenu('mTaste2004', true, 85, 0, 155, subM);
addItem('&nbsp;La Tache smagning', 'story_latache.php', '');
addItem('&nbsp;1. Cru årgang 1999', 'story_1cru1999.php', '');
addItem('&nbsp;Ch. Margaux 2000-1926', 'story_margaux0026.php', '');
addItem('&nbsp;Bordeaux årgang 2000', 'story_bordeaux2000.php', '');

startMenu('mTaste2003', true, 85, 0, 155, subM);
addItem('&nbsp;Chateauneuf 2000', 'story_chatneuf.php', '');
addItem('&nbsp;Guigal 1967-1999', 'story_guigal.htm', '');
addItem('&nbsp;Cheval Blanc, 33 årgange', 'story_cheval.htm', '');
addItem('&nbsp;BABOT 19.09.03', 'story_babot19092003.htm', '');
addItem('&nbsp;Montrachet 1999', 'story_montrachet1999.htm', '');

startMenu('mTaste2002', true, 85, 0, 120, subM);
addItem('&nbsp;Bordeaux 1982', 'story_bordeaux1982.htm', '');
addItem('&nbsp;Bordeaux 1945', 'story_bordeaux1945.htm', '');

startMenu('mTaste2001', true, 85, 0, 120, subM);
addItem('&nbsp;', '#', '');

startMenu('mTaste2000', true, 85, 0, 120, subM);
addItem('&nbsp;WWC Årgang 1990', 'story_2000wwc.htm', '');

// FRANKRIG SUB MENU
startMenu('mFrance', true, 85, 0, 120, subM);
addItem('&nbsp;Bordeaux', 'mBordeaux', 'sm:');
addItem('&nbsp;Bourgogne', 'mBourgogne', 'sm:');
addItem('&nbsp;Rhône', 'mRhone', 'sm:');
addItem('&nbsp;Champagne', '#', '');
addItem('&nbsp;Øvrige Frankrig', '#', '');

// ITALIEN SUB MENU
startMenu('mItaly', true, 85, 0, 120, subM);
addItem('&nbsp;Piemonte', '#', '');
addItem('&nbsp;Toscana', '#', '');
addItem('&nbsp;Andre områder', '#', '');

// SPANIEN SUB MENU
startMenu('mSpain', true, 85, 0, 120, subM);
addItem('&nbsp;Rioja', '#', '');
addItem('&nbsp;Ribera del Duero', '#', '');
addItem('&nbsp;Priorato', '#', '');
addItem('&nbsp;Andre områder', '#', '');

// PORTUGAL SUB MENU
startMenu('mPortugal', true, 85, 0, 120, subM);
addItem('&nbsp;Portvin', '#', '');

// USA SUB MENU
startMenu('mUSA', true, 85, 0, 120, subM);
addItem('&nbsp;Californien', 'mCalifornia', 'sm:');
addItem('&nbsp;Andre områder', '#', '');

// -- SUB SUB MENUS -------------------------------------------------------------

startMenu('mAOFGentofte', true, 140, 0, 150, subM);
addItem('&nbsp;Store Vine 1', 'lect_school_aof_gentofte_st1.php', '');
addItem('&nbsp;Store Vine 2', 'lect_school_aof_gentofte_st2.php', '');

startMenu('mFOFGlostrup', true, 140, 0, 150, subM);
addItem('&nbsp;Store Vinoplevelser 1', 'lect_school_fof_glostrup_st1.php', '');
addItem('&nbsp;Store Vinoplevelser 2', 'lect_school_fof_glostrup_st2.php', '');

startMenu('mFOFKbhFred', true, 140, 0, 150, subM);
addItem('&nbsp;Introduktion til vin..', 'lect_school_fof_kbhfred_intro.php', '');
addItem('&nbsp;Store Vinoplevelser 1', 'lect_school_fof_kbhfred_st1.php', '');
addItem('&nbsp;Store Vinoplevelser 2', 'lect_school_fof_kbhfred_st2.php', '');
addItem('&nbsp;Store Vinoplevelser 3', 'lect_school_fof_kbhfred_st3.php', '');
addItem('&nbsp;Cognac, en drik for..', 'lect_school_fof_kbhfred_cognac.php', '');
addItem('&nbsp;Portvin', 'lect_school_fof_kbhfred_port.php', '');
addItem('&nbsp;Marc &amp; Grappa..', 'lect_school_fof_kbhfred_marc.php', '');


// BORDEUAX SUB SUB MENU
startMenu('mBordeaux', true, 85, 0, 120, subM);
addItem('&nbsp;Saint-Estephe', 'pgTaste.htm?title=mFrankrig_mBordeaux_mSaint-Estephe', '');
addItem('&nbsp;Pauillac', 'pgTaste.htm?title=mFrankrig_mBordeaux_mPauillac', '');
addItem('&nbsp;Saint-Julien', 'pgTaste.htm?title=mFrankrig_mBordeaux_mSaint-Julien', '');
addItem('&nbsp;Margaux', 'pgTaste.htm?title=mFrankrig_mBordeaux_mMargaux', '');
addItem('&nbsp;Graves', 'pgTaste.htm?title=mFrankrig_mBordeaux_mGraves', '');
addItem('&nbsp;Pomerol', 'pgTaste.htm?title=mFrankrig_mBordeaux_mPomerol', '');
addItem('&nbsp;Saint-Emilion', 'pgTaste.htm?title=mFrankrig_mBordeaux_mSaint-Emilion', '');
addItem('&nbsp;Bordeaux - blandet', 'pgTaste.htm?title=mFrankrig_mBordeaux_mBlandet', '');
addItem('&nbsp;Sauternes', 'pgTaste.htm?title=mFrankrig_mBordeaux_mSauternes', '');

// BOURGOGNE SUB SUB MENU
startMenu('mBourgogne', true, 85, 0, 120, subM);
addItem('&nbsp;Rød', '#', '');
addItem('&nbsp;Hvid', '#', '');

// RHONE SUB SUB MENU
startMenu('mRhone', true, 85, 0, 120, subM);
addItem('&nbsp;Nord', '#', '');
addItem('&nbsp;Syd', '#', '');

// CALIFORNIEN SUB SUB MENU
startMenu('mCalifornia', true, 85, 0, 120, subM);
addItem('&nbsp;Napa', '#', '');
addItem('&nbsp;Sonoma', '#', '');
addItem('&nbsp;Santa Barbara', '#', '');

// AUSTRALIEN SUB SUB MENU
startMenu('mAustralia', true, 85, 0, 120, subM);
addItem('&nbsp;Rød', '#', '');
addItem('&nbsp;Hvid', '#', '');

// SYDAFRICA SUB SUB MENU
startMenu('mSouthAfrica', true, 85, 0, 120, subM);
addItem('&nbsp;Rød', '#', '');
addItem('&nbsp;Hvid', '#', '');

// CHILE SUB SUB MENU
startMenu('mChile', true, 85, 0, 120, subM);
addItem('&nbsp;Rød', '#', '');
addItem('&nbsp;Hvid', '#', '');

// ARGENTINA SUB SUB MENU
startMenu('mArgentina', true, 85, 0, 120, subM);
addItem('&nbsp;Rød', '#', '');
addItem('&nbsp;Hvid', '#', '');

// NEW ZEALAND SUB SUB MENU
startMenu('mNewZealand', true, 85, 0, 120, subM);
addItem('&nbsp;Rød', '#', '');
addItem('&nbsp;Hvid', '#', '');

}


addMenuBorder(pMenu, window.subBlank, null, '#666666', 1, '#CCCCDD', 2);

addDropShadow(pMenu, window.subM, [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subBlank, [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, 10)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -10)');
}


if (!isNS4)
{
 pMenu.update(true);
}
else
{
 var popOldOL = window.onload;
 window.onload = function()
 {
  if (popOldOL) popOldOL();
  pMenu.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();
}

window.onscroll = function()
{
 pMenu.position();
}


if (isNS4)
{
 document.captureEvents(Event.CLICK);
 document.onclick = function(evt)
 {
  with (pMenu) if (overI) click(overM, overI);
  return document.routeEvent(evt);
 }
}

if (!isIE || isOp)
{
 var nsPX=pageXOffset, nsPY=pageYOffset;
 setInterval('if (nsPX!=pageXOffset || nsPY!=pageYOffset) ' +
 '{ nsPX=pageXOffset; nsPY=pageYOffset; window.onscroll() }', 50);
}

// --- OPTIONAL -----

pMenu.onclick = function(mN, iN) { with (this)
{
 // Do actions depending on the item that the mouse was over at the time of the click.
 // You may with to use nested IFs or 'switch' statements etc. if you're familiar with JS.

 if (mN == 'root')
 {
  if (iN == 1) location.href='index.php';
  if (iN == 2) location.href = 'lect_comp.htm';
  if (iN == 3) location.href = 'tech_howto.htm';
  if (iN == 4) location.href = 'story_future.htm';
  if (iN == 5) location.href = 'pgTaste.htm?title=mFrankrig_mBordeaux_mSaint-Estephe';
 }

 if (mN == 'mLect')
 {
//  if (iN == 1) location.href='lect_comp.htm';
}
}}

// Set the status message to the URL if the 'action type' is nothing, and clear on mouseout.
pMenu.onmouseover = function(mN, iN) { with (this)
{
 // By now, you either have my JS Object Browser script from my site or you need it... try
 // embedding in an IFrame and typing 'pMenu' into its Go To field to see the menu internals.
 with (menu[mN][iN]) if (!type) status = href;
}}
pMenu.onmouseout = function() { status = '' }




// ANIMATION:
//
// Each menu object you create by default shows and hides its menus instantaneously.
// However you can override this behaviour with custom show/hide animation routines,
// as we have done in the "Menu Effects" section. Feel free to edit this, or delete
// this entire function if you're not using it. Basically, make functions to handle
// menuObj.showMenu() and .hideMenu(), both of which are passed menu names.
//
// Customisers: My lyr.clip() command gets passed the parameters (x1, y1, x2, y2)
// so you might want to adjust the direction etc. Oh, and I'm adding 2 to the dimensions
// to be safe due to different box models in some browsers.
// Another idea: add some if/thens to test for specific menu names...?


function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mPres') 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:
//
// Here's the menu border and dropshadow functions we call above. Edit ot delete if you're
// not using them. Basically, they assign a string to pMenu.menu.menuName[0].extraHTML, which
// is written to the document with the menus as they are created -- the string can contain
// anything you want, really. They also adjust the menu dimensions and item positions
// to suit. Dig out the Object Browser script and open up "pMenu" for more info.

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;
 }
}

// DLJ :: Own functions --------------------

function insertCopyrightText() {
  var copyText = '<a href="http://www.vinforedrag.dk" style="color: #E1E1E1; font-size: 9px;">www.vinforedrag.dk</a> :: <a href="copyright.php" style="color: #E1E1E1; font-size: 9px;">copyright &copy; 2002-2005</a> :: <a href="mailto:info@vinforedrag.dk" style="color: #E1E1E1; font-size: 9px;">info@vinforedrag.dk</a>';
  document.write(copyText);
}
