﻿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;";
}

with(milonic=new menuname('Main Menu')){ 
alwaysvisible=1; 
orientation='horizontal'; 
style=mainMenuStyle; 
borderwidth=0; 
padding=0; 
position='relative'; 
aI('text=Vieglās automašīnas;showmenu=Vieglās automašīnas;url=' + pathToRoot + 'range' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Finanšu pakalpojumi;showmenu=Finanšu pakalpojumi;url=' + pathToRoot + 'Finanse/Finanse_mainpage' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Pēcpārdošanas apkalpošana;showmenu=Pēcpārdošanas apkalpošana;url=' + pathToRoot + 'after_sale/t1_4' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Automašīnas firmām;showmenu=Automašīnas firmām;url=' + pathToRoot + 'Automobile/bs_home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Iepazīsti Renault;showmenu=Iepazīsti Renault;url=' + pathToRoot + 'atraskite_renault/news_home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Vieglās automašīnas')){ 
overflow='show'; 
style=subMenuStyle; 
aI('text=FLUENCE ;url=' + pathToRoot + 'cars/fluence/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS SCENIC;url=' + pathToRoot + 'cars/scenicJ95/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS GRAND SCENIC;url=' + pathToRoot + 'cars/grandscenicR95/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS CLIO;url=' + pathToRoot + 'cars/clioPH2/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS CLIO GRANDTOUR;url=' + pathToRoot + 'cars/cliograndtourPH2/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNĀ MEGANE;url=' + pathToRoot + 'cars/NoweMegane/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNĀ MEGANE COUPE;url=' + pathToRoot + 'cars/NowyMeganeCoupe/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNĀ MEGANE GRANDTOUR;url=' + pathToRoot + 'cars/NowyMeganeGrandtour/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LAGUNA GRANDTOUR;url=' + pathToRoot + 'cars/LagunaGrandtour/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LAGUNA ;url=' + pathToRoot + 'cars/newLaguna/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=LAGUNA COUPE;url=' + pathToRoot + 'cars/LagunaCoupe/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=KOLEOS ;url=' + pathToRoot + 'cars/Koleos/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNĀ THALIA;url=' + pathToRoot + 'cars/thalia/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS KANGOO;url=' + pathToRoot + 'cars/kangoo/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS TWINGO;url=' + pathToRoot + 'cars/newTwingo/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=TRAFIC PASAŽIERU;url=' + pathToRoot + 'cars/TravicOsobowy/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=ESPACE ;url=' + pathToRoot + 'cars/Espace/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=JAUNAIS KANGOO EXPRESS;url=' + pathToRoot + 'cars/kangooExpress/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=TRAFIC ;url=' + pathToRoot + 'cars/TraficVan/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=MASTER ;url=' + pathToRoot + 'cars/master/home' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Finanšu pakalpojumi')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Kas ir Renault Līzings?;url=' + pathToRoot + 'Finanse/leasing' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Līzinga piedāvājums;url=' + pathToRoot + 'Finanse/wniosek' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Renault Kontakti')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Kontaktinformācija;url=' + pathToRoot + 'contact/kontaktai' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Euro Auto;url=' + pathToRoot + 'contact/Kontaktua_forma_1' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Euro Auto;url=' + pathToRoot + 'contact/Kontaktua_forma_2' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Mūsa Motors Rīga;url=' + pathToRoot + 'contact/Kontaktua_forma_3' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Intransserviss;url=' + pathToRoot + 'contact/Kontaktua_forma_4' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Pit Stop Auto;url=' + pathToRoot + 'contact/Kontaktua_forma_5' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Signāls;url=' + pathToRoot + 'contact/Kontaktua_forma_6' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Tehauto;url=' + pathToRoot + 'contact/Kontaktua_forma_7' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Tehauto Latgale;url=' + pathToRoot + 'contact/Kontaktua_forma_8' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Tehauto Liepāja;url=' + pathToRoot + 'contact/Kontaktua_forma_9' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Kontaktinformācija Tehauto Venta;url=' + pathToRoot + 'contact/Kontaktua_forma_10' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Pēcpārdošanas apkalpošana')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Akcjias;url=' + pathToRoot + 'after_sale/akcjias' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Speciālais piedāvājums automašīnām, kas vecākas par 4 gadiem;url=' + pathToRoot + 'after_sale/servisa_pakalpojumu_cenradis' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Apkalpošana un labošana;url=' + pathToRoot + 'after_sale/service_and_repairs_n' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Renault Assistance;url=' + pathToRoot + 'after_sale/assistance' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Servisa kontrakti;url=' + pathToRoot + 'after_sale/serviso_kontraktai' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
aI('text=Rezerves daļas un aksesuāri;url=' + pathToRoot + 'after_sale/spare_parts' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 
with(milonic=new menuname('Automašīnas firmām')){ 
style=subMenuStyle; 
subimageposition='left'; 
} 
with(milonic=new menuname('Iepazīsti Renault')){ 
style=subMenuStyle; 
subimageposition='left'; 
aI('text=Tehnoloģija;url=' + pathToRoot + 'atraskite_renault/Techonology' + (isHtmlGerator?'.html':'.asp') + (isInEditMode?'?edit=yes':''));
} 

