var hBar = new ItemStyle(90, 55, '', 55, 4, '', '#', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(22, 0, '&gt;', -15, 4, '#E29E29', '#F3CB51', '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)', '7', 9, hBar); // Centres & floats.
addItem('<a href=/default.asp><img src=/media/images/spacer.gif width=39 height=9 border=0></a>', '/default.asp', '',hBar,39,30,'',0,0,'/media/images/nav_home.gif','/media/images/nav_home_over.gif');
addItem('<a href=/search.asp?newused=0><img src=/media/images/spacer.gif width=78 height=9 border=0></a>', 'mInventory', 'sm:','hBar',78,30,'',0,0,'/media/images/nav_inventory.gif','/media/images/nav_inventory_over.gif');
addItem('<a href=/calc.asp><img src=/media/images/spacer.gif width=61 height=9 border=0></a>', 'mFinance', 'sm:','hBar',61,30,'',0,0,'/media/images/nav_finance.gif','/media/images/nav_finance_over.gif');
addItem('<a href=/displayForm.asp?id=5&keywords=parts><img src=/media/images/spacer.gif width=41 height=9 border=0></a>', 'mParts', 'sm:','hBar',41,30,'',0,0,'/media/images/nav_parts.gif','/media/images/nav_parts_over.gif');
addItem('<a href=/displayForm.asp?id=8&keywords=service><img src=/media/images/spacer.gif width=55 height=9 border=0></a>', 'mService', 'sm:','hBar',55,30,'',0,0,'/media/images/nav_service.gif','/media/images/nav_service_over.gif');
addItem('<a href=/displayContent.asp?keywords=aboutus><img src=/media/images/spacer.gif width=90 height=9 border=0></a>', 'mDealer', 'sm:','hBar',90,30,'',0,0,'/media/images/nav_dealer.gif','/media/images/nav_dealer_over.gif');
addItem('<a href=/coupons.asp><img src=/media/images/spacer.gif width=64 height=9 border=0></a>', 'mSpecials', 'sm:','hBar',64,30,'',0,0,'/media/images/nav_specials.gif','/media/images/nav_specials_over.gif');
addItem('<a href=http://johnphilsscion.com target=blank><img src=/media/images/spacer.gif width=145 height=9 border=0></a>', 'http://johnphilsscion.com target=blank', '',hBar,145,30,'',0,0,'/media/images/nav_scion.gif','/media/images/nav_scion_over.gif');

startMenu('mInventory', true, 0, 17, 140, subM);
addItem('new inventory', '/search.asp?NewUsed=0','top');
addItem('pre-owned inventory', '/search.asp?NewUsed=1', 'top');
addItem('certified inventory', '/results.asp?newused=1&getCert=1', 'top');
addItem('what is certified?', '/displayContent.asp?keywords=certified', 'top');
addItem('quick quote', '/displayForm.asp?id=10&keywords=quickquote', 'top');
addItem('toyota showroom', '/showroom.asp', 'top');
//addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', 'top');
addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', 'top');

startMenu('mFinance', true, 0, 17, 140, subM);
addItem('credit application', 'window.open("https://www.xigroup.com/secureforms/finance/displayForm.asp?id=7&siteid=" + iSiteID + "&siteURL=" + sSiteURL + "&folder=" + FolderName,"finance","width=550,height=600,scrollbars=yes,location=yes,status=yes")', 'js:');
addItem('second chance credit', 'window.open("https://www.xigroup.com/secureforms/finance/displayForm.asp?id=11&siteid=" + iSiteID + "&siteURL=" + sSiteURL + "&folder=" + FolderName,"finance","width=550,height=600,scrollbars=yes,status=yes,location=yes")', 'js:');
addItem('credit calculator', '/calc.asp', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');

startMenu('mParts', true, 0, 17, 140, subM);
addItem('parts request', '/displayForm.asp?id=5&keywords=parts', 'top');
addItem('parts specials', '/coupons.asp?type=p&keywords=specials', 'top');

startMenu('mService', true, 0, 17, 140, subM);
addItem('make an appointment', '/displayForm.asp?id=8&keywords=service', 'top');
addItem('maintenance', '/displayContent.asp?keywords=maintenance', 'top');
//addItem('body shop', '/displayContent.asp?keywords=bodyshop', 'top');
addItem('service specials', '/coupons.asp?type=s&keywords=specials', 'top');

startMenu('mDealer', true, 0, 17, 140, subM);
addItem('about us', '/displayContent.asp?keywords=aboutus', 'top');
addItem('meet the staff', '/meetthestaff.asp', 'top');
addItem('contact us', '/displayForm.asp?id=4&keywords=contact', 'top');
addItem('directions', '/directions.asp?keywords=directions', 'top');
addItem('careers', '/displayMultiple.asp?keywords=careers', 'top');

startMenu('mSpecials', true, 0, 17, 140, subM);
addItem('rebates/incentives', '/displayMultiple.asp?keywords=incentives', 'top');
addItem('print ads', '/ads.asp?media=print', 'top');
addItem('radio ads', '/ads.asp?media=radio', 'top');
//addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', 'top');
addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', 'top');
addItem('service specials', '/coupons.asp?type=s&keywords=specials', 'top');
addItem('parts specials', '/coupons.asp?type=p&keywords=specials', 'top');
}
