/***
This is the menu creation code - place it right after you body tag.
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Extra code to find position:
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent;
        x+=temp.offsetLeft
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}
pos = findPos()
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
//Menu properties
oCMenu.pxBetween=1
//Using the cm_page object to place the menu ----
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]
//We also need to "re place" the menu on resize. So:
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"
oCMenu.rows=1
oCMenu.menuPlacement=0
//oCMenu.offlineRoot=""
oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="/nilfisk/cz/images/no.gif"
oCMenu.zIndex=0
//Netscape 4 and Opera form work-around
oCMenu.onshow="document.layers?document.layers.formLayer.visibility='hidden':document.getElementById('formDiv1').style.visibility='hidden';"
oCMenu.onhide="document.layers?document.layers.formLayer.visibility='visible':document.getElementById('formDiv1').style.visibility='visible';"
//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass="ClB1"
//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
oCMenu.level[0]=new cm_makeLevel()
oCMenu.level[0].width=130
oCMenu.level[0].height=20
oCMenu.level[0].regClass="clT"
oCMenu.level[0].overClass="clTover"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clB1"
oCMenu.level[0].rows=0
oCMenu.level[0].align="bottom"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].arrow=""
oCMenu.level[0].arrowWidth=9
oCMenu.level[0].arrowHeight=19
oCMenu.level[1]=new cm_makeLevel()
oCMenu.level[1].width=210
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clS"
oCMenu.level[1].overClass="clSover"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].borderClass="clB1"
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=1
oCMenu.level[1].offsetY=0
oCMenu.level[1].arrow="/nilfisk/cz/images/pfeil_h.gif"
oCMenu.level[1].arrowWidth=5
oCMenu.level[1].arrowHeight=19
oCMenu.level[2]=new cm_makeLevel()
/* Breite 2. Unternavigationseben */
oCMenu.level[2].width=250
oCMenu.level[2].height=20
oCMenu.level[2].regClass="clS"
oCMenu.level[2].overClass="clSover"
oCMenu.level[2].borderX=1
oCMenu.level[2].borderY=1
oCMenu.level[2].borderClass="clB1"
oCMenu.level[2].align="right"
oCMenu.level[2].offsetX=1
oCMenu.level[2].offsetY=0
oCMenu.level[2].arrow="/nilfisk/cz/images/pfeil_h.gif"
oCMenu.level[2].arrowWidth=5
oCMenu.level[2].arrowHeight=19
oCMenu.level[3]=new cm_makeLevel()
/* Breite 3. Unternavigationseben */
oCMenu.level[3].width=250
oCMenu.level[3].height=20
oCMenu.level[3].borderX=0

/***
Menu item creation: myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass, align, rows, nolink, onclick, onmouseover, onmouseout)
***/

oCMenu.makeMenu("news","","Novinky","/nilfisk/cz/news/news.php"+sessdata,"",60);

oCMenu.makeMenu("uns","","O nás","#","",50);
oCMenu.makeMenu("unternehmen","uns","Spolecnost","/nilfisk/cz/uns/unternehmen.php"+sessdata,"",105);
oCMenu.makeMenu("carwash","uns","Oblast CarWash","/nilfisk/cz/uns/carwash.php"+sessdata,"",105);

oCMenu.makeMenu("potenziale","","Potenciál","#","",70);
oCMenu.makeMenu("erfolg","potenziale","Náš koncept úspechu","/nilfisk/cz/potenziale/unser-erfolgskonzept.php"+sessdata,"",135);
oCMenu.makeMenu("standortcheck","potenziale","Test místa","/nilfisk/cz/potenziale/standortcheck.php"+sessdata,"",135);
oCMenu.makeMenu("kostenrechner","potenziale","Kalkulace nákladu","/nilfisk/cz/potenziale/kostenrechner.php"+sessdata,"",135);
oCMenu.makeMenu("markt","potenziale","Trh","/nilfisk/cz/potenziale/markt.php"+sessdata,"",135);
oCMenu.makeMenu("perfekte","potenziale","Perfektní partnerství","#","",135);
oCMenu.makeMenu("komplettes","perfekte","Kompletní nabídka - obsáhlé výkony","/nilfisk/cz/produkte/profi-center/komplettes-angebot-umfassende-leistungen.php"+sessdata,"",220);
oCMenu.makeMenu("kostenlose","perfekte","EcoWap® - bezplatná energie a více","/nilfisk/cz/produkte/profi-center/ecowap-kostenlose-energie-und-mehr.php"+sessdata,"",220);

