var Yr = wxsd.split(" ");

// Email addresses
var mto = "mailto:";
var web = "webmaster@cliftonweather.co.uk";

function emailadd(y){
var add = "<a href='" + mto + y + "'>" + y + "</a>";
return add;
}
// counter
var sc_project=612076; 
var sc_partition=4; 
var sc_security="a2c0e6a1"; 
var sc_invisible=0; 

// Cascading Popup Menus v5.2 - Single Frame Menu example script.
var hBar = new ItemStyle(40, 10, '', 0, 0, '15#336699', '10#6699CC', 'highText', 'highText', '', '', null, null, 'hand', 'default');
var vert = new ItemStyle(21, 0, '<img src="http://homepage.ntlworld.com/cliftonweather/images/arrow.gif" width=7 height=11>',-15, 3, '#336699', '#336699', 'highText', 'lowText', 'itemBorder', 'itemBorder', 100, 70, 'hand', 'default');
var subM = new ItemStyle(21, 0, '<img src="http://homepage.ntlworld.com/cliftonweather/images/arrow.gif" width=7 height=11>', -15, 3, '#336699', '#336699', 'highText', 'lowText', 'itemBorder', 'itemBorder', 100, 60, 'hand', 'default');
var subBlank = new ItemStyle(22, 1, '&gt;', -15, 3, '#CCCCDD', '#6699CC', 'lowText', 'highText', 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');
var button = new ItemStyle(22, 1, '&gt;', -15, 2, '10#006633', '10#CC6600', 'buttonText', 'buttonHover', 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

startMenu('root', true, 0, 70, 122, vert);
addItem('Home', 'http://homepage.ntlworld.com/cliftonweather/index.html', '');
addItem('About', 'mAbout', 'sm:');
addItem('Detailed Weather', 'mWx', 'sm:');
addItem('Data Archive', 'mData', 'sm:');
addItem('UK Weather', 'mUk', 'sm:');
addItem('Weather Gallery', 'mGal', 'sm:');
addItem('Hill Walking', 'mHill', 'sm:');
addItem('Links', 'http://homepage.ntlworld.com/cliftonweather/links.html', '');
addItem('Contact', 'mailto:webmaster@cliftonweather.co.uk', '');
addItem('Guest Book', 'mGuest', 'sm:');

startMenu('mAbout', true, 123, 0, 80, subM);
addItem('Station Details', 'http://homepage.ntlworld.com/cliftonweather/wx/stationinfo.html', '');
addItem('Terminology', 'http://homepage.ntlworld.com/cliftonweather/terminology.html', '');

startMenu('mWx', true, 123, 0, 100, subM);
addItem('Live data &nbsp;&nbsp;<font color="Yellow">New</font>', 'http://homepage.ntlworld.com/cliftonweather/live_data.html', '');
addItem('Live wind data', 'http://homepage.ntlworld.com/cliftonweather/wind.html', '');
addItem('Latest', 'http://homepage.ntlworld.com/cliftonweather/wx/current.html', '');
addItem('Last 24 Hours', 'http://homepage.ntlworld.com/cliftonweather/wx/hist.html', '');
addItem('Last 14 Days', 'http://homepage.ntlworld.com/cliftonweather/wx/week.html', '');
addItem('<script>document.write(txtMonth(DAYOFYEAR) + " " + Yr[2].substring(2))</script>', 'http://homepage.ntlworld.com/cliftonweather/wx/month.html', '');
addItem('Records', 'http://homepage.ntlworld.com/cliftonweather/wx/records.html', '');
addItem('Evapotranspiration', 'http://homepage.ntlworld.com/cliftonweather/wx/et.html', '');

startMenu('mData', true, 123, 0, 70, subM);
addItem('Extremes', 'http://homepage.ntlworld.com/cliftonweather/wx/stats.html', '');
addItem('2000', 'm2000', 'sm:');
addItem('2001', 'm2001', 'sm:');
addItem('2002', 'm2002', 'sm:');
addItem('2003', 'm2003', 'sm:');
addItem('2004', 'm2004', 'sm:');
addItem('2005', 'm2005', 'sm:');
addItem('2006', 'm2006', 'sm:');
addItem('2007', 'm2007', 'sm:');
addItem('2008', 'm2008', 'sm:');
addItem('2009', 'm2009', 'sm:');
addItem('Summarys', 'msum', 'sm:');
addItem('Seasons', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/seasons.html', '');
addItem('Raw Data', 'http://homepage.ntlworld.com/cliftonweather/downld02.txt', '');

startMenu('mUk', true, 123, 0, 100, subM);
addItem('Rainfall Radar', 'mRadar', 'sm:');
addItem('Satellite', 'mSatellite', 'sm:');
addItem('Warnings', 'mWarning', 'sm:');

startMenu('mGal', true, 123, 0, 100, subM);
addItem('Cloud Gallery', 'http://homepage.ntlworld.com/cliftonweather/clouds/index.html', '');
addItem('Skycam Archive', 'http://homepage.ntlworld.com/cliftonweather/cam_archive.html', '');
addItem('Lightning Images', 'http://homepage.ntlworld.com/cliftonweather/wx/storm280605.html', '');

startMenu('m2000', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2000-12', '');

startMenu('m2001', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2001-12', '');

startMenu('m2002', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2002-12', '');

startMenu('m2003', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2003-12', '');

startMenu('m2004', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2004-12', '');

startMenu('m2005', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2005-12', '');

startMenu('m2006', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2006-12', '');

startMenu('m2007', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2007-12', '');

startMenu('m2008', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2008-12', '');

startMenu('m2009', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-01', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-02', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-03', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-04', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-05', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-06', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-07', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-08', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-09', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-10', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-11', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/dailydata.html?2009-12', '');

startMenu('msum', true, 71, 0, 70, subM);
addItem('January', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/jan.html', '');
addItem('February', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/feb.html', '');
addItem('March', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/mar.html', '');
addItem('April', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/apr.html', '');
addItem('May', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/may.html', '');
addItem('June', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/jun.html', '');
addItem('July', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/jul.html', '');
addItem('August', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/aug.html', '');
addItem('September', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/sep.html', '');
addItem('October', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/oct.html', '');
addItem('November', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/nov.html', '');
addItem('December', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/dec.html', '');
addItem('Yearly', 'http://homepage.ntlworld.com/cliftonweather/wx/summary/yearly.html', '');

startMenu('mForcasts', true, 81, 0, 80, subM);
addItem('2 Day Outlook', 'http://homepage.ntlworld.com/cliftonweather/2day.html', '');
addItem('3 Day Outlook', 'http://homepage.ntlworld.com/cliftonweather/3day.html', '');
addItem('5 Day Outlook', 'http://homepage.ntlworld.com/cliftonweather/5day.html', '');

startMenu('mRadar', true, 100, 0, 100, subM);
addItem('Europe', 'http://www.meteox.com/h.aspx?jaar=-3&soort=loop3uur', 'top');
addItem('UK', 'http://www.meteox.com/h.aspx?jaar=-3&soort=loop3uur&c=uk', 'top');

startMenu('mSatellite', true, 100, 0, 100, subM);
addItem('UK Visible', 'http://www.sat24.com/frame.php?html=view&country=gb', '');
addItem('Meteosat IR Image', 'http://homepage.ntlworld.com/cliftonweather/meteosat.html', '');

startMenu('mWarning', true, 100, 0, 100, subM);
addItem('Flood Warnings', 'http://www.environment-agency.gov.uk/subjects/flood/floodwarning/FL1SL', 'top');
addItem('Met Office', 'http://www.met-office.gov.uk/weather/europe/uk/warnings.html', 'top');

startMenu('mHill', true, 123, 0, 80, subM);
addItem('England', 'mEng', 'sm:');
addItem('Scotland', 'mSco', 'sm:');
addItem('Wales', 'mWal', 'sm:');

startMenu('mEng', true, 81, 0, 100, subM);
addItem('Lake District', 'mLakes', 'sm:');
addItem('Peak District', 'mPeak', 'sm:');
addItem('Yorkshire Dales', 'mDales', 'sm:');
addItem('Miscellaneous', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwmisc.html', '');

startMenu('mSco', true, 81, 0, 120, subM);
addItem('Aonoch Beag &nbsp;&nbsp;<font color="Yellow">New</font>', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwaonachs.html', '');
addItem('Ben Nevis', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwnevispics.html', '');
addItem('Ben Nevis 2 &nbsp;&nbsp;<font color="Yellow">New</font>', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwnevis2.html', '');
addItem('Buachaille Etive Mor', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwbuachaillepics.html', '');
addItem('Cairngorm', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/cairngorm.html', '');
addItem('Chno Dearg &nbsp;&nbsp;<font color="Yellow">New</font>', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwchnodearg.html', '');
addItem('Mamores', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwmamorepics.html', '');
addItem('Sgorr Dhearg &nbsp;&nbsp;<font color="Yellow">New</font>', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwsgorrdhearg.html', '');
addItem('Miscellaneous', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/scotland/hwmiscpics.html', '');

startMenu('mWal', true, 81, 0, 90, subM);
addItem('Moel Siabod', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/wales/moelsiabod.html', '');

startMenu('mGuest', true, 123, 0, 98, subM);
addItem('View', 'http://htmlgear.tripod.com/guest/control.guest?u=cliftonweatherbeds&i=1&a=view', '');
addItem('<img src="http://htmlgear.lycos.com/img/guest/gb_circuit.gif" border=0 alt="">', 'http://htmlgear.lycos.com/specs/guest.html', '', subM, 40);
addItem('Sign Guestbook', 'http://htmlgear.tripod.com/guest/control.guest?u=cliftonweatherbeds&i=1&a=sign', '');

startMenu('mLakes', true, 101, 0, 150, subM);
addItem('Blencathra', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwblencathra.html', '');
addItem('Coniston Old Man', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwoldman.html', '');
addItem('Crinkle Crags & Bowfell', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwbowfell.html', '');
addItem('Fairfield', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwfairfield.html', '');
addItem('Great Gable', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwgreatgable.html', '');
addItem('Hallin Fell', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwhallin.html', '');
addItem('Hay Stacks', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwhaystack.html', '');
addItem('Helvellyn', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwhelvellyn.html', '');
addItem('Langdale Pikes', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwlangdale.html', '');
addItem('Pillar', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwpillar.html', '');
addItem('Scafell Pike', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwscafellppics.html', '');
addItem('Skiddaw', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwskiddawpics.html', '');

startMenu('mPeak', true, 101, 0, 150, subM);
addItem('Froggatt Edge', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwbaslow.html', '');
addItem('Kinder Downfall', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwkinder.html', '');
addItem('Stanage Edge', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hwstanage.html', '');

startMenu('mDales', true, 101, 0, 150, subM);
addItem('3 Peaks &nbsp;&nbsp;<font color="Yellow">New</font>', 'http://homepage.ntlworld.com/cliftonweather/hillwalking/england/hw3peaks.html', '');

}

addMenuBorder(pMenu, window.subBlank,
 null, '#666666', 1, '#CCCCDD', 2);

addDropShadow(pMenu, window.subM,
 [40,"#333333",3,3,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)');

}

// 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 while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
}

// Animation:

function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  // Stop any existing animation.
  clearTimeout(timer);

  // If the layer doesn't exist (cross-frame navigation) quit.
  if (!lyr || !lyr.ref) return;
  // This next line is not strictly necessary, but it stops the one-in-a-hundred menu that
  // shows and doesn't hide on very quick mouseovers.
  if (!visNow && dir>0) dir = 0-dir;
  // Show the menu if that's what we're doing.
  if (dir>0) lyr.vis('visible');
  // Also raise showing layers above hiding ones.
  lyr.sty.zIndex = 1001 + dir;

  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;
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout(menuObj.myName+'.'+(dir>0?'show':'hide')+'Menu("'+menuName+'")', 40);
 }
}

function menuFilterShow(menuObj, menuName, filterName)
{
 var mD = menuObj.menu[menuName][0];
 with (mD.lyr)
 {
  sty.filter = filterName;
  var f = ref.filter, doF = (f&&f.length&&f[0]);
  if (doF) f[0].Apply();
  vis('visible');
  if (doF) f[0].Play();
 }
}

function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 // Loop through the menu array of that object, finding matching ItemStyles.
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  // Loop through the items in that menu, move them down and to the right a bit.
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  // Extend the total dimensions of menu accordingly.
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);

  // Set the menu's extra content string with divs/layers underneath the items.
  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+(alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
}

function addDropShadow(mObj, iS)
{
 // dropshadow layers (from arrays) and extending the menu dimensions to suit.
 for (var mN in mObj.menu)
 {
  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;
  if (mD.itemSty != iS) continue;
  for (var shad=2; shad<a.length; shad++)
  {
   var s = a[shad];
   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+
    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';
   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+
    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; z-index:'+
    (a.length-shad)+'; '+(s[0]!=null?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+(s[0]/100):'')+
    '"></div>';
   addW=Math.max(addW, s[2]+s[4]);
   addH=Math.max(addH, s[3]+s[5]);
  }
  mD.menuW+=addW; mD.menuH+=addH;
 }
}
