var subMindex = new ItemStyle(40, 1, '', 0, 0, '100#CC0000', '100#FF9999', 'nav1', 'nav1', '', '', 100, 100, 'hand', 'default');

var subM30 = new ItemStyle(25, 1, '', 0, 0, '100#CC0000', '100#ff9999', 'nav1', 'nav1', '', '', 100, 100, 'hand', 'default');


var pMenu = new PopupMenu('pMenu');
with (pMenu)
{


startMenu('root', true, 'navigation.page.scrollX()+1', 'navigation.page.scrollY()+1', 144, subMindex, 'navigation');

addItem('Kultur und<BR>Gesellschaft', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/20.htm"', 'js:', null);

addItem('Literatur und Sprachen', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/25.htm"', 'js:', null);

addItem('Mensch und<BR>Gesundheit', 'M30', 'sm:', null).onclick='inhalt.location.href="http://www.volkshochschule-buelach.ch/html/30.htm"', 'js:';

addItem('Natur und<BR>Umwelt', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/40.htm"', 'js:', null);

addItem('Kommunikation und<BR>Pers&ouml;nlichkeit', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/50.htm"', 'js:', null);

addItem('Formen und<BR>Gestalten', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/60.htm"', 'js:', null);


startMenu('M30', true, 'inhalt.page.scrollX()+0', 'inhalt.page.scrollY()+83', 140, subM30, 'inhalt');

addItem('Andere Kurse', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/30_01.htm"', 'js:', null);

addItem('Aqua / Wasser', 'inhalt.location.href="http://www.volkshochschule-buelach.ch/html/30_02.htm"', 'js:', null);

};



pMenu.hideDelay = 100;

function addDropShadow(mObj, iS) 
{
 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];
   var alpha = (s[0]!=null && navigator.userAgent.indexOf('AppleWebKit') == -1);
   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)+'; '+
    (alpha?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+s[0]+'%; 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;
 }
};

if (navigator.userAgent.indexOf('rv:0.')==-1 && !(isOp&&!document.documentElement))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 30)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -30)');
}

page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 else if (e && e.focus && e.href && this.MS && /Mac/.test(navigator.platform))
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};
