﻿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 VEHICLES;showmenu=RENAULT VEHICLES;url=' + pathToRoot + 'range' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=QUALITY & SERVICE;showmenu=QUALITY & SERVICE;url=' + pathToRoot + 'Aftersales/after_sales' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=DISCOVER;showmenu=DISCOVER;url=' + pathToRoot + 'about_us/about_us_main' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Boutique;showmenu=Renault Boutique;');

aI('text=Renault Sport;showmenu=Renault Sport;');

aI('text=Renault YourDeals/Offers;showmenu=Renault YourDeals/Offers;');

aI('text=Renault PreOwned;showmenu=Renault PreOwned;');

aI('text=News;showmenu=News;');

} 
with(milonic=new menuname('RENAULT VEHICLES')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=PASSENGER CARS;showmenu=PASSENGER CARS;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=4':'?type=4'));
aI('text=RENAULT SPORT;showmenu=RENAULT SPORT;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=3':'?type=3'));
aI('text=LCV;showmenu=LCV;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=5':'?type=5'));
} 
with(milonic=new menuname('PASSENGER CARS')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=SANDERO ;url=' + pathToRoot + 'cars/sandero/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=TWINGO ;url=' + pathToRoot + 'cars/newTwingo/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=CLIO HATCHBACK;url=' + pathToRoot + 'cars/clio/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE HATCH;url=' + pathToRoot + 'cars/meganeHatchback/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE COUPE;url=' + pathToRoot + 'cars/MeganeCoupe/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=FLUENCE ;url=' + pathToRoot + 'cars/fluence/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=SCENIC ;url=' + pathToRoot + 'cars/scenicj95/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=GRAND SCENIC ;url=' + pathToRoot + 'cars/grandscenic/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=KOLEOS ;url=' + pathToRoot + 'cars/koleos/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LAGUNA COUPE;url=' + pathToRoot + 'cars/newlagunacoupe/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('RENAULT SPORT')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=CLIO RENAULT SPORT HATCHBACK;url=' + pathToRoot + 'cars/cliors/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE RENAULT SPORT ;url=' + pathToRoot + 'cars/meganers/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=TWINGO GORDINI;url=' + pathToRoot + 'cars/twingogordini/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('LCV')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=KANGOO EXPRESS VAN;url=' + pathToRoot + 'cars/kangooExpress/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=TRAFIC VAN;url=' + pathToRoot + 'cars/traficvan/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('QUALITY & SERVICE')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Customer Care;url=' + pathToRoot + 'Aftersales/customerservice' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Maintenance and Service;url=' + pathToRoot + 'Aftersales/maintenanceandservice' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Confiance;url=' + pathToRoot + 'Aftersales/confiance' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Warranty;url=' + pathToRoot + 'Aftersales/warranty' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=110 Percent Committed;url=' + pathToRoot + 'Aftersales/percentcommitted' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('DISCOVER')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault South Africa in perspective;url=' + pathToRoot + 'about_us/profile' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Quality;url=' + pathToRoot + 'about_us/renaultquality' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Safety;url=' + pathToRoot + 'about_us/renaultsafety' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Concept-Cars;url=' + pathToRoot + 'about_us/conceptcars' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault ZE;url=http://www.renault-ze.com/za/#/za/home.html');
aI('text=Renault Driver Training;url=' + pathToRoot + 'about_us/driveracademy' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Careers;url=http://renault.careerjunction.co.za/');
aI('text=Renault Financial Services;url=' + pathToRoot + 'about_us/financialservices' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Promo/Competition Terms and Conditions;url=' + pathToRoot + 'about_us/compTC' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=i-Pledge;url=http://www.i-pledge.co.za');
} 
with(milonic=new menuname('Renault Boutique')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault Boutique;url=http://www.renaultboutique.co.za');
} 
with(milonic=new menuname('Renault Sport')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault Sport;url=http://www.renaultsportsa.co.za/');
} 
with(milonic=new menuname('CONTACT')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Contact form;url=' + pathToRoot + 'contact/contact_form' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Renault YourDeals/Offers')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=YourDeals/Offers;url=http://www.renaultyourdeal.co.za');
aI('text=Fluence Executive Offer;url=' + pathToRoot + 'yourdeal/fluenceexecoffer' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Fluence Teachers Offer;url=' + pathToRoot + 'yourdeal/fluenceteachcoffer' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Megane Shake It Offer;url=' + pathToRoot + 'yourdeal/shakeitoffer' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Scenic Koleos Offer;url=' + pathToRoot + 'yourdeal/scenickoleosoffer' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Renault PreOwned')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault PreOwned;url=http://www.renaultpre-owned.co.za/');
} 
with(milonic=new menuname('News')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=News;url=' + pathToRoot + 'News/renaultnews' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 

