// Cascading Popup Menus v5.2 - Single Frame Menu example script.


var hBar = new ItemStyle(100, 4, '', 0, 0, '', '', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hFra = new ItemStyle(30, 12, '', 0, 0, 'images/link_francais.gif', 'images/link_francais.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hLog = new ItemStyle(232, 12, '', 0, 0, 'images/allons_logo200.gif', 'images/allons_logo200.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hAbo = new ItemStyle(30, 0, '', 0, 0, 'images/link_about_us.gif', 'images/link_about_us.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hRel = new ItemStyle(30, 0, '', 0, 0, 'images/link_relax.gif', 'images/link_relax.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hPer = new ItemStyle(30, 0, '', 0, 0, 'images/link_performance.gif', 'images/link_performance.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hSki = new ItemStyle(30, 0, '', 0, 0, 'images/link_ski_board.gif', 'images/link_ski_board.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hAcc = new ItemStyle(30, 0, '', 0, 0, 'images/link_accom.gif', 'images/link_accom.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hBoo = new ItemStyle(30, 0, '', 0, 0, 'images/link_booking.gif', 'images/link_booking.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hFin = new ItemStyle(30, 0, '', 0, 0, 'images/link_find_us.gif', 'images/link_find_us.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hCon = new ItemStyle(66, 0, '', 0, 0, 'images/contact.gif', 'images/contact.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hHom = new ItemStyle(30, 0, '', 0, 0, 'images/link_homepage.gif', 'images/link_homepage.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hNic = new ItemStyle(30, 8, '', 0, 0, 'images/link_nick_penfold.gif', 'images/link_nick_penfold.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hPr2 = new ItemStyle(30, 0, '', 0, 0, 'images/link_pricesM.gif', 'images/link_pricesM.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hPay = new ItemStyle(30, 0, '', 0, 0, 'images/link_payment.gif', 'images/link_payment.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hLin = new ItemStyle(30, 0, '', 0, 0, 'images/link_links.gif', 'images/link_links.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hGal = new ItemStyle(30, 0, '', 0, 0, 'images/link_gallery.gif', 'images/link_gallery.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');
var hGue = new ItemStyle(30, 0, '', 0, 0, 'images/link_guest_book.gif', 'images/link_guest_book.gif', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(26, 0, '&gt;', -15, 3, '#FFFFFF', '#FFFFFF', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var subN = new ItemStyle(22, 4, '&gt;', -15, 3, '#FFFFFF', '#FFFFFF', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var subO = new ItemStyle(44, 0, '&gt;', -15, 3, '#FFFFFF', '#FFFFFF', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var subP = new ItemStyle(22, 0, '&gt;', -15, 3, '#E0E0E0', '#E0E0E0', 'lowText', 'highText',
 'itemBorderBlank', 'itemBorderBlank', null, null, 'hand', 'default');
var subQ = new ItemStyle(36, 0, '&gt;', -15, 3, '#E0E0E0', '#E0E0E0', 'lowText', 'highText',
 'itemBorderBlank', 'itemBorderBlank', null, null, 'hand', 'default');
var subR = new ItemStyle(22, 0, '&gt;', -15, 3, '#C5C5C5', '#C5C5C5', 'lowText', 'highText',
 'itemBorderBlank2', 'itemBorderBlank2', null, null, 'hand', 'default');
var subS = new ItemStyle(36, 0, '&gt;', -15, 3, '#C5C5C5', '#C5C5C5', 'lowText', 'highText',
 'itemBorderBlank2', 'itemBorderBlank2', null, null, 'hand', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

startMenu('root', true, 'window.page.elmPos("home").x', 'window.page.elmPos("home").y + 2', 200, subM, '', false);
addItem('&nbsp;', '', '', hRel);
addItem('Things to do<br>and Places to go', 'things_to_do.htm', 'parent', subO);
addItem('Walking', 'walking.htm', 'parent');
addItem('Bike Hire', 'bike_hire.htm', 'parent');
addItem('Additional Activities', 'additional_activities.htm', 'parent');
addItem('Prices', 'prices.htm', 'parent');addItem('&nbsp;', 'mPer', 'sm:', hPer);
addItem('&nbsp;', 'mSki', 'sm:', hSki);
addItem('&nbsp;', 'accommodation.htm', 'parent', hAcc);
addItem('&nbsp;', 'prices.htm', 'parent', hPr2);
addItem('&nbsp;', 'form_enquiry.htm', 'parent', hBoo);
addItem('&nbsp;', 'paypal.htm', 'parent', hPay);
addItem('&nbsp;', 'how_to_find.htm', 'parent', hFin);
addItem('&nbsp;', 'index.html', 'parent', hHom);
addItem('&nbsp;', 'links.htm', 'parent', hLin);
addItem('&nbsp;', 'photo_gallery.htm', 'parent', hGal);
addItem('&nbsp;', 'guest_book.htm', 'parent', hGue);
addItem('&nbsp;', 'francais.htm', 'parent', hFra);
addItem('&nbsp;', '', 'parent', hCon);
addItem('&nbsp;', 'mailto:nick.penfold@ntlworld.com', 'parent', hNic);

startMenu('mRel', true, 2, 28, 196, subM, '', true);
addItem('Things to do<br>and Places to go', 'things_to_do.htm', 'parent', subO);
addItem('Walking', 'walking.htm', 'parent');
addItem('Bike Hire', 'bike_hire.htm', 'parent');
addItem('Additional Activities', 'additional_activities.htm', 'parent');
addItem('Prices', 'prices.htm', 'parent');

startMenu('mPer', true, 2, 28, 196, subM, '', true);
addItem('Cycling Holidays', 'cycling_holidays.htm', 'parent');
addItem('Where to Ride', 'where_to_ride.htm', 'parent');
addItem('Mountain Biking', 'mountain_biking.htm', 'parent');
addItem('Cycle Training Weeks', 'training_week.htm', 'parent');
addItem('Bike Hire', 'bike_hire.htm', 'parent');
addItem('Tour de France', 'tour_de_france.htm', 'parent');
addItem('Allons-y Challenge', 'challenge.htm', 'parent');
addItem('Triathlon: Swim', 'swim.htm', 'parent');
addItem('Triathlon: Run', 'run.htm', 'parent');
addItem('Prices', 'prices_cycle.htm', 'parent');

startMenu('mSki', true, 2, 28, 196, subM, '', true);
addItem('Ski Resorts', 'ski_resorts.htm', 'parent');
addItem('Cross-Country Resorts', 'cross_country.htm', 'parent');
addItem('Ski Apartment/ Packages', 'ski_apartment.htm', 'parent');

}





// CREATE ANOTHER MENU OBJECT here if you want multiple menus on a page, or you can just
// duplicate this entire file and rename 'pMenu' to something else.
// Every menu object MUST have a menu named 'root' in it, as that's always visible.

//var anotherMenu = new PopupMenu('anotherMenu');
//with (anotherMenu)
//{
// startMenu('root', .....);
// ... make menus here ...
//}

// ******************** 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};
};