oCMenu.makeMenu("produkte","","Výrobky/Servis","#","",110);
oCMenu.makeMenu("einzel","produkte","Jednotlivé systémy","#");
oCMenu.makeMenu("einzelstandort","einzel","Prizpusobení místa","/nilfisk/cz/produkte/einzelsysteme/standortoptimierung.php"+sessdata,"",135);
oCMenu.makeMenu("einzeltechnik","einzel","Technika-Systémy","/nilfisk/cz/produkte/einzelsysteme/technik-systeme.php"+sessdata,"",135);
oCMenu.makeMenu("einzeleinzelm","einzel","Jednotlivé moduly","/nilfisk/cz/produkte/einzelsysteme/einzelmodule.php"+sessdata,"",135);
oCMenu.makeMenu("einzeleinzelw","einzel","Stroj na 1 mycí místo","/nilfisk/cz/produkte/einzelsysteme/einzelplatzwaescher.php"+sessdata,"",135);
oCMenu.makeMenu("einzellkw","einzel","Mytí nákladáku","/nilfisk/cz/produkte/einzelsysteme/lkw-waescher.php"+sessdata,"",135);

oCMenu.makeMenu("compact-m","produkte","Compact-M","#");
oCMenu.makeMenu("compactm","compact-m","Compact-M","/nilfisk/cz/produkte/compact-m/compact-m.php"+sessdata,"",185);
oCMenu.makeMenu("compactmaufbau","compact-m","Compact-M konstrukce cást 1","/nilfisk/cz/produkte/compact-m/compact-m-aufbau1.php"+sessdata,"",185);
oCMenu.makeMenu("compactmaufbau2","compact-m","Compact-M konstrukce cást 2","/nilfisk/cz/produkte/compact-m/compact-m-aufbau2.php"+sessdata,"",185);
oCMenu.makeMenu("compactmfocusk","compact-m","Konstrukce detailne","/nilfisk/cz/produkte/compact-m/im-focus_konstruktion.php"+sessdata,"",185);
oCMenu.makeMenu("compactmfocust","compact-m","Technologie detailne","/nilfisk/cz/produkte/compact-m/im-focus_technologie.php"+sessdata,"",185);
oCMenu.makeMenu("compactmstandort","compact-m","Mycí místo","/nilfisk/cz/produkte/compact-m/standort.php"+sessdata,"",185);
oCMenu.makeMenu("compactmoptikdesign","compact-m","Optika a design","/nilfisk/cz/produkte/compact-m/optik-und-design.php"+sessdata,"",185);
oCMenu.makeMenu("compactmbrushless","compact-m","BrushLess Wash","/nilfisk/cz/produkte/compact-m/brushless-wash.php"+sessdata,"",185);

oCMenu.makeMenu("modul","produkte","Modulové systémy/rady","#");
oCMenu.makeMenu("modulphilosophie","modul","Filozofie CarWash","/nilfisk/cz/produkte/modul/carwash-philosophie.php"+sessdata,"",120);
oCMenu.makeMenu("modultechnik","modul","Technické systémy","/nilfisk/cz/produkte/modul/technik-systeme.php"+sessdata,"",120);
oCMenu.makeMenu("modulqline","modul","QLine","/nilfisk/cz/produkte/modul/qline.php"+sessdata,"",120);
oCMenu.makeMenu("moduleco","modul","EcoLine","/nilfisk/cz/produkte/modul/ecoline.php"+sessdata,"",120);
oCMenu.makeMenu("modulpro","modul","ProLine","/nilfisk/cz/produkte/modul/proline.php"+sessdata,"",120);
oCMenu.makeMenu("modulmodu","modul","ModuLine","/nilfisk/cz/produkte/modul/moduline.php"+sessdata,"",120);
oCMenu.makeMenu("moduldesign","modul","DesignLine","/nilfisk/cz/produkte/modul/designline.php"+sessdata,"",120);
oCMenu.makeMenu("modulmodern","modul","Horní stavby","/nilfisk/cz/produkte/profi-center/modernes-design-stahlbauten.php"+sessdata,"",120);

