/*** 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. **/ //Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname oCMenu.frames = 0 //Menu properties oCMenu.pxBetween= 1 oCMenu.rows=0 oCMenu.menuPlacement= 0 // oCMenu.center = 0 oCMenu.pxfromLeft = 0 oCMenu.minLeft = 0 //Using the cm_page object to place the menu ---- //There are some differences between the browsers that I try to fix here. var templeft=!bw.ns4?cmpage.x2 / 2 - oCMenu.pxfromLeft:cmpage.x2 / 2 - oCMenu.pxfromLeft if (templeft < oCMenu.minLeft) templeft = oCMenu.minLeft if (oCMenu.center) oCMenu.fromLeft=templeft else oCMenu.fromLeft = oCMenu.pxfromLeft //We also need to "replace" the menu on resize. So: function doonresize() { var templeft=!bw.ns4?cmpage.x2 / 2 - oCMenu.pxfromLeft:cmpage.x2 / 2 - oCMenu.pxfromLeft if (templeft < oCMenu.minLeft) templeft = oCMenu.minLeft if (oCMenu.center) oCMenu.fromLeft=templeft else oCMenu.fromLeft = oCMenu.pxfromLeft } oCMenu.onresize="doonresize()" oCMenu.fromTop=131 oCMenu.offlineRoot="./" oCMenu.onlineRoot="http://www.sortimat.com" oCMenu.resizeCheck= 1 oCMenu.wait=1000 oCMenu.fillImg="/xiteflex/layout/gfx/spacer.gif" oCMenu.zIndex=300 //Background bar properties oCMenu.useBar=0 oCMenu.barWidth=0 oCMenu.barHeight=0 oCMenu.barClass="clBar" oCMenu.barX=0 oCMenu.barY=0 oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass="" //Level properties - ALL properties have to be spesified in level 0 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width=173 oCMenu.level[0].height=23 oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].borderClass="clLevel0border" oCMenu.level[0].offsetX=5 oCMenu.level[0].offsetY=2 oCMenu.level[0].rows=0 oCMenu.level[0].align="left" oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.3)" //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[1].width=150 oCMenu.level[1].height=23 oCMenu.level[1].regClass="clLevel1" oCMenu.level[1].overClass="clLevel1over" oCMenu.level[1].style="" oCMenu.level[1].align="right" oCMenu.level[1].offsetX=5 oCMenu.level[1].offsetY=-1 oCMenu.level[1].borderClass="clLevel1border" oCMenu.level[1].borderX=0 oCMenu.level[1].borderY=0 oCMenu.level[1].rows=0 oCMenu.level[1].align="right" oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" /****************************************** 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('sub1','',' Unternehmen','http://www.sortimat.com/german/Unternehmen','_top','') oCMenu.makeMenu('sub2','sub1',' Wie wir denken','http://www.sortimat.com/german/Unternehmen/Wie_wir_denken','_top','200') oCMenu.makeMenu('sub3','sub1',' Mitarbeiter und Management','http://www.sortimat.com/german/Unternehmen/Mitarbeiter_und_Management','_top','200') oCMenu.makeMenu('sub4','sub1',' Geschichte','http://www.sortimat.com/german/Unternehmen/Geschichte','_top','200') oCMenu.makeMenu('sub5','sub1',' Zahlen und Fakten','http://www.sortimat.com/german/Unternehmen/Zahlen_und_Fakten','_top','200') oCMenu.makeMenu('sub6','',' Montage-Technology','http://www.sortimat.com/german/Montage-Technology','_top','') oCMenu.makeMenu('sub7','sub6',' Produktwelt','http://www.sortimat.com/german/Montage-Technology/Produktwelt','_top','') oCMenu.makeMenu('sub8','sub6',' Technologien','http://www.sortimat.com/german/Montage-Technology/Technologien','_top','') oCMenu.makeMenu('sub9','sub8',' Montagetechnologien','http://www.sortimat.com/german/Montage-Technology/Technologien/Montagetechnologien','_top','') oCMenu.makeMenu('sub10','sub8',' Innovationen & F&E','http://www.sortimat.com/german/Montage-Technology/Technologien/Innovationen__FE','_top','') oCMenu.makeMenu('sub11','sub6',' Märkte & Kunden','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden','_top','') oCMenu.makeMenu('sub12','sub11',' Branchen','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub13','sub11',' Länder','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub14','sub11',' Kunden','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub15','sub11',' Montage-Highlights','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Montage_Highlights','_top','') oCMenu.makeMenu('sub16','sub15',' Infusionsset','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Infusionsset','_top','') oCMenu.makeMenu('sub17','sub15',' Katheter','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Katheter','_top','') oCMenu.makeMenu('sub18','sub15',' Blutanalysekassette','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Blutanalysekassette','_top','') oCMenu.makeMenu('sub19','sub15',' Pulverinhalator','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Pulverinhalator','_top','') oCMenu.makeMenu('sub20','sub11',' Referenzprojekte','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte','_top','') oCMenu.makeMenu('sub21','sub20',' Infusionsprodukte','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Infusionsprodukte','_top','') oCMenu.makeMenu('sub22','sub20',' Injektionsprodukte','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Injektionsprodukte','_top','') oCMenu.makeMenu('sub23','sub20',' Pensysteme','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Pensysteme','_top','') oCMenu.makeMenu('sub24','sub20',' Diagnostikprodukte','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Diagnostikprodukte','_top','') oCMenu.makeMenu('sub25','sub20',' Inhalationsprodukte','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Inhalationsprodukte','_top','') oCMenu.makeMenu('sub26','sub20',' Healthcareprodukte','http://www.sortimat.com/german/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Healthcareprodukte','_top','') oCMenu.makeMenu('sub27','sub6',' Projektmanagement','http://www.sortimat.com/german/Montage-Technology/Projektmanagement','_top','') oCMenu.makeMenu('sub28','sub6',' Services','http://www.sortimat.com/german/Montage-Technology/Services','_top','') oCMenu.makeMenu('sub29','sub28',' Qualifizierung','http://www.sortimat.com/german/Montage-Technology/Services/Qualifizierung','_top','') oCMenu.makeMenu('sub30','sub29',' Projektplan','http://www.sortimat.com/german/Montage-Technology/Services/Qualifizierung/Projektplan','_top','') oCMenu.makeMenu('sub31','sub29',' Risikoanalyse','http://www.sortimat.com/german/Montage-Technology/Services/Qualifizierung/Risikoanalyse','_top','') oCMenu.makeMenu('sub32','sub29',' Qualifizierungsphasen','http://www.sortimat.com/german/Montage-Technology/Services/Qualifizierung/Q-phasen','_top','') oCMenu.makeMenu('sub33','sub28',' Pre Sales','http://www.sortimat.com/german/Montage-Technology/Services/Pre_Sales','_top','') oCMenu.makeMenu('sub34','sub28',' After Sales','http://www.sortimat.com/german/Montage-Technology/Services/After_Sales','_top','') oCMenu.makeMenu('sub35','sub34',' After sales','http://www.sortimat.com/german/Montage-Technology/Services/After_Sales/After_sales','_top','') oCMenu.makeMenu('sub36','sub34',' Ersatzteilservice','http://www.sortimat.com/german/Montage-Technology/Services/After_Sales/Ersatzteilservice','_top','') oCMenu.makeMenu('sub37','sub34',' Schulung','http://www.sortimat.com/german/Montage-Technology/Services/After_Sales/Schulung','_top','') oCMenu.makeMenu('sub38','',' Zuführ-Technology','http://www.sortimat.com/german/Zufuehr-Technology','_top','') oCMenu.makeMenu('sub39','sub38',' Produktwelt','http://www.sortimat.com/german/Zufuehr-Technology/Produktwelt','_top','190') oCMenu.makeMenu('sub40','sub38',' Innovationen & Produktion','http://www.sortimat.com/german/Zufuehr-Technology/Innovationen__Produktion','_top','190') oCMenu.makeMenu('sub41','sub38',' Märkte & Kunden','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden','_top','190') oCMenu.makeMenu('sub42','sub41',' Branchen','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub43','sub41',' Länder','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub44','sub41',' Kunden','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub45','sub41',' Referenzprojekte','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte','_top','') oCMenu.makeMenu('sub46','sub45',' Medizintechnik','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Medizintechnik','_top','') oCMenu.makeMenu('sub47','sub45',' Elektroindustrie','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Elektroindustrie','_top','') oCMenu.makeMenu('sub48','sub45',' Verpackungsindustrie','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Verpackungsindustrie','_top','') oCMenu.makeMenu('sub49','sub45',' Automobilindustrie','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Automobilindustrie','_top','') oCMenu.makeMenu('sub50','sub45',' Maschinenbau','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Maschinenbau','_top','') oCMenu.makeMenu('sub51','sub45',' Möbelindustrie','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Moebelindustrie','_top','') oCMenu.makeMenu('sub52','sub45',' Spielzeugindustrie','http://www.sortimat.com/german/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Spielzeugindustrie','_top','') oCMenu.makeMenu('sub53','sub38',' Services','http://www.sortimat.com/german/Zufuehr-Technology/Services','_top','190') oCMenu.makeMenu('sub54','',' Handling-Technology','http://www.sortimat.com/german/Handling_Technology','_top','') oCMenu.makeMenu('sub55','sub54',' Produktwelt','http://www.sortimat.com/german/Handling_Technology/Produktwelt','_top','') oCMenu.makeMenu('sub56','sub54',' Technologien','http://www.sortimat.com/german/Handling_Technology/Technologien','_top','') oCMenu.makeMenu('sub57','sub54',' Märkte & Kunden','http://www.sortimat.com/german/Handling_Technology/Maerkte__Kunden','_top','') oCMenu.makeMenu('sub58','sub57',' Branchen','http://www.sortimat.com/german/Handling_Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub59','sub57',' Länder','http://www.sortimat.com/german/Handling_Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub60','sub57',' Kunden','http://www.sortimat.com/german/Handling_Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub61','sub54',' Services','http://www.sortimat.com/german/Handling_Technology/Services','_top','') oCMenu.makeMenu('sub62','sub61',' Traydesign','http://www.sortimat.com/german/Handling_Technology/Services/Traydesign','_top','') oCMenu.makeMenu('sub63','sub61',' Ingenieur-Support','http://www.sortimat.com/german/Handling_Technology/Services/Ingenieur-Support','_top','') oCMenu.makeMenu('sub64','sub61',' After-Sales','http://www.sortimat.com/german/Handling_Technology/Services/After-Sales','_top','') //Leave this line - it constructs the menu oCMenu.construct()