// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function mmLoadMenus() {
	
	var btnColor = '';
	var btnColorRoll = '#333333';
	var txtColor     = '#999999';
	var txtColorRoll = '#ffffff';
	
	
	
	//Inventory
  if (window.mm_menu_0017181934_0) return;
  window.mm_menu_inventory = new Menu("root",120,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,200,-5,10,true,true,true,6,false,false);
  mm_menu_inventory.addMenuItem("New&nbsp;Inventory","location='/inv_new.php?vStatus=1'");
  mm_menu_inventory.addMenuItem("Certified&nbsp;PreOwned","location='/inv.php?vStatus=2&vCertified=1'");
  mm_menu_inventory.addMenuItem("PreOwned","location='/inv.php?vStatus=2'");

  
   mm_menu_inventory.hideOnMouseOut=true;
   mm_menu_inventory.menuBorder=1;
   mm_menu_inventory.menuLiteBgColor='#111111';
   mm_menu_inventory.menuBorderBgColor='#333333';
   mm_menu_inventory.bgColor='';
   
   
     //Home
  window.mm_menu_home = new Menu("root",60,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_home.addMenuItem("English","location='?useLanguage=1'");
  mm_menu_home.addMenuItem("Spanish","location='?useLanguage=2'");
  
   mm_menu_home.hideOnMouseOut=true;
   mm_menu_home.menuBorder=1;
   mm_menu_home.menuLiteBgColor='#111111';
   mm_menu_home.menuBorderBgColor='#333333';
   mm_menu_home.bgColor='';
   
   
   //Specials
  window.mm_menu_specials = new Menu("root",120,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_specials.addMenuItem("Lease","location='/inv_new.php?specials=1&vStatus=1'");
  mm_menu_specials.addMenuItem("Retail","location='/newVehicles/retailSpecials.php'");
  mm_menu_specials.addMenuItem("PreOwned","location='/inv.php?vStatus=2&specials=1'");
  mm_menu_specials.addMenuItem("Current&nbsp;Promotion","location='/preownedVehicles/currentPromotion.php'");
  mm_menu_specials.addMenuItem("Video&nbsp;Specials","location='/newVehicles/videoSpecials.php'");
  
   mm_menu_specials.hideOnMouseOut=true;
   mm_menu_specials.menuBorder=1;
   mm_menu_specials.menuLiteBgColor='#111111';
   mm_menu_specials.menuBorderBgColor='#333333';
   mm_menu_specials.bgColor='';
   
   
   //Finance
  window.mm_menu_finance = new Menu("root",105,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_finance.addMenuItem("Apply&nbsp;Online","location='/newVehicles/preApproved.php'");
  mm_menu_finance.addMenuItem("Special&nbsp;Finance","location='/dealershipInfo/financeSpecial.php'");
  mm_menu_finance.addMenuItem("Privacy&nbsp;Policy","location='/dealershipInfo/privacyStatement.php'");

   mm_menu_finance.hideOnMouseOut=true;
   mm_menu_finance.menuBorder=1;
   mm_menu_finance.menuLiteBgColor='#111111';
   mm_menu_finance.menuBorderBgColor='#333333';
   mm_menu_finance.bgColor='';
   
   
   //Research
  window.mm_menu_research = new Menu("root",134,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_research.addMenuItem("New&nbsp;Car&nbsp;Info","location='/newVehicles/newCarReview.php'");
  mm_menu_research.addMenuItem("Value&nbsp;Your&nbsp;Trade","location='/newVehicles/trade_in_appraisal.php'");
  mm_menu_research.addMenuItem("Payment&nbsp;Calculator","location='/newVehicles/paymentCalc.php'");
  
   mm_menu_research.hideOnMouseOut=true;
   mm_menu_research.menuBorder=1;
   mm_menu_research.menuLiteBgColor='#111111';
   mm_menu_research.menuBorderBgColor='#333333';
   mm_menu_research.bgColor='';
   
   
   //Service
  window.mm_menu_service = new Menu("root",155,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_service.addMenuItem("Schedule&nbsp;Service","location='/services/bookServiceAppointment.php'");
  mm_menu_service.addMenuItem("Internet&nbsp;Service&nbsp;Specials","location='/services/specials.php'");
  mm_menu_service.addMenuItem("Service&nbsp;Information","location='/services/service.php'");
 
   mm_menu_service.hideOnMouseOut=true;
   mm_menu_service.menuBorder=1;
   mm_menu_service.menuLiteBgColor='#111111';
   mm_menu_service.menuBorderBgColor='#333333';
   mm_menu_service.bgColor='';
   
   
   //Parts
   window.mm_menu_parts = new Menu("root",144,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
   mm_menu_parts.addMenuItem("Parts&nbsp;Online&nbsp;Store","location='/services/parts-order.php'");
   mm_menu_parts.addMenuItem("Parts&nbsp;Information","location='/services/partsInfo.php'");
   mm_menu_parts.addMenuItem("Accessories","location='/services/accessories.php'");
   mm_menu_parts.addMenuItem("Internet&nbsp;Parts&nbsp;Specials","location='/services/partsSpecials.php'");
  
    mm_menu_parts.hideOnMouseOut=true;
    mm_menu_parts.menuBorder=1;
    mm_menu_parts.menuLiteBgColor='#111111';
    mm_menu_parts.menuBorderBgColor='#333333';
    mm_menu_parts.bgColor='';
   
   
   //Company
   window.mm_menu_company = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_company.addMenuItem("About&nbsp;Us","location='/dealershipInfo/aboutUs.php'");
  mm_menu_company.addMenuItem("Hours&nbsp;and&nbsp;Location","location='/hours_n_map.php'");
  mm_menu_company.addMenuItem("Our&nbsp;Team","location='/dealershipInfo/staffDirectory.php'");
   mm_menu_company.addMenuItem("Employee&nbsp;of&nbsp;the&nbsp;Month","location='/dealershipInfo/employmentMonth.php'");
  mm_menu_company.addMenuItem("Career&nbsp;Center","location='/dealershipInfo/employment.php'");
  mm_menu_company.addMenuItem("Disclaimer","location='/dealershipInfo/disclaimer.php'");
  mm_menu_company.addMenuItem("Monthly&nbsp;Newsletter","window.open('http://www.imakenews.com/mblongbeach/', '_blank');");
  mm_menu_company.addMenuItem("News&nbsp;and&nbsp;Events","location='/dealershipInfo/news_events.php'");
  
   mm_menu_company.hideOnMouseOut=true;
   mm_menu_company.menuBorder=1;
   mm_menu_company.menuLiteBgColor='#111111';
   mm_menu_company.menuBorderBgColor='#333333';
   mm_menu_company.bgColor='';
    
   
   //Contact
   window.mm_menu_contact = new Menu("root",108,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_contact.addMenuItem("Contact&nbsp;Sales","location='/newVehicles/quickContact.php'");
  mm_menu_contact.addMenuItem("Contact&nbsp;Service","location='/newVehicles/serviceContact.php'");
  mm_menu_contact.addMenuItem("Contact&nbsp;Parts","location='/newVehicles/partsContact.php'");
  mm_menu_contact.addMenuItem("Contact&nbsp;Finance","location='/newVehicles/financeContact.php'");
  
   mm_menu_contact.hideOnMouseOut=true;
   mm_menu_contact.menuBorder=1;
   mm_menu_contact.menuLiteBgColor='#111111';
   mm_menu_contact.menuBorderBgColor='#333333';
   mm_menu_contact.bgColor='';
   
   
     //FAQs
   window.mm_menu_faq = new Menu("root",128,17,"Verdana, Arial, Helvetica, sans-serif",10,txtColor,txtColorRoll,btnColor,btnColorRoll,"left","middle",3,0,500,-5,7,true,true,true,6,false,false);
  mm_menu_faq.addMenuItem("Common&nbsp;Questions","location='/dealershipInfo/faq.php'");
  mm_menu_faq.addMenuItem("What's&nbsp;New","location='/dealershipInfo/whatsNew.php'");
  mm_menu_faq.addMenuItem("Testimonials","location='/dealershipInfo/testimonials.php'");
  mm_menu_faq.addMenuItem("Lease&nbsp;Returns","location='/dealershipInfo/leaseReturns.php'");
  
   mm_menu_faq.hideOnMouseOut=true;
   mm_menu_faq.menuBorder=1;
   mm_menu_faq.menuLiteBgColor='#111111';
   mm_menu_faq.menuBorderBgColor='#333333';
   mm_menu_faq.bgColor='';

  mm_menu_service.writeMenus();
} // mmLoadMenus()
