var subM = new ItemStyle(162, 2, '', -15, 3, 'images/topmenu_back.gif', 'images/topmenu_backh.gif', 'highText', 'highText',
 '', '', null, null, 'hand', 'default');
var subC2 = new ItemStyle(320, 2, '', -15, 3, 'images/tickbar2com.gif', 'images/tickbar2com.gif', 'highText', 'highText',
 '', '', null, null, 'hand', 'default');
var subN = new ItemStyle(36, 0, '', -15, 0, '#0081C3', '#0796DE', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var sub4 = new ItemStyle(35, 0, '', -15, 0, 'images/drop_EPC.gif', 'images/drop_EPCh.gif', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var sub5 = new ItemStyle(35, 0, '', -15, 0, 'images/drop_SBEM.gif', 'images/drop_SBEMh.gif', 'lowText', 'lowText',
 '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 cMenu = new PopupMenu('cMenu');
with (cMenu)
{
startMenu('root', false, 'window.page.elmPos("com").x', 'window.page.elmPos("com").y', 32, subM, '', false);
addItem('&nbsp;', 'mCom', 'sm:', subC2).onclick='window.location.href="commercial-energy-performance-certificate-epc.html"';

startMenu('mCom', true, 157, 30, 164, subN);
addItem('&nbsp;', 'commercial-energy-performance-certificate-epc.html', 'parent', sub4);
addItem('&nbsp;', 'simplified-building-energy-model-sbem.html', 'parent', sub5);

}

// ******************** FUNCTIONS CALLED BY THE EFFECTS SECTION ********************

// 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}}
 if (e && this.MS && navigator.platform.indexOf('Mac')>-1 && e.tagName=='A')
 {
  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};
};




