﻿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=CARS;showmenu=CARS;url=' + pathToRoot + 'range' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=AFTER SALES;showmenu=AFTER SALES;url=' + pathToRoot + 'aftersale/after_sales' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Discover Renault;showmenu=Discover Renault;');

aI('text=About Renault;showmenu=About Renault;');

aI('text=Renault Business;showmenu=Renault Business;');

aI('text=Latest News;showmenu=Latest News;');

} 
with(milonic=new menuname('CARS')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=RENAULT CARS;showmenu=RENAULT CARS;url=' + pathToRoot + 'range'+(isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes&type=1':'?type=1'));
aI('text=DACIA CARS;showmenu=DACIA 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'));
} 
with(milonic=new menuname('RENAULT CARS')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=LATITUDE ;url=' + pathToRoot + 'cars/Latitude/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=KOLEOS ;url=' + pathToRoot + 'cars/koleos/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=FLUENCE ;url=' + pathToRoot + 'cars/fluence/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE CABRIOLET;url=' + pathToRoot + 'cars/meganeCabriolet/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MEGANE HATCHBACK;url=' + pathToRoot + 'cars/meganeHatchback/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=SYMBOL ;url=' + pathToRoot + 'cars/Symbol/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=KANGOO ;url=' + pathToRoot + 'cars/kangooExpress/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=TRAFIC PASSENGER;url=' + pathToRoot + 'cars/traficpassenger/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=DUSTER ;url=' + pathToRoot + 'cars/Duster/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=SANDERO ;url=' + pathToRoot + 'cars/sanderonew/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=STEPWAY ;url=' + pathToRoot + 'cars/stepway/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('DACIA CARS')){ 
style=subMenuStyle; 
overflow='show'; 
aI('text=LOGAN MCV ;url=' + pathToRoot + 'cars/loganmcv/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LOGAN PICHKUP ;url=' + pathToRoot + 'cars/loganpickup/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LOGAN ;url=' + pathToRoot + 'cars/logan/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('RENAULT SPORT')){ 
style=subMenuStyle; 
overflow='show'; 
} 
with(milonic=new menuname('Aftersales')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Customer Service Center;url=' + pathToRoot + 'aftersale/customerservice' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Warranty;url=' + pathToRoot + 'aftersale/warranty' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Service and Maintenance;url=' + pathToRoot + 'aftersale/serviceandmaintenance' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Genuine Parts;url=' + pathToRoot + 'aftersale/genuineparts' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Accessories;url=' + pathToRoot + 'aftersale/accessories' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Peace of Mind;url=' + pathToRoot + 'aftersale/peaceofmind' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Service Offers;url=' + pathToRoot + 'aftersale/serviceoffers' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Discover Renault')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Concept Cars;showmenu=Concept Cars;url=' + pathToRoot + 'discoverrenault/conceptcars' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Historic Models;url=' + pathToRoot + 'discoverrenault/historicmodels' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault F1;url=' + pathToRoot + 'discoverrenault/renaultf1' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Sport;showmenu=Renault Sport;url=' + pathToRoot + 'discoverrenault/renaultsport' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('About Renault')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault in brief;url=' + pathToRoot + 'aboutrenault/renaultinbrief' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Abdulbaki For Trading;url=' + pathToRoot + 'aboutrenault/abdulbaki' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault History;url=' + pathToRoot + 'aboutrenault/history' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=E-Brochures;url=' + pathToRoot + 'aboutrenault/brochures' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Quality;url=' + pathToRoot + 'aboutrenault/quality' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Safety;showmenu=Renault Safety;url=' + pathToRoot + 'aboutrenault/saftey' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Group Brands;showmenu=Group Brands;url=' + pathToRoot + 'aboutrenault/groupbrands' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Renault Business')){ 
style=subMenuStyle; 
subimageposition='left'; 
} 
with(milonic=new menuname('Latest News')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Current vacancies;url=' + pathToRoot + 'latestnews/currentvacancies' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=News;url=' + pathToRoot + 'latestnews/news' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Service Promotion;url=aftersale/serviceoffers.asp');
} 
with(milonic=new menuname('Concept Cars')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault Z.E.;url=' + pathToRoot + 'discoverrenault/renaultze' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Ondelios;url=' + pathToRoot + 'discoverrenault/renaultondelios' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Nepta;url=' + pathToRoot + 'discoverrenault/renaultnepta' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Altica;url=' + pathToRoot + 'discoverrenault/renaultaltica' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
}with(milonic=new menuname('Renault Sport')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Sport Car Range;url=' + pathToRoot + 'discoverrenault/rsrange' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=R.S.History;url=' + pathToRoot + 'discoverrenault/sporthistory' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=RENAULT F1 TEAM DAY;url=' + pathToRoot + 'discoverrenault/f1teamday' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=R.S. COMMUNITY;url=' + pathToRoot + 'discoverrenault/rscommunity' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=R.S. GOODIES;url=' + pathToRoot + 'discoverrenault/rsgoodies' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
}with(milonic=new menuname('Renault Safety')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Safety for all;url=' + pathToRoot + 'aboutrenault/safetyforall' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Passive safety;url=' + pathToRoot + 'aboutrenault/passivesafety' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Active safety;url=' + pathToRoot + 'aboutrenault/activesafety' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
}with(milonic=new menuname('Group Brands')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Renault;url=' + pathToRoot + 'aboutrenault/renault' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Dacia;url=' + pathToRoot + 'aboutrenault/dacia' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Dacia Background;url=' + pathToRoot + 'aboutrenault/daciabackground' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault and Samsung Motors;url=' + pathToRoot + 'aboutrenault/Renaultsamsung' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault and Samsung Background;url=' + pathToRoot + 'aboutrenault/rnaultsamsungback' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
}
