﻿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 20px;";
}

/* style declaration for subMenus */
with(subMenuStyle2=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 20px; text-transform:none;";
}

with(milonic=new menuname('Main Menu')){ 
alwaysvisible=1; 
orientation='horizontal'; 
style=mainMenuStyle; 
borderwidth=0; 
padding=0; 
position='relative'; 
aI('text=Renault Cars;showmenu=Renault Cars;url=' + pathToRoot + 'renault-cars/' + (isInEditMode?'?edit=yes':''));
aI('text=Renault Vans;showmenu=Renault Vans;url=' + pathToRoot + 'renault-vans/' + (isInEditMode?'?edit=yes':''));
aI('text=Renault Sport;showmenu=Renault Sport;url=' + pathToRoot + 'renaultsport/' + (isInEditMode?'?edit=yes':''));
aI('text=About Us;showmenu=About Us;url=' + pathToRoot + 'about-us/' + (isInEditMode?'?edit=yes':''));
aI('text=Aftersales;showmenu=Aftersales;url=' + pathToRoot + 'aftersales/' + (isInEditMode?'?edit=yes':''));
aI('text=Offers;showmenu=Offers;url=' + pathToRoot + 'offers/' + (isInEditMode?'?edit=yes':''));
aI('text=Goodies;showmenu=Goodies;url=' + pathToRoot + 'goodies/' + (isInEditMode?'?edit=yes':''));
//aI('text=F1 Team Day Registration;showmenu=F1 Team Day Registration;url=' + pathToRoot + 'renaultsport/f1-team-day/' + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Renault Cars')){ 
overflow='show'; 
style=subMenuStyle2; 
aI('text=KOLEOS ;url=' + pathToRoot + 'renault-cars/Koleos/' + (isInEditMode?'?edit=yes':''));
aI('text=LAGUNA HATCH;url=' + pathToRoot + 'renault-cars/Laguna-Hatch/' + (isInEditMode?'?edit=yes':''));
aI('text=LAGUNA ESTATE;url=' + pathToRoot + 'renault-cars/Laguna-Estate/' + (isInEditMode?'?edit=yes':''));
//aI('text=CLIO RS F1 TEAM R27;url=' + pathToRoot + 'renault-cars/Clio-R27/' + (isInEditMode?'?edit=yes':''));
//aI('text=CLIO RS 197;url=' + pathToRoot + 'renault-cars/Clio-RS197/' + (isInEditMode?'?edit=yes':''));
//aI('text=MEGANE RS 225;url=' + pathToRoot + 'renault-cars/Megane-RS-225/' + (isInEditMode?'?edit=yes':''));
//aI('text=MEGANE RS dCi 175;url=' + pathToRoot + 'renault-cars/Megane-RS-dCi-175/' + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE SEDAN EXCEPTION;url=' + pathToRoot + 'renault-cars/Megane-Sedan-Exception/' + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE CABRIOLET EXCEPTION;url=' + pathToRoot + 'renault-cars/Megane-Coupe-Cabriolet-Exception/' + (isInEditMode?'?edit=yes':''));
aI('text=GRAND SCENIC;url=' + pathToRoot + 'renault-cars/Grand-Scenic/' + (isInEditMode?'?edit=yes':''));
}
with(milonic=new menuname('Renault Vans')){ 
overflow='show'; 
style=subMenuStyle; 
aI('text=KANGOO ;url=' + pathToRoot + 'renault-vans/Kangoo/' + (isInEditMode?'?edit=yes':''));
aI('text=TRAFIC ;url=' + pathToRoot + 'renault-vans/Trafic/' + (isInEditMode?'?edit=yes':''));
aI('text=MASTER ;url=' + pathToRoot + 'renault-vans/Master/' + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Contact pages')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Contact form;url=' + pathToRoot + 'aftersales/customer-service/customer-service-centre/' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('About Us')){ 
style=subMenuStyle2; 
subimageposition='left'; 
aI('text=RENAULT Z.E.;url=http://www.renault-ze.com/au/#/au/home.html;target="_blank"');
aI('text=ECONOMICAL ECOLOGICAL;url=' + pathToRoot + 'about-us/economical-ecological/' + (isInEditMode?'?edit=yes':''));
aI('text=RENAULT SAFETY;url=' + pathToRoot + 'about-us/safety/' + (isInEditMode?'?edit=yes':''));
aI('text=RENAULT dCi;url=' + pathToRoot + 'about-us/dCi/' + (isInEditMode?'?edit=yes':''));
aI('text=RENAULT F1;url=' + pathToRoot + 'about-us/F1/' + (isInEditMode?'?edit=yes':''));
aI('text=RENAULT TV;url=http://www.renault.tv/;target="_blank"');
aI('text=RENAULT GROUP;url=' + pathToRoot + 'renault-group/' + (isInEditMode?'?edit=yes':''));
aI('text=CONTACT US;url=' + pathToRoot + 'aftersales/customer-service/customer-service-centre/' + (isInEditMode?'?edit=yes':''));
aI('text=YOUTUBE CHANNEL;url=http://www.youtube.com/renaultaustralia;target="_blank"');
} 
with(milonic=new menuname('Aftersales')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Customer Service;url=' + pathToRoot + 'aftersales/customer-service/' + (isInEditMode?'?edit=yes':''));
aI('text=Merchandise;url=' + pathToRoot + 'aftersales/merchandise/' + (isInEditMode?'?edit=yes':''));
aI('text=Accessories;url=' + pathToRoot + 'aftersales/accessories/' + (isInEditMode?'?edit=yes':''));
aI('text=Genuine Parts;url=' + pathToRoot + 'aftersales/genuine-parts/' + (isInEditMode?'?edit=yes':''));
aI('text=Service and Maintenance;url=' + pathToRoot + 'aftersales/service-and-maintenance/' + (isInEditMode?'?edit=yes':''));
aI('text=Approved Body Repairers;url=' + pathToRoot + 'aftersales/approved-repairers/' + (isInEditMode?'?edit=yes':''));
}
