var hBar = new ItemStyle(20, 0, '', 0, 0, '#8', '#a6c5d7', 'highText', 'highText', '', '', null, null, 'hand', 'default');
var hBar2 = new ItemStyle(20, 0, '', 0, 0, '#015b8f', '#a6c5d7', 'highText', 'highText', '', '', null, null, 'hand', 'default');
var hBar3 = new ItemStyle(20, 0, '', 0, 0, '#015b8f', '#a6c5d7', 'highText', 'highText', '', '', null, null, 'hand', 'hand');
var subM = new ItemStyle(20, 0, '', -15, 3, '#015b8f', '#a6c5d7', 'lowText', 'highText', 'itemBorder', 'itemBorder2', null, null, 'hand', 'default');
var subM0 = new ItemStyle(20, 0, '', 0, 0, '#015b8f', '#a6c5d7', 'lowText', 'highText', '', '', null, null, 'hand', 'default');
var subM2 = new ItemStyle(20, 0, '', -15, 3, '#015b8f', '#a6c5d7', 'lowText', 'highText', 'itemBorder', 'itemBorder2', null, null, 'hand', 'hand');
var subM20 = new ItemStyle(20, 0, '', 0, 0, '#015b8f', '#a6c5d7', 'lowText', 'highText', '', '', null, null, 'hand', 'hand');
var subM3 = new ItemStyle(20, 0, '', -15, 3, '#015b8f', '#a6c5d7', 'lowText', 'highText', 'itemBorder', 'itemBorder2', null, null, 'hand', 'hand');
var pMenu = new PopupMenu('pMenu');
with (pMenu)
{
startMenu('root', false, 'page.elmPos("topPic").x+39', 56, 20, hBar, '', false);
addItem('SWAP:
^
', 'm2', 'sm:', subM0,55);
with(addItem('SWAP:
^
', '#', 'sm:', subM20,55)) onclick='content.location.href="jaarkalender.php"';
with(addItem('SWAP:
^
', '#', 'sm:', subM20,137)) onclick='content.location.href="main.php?id=4"';
with(addItem('SWAP:
^
', '#', 'sm:', subM20,141)) onclick='content.location.href="main.php?id=5"';
with(addItem('SWAP:
^
', '#', 'sm:', subM20,64)) onclick='content.location.href="main.php?id=6"';
with(addItem('SWAP:
^
', 'm7', 'sm:', subM20,44)) onclick='content.location.href="main.php?id=7"';
with(addItem('SWAP:
^
', '#', 'sm:', subM20,101)) onclick='content.location.href="main.php?id=8"';
with(addItem('SWAP:
^
', '#', 'sm:', subM20,78)) onclick='content.location.href="main.php?id=9"';
startMenu('m2', true, 0, 'page.elmPos("topPic").y+56+20', 140, subM, '', false);
with(addItem('Kasteel Buren', '#', 'sm:', subM2)) onclick='content.location.href="main.php?id=13"';
with(addItem('Buren en Oranje', '#', 'sm:', subM2)) onclick='content.location.href="main.php?id=14"';
startMenu('m7', true, 0, 'page.elmPos("topPic").y+56+20', 105, subM, '', false);
with(addItem('Stadswandelingen', '#', 'sm:', subM2)) onclick='content.location.href="main.php?id=18"';
}
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 ((navigator.userAgent.indexOf('rv:0.')==-1) &&
!(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');
pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');
}
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};
};
function menuAnim(menuObj, menuName, dir)
{
var mD = menuObj.menu[menuName][0];
if (!mD.timer) mD.timer = 0;
if (!mD.counter) mD.counter = 0;
with (mD)
{
clearTimeout(timer);
if (!lyr || !lyr.ref) return;
if (!visNow && dir>0) dir = 0-dir;
if (dir>0) lyr.vis('visible');
lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;
lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
counter += dir;
if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
else if (counter<0) { counter = 0; lyr.vis('hidden') }
else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
}
};
function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
for (var mN in mObj.menu)
{
var mR=mObj.menu[mN], dS='