// Cascading Popup Menus v5.2 - Single Frame Menu example script.


var hBar = new ItemStyle(75, 0, '<img src="popimag/popprojekt.gif" border="0">', 0, 0, '', '', '', '', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(18, 2, '', -15, 3, '', '', '', '',
 '', '', null, null, 'hand', 'default');



var pMenu = new PopupMenu('pMenu');
with (pMenu)
{


startMenu('root', false, 520, 0, 18, hBar, '', false);
addItem('', 'mprojekt', 'sm:', null, 75);


startMenu('mprojekt', true, 75, 0, 100, subM, '', false);
addItem('SWAP:<img src="popimag/poptran.gif" border="0">^<img src="popimag/poptran_o.gif" border="0">', 'traum.html', '');
addItem('SWAP:<img src="popimag/popext.gif" border="0">^<img src="popimag/popext_o.gif" border="0">', 'exraum.html', '');
addItem('SWAP:<img src="popimag/popin.gif" border="0">^<img src="popimag/popin_o.gif" border="0">', 'inbvor.html', '');
addItem('SWAP:<img src="popimag/pophome.gif" border="0">^<img src="popimag/pophome_o.gif" border="0">', 'h_hoagain.html', '');
addItem('SWAP:<img src="popimag/popatom.gif" border="0">^<img src="popimag/popatom_o.gif" border="0">', 'atomic_1.html', '');
addItem('SWAP:<img src="popimag/popueber.gif" border="0">^<img src="popimag/popueber_o.gif" border="0">', 'para.html', '');


}





// ******************** FUNCTIONS CALLED BY THE EFFECTS SECTION ********************

// These can be deleted if you're not using them. Alternatively, if you're using several menu
// data files, you may want to move them to the "core" script file instead.



// This is the "positioning from page anchors" code used by the advanced positioning expressions.
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};
};





