var hBar = new ItemStyle(95, 5, '', 25, 4, '', '#', 'highText', 'highText', '', '',
 null, null, 'hand', 'default');

var subM = new ItemStyle(26, 0, '&gt;', -15, 4, '#6699cc', '#666666', 'lowText', 'highText',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

startMenu('root', false,'window.page.elmPos("home").x', '87', 29, hBar); // Centres & floats.

addItem('<a href=/search.asp?NewUsed=1><img src=/images/spacer.gif width=111 height=30 border=0></a>', 'mInventory', 'sm:','hBar',111,0,'',0,0,'/images/navInventory.gif','/images/navInventory_over.gif');
addItem('<a href=/coupons.asp?keywords=specials><img src=/images/spacer.gif width=96 height=30 border=0></a>', 'mSpecials', 'sm:','hBar',96,0,'',0,0,'/images/navSpecials.gif','/images/navSpecials_over.gif');
addItem('<a href=/calc.asp><img src=/images/spacer.gif width=95 height=30 border=0></a>', 'mFinance', 'sm:','hBar',95,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=73 height=30 border=0></a>', 'mParts', 'sm:','hBar',73,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=86 height=30 border=0></a>', 'mService', 'sm:','hBar',86,0,'',0,0,'/images/navService.gif','/images/navService_over.gif');
addItem('<a href=/displayContent.asp?keywords=aboutus><img src=/images/spacer.gif width=124 height=30 border=0></a>', 'mDealer', 'sm:','hBar',124,0,'',0,0,'/images/navDealer.gif','/images/navDealer_over.gif');
addItem('<a href=/results.asp?selPriceMax=5000><img src=/images/spacer.gif width=145 height=30 border=0></a>', '/results.asp?selPriceMax=5000', '',hBar,145,0,'',0,0,'/images/navBudgetBuy.gif','/images/navBudgetBuy_over.gif');
//addItem('<a href=/directions.asp><img src=/images/spacer.gif width=118 height=30 border=0></a>', '', '',hBar,118,0,'',0,0,'/images/navDirections.gif','/images/navDirections_over.gif');
//addItem('<a href=/displayContent.asp?keywords=certified><img src=/images/spacer.gif width=85 height=30 border=0></a>', '', '',hBar,85,0,'',0,0,'/images/navCertified.gif','/images/navCertified_over.gif');
//addItem('<a href=/Community2.asp><img src=/images/spacer.gif width=176 height=30 border=0></a>', '', '',hBar,176,0,'',0,0,'/images/navCommunity.gif','/images/navCommunity_over.gif');
addItem('<a href=/default.asp><img src=/images/spacer.gif width=76 height=30 border=0></a>', '/default.asp', '',hBar,76,0,'',0,0,'/images/navHome.gif','/images/navHome_over.gif');

startMenu('mInventory', true, 0, 30, 160, subM);
//addItem('new inventory', '/search.asp?NewUsed=0&xmake=Toyota','top');
addItem('pre-owned inventory', '/search.asp?NewUsed=1','top');
//addItem('certified used inventory', '/search.asp?NewUsed=2','top');
//addItem('vehicle comparison', '/compTool', 'top');
//addItem('vehicle research center', '/VRC.asp', 'top');
addItem('quick quote', '/displayForm.asp?id=10&keywords=quickquote', 'top');
//addItem('toyota showroom', '/showroom.asp', 'top');
//addItem('toyota.com', 'window.open("http://www.toyota.com")', 'js:');
addItem('rebates & incentives', '/displayMultiple.asp?keywords=incentives', 'top');
addItem('vehicle specials', '/coupons.asp?type=v&keywords=specials', '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');
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');

startMenu('mFinance', true, 0, 30, 140, subM);
addItem('credit application', 'window.open("https://secureforms2.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://secureforms2.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('payment calculator', '/calc.asp', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');

startMenu('mParts', true, 0, 30, 180, 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');

startMenu('mService', true, 0, 30, 140, subM);
addItem('make an appointment', '/displayForm.asp?id=8&keywords=service', 'top');
addItem('service news', '/displayMultiple.asp?keywords=serviceNews', 'top');
//addItem('body shop', '/displayContent.asp?keywords=bodyshop', 'top');
//addItem('rental cars', '/displayContent.asp?keywords=rentacar', 'top');
addItem('maintenance', '/displayContent.asp?keywords=maintenance', 'top');
addItem('service specials', '/coupons.asp?type=s&keywords=specials', 'top');

startMenu('mDealer', true, 0, 30, 140, subM);
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('map & directions', '/directions.asp', 'top');
//addItem('calendar', '/calendar.asp?keywords=calendar', 'top');
addItem('careers', '/displayMultiple.asp?keywords=careers', 'top');
addItem('privacy statement', '/displayContent.asp?keywords=privacypolicy', 'top');
}

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 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);