oCMenu.makeMenu("systeme","produkte","Systémy/Rízení a vedení zarízení","#");
oCMenu.makeMenu("systechnik","systeme","Technický betonový kontejner","/nilfisk/cz/produkte/systeme/technik-container.php"+sessdata,"",200);
oCMenu.makeMenu("syshochdruck","systeme","Vysoký tlak a dávkovací systém","/nilfisk/cz/produkte/systeme/hochdruck-und-dosiersystem.php"+sessdata,"",200);
oCMenu.makeMenu("sysenergie","systeme","Zásobování energií a médiemi","/nilfisk/cz/produkte/systeme/energie-und-medienversorgung.php"+sessdata,"",200);
oCMenu.makeMenu("syswaschplatz","systeme","Mycí místo/obsluha","/nilfisk/cz/produkte/systeme/waschplatz_bedienung.php"+sessdata,"",200);
oCMenu.makeMenu("sysoms","systeme","Systém OMS-rízení zarízení","/nilfisk/cz/produkte/systeme/anlagen-management-system.php"+sessdata,"",200);
oCMenu.makeMenu("systresor","systeme","Trezorové systémy","/nilfisk/cz/produkte/systeme/tresor-systeme.php"+sessdata,"",200);
oCMenu.makeMenu("syszahlung","systeme","Platební systémy","/nilfisk/cz/produkte/systeme/zahlungssysteme.php"+sessdata,"",200);
oCMenu.makeMenu("syscontrolling","systeme","Technický controlling","/nilfisk/cz/produkte/systeme/technisches-controlling.php"+sessdata,"",200);
oCMenu.makeMenu("sysbuerst","systeme","Bezkartácový systém","/nilfisk/cz/produkte/systeme/buerstenloses-system.php"+sessdata,"",200);
oCMenu.makeMenu("sysbetreiber","systeme","Systémy pro provozovatele","/nilfisk/cz/produkte/profi-center/innovationen-betreiber-systeme.php"+sessdata,"",200);

oCMenu.makeMenu("standort","produkte","Další prvky k mycím místum","#");
oCMenu.makeMenu("standbau","standort","Stavební prvky","/nilfisk/cz/produkte/standort/baukomponenten.php"+sessdata,"",225);
oCMenu.makeMenu("standsauger","standort","Vysavace s vysavacové ostruvky","/nilfisk/cz/produkte/standort/sauger-und-saugerinseln.php"+sessdata,"",225);
oCMenu.makeMenu("standaussen","standort","Vysavace a venkovní zarízení","/nilfisk/cz/produkte/standort/sauger-und-aussenanlagen.php"+sessdata,"",225);
oCMenu.makeMenu("standschilder","standort","Cedule a komunikace se zákazníkem","/nilfisk/cz/produkte/standort/schilder-und-anlagenkommunikation.php"+sessdata,"",225);
oCMenu.makeMenu("standoptik","standort","Optický monitoring","/nilfisk/cz/produkte/standort/optische-ueberwachung.php"+sessdata,"",225);
oCMenu.makeMenu("standzubehoer","standort","Další príslušenství","/nilfisk/cz/produkte/standort/weiteres-zubehoer.php"+sessdata,"",225);

