var subM = new ItemStyle(162, 2, '', -15, 3, 'images/topmenu_back.gif', 'images/topmenu_backh.gif', 'highText', 'highText',
 '', '', null, null, 'hand', 'default');
var subR2 = new ItemStyle(320, 2, '', -15, 3, 'images/tickbar2res.gif', 'images/tickbar2res.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 sub1 = new ItemStyle(35, 0, '', -15, 0, 'images/drop_EPCsale.gif', 'images/drop_EPCsaleh.gif', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var sub2 = new ItemStyle(35, 0, '', -15, 0, 'images/drop_EPCrental.gif', 'images/drop_EPCrentalh.gif', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var sub3 = new ItemStyle(35, 0, '', -15, 0, 'images/drop_HIP.gif', 'images/drop_HIPh.gif', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var sub6 = new ItemStyle(19, 0, '', -15, 0, 'images/drop_survey.gif', 'images/drop_surveyh.gif', 'lowText', 'lowText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var sub7 = new ItemStyle(19, 0, '', -15, 0, 'images/drop_areas.gif', 'images/drop_areash.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 rMenu = new PopupMenu('rMenu');
with (rMenu)
{
startMenu('root', false, 'window.page.elmPos("res").x', 'window.page.elmPos("res").y', 32, subM, '', false);
addItem('&nbsp;', 'mRes', 'sm:', subR2).onclick='window.location.href="home-information-pack-hip.html"';

startMenu('mRes', true, 157, 30, 164, subN);
addItem('&nbsp;', 'home-information-pack-hip.html', 'parent', sub3);
addItem('&nbsp;', 'HIP-Areas.html', 'parent', sub7);
addItem('&nbsp;', 'energy-performance-certificate-epc.html', 'parent', sub1);
addItem('&nbsp;', 'energy-performance-certificate-rental-epc.html', 'parent', sub2);
addItem('&nbsp;', 'residential-survey.html', 'parent', sub6);

}

// ******************** 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};
};




