﻿fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=1;
_subOffsetLeft=-1;

locationString = new String(window.location);

/* style declaration for mainMenu */
with(mainMenuStyle=new mm_style()){
bordercolor="#B6BABD";
borderstyle="solid";
borderwidth=0;
fontfamily="inherit";
fontsize="100%";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#B6BABD";
offbgcolor="#ffffff";
offcolor="#B6BABD";
padding=0;
pagebgcolor="#ffffff";
pagecolor="#B6BABD";
separatorcolor="#B6BABD";
separatorsize=1;
subimagepadding=2;
rawcss="margin-left: 20px; padding-right: 20px;";
}

/* style declaration for subMenus */
with(subMenuStyle=new mm_style()){
bordercolor="#E5E5E5";
borderstyle="solid";
borderwidth=1;
fontfamily="inherit";
fontsize="100%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#B6BABD";
offbgcolor="#ffffff";
offcolor="#B6BABD";
onbgcolor="#E5E5E5";
oncolor="#ffffff";
padding=4;
pagebgcolor="#FFFFFF";
pagecolor="#B6BABD";
separatorcolor="#999999";
separatorsize=0;
subimage="images/left_menu_arrow.gif";
subimagepadding=4;
rawcss="padding: 2px 30px;";
}

with(milonic=new menuname('Main Menu')){ 
alwaysvisible=1; 
orientation='horizontal'; 
style=mainMenuStyle; 
borderwidth=0; 
padding=0; 
position='relative'; 
aI('text=Renault Range;showmenu=Renault Range;url=' + pathToRoot + 'range' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=After Sales;showmenu=After Sales;url=' + pathToRoot + 'services/services' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Discover Renault;showmenu=Discover Renault;url=' + pathToRoot + 'discover/discover' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Renault Range')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=PASSENGER VEHICLES;showmenu=PASSENGER VEHICLES;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=1':'?type=1'));
aI('text=SPORT VEHICLES;showmenu=SPORT VEHICLES;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=3':'?type=3'));
aI('text=COMMERCIAL VEHICLES;showmenu=COMMERCIAL VEHICLES;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=2':'?type=2'));
} 
with(milonic=new menuname('PASSENGER VEHICLES')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=LAGUNA COUPE;url=' + pathToRoot + 'cars/lagunaCC/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=KOLEOS ;url=' + pathToRoot + 'cars/koleos/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=SANDERO ;url=' + pathToRoot + 'cars/sandero/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LOGAN ;url=' + pathToRoot + 'cars/logan/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=FLUENCE ;url=' + pathToRoot + 'cars/fluence/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=NEW SAFRANE ;url=' + pathToRoot + 'cars/newSafrane/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=NEW MEGANE HATCH;url=' + pathToRoot + 'cars/meganehatch/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE COUPE-CABRIOLET;url=' + pathToRoot + 'cars/meganecc/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=NEW KOLEOS ;url=' + pathToRoot + 'cars/newKoleos/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('SPORT VEHICLES')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=CLIO RENAULTSPORT 200;url=' + pathToRoot + 'cars/clioRS/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('COMMERCIAL VEHICLES')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=TRAFIC ;url=' + pathToRoot + 'cars/trafic/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LOGAN PICK-UP;url=' + pathToRoot + 'cars/loganPickup/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LOGAN VAN;url=' + pathToRoot + 'cars/loganVan/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('After Sales')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Customer Services;url=' + pathToRoot + 'services/customer_services' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Merchandise;url=' + pathToRoot + 'services/merchandise' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Accessories;url=' + pathToRoot + 'services/accessories_ae' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Genuine Parts;url=' + pathToRoot + 'services/parts' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Service And Maintenance;url=' + pathToRoot + 'services/maintenance' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Service Center Locations;url=contact/dealers.asp');
} 
with(milonic=new menuname('Discover Renault')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault In Brief;url=' + pathToRoot + 'discover/renault_in_brief' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=History;url=' + pathToRoot + 'discover/history' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Concept Cars;url=' + pathToRoot + 'discover/concept_cars' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Sport Cars;url=http://www.renault-sport.com/en/');
aI('text=Renault F1;url=http://www.renaultf1.com/?lang=en');
aI('text=Quality;url=' + pathToRoot + 'discover/quality' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=RENAULT ECO²;url=' + pathToRoot + 'discover/eco' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Safety;url=' + pathToRoot + 'discover/safety_gcc' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Drive The Change;url=' + pathToRoot + 'discover/drive' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Contact pages')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Contact details;url=' + pathToRoot + 'contact/contact_us_info' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Contact form;url=' + pathToRoot + 'contact/contactform' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Book a test drive;url=' + pathToRoot + 'contact/testdrive' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Find your dealer;url=' + pathToRoot + 'contact/dealers' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 

