var hBar = new ItemStyle(141, 0, '', 25, 4, '', '#', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(26, 0, '&gt;', -15, 4, '#1a8fcc', '#0e6fa1', 'lowText', 'highText',
 'itemBorder', '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)', '120', 31, hBar); // Centres & floats.

addItem('<a href=/search.asp?newused=0><img src=/images/spacer.gif width=93 height=31 border=0></a>', 'mInventory', 'sm:','hBar',93,0,'',0,0,'/images/navinventory.gif','/images/navinventory_over.gif');
addItem('<a href=/coupons.asp?keywords=specials><img src=/images/spacer.gif width=84 height=31 border=0></a>', 'mSpecials', 'sm:','hBar',84,0,'',0,0,'/images/navspecials.gif','/images/navspecials_over.gif');
addItem('<a href=/calc.asp><img src=/images/spacer.gif width=82 height=31 border=0></a>', 'mFinance', 'sm:','hBar',82,0,'',0,0,'/images/navfinance.gif','/images/navfinance_over.gif');
addItem('<a href=/displayForm.asp?id=5&keywords=parts><img src=/images/spacer.gif width=64 height=31 border=0></a>', 'mParts', 'sm:','hBar',64,0,'',0,0,'/images/navparts.gif','/images/navparts_over.gif');
addItem('<a href=/displayForm.asp?id=8&keywords=service><img src=/images/spacer.gif width=78 height=31 border=0></a>', 'mService', 'sm:','hBar',78,0,'',0,0,'/images/navservice.gif','/images/navservice_over.gif');
addItem('<a href=/displayForm.asp?id=12&keywords=rentacar><img src=/images/spacer.gif width=81 height=31 border=0></a>', '', '','hBar',81,0,'',0,0,'/images/navRentals.gif','/images/navRentals_over.gif');
addItem('<a href=/displayForm.asp?id=13&keywords=bodyshop><img src=/images/spacer.gif width=103 height=31 border=0></a>', '', '','hBar',103,0,'',0,0,'/images/navBodyShop.gif','/images/navBodyShop_over.gif');
addItem('<a href=/displayContent.asp?keywords=aboutus><img src=/images/spacer.gif width=106 height=31 border=0></a>', 'mDealer', 'sm:','hBar',106,0,'',0,0,'/images/navdealer.gif','/images/navdealer_over.gif');
addItem('<a href=/directions.asp><img src=/images/spacer.gif width=156 height=31 border=0></a>', '/directions.asp', '','hBar',156,0,'',0,0,'/images/navDirections.gif','/images/navDirections_over.gif');
addItem('<a href=/default.asp><img src=/images/spacer.gif width=71 height=31 border=0></a>', '/home.asp', '',hBar,71,0,'',0,0,'/images/navhome.gif','/images/navhome_over.gif');

startMenu('mInventory', true, 0, 31, 160, subM);
addItem('new inventory', '/search.asp?NewUsed=0','top');
addItem('pre-owned inventory', '/search.asp?NewUsed=1','top');
addItem('toyota certified program', '/displayContent.asp?keywords=certified', 'top');
addItem('toyota hybrids', '/displayContent.asp?keywords=hybrids', 'top');
//addItem('certified used inventory', '/search.asp?NewUsed=2','top');
//addItem('vehicle comparison', '/compTool', 'top');
addItem('smart quote', '/displayForm.asp?id=10&keywords=smartquote', 'top');
addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', 'top');
//addItem('value your trade', '/iframe.asp?page=BLACKBOOK', 'top');

startMenu('mSpecials', true, 0, 31, 160, subM);
addItem('rebates & incentives', '/iframe.asp?page=INCENTIVES', 'top');
addItem('print ads', '/ads.asp?media=print', 'top');
addItem('radio ads', '/ads.asp?media=radio', 'top');
addItem('tv ads', '/ads.asp?media=video', 'top');
addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', 'top');
addItem('service specials', '/iframe.asp?page=SERVICE', 'top');
addItem('parts specials', '/coupons.asp?type=p&keywords=specials', 'top');
//addItem('value your trade', '/iframe.asp?page=BLACKBOOK', 'top');

startMenu('mFinance', true, 0, 31, 170, subM);
addItem('credit application', 'window.open("https://www.xigroup.com/secureforms/finance/privacy.asp?keywords=privacy&surveyID=7&siteid=" + iSiteID + "&siteURL=" + sSiteURL + "&folder=" + FolderName,"finance","width=550,height=600,scrollbars=yes,status=yes,resizable=yes,location=yes")', 'js:');
addItem('second chance credit', 'window.open("https://www.xigroup.com/secureforms/finance/privacy.asp?keywords=privacy&surveyID=11&siteid=" + iSiteID + "&siteURL=" + sSiteURL + "&folder=" + FolderName,"finance","width=550,height=600,scrollbars=yes,status=yes,resizable=yes,location=yes")', 'js:');
addItem('co-signer credit application', '/displayFormTall.asp?id=15', 'top');
addItem('payment calculator', '/calc.asp', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');
//addItem('value your trade', '/iframe.asp?page=BLACKBOOK', 'top');

startMenu('mParts', true, 0, 31, 160, subM);
addItem('parts request', '/displayForm.asp?id=5&keywords=parts', 'top');
addItem('parts news', '/displayMultiple.asp?keywords=partsNews', 'top');
addItem('parts specials', '/coupons.asp?type=p&keywords=specials', 'top');
addItem('accessories', '/displayContent.asp?keywords=accessories', 'top');

startMenu('mService', true, 0, 31, 160, subM);
addItem('make an appointment', '/displayForm.asp?id=8&keywords=service', 'top');
addItem('service news', '/displayMultiple.asp?keywords=serviceNews', 'top');
addItem('maintenance', '/displayContent.asp?keywords=maintenance', 'top');
addItem('service specials', '/iframe.asp?page=SERVICE', 'top');
addItem('emissions', '/displayContent.asp?keywords=emissions', 'top');
addItem('accessories', '/displayContent.asp?keywords=accessories', 'top');

startMenu('mDealer', true, 0, 31, 160, subM);
addItem('meet the staff', '/meetthestaff.asp', 'top');
addItem('dealership news', '/displayMultiple.asp?keywords=news', 'top');
addItem('about us', '/displayContent.asp?keywords=aboutus', 'top');
addItem('contact us', '/displayForm.asp?id=4&keywords=contact', 'top');
addItem('schedule a test drive', '/displayFormShort.asp?id=22', 'top');
addItem('map & directions', '/directions.asp?keywords=directions', 'top');
addItem('calendar', '/calendar.asp?keywords=calendar', 'top');
addItem('careers', '/displayForm.asp?id=20&keywords=careers', 'top');
addItem('business opportunities', '/displayForm.asp?id=19&keywords=BusinessOpportunities', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');
addItem('Middletown Scion', 'window.open("http://middletownscion.com","scion","width=1000,height=700,scrollbars=yes,status=yes,resizable=yes,location=yes")', 'js:');
addItem('auto care q & a', '/displayForm.asp?id=8&keywords=autocareQandA', '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);