var hBar = new ItemStyle(95, 5, '', 25, 4, '', '#', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(26, 0, '&gt;', -15, 4, '#101B61', '#96adbb', 'lowText', 'highText',
 'blueBorder', 'itemBorder', null, null, 'hand', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

startMenu('root', false,'Math.max(0,page.winW()/2 - pMenu.menu.root[0].menuW/2)', '117', 30, hBar); // Centres & floats.

addItem('<a href=http://vehicles.bayshoreford.com><img src=/images/spacer.gif width=76 height=30 border=0 alt="Bayshore Ford"></a>', 'mHome', 'sm:',hBar,76,0,'',0,0,'/images/navHome.gif','/images/navHome_over.gif');
addItem('<img src=/images/spacer.gif width=101 height=30 border=0 alt="Bayshore Ford Inventory">', 'mInventory', 'sm:','hBar',101,0,'',0,0,'/images/navInventory.gif','/images/navInventory_over.gif');
addItem('<img src=/images/spacer.gif width=98 height=30 border=0 alt="Bayshore Ford Special">', 'mSpecials', 'sm:','hBar',98,0,'',0,0,'/images/navSpecials.gif','/images/navSpecials_over.gif');
addItem('<img src=/images/spacer.gif width=93 height=30 border=0 alt="Bayshore Ford Finance">', 'mFinance', 'sm:','hBar',93,0,'',0,0,'/images/navFinance.gif','/images/navFinance_over.gif');
addItem('<img src=/images/spacer.gif width=73 height=30 border=0 alt="Bayshore Ford Parts">', 'mParts', 'sm:','hBar',73,0,'',0,0,'/images/navParts.gif','/images/navParts_over.gif');
//addItem('<a href=/displayContent.asp?keywords=bodyshop><img src=/images/spacer.gif width=104 height=30 border=0></a>', 'mBodyshop', 'sm:','hBar',104,0,'',0,0,'/images/navBodyshop.gif','/images/navBodyshop_over.gif');
addItem('<img src=/images/spacer.gif width=89 height=30 border=0 alt="Bayshore Ford Service">', 'mService', 'sm:','hBar',89,0,'',0,0,'/images/navService.gif','/images/navService_over.gif');
addItem('<img src=/images/spacer.gif width=160 height=30 border=0 alt="Bayshore Rental & Leasing">', '/displayForm.asp?id=13&keywords=rentacar', '',hBar,160,0,'',0,0,'/images/navRental.gif','/images/navRental_over.gif');
addItem('<img src=/images/spacer.gif width=107 height=30 border=0 alt="Bayshore Ford QuickLane">', '/displayContent.asp?keywords=QuickLane', '',hBar,107,0,'',0,0,'/images/navQuicklane.gif','/images/navQuicklane_over.gif');
addItem('<img src=/images/spacer.gif width=117 height=30 border=0 alt="Bayshore Ford Dealership Info">', 'mDealer', 'sm:','hBar',117,0,'',0,0,'/images/navDealer.gif','/images/navDealer_over.gif');
//addItem('<a href=/meetthestaff.asp><img src=/images/spacer.gif width=143 height=30 border=0></a>', 'mStaff', 'sm:',hBar,143,0,'',0,0,'/images/navStaff.gif','/images/navStaff_over.gif');
//addItem('<a href=/default.asp><img src=/images/spacer.gif width=74 height=30 border=0></a>', '/default.asp', '',hBar,74,0,'',0,0,'/images/navHome.gif','/images/navHome_over.gif');


startMenu('mHome', true, 0, 30, 220, subM);
addItem('Light Trucks & Cars - New & Used', '/results.asp?NewUsed=3','top');
addItem('Commercial Trucks - New & Used', '/results.asp?NewUsed=3','top');
 
startMenu('mInventory', true, 0, 30, 160, subM);
addItem('new inventory', '/results.asp?NewUsed=0','top');
addItem('used inventory', '/results.asp?newused=1','top');
//addItem('certified inventory', '/search.asp?NewUsed=2','top');
//addItem('new vehicle comparison', 'window.open("http://comparisons.advantastar.com/start.php?r=288")', 'js:');
//addItem('used vehicle comparison', 'window.open("http://classicauto.advantastar.com/start_pe.php?r=571")', 'js:');
//addItem('vehicle research center', '/vrc.asp', 'top');
addItem('quick quote', '/displayForm.asp?id=10&keywords=quickquote', 'top');
//addItem('toyota showroom', '/showroom.asp', 'top');
//addItem('chevrolet.com', 'window.open("http://www.chevrolet.com")', 'js:');
//addItem('cadillac.com', 'window.open("http://www.cadillac.com")', 'js:');
addItem('rebates & incentives', '/displayMultiple.asp?keywords=incentives', 'top');
//addItem('value your trade', 'window.open("/blackbook.asp?page=BLACKBOOK")', 'js:');
with(addItem('vehicle specials', 'mVehicleSpecials0', 'sm:'));
startMenu('mVehicleSpecials0', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/coupons.asp?type=v&keywords=DEVehicleSpecials', 'top');
addItem('Pennsville, NJ', '/coupons.asp?type=v&keywords=vehiclespecials', 'top');

startMenu('mSpecials', true, 0, 30, 160, subM);
//addItem('print ads', '/ads.asp?media=print', 'top');
//addItem('radio ads', '/ads.asp?media=radio', 'top');
//addItem('tv ads', '/ads.asp?media=video', 'top');
with(addItem('vehicle specials', 'mVehicleSpecials1', 'sm:'));
with(addItem('service specials', 'mServiceSpecials1', 'sm:'));
with(addItem('parts specials', 'mPartsSpecials1', 'sm:'));
//addItem('value your trade', 'window.open("/blackbook.asp?page=BLACKBOOK")', 'js:');

startMenu('mVehicleSpecials1', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/coupons.asp?type=v&keywords=DEVehicleSpecials', 'top');
addItem('Pennsville, NJ', '/coupons.asp?type=v&keywords=vehiclespecials', 'top');
startMenu('mPartsSpecials1', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/coupons.asp?type=e&keywords=departsspecials', 'top');
addItem('Pennsville, NJ', '/coupons.asp?type=p&keywords=partsspecials', 'top');
startMenu('mServiceSpecials1', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/coupons.asp?type=d&keywords=deservicespecials', 'top');
addItem('Pennsville, NJ', '/coupons.asp?type=s&keywords=servicespecials', 'top');

startMenu('mFinance', true, 0, 30, 260, subM);
addItem('Credit Application Bayshore Truck Sales', '/displayContent.asp?keywords=financePrivacy', 'top');
addItem('Credit Application Bayshore Pennsville', '/displayContent.asp?keywords=pennsvillePrivacy', 'top');
//addItem('second chance credit', 'window.open("http://www.xigroup.com/secureforms/ToyotaOfBowie/privacy.asp?formtype=Second%20Chance%20Financing&siteid=" + iSiteID + "&siteURL=" + sSiteURL,"finance","width=550,height=600,scrollbars=yes,status=yes,resizable=yes,location=yes")', 'js:');
addItem('payment calculator', '/calc.asp', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');
//addItem('value your trade', 'window.open("/blackbook.asp?page=BLACKBOOK")', 'js:');

startMenu('mParts', true, 0, 30, 160, subM);
with(addItem('Parts Home Page', 'mPartsHome', 'sm:'));
//addItem('parts request', '/displayForm.asp?id=5&keywords=parts', 'top');
with(addItem('accessories', 'mAccessories', 'sm:'));
//addItem('parts news', '/displayMultiple.asp?keywords=partsNews', 'top');
with(addItem('parts specials', 'mPartsSpecials2', 'sm:'));

startMenu('mPartsHome', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/displayForm.asp?id=17&keywords=departs', 'top');
addItem('Pennsville, NJ', '/displayForm.asp?id=16&keywords=parts', 'top');

startMenu('mAccessories', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/displayContent.asp?keywords=deaccessoriesinfo', 'top');
addItem('Pennsville, NJ', '/displayContent.asp?keywords=accessoriesinfo', 'top');

startMenu('mPartsSpecials2', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/coupons.asp?type=e&keywords=departsspecials', 'top');
addItem('Pennsville, NJ', '/coupons.asp?type=p&keywords=partsspecials', 'top');

startMenu('mService', true, 0, 30, 160, subM);
with(addItem('make an appointment', 'mAppointment', 'sm:'));
with(addItem('maintenance', 'mMaintenance', 'sm:'));
//addItem('service news', '/displayMultiple.asp?keywords=serviceNews', 'top');
//addItem('quicklane', '/displayContent.asp?keywords=QuickLane', 'top');
with(addItem('body shop', 'mBodyShop', 'sm:'));
//addItem('rental cars', '/displayContent.asp?keywords=rentacar', 'top');
with(addItem('service specials', 'mServiceSpecials2', 'sm:'));

startMenu('mAppointment', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/displayForm.asp?id=8&keywords=deservice', 'top');
addItem('Pennsville, NJ', '/displayForm.asp?id=15&keywords=service', 'top');

startMenu('mMaintenance', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/displayContent.asp?keywords=demaintenance', 'top');
addItem('Pennsville, NJ', '/displayContent.asp?keywords=maintenance', 'top');

startMenu('mBodyShop', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/displayContent.asp?keywords=DEbodyshop', 'top');
addItem('Pennsville, NJ', '/displayContent.asp?keywords=bodyshop', 'top');

startMenu('mServiceSpecials2', true, 160, 0, 200, subM);
addItem('New Castle, DE', '/coupons.asp?type=d&keywords=deservicespecials', 'top');
addItem('Pennsville, NJ', '/coupons.asp?type=s&keywords=servicespecials', 'top');


 
startMenu('mDealer', true, 0, 30, 140, subM);
addItem('directory / hours', '/displayContent.asp?keywords=ContactInfo', 'top');
addItem('directions', '/directions.asp', 'top');
addItem('send us a comment', '/displayForm.asp?id=4&keywords=contact', 'top');
//addItem('meet the staff', '/meetthestaff.asp', 'top');
addItem('careers', '/displayMultiple.asp?keywords=careers', 'top');
addItem('about us', '/displayContent.asp?keywords=aboutus', 'top');
//addItem('calendar', '/calendar.asp?keywords=calendar', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');


}

function IE55SelectBoxFix(menuObj) { with (menuObj)
{
 if (window.createPopup) for (var mN in menu) with (menu[mN][0])
 {
  extraHTML += '<iframe src="about:blank" style="position: absolute; left: 0px; top: 0px; width: ' +
   menuW + 'px; height: ' + menuH + 'px; z-index: 0; border: none; ' +
   'filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"></iframe>';
 }
}};
IE55SelectBoxFix(pMenu);
