// this is the bar colour - first color is base color second is mouseover

var hBar = new ItemStyle(200, 0, '', 0, 0, '#740A04;', '#740A04;', 'highText', 'highText', '', '', null, null, 'hand', 'default');

// 6E8B3D olive green - nice
//8B5A2B tan
// 8B8682 silver
// SeaGreen 6E8B3D - ok
// DarkOliveGreen 556B2F

//3E73FE

// var hOMmenu = new ItemStyle(40, 10, '', 0, 0, '15#6E8B3D', '10#6E8B3D', 'highText', 'highText', '', '', null, null, 'hand', 'default');

var hOMmenu = new ItemStyle(40, 10, '', 0, 0, '#6E8B3D', '#8B8682', 'highText', 'highText', '', '', null, null, 'hand', 'default');

var hBar_old = new ItemStyle(40, 10, '', 0, 0, '15#6E8B3D', '10#6E8B3D', 'highText', 'highText', '', '',

 null, null, 'hand', 'default');


var subM = new ItemStyle(22, 0, '&gt;', -15, 3, '#3E73FE', '#3E73FE', 'lowText', 'highText',

 'itemBorder', 'itemBorder', 80, 50, 'hand', 'default');

// var subPM = new ItemStyle(450, 0, '&gt;', -15, 3, '#740A04', '#740A04', 'noText', 'noText', 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');


 var subPM = new ItemStyle(450, 0, '&gt;', -15, 3, '#000000', '#000000', 'noText', 'noText', 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');


 var subPMl = new ItemStyle(260, 0, '&gt;', -15, 10, '#000000', '#000000', 'noText', 'noText', 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');


 var subPMw = new ItemStyle(340, 0, '&gt;', -15, 10, '#000000', '#000000', 'noText', 'noText', 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');






var subW = new ItemStyle(22, 0, '&gt;', -15, 3, '#556B2F', '#6E8B3D', 'lowText', 'highText',

 'itemBorder', 'itemBorder', null, 90, 'hand', 'default');



var subOM = new ItemStyle(22, 0, '&gt;', -15, 3, '#FFFFFF', '#740A04', 'lowText', 'highText', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');

//var subOM = new ItemStyle(22, 0, '&gt;', -15, 3, '#9BA6FE', '#0C5AFE', 'lowText', 'highText', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');


var subOM2 = new ItemStyle(22, 0, '&gt;', -15, 3, '#000000', '#000000', 'noText', 'noText',

 'itemNoBorder', 'itemNoBorder', null, null, 'hand', 'default');


var subBlank = new ItemStyle(22, 1, '&gt;', -15, 3, '#556B2F', '#6E8B3D', 'lowText', 'highText',

 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');



var button = new ItemStyle(22, 1, '&gt;', -15, 2, '10#8B8682', '10#8B8682', 'buttonText', 'buttonHover',

 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');




var pMenu = new PopupMenu('pMenu');

with (pMenu)

{



startMenu('root', false, 0, 270, 17, hBar, '', false);

//addItem('&nbsp;', '', 'sm:', null, 100);
addItem('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Home', 'window.open("http://www.braddicksfurnishers.co.uk/index.html","_self")', 'js:', null, 100);
addItem('&nbsp; Specials', 'mSpecial', 'sm:', null, 100);
addItem('&nbsp; Suites', 'mWelcome', 'sm:', null, 100);
addItem('&nbsp; Carpets', 'mCarpets', 'sm:', null, 100);
addItem('&nbsp; Furniture', 'mFurn', 'sm:', null, 100);
addItem('&nbsp;&nbsp; Beds', 'mBeds', 'sm:', null, 100);
addItem('Curtains', 'mCurtains', 'sm:', null, 100);
addItem('&nbsp; Location', 'mLocation', 'sm:', null, 100);


var subBBs = new ItemStyle(100, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText', 'itemNoBorder', 'itemNoBorder', null,null, 'hand','default');

startMenu('mSpecial', true, 0, 25, 300, subBBs, '', false);
addItem('<div align="left" class="ad5" id="ad5">We have a large range of discounted items. Take a look at our current offers. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><b>Click here for our current special offers</b></div>', 'window.open("http://www.braddicksfurnishers.co.uk/specials.html")', 'js:', null, 100);


startMenu('mCurtains', true, 0, 25, 180, subOM, '', false);
addItem('<b>Curtains</b>', 'mCurtdesc', 'sm:');

startMenu('mWelcome', true, 0, 25, 180, subOM, '', false);

addItem('<b>Suites</b>', 'mSuites', 'sm:');
addItem('Sherborne', 'mSherborne', 'sm:');
addItem('Celebrity', 'mCelebrity', 'sm:');
addItem('Buoyant', 'mBouyant', 'sm:');
addItem('Kevin France', 'mKevin', 'sm:');
addItem('Alstons', 'mAlstons', 'sm:');


startMenu('mCarpets', true, 0, 25, 180, subOM, '', false);

addItem('<b>Carpets</b>', 'mCarpet', 'sm:');
addItem('Cormar', 'mCormar', 'sm:');
addItem('Axminster', 'mAxminster', 'sm:');
addItem('Alternative Flooring', 'mAlternative', 'sm:');
addItem('John Lanham Watts', 'mJlwatts', 'sm:');
addItem('<b>Flooring</b>', 'mFlooring', 'sm:');
addItem('Vinyl', 'mVinyl', 'sm:');
addItem('Flotex', 'mFlotex', 'sm:');
addItem('Laminate / Solid Wood', 'mLaminate', 'sm:');
addItem('Karndean', 'mKarndean', 'sm:');
addItem('<b>Rugs</b>', 'mRugdesc', 'sm:');
addItem('Oriental Weavers', 'mOriental', 'sm:');
addItem('Gooch Oriental', 'mGooch', 'sm:');
addItem('Rugs With Flair', 'mRugswithflair', 'sm:');
addItem('Plantation Rugs', 'mPlantation', 'sm:');

startMenu('mFurn', true, 0, 25, 180, subOM, '', false);

addItem('<b>Furniture</b>', 'mFurndesc', 'sm:');
addItem('Morris Furniture', 'mMorris', 'sm:');
addItem('Alstons', 'mAlstons2', 'sm:');
addItem('Sutcliffe Furniture', 'mSutcliffe', 'sm:');
addItem('Ercol', 'mErcol', 'sm:');
addItem('Julian Bowen', 'mJulian', 'sm:');

startMenu('mBeds', true, 0, 25, 180, subOM, '', false);

addItem('<b>Beds & Headboards</b>', 'mBed', 'sm:');
//addItem('', '', '');
//addItem('Silentnight', '', '');
//addItem('Sealy', '', '');
//addItem('Healthbeds', '', '');
//addItem('Harrisons', '', '');
//addItem('Highgate', '', '');
//addItem('Dorlux', '', '');
//addItem('Bentley', '', '');
//addItem('Swanglen', '', '');


// CUrtains MENU

var subBBe = new ItemStyle(100, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mCurtdesc', true, 50, 17, 300, subBBe, '', false);
 addItem('<div align="left" class="ad5" id="ad5">Our Mill Street showroom has a huge selection of fabrics and accessories for all of your curtains and blinds.  We will happily measure and quote free of charge and also offer a fitting service.  </div>', '', '');

// Furniture MENU

var subBB = new ItemStyle(70, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mFurndesc', true, 50, 17, 300, subBB, '', false);
 addItem('<div align="left" class="ad5" id="ad5">We stock a wide range of living, dining and bedroom furniture to suit all tastes.</div>', '', '');



// www.morrisfurniture.co.uk
startMenu('mMorris', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.morrisfurniture.co.uk </div>', 'window.open("http://www.morrisfurniture.co.uk")', 'js:');

// www.alstons.co.uk 
startMenu('mAlstons2', true, 50, 17, 180, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.alstons.co.uk </div>', 'window.open("http://www.alstons.co.uk")', 'js:');

// www.sutcliffegroup.co.uk
startMenu('mSutcliffe', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.sutcliffegroup.co.uk </div>', 'window.open("http://www.sutcliffegroup.co.uk")', 'js:');

// www.ercol.com 
startMenu('mErcol', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.ercol.com </div>', 'window.open("http://www.ercol.com")', 'js:');


// www.julian-bowen.co.uk 
startMenu('mJulian', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.julian-bowen.co.uk </div>', 'window.open("http://www.julian-bowen.co.uk")', 'js:');






// Sherborne MENU

var subBBa = new ItemStyle(100, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mSuites', true, 50, 17, 300, subBBa, '', false);
 addItem('<div align="left" class="ad5" id="ad5">We have an extensive range of fabric and leather suites, recliner chairs, lift and tilt recliners and also sofabeds. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><b>Click here for showroom suites</b></div>', 'window.open("http://www.braddicksfurnishers.co.uk/suites.html","_self")', 'js:', null, 100);





startMenu('mSherborne', true, 50, 17, 180, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.sherborne-uph.co.uk </div>', 'window.open("http://www.sherborne-uph.co.uk")', 'js:'); 

//addItem('details', 'mBioSherborne', 'sm:');

var subTB = new ItemStyle(300, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mBioSherborne', true, 50, 17, 500, subTB, '', false);
 addItem('<div align="left" class="ad5" id="ad5">Add relevant information about Sherbornes here</div>', '', '');


// www.celebrity-furniture.co.uk
startMenu('mCelebrity', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.celebrity-furniture.co.uk </div>', 'window.open("http://www.celebrity-furniture.co.uk")', 'js:');

// www.buoyant-upholstery.co.uk
startMenu('mBouyant', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.buoyant-upholstery.co.uk </div>', 'window.open("http://www.buoyant-upholstery.co.uk")', 'js:');

// www.kevinfrance.co.uk 
startMenu('mKevin', true, 50, 17, 180, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.kevinfrance.co.uk </div>', 'window.open("http://www.kevinfrance.co.uk")', 'js:');

// www.alstons.co.uk 
startMenu('mAlstons', true, 50, 17, 180, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.alstons.co.uk </div>', 'window.open("http://www.alstons.co.uk")', 'js:');



// Carpets MENU

var subBBb = new ItemStyle(150, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mCarpet', true, 50, 17, 300, subBBb, '', false);
 addItem('<div align="left" class="ad5" id="ad5">We specialise in quality 80% wool twist carpets which currently have up to 50% off as well as free fitting on all orders over £175</div>', '', '');

startMenu('mCormar', true, 50, 17, 180, subOM, '', false);
addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.cormarcarpets.co.uk </div>', 'window.open("http://www.cormarcarpets.co.uk ")', 'js:');

startMenu('mAxminster', true, 50, 17, 180, subOM, '', false);
addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.axminster-carpets.co.uk </div>', 'window.open("http://www.axminster-carpets.co.uk ")', 'js:');

startMenu('mJlwatts', true, 50, 17, 180, subOM, '', false);
addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.jlwcarpets.com </div>', 'window.open("http://www.jlwcarpets.com ")', 'js:');

startMenu('mAlternative', true, 50, 17, 180, subOM, '', false);
addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.alternativeflooring.com </div>', 'window.open("http://www.alternativeflooring.com ")', 'js:');


startMenu('mFlooring', true, 50, 17, 300, subBBb, '', false);
 addItem('<div align="left" class="ad5" id="ad5">We have a good selection of 2 and 3 metre vinyl on the roll as well as an excellent range of vinyl to order in which is available up to 4 metre.  At our Mill St shop you will find our displays of laminate and solid wood flooring which we can offer at a fitted price or supply only.  We are also the local stockist for Karndean flooring, also on show at Mill St.</div>', '', '');

// RUG MENU

var subBB = new ItemStyle(150, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

var subBBc = new ItemStyle(70, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mOriental', true, 50, 17, 300, subBBc, '', false);
 addItem('<div align="left" class="ad5" id="ad5">supply Gabbeh, Ruby, Elegance and Tones.</div>', '', '');

startMenu('mGooch', true, 50, 17, 300, subBBc, '', false);
 addItem('<div align="left" class="ad5" id="ad5">supply Lena and Funky.</div>', '', '');

startMenu('mRugdesc', true, 50, 17, 300, subBB, '', false);
 addItem('<div align="left" class="ad5" id="ad5">We are probably the largest rug stockist in North Devon with prices starting from as little as £10.  If you are looking for a specific colour or style that we don’t currently stock we will be happy to order it in for you.</div>', '', '');

// www.rugswithflair.com 
startMenu('mRugswithflair', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.rugswithflair.com  </div>', 'window.open("http://www.rugswithflair.com")', 'js:');

// www.plantationrug.co.uk
startMenu('mPlantation', true, 50, 17, 200, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.plantationrug.co.uk </div>', 'window.open("http://www.plantationrug.co.uk")', 'js:');


// Bed MENU

var subBB = new ItemStyle(250, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mBed', true, 50, 17, 300, subBB, '', false);
 addItem('<div align="left" class="ad5" id="ad5">We offer an excellent selection of divans, bedsteads and headboards with sizes ranging from 2’6 to 6’0. We have over 40 beds on show with knowledgeable staff on hand to help you make your choice.  Our main stockists include : &nbsp;<br><br><li>Silentnight</li><li>Sealy</li><li>Healthbeds</li><li>Harrisons</li><li>Highgate</li><li>Dorlux</li><li>Bentley</li><li>Swanglen</li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><b>Click here for more Beds</b></div>', 'window.open("http://www.braddicksfurnishers.co.uk/bed.html","_self")', 'js:');
 

// Location MENU

var subBB = new ItemStyle(250, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

var subBBe = new ItemStyle(100, 50, '&gt;', -15, 10, '#740A04', '#740A04', 'highText', 'highText',
 'itemNoBorder', 'itemNoBorder', null,null, 'hand', 'default');

startMenu('mLocation', true, 0, 25, 180, subOM, '', false);
addItem('<b>Mill St.</b>', 'mLocation2', 'sm:');
addItem('<b>Clovelly Rd.</b>', 'mLocation3', 'sm:');

startMenu('mLocation2', true, 60, 17, 180, subOM, '', false);
addItem('<b>Click here for Map</b>', 'mLocation2a', 'sm:');

startMenu('mLocation3', true, 60, 17, 180, subOM, '', false);
addItem('<b>Click here for Map</b>', 'mLocation3a', 'sm:');

startMenu('mLocation2a', true, 25, 17, 430, subPM, '', false);
addItem('<iframe width="425" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=28+Mill+St,+Bideford,+Devon+EX39,+UK&amp;sll=53.800651,-4.064941&amp;sspn=11.875381,28.388672&amp;ie=UTF8&amp;ll=51.026713,-4.202957&amp;spn=0.024293,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=28+Mill+St,+Bideford,+Devon+EX39,+UK&amp;sll=53.800651,-4.064941&amp;sspn=11.875381,28.388672&amp;ie=UTF8&amp;ll=51.026713,-4.202957&amp;spn=0.024293,0.036478&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>', '#', 'sm:');

startMenu('mLocation3a', true, 25, 17, 430, subPM, '', false);

addItem('<img src width="427" height="452" border="0" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="map2.jpg"', '#', 'sm:');

//addItem('<iframe width="425" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" //src="http://maps.google.co.uk/maps?//f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Unit+6,+Daddon+Court,+Clovelly+Road+Ind.+Estate,+Bideford//,+//North+Devon+EX39+3FH&amp;sll=51.021287,-//4.207163&amp;sspn=0.012337,0.027723&amp;ie=UTF8&amp;ll=51.016994,-//4.23008&amp;spn=0.024298,0.036478&amp;z=14&amp;output=embed"></iframe><br /><small><a //href="http://maps.google.co.uk/maps?//f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Unit+6,+Daddon+Court,+Clovelly+Road+Ind.+Estate,+Bidefo//rd//,+North+Devon+EX39+3FH&amp;sll=51.021287,-//4.207163&amp;sspn=0.012337,0.027723&amp;ie=UTF8&amp;ll=51.016994,-//4.23008&amp;spn=0.024298,0.036478&amp;z=14" style="color:#0000FF;text-align:left">View Larger //Map</a></small>', '#', 'sm:');


startMenu('mSherborne', true, 50, 17, 180, subOM, '', false);

addItem('<div align="left" class="ad5" id="ad5"> &nbsp; www.sherborne-uph.co.uk </div>', 'window.open("http://www.sherborne-uph.co.uk")', 'js:'); 





 startMenu('mHelp', true, 10, 22, 80, subM, '', false);

 addItem('&nbsp; &nbsp; Contents', '#', '');

 addItem('&nbsp; &nbsp; Search', '#', '');

 addItem('&nbsp; &nbsp; About', 'mAbout', 'sm:', subM, 22, 0, '&lt;', 3);



 startMenu('mReopen', true, 85, 0, 120, button, '', false);

 addItem('Recent Doc 1:<br />Schedule', '#', '', button, 35);

 addItem('Recent Doc 2:<br />Cunning Plan', '#', '', button, 35, 5);

 addItem('Etc. etc...', '#', '', subM);


 startMenu('mAbout', true, -85, -18, 80, subM, '', false);

 addItem('Leftwards!<br>And up!', '#', '', subM, 40);

showDelay = 0;


}


addMenuBorder(pMenu, window.subBlank,

 null, '#000000', 1, '#8B8682', 2);


addDropShadow(pMenu, window.subM,

 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);

addDropShadow(pMenu, window.subBlank,

 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,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)');


}


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};
};


function menuAnim(menuObj, menuName, dir)

{

 var mD = menuObj.menu[menuName][0];


 if (!mD.timer) mD.timer = 0;

 if (!mD.counter) mD.counter = 0;



 with (mD)

 {

  clearTimeout(timer);


  if (!lyr || !lyr.ref) return;

  if (!visNow && dir>0) dir = 0-dir;


  if (dir>0) lyr.vis('visible');


  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;



  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; lyr.sty.zIndex = mD.zIndex }

  else if (counter<0) { counter = 0; lyr.vis('hidden') }

  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);

 }

};


function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)

{


 for (var mN in mObj.menu)

 {

  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';

  if (mR[0].itemSty != iS) continue;

  for (var mI=1; mI<mR.length; mI++)

  {

   mR[mI].iX += bordW+backW;

   mR[mI].iY += bordW+backW;

  }


  mW = mR[0].menuW += 2*(bordW+backW);

  mH = mR[0].menuH += 2*(bordW+backW);



  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+'%; 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)

{


 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];

   var alpha = (s[0]!=null && navigator.userAgent.indexOf('AppleWebKit') == -1);

   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)+'; '+

    (alpha?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+s[0]+'%; 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;

 }

};