oCMenu.makeMenu("automatiksysteme","produkte","Automatické systémy","#");
oCMenu.makeMenu("waschphilo","automatiksysteme","Filozofie","/nilfisk/cz/produkte/automatik/philosophie.php"+sessdata,"",135);
oCMenu.makeMenu("waschintensiv","automatiksysteme","Intenzívní mytí","/nilfisk/cz/produkte/automatik/intensivwaesche.php"+sessdata,"",135);
oCMenu.makeMenu("waschbuerstenwae","automatiksysteme","Mytí kartáci","/nilfisk/cz/produkte/automatik/buerstenwaesche.php"+sessdata,"",135);
oCMenu.makeMenu("waschseitenb","automatiksysteme","Bocní kartáce","/nilfisk/cz/produkte/automatik/seitenbuersten.php"+sessdata,"",135);
oCMenu.makeMenu("waschspueltrock","automatiksysteme","Oplach/sušení","/nilfisk/cz/produkte/automatik/spuelen-trocknen.php"+sessdata,"",135);
oCMenu.makeMenu("waschsteusoft","automatiksysteme","Ovládání/Software","/nilfisk/cz/produkte/automatik/software.php"+sessdata,"",135);
oCMenu.makeMenu("waschbaukompo","automatiksysteme","Stavební prvky","/nilfisk/cz/produkte/automatik/baukomponenten.php"+sessdata,"",135);
oCMenu.makeMenu("portalportal","automatiksysteme","Portálové mycí rámy","/nilfisk/cz/produkte/automatik/portalanlagen.php"+sessdata,"",135);
oCMenu.makeMenu("portaltd1","automatiksysteme","Technická data cást 1","/nilfisk/cz/produkte/automatik/technische-daten1.php"+sessdata,"",135);
oCMenu.makeMenu("portaltd2","automatiksysteme","Technická data cást 2","/nilfisk/cz/produkte/automatik/technische-daten2.php"+sessdata,"",135);

oCMenu.makeMenu("b3v8technik","produkte","Technika B3/V8","#");
oCMenu.makeMenu("b3technik","b3v8technik","Technika B3","#","",90);
oCMenu.makeMenu("b3technik1","b3technik","Úspech potrebuje inovace","/nilfisk/cz/produkte/technik/b3-erfolg-braucht-innovation.php"+sessdata,"",200);
oCMenu.makeMenu("b3technik2","b3technik","Koncept a výhody pro zákazníky","/nilfisk/cz/produkte/technik/b3-konzept-und-kundennutzen.php"+sessdata,"",200);
oCMenu.makeMenu("b3technik3","b3technik","Innovace musí posloužit uživateli","/nilfisk/cz/produkte/technik/b3-innovation-muss-dem-anwender-dienen.php"+sessdata,"",200);
oCMenu.makeMenu("b3technik4","b3technik","Inovace musí být jednoduchá","/nilfisk/cz/produkte/technik/b3-innovation-muss-einfach-sein.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik","b3v8technik","Technika V8","#","",90);
oCMenu.makeMenu("v8technik1","v8technik","Koncept a výhody pro zákazníka","/nilfisk/cz/produkte/technik/v8-konzept-und-kundennutzen.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik2","v8technik","Inovace musí zapusobit","/nilfisk/cz/produkte/technik/v8-innovation-muss-beeindrucken.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik3","v8technik","Inovace musí být kreativní","/nilfisk/cz/produkte/technik/v8-innovation-muss-kreativ-sein.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik4","v8technik","Inovace prináší zisk","/nilfisk/cz/produkte/technik/v8-innovation-ist-gewinn.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik5","v8technik","Inovace znamená efektivitu","/nilfisk/cz/produkte/technik/v8-innovation-fuer-effizienz.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik6","v8technik","Inovace zajištuje úspech","/nilfisk/cz/produkte/technik/v8-innovation-sichert-erfolg.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik7","v8technik","Inovace mají budoucnost","/nilfisk/cz/produkte/technik/v8-innovation-hat-zukunft.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik8","v8technik","Inovace mají potenciál","/nilfisk/cz/produkte/technik/v8-innovation-ist-potential.php"+sessdata,"",200);
oCMenu.makeMenu("v8technik9","v8technik","Dobré duvody proc WinWap","/nilfisk/cz/produkte/technik/v8-gute-gruende-fuer-winwap.php"+sessdata,"",200);
oCMenu.makeMenu("v8technikA","v8technik","Vedet znamená mít moc","/nilfisk/cz/produkte/technik/v8-wissen-ist-macht.php"+sessdata,"",200);

oCMenu.makeMenu("gewinnung","produkte","Energie ze životního prostredí","");
oCMenu.makeMenu("umwelt-1","gewinnung","Energie ze životního prostred","/nilfisk/cz/produkte/umwelt/energie-aus-der-umwelt.php"+sessdata,"",160);
oCMenu.makeMenu("umwelt-2","gewinnung","Využití volného potenciálu","/nilfisk/cz/produkte/umwelt/freies-potential-nutzen.php"+sessdata,"",160);
oCMenu.makeMenu("umwelt-3","gewinnung","Vaše cesta ke zmene energie","/nilfisk/cz/produkte/umwelt/ihr-weg-zur-energiewende.php"+sessdata,"",160);

oCMenu.makeMenu("proficenter","produkte","Profi Centra","");
oCMenu.makeMenu("profiwasch","proficenter","Prof. Mycí centra","/nilfisk/cz/produkte/profi-center/professionelle-wasch-und-pflegecenter.php"+sessdata,"",110);
oCMenu.makeMenu("sbwasch","proficenter","SB-mycí zarízení","/nilfisk/cz/produkte/profi-center/sb-waschanlagen.php"+sessdata,"",110);

oCMenu.makeMenu("services","produkte","Servis","/nilfisk/cz/produkte/service.php"+sessdata);

oCMenu.makeMenu("multimedia","","Multimédia","#","",80);
oCMenu.makeMenu("bildergalerie","multimedia","Obrázková rgalerie","/nilfisk/cz/multimedia/galerie/galerie.php"+sessdata,"",80);
oCMenu.makeMenu("videos","multimedia","Videa","#","",80);
oCMenu.makeMenu("video1","videos","Videa 1","/nilfisk/cz/multimedia/videos/video1.php"+sessdata,"",55);
oCMenu.makeMenu("video2","videos","Videa 2","/nilfisk/cz/multimedia/videos/video2.php"+sessdata,"",55);
oCMenu.makeMenu("video3","videos","Videa 3","/nilfisk/cz/multimedia/videos/video3.php"+sessdata,"",55);

oCMenu.makeMenu("partner","","Partnerské systémy","#","",130);
oCMenu.makeMenu("partbaer","partner","Wap Waschbär &reg;","http://www.wap-waschbaer.de/waschbaer/"+sessdata,"",185);
oCMenu.makeMenu("partber","partner","Partnerská oblast [clen-Login]","/nilfisk/cz/login/partner.php"+sessdata,"",185);

oCMenu.makeMenu("distribution","","Prodej/Místa","#","",90);
oCMenu.makeMenu("disdeutsch","distribution","Nemecko","/nilfisk/cz/vertrieb/deutschland.php"+sessdata,"",210);
oCMenu.makeMenu("disint","distribution","Mezinárodní prodej","/nilfisk/cz/vertrieb/international.php"+sessdata,"",210);
oCMenu.makeMenu("displaces","distribution","Místa mycích zarízení","/nilfisk/cz/vertrieb/anlagenstandorte.php"+sessdata,"",210);
oCMenu.makeMenu("disaustria","distribution","Místa mycích zarízení Rakousko","/nilfisk/cz/vertrieb/anlagenstandorte-austria.php"+sessdata,"",210);
oCMenu.makeMenu("dishungary","distribution","Místa mycích zarízení Madarsko","/nilfisk/cz/vertrieb/anlagenstandorte-hungary.php"+sessdata,"",210);
oCMenu.makeMenu("dishand","distribution","Obchodnická oblast [dealer-Login]","/nilfisk/cz/login/vertrieb.php"+sessdata,"",210);

oCMenu.makeMenu("links","","Kontakt","/nilfisk/cz/kontakt.asp"+sessdata,"",60);

oCMenu.construct();