/*** 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=127 oCMenu.offlineRoot="./" oCMenu.onlineRoot="http://sortimat.kk.net" 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','',' Our company','http://www.sortimat.com/english/Unternehmen','_top','') oCMenu.makeMenu('sub2','sub1',' New orientation 2008','http://www.sortimat.com/english/Unternehmen/Neuausrichtung_2008','_top','200') oCMenu.makeMenu('sub3','sub1',' Our philosophy','http://www.sortimat.com/english/Unternehmen/Wie_wir_denken','_top','200') oCMenu.makeMenu('sub4','sub1',' Our people','http://www.sortimat.com/english/Unternehmen/Mitarbeiter_und_Management','_top','200') oCMenu.makeMenu('sub5','sub1',' Locations','http://www.sortimat.com/english/Unternehmen/Standorte','_top','200') oCMenu.makeMenu('sub6','sub1',' History','http://www.sortimat.com/english/Unternehmen/Geschichte','_top','200') oCMenu.makeMenu('sub7','sub1',' Career opportunities','http://www.sortimat.com/english/Unternehmen/Jobs_und_Karriere','_top','200') oCMenu.makeMenu('sub8','sub7',' Full-time positions','http://www.sortimat.com/english/Unternehmen/Jobs_und_Karriere/Stellenangebote','_top','170') oCMenu.makeMenu('sub9','sub7',' Apprenticeships','http://www.sortimat.com/english/Unternehmen/Jobs_und_Karriere/Ausbildung','_top','170') oCMenu.makeMenu('sub10','sub7',' Internships','http://www.sortimat.com/english/Unternehmen/Jobs_und_Karriere/Praktika','_top','170') oCMenu.makeMenu('sub11','sub7',' Speculative applications','http://www.sortimat.com/english/Unternehmen/Jobs_und_Karriere/Initiativbewerbung','_top','170') oCMenu.makeMenu('sub12','sub1',' Facts and figures','http://www.sortimat.com/english/Unternehmen/Zahlen_und_Fakten','_top','200') oCMenu.makeMenu('sub13','',' Assembly technology','http://www.sortimat.com/english/Montage-Technology','_top','') oCMenu.makeMenu('sub14','sub13',' Our products','http://www.sortimat.com/english/Montage-Technology/Produktwelt','_top','170') oCMenu.makeMenu('sub15','sub13',' Technology','http://www.sortimat.com/english/Montage-Technology/Technologien','_top','170') oCMenu.makeMenu('sub16','sub15',' Assembly technologies','http://www.sortimat.com/english/Montage-Technology/Technologien/Montagetechnologien','_top','') oCMenu.makeMenu('sub17','sub15',' Innovations and R&D','http://www.sortimat.com/english/Montage-Technology/Technologien/Innovationen__FE','_top','') oCMenu.makeMenu('sub18','sub13',' Markets and customers','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden','_top','170') oCMenu.makeMenu('sub19','sub18',' Industries','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub20','sub18',' Countries','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub21','sub18',' Customers','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub22','sub18',' Key considerations','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Montage_Highlights','_top','') oCMenu.makeMenu('sub23','sub22',' Infusion set','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Infusionsset','_top','') oCMenu.makeMenu('sub24','sub22',' Catheter','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Katheter','_top','') oCMenu.makeMenu('sub25','sub22',' In-vitro diagnostic cartridge','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Blutanalysekassette','_top','') oCMenu.makeMenu('sub26','sub22',' Powder inhaler','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Pulverinhalator','_top','') oCMenu.makeMenu('sub27','sub18',' Reference projects','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte','_top','') oCMenu.makeMenu('sub28','sub27',' Infusion products','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Infusionsprodukte','_top','') oCMenu.makeMenu('sub29','sub27',' Injection products','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Injektionsprodukte','_top','') oCMenu.makeMenu('sub30','sub27',' Pen systems','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Pensysteme','_top','') oCMenu.makeMenu('sub31','sub27',' Diagnostic products','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Diagnostikprodukte','_top','') oCMenu.makeMenu('sub32','sub27',' Inhalation products','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Inhalationsprodukte','_top','') oCMenu.makeMenu('sub33','sub27',' Healthcare products','http://www.sortimat.com/english/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Healthcareprodukte','_top','') oCMenu.makeMenu('sub34','sub13',' Project management','http://www.sortimat.com/english/Montage-Technology/Projektmanagement','_top','170') oCMenu.makeMenu('sub35','sub13',' Services','http://www.sortimat.com/english/Montage-Technology/Services','_top','170') oCMenu.makeMenu('sub36','sub35',' Qualification and validation','http://www.sortimat.com/english/Montage-Technology/Services/Qualifizierung','_top','180') oCMenu.makeMenu('sub37','sub36',' Project plan','http://www.sortimat.com/english/Montage-Technology/Services/Qualifizierung/Projektplan','_top','') oCMenu.makeMenu('sub38','sub36',' Risk analysis','http://www.sortimat.com/english/Montage-Technology/Services/Qualifizierung/Risikoanalyse','_top','') oCMenu.makeMenu('sub39','sub36',' Qualification stages','http://www.sortimat.com/english/Montage-Technology/Services/Qualifizierung/Q-phasen','_top','') oCMenu.makeMenu('sub40','sub35',' Pre-sales service','http://www.sortimat.com/english/Montage-Technology/Services/Pre_Sales','_top','180') oCMenu.makeMenu('sub41','sub35',' After-sales support','http://www.sortimat.com/english/Montage-Technology/Services/After_Sales','_top','180') oCMenu.makeMenu('sub42','sub41',' After-sales support','http://www.sortimat.com/english/Montage-Technology/Services/After_Sales/After_sales','_top','') oCMenu.makeMenu('sub43','sub41',' Spare-parts service','http://www.sortimat.com/english/Montage-Technology/Services/After_Sales/Ersatzteilservice','_top','') oCMenu.makeMenu('sub44','sub41',' Training','http://www.sortimat.com/english/Montage-Technology/Services/After_Sales/Schulung','_top','') oCMenu.makeMenu('sub45','',' Feeder technology','http://www.sortimat.com/english/Zufuehr-Technology','_top','') oCMenu.makeMenu('sub46','sub45',' Our products','http://www.sortimat.com/english/Zufuehr-Technology/Produktwelt','_top','190') oCMenu.makeMenu('sub47','sub45',' Innovation and production','http://www.sortimat.com/english/Zufuehr-Technology/Innovationen__Produktion','_top','190') oCMenu.makeMenu('sub48','sub45',' Markets and customers','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden','_top','190') oCMenu.makeMenu('sub49','sub48',' Industries','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub50','sub48',' Countries','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub51','sub48',' Customers','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub52','sub48',' Reference projects','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte','_top','') oCMenu.makeMenu('sub53','sub52',' Medical industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Medizintechnik','_top','') oCMenu.makeMenu('sub54','sub52',' Electronics industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Elektroindustrie','_top','') oCMenu.makeMenu('sub55','sub52',' Packaging industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Verpackungsindustrie','_top','') oCMenu.makeMenu('sub56','sub52',' Automotive industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Automobilindustrie','_top','') oCMenu.makeMenu('sub57','sub52',' Engineering industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Maschinenbau','_top','') oCMenu.makeMenu('sub58','sub52',' Furniture industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Moebelindustrie','_top','') oCMenu.makeMenu('sub59','sub52',' Toy industry','http://www.sortimat.com/english/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Spielzeugindustrie','_top','') oCMenu.makeMenu('sub60','sub45',' Services','http://www.sortimat.com/english/Zufuehr-Technology/Services','_top','190') oCMenu.makeMenu('sub61','',' Handling technology','http://www.sortimat.com/english/Handling_Technology','_top','') oCMenu.makeMenu('sub62','sub61',' Our products','http://www.sortimat.com/english/Handling_Technology/Produktwelt','_top','') oCMenu.makeMenu('sub63','sub61',' Add-on technologies','http://www.sortimat.com/english/Handling_Technology/Technologien','_top','') oCMenu.makeMenu('sub64','sub61',' Markets & customers','http://www.sortimat.com/english/Handling_Technology/Maerkte__Kunden','_top','') oCMenu.makeMenu('sub65','sub64',' Industries','http://www.sortimat.com/english/Handling_Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub66','sub64',' Countries','http://www.sortimat.com/english/Handling_Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub67','sub64',' Customers','http://www.sortimat.com/english/Handling_Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub68','sub61',' Services','http://www.sortimat.com/english/Handling_Technology/Services','_top','') oCMenu.makeMenu('sub69','sub68',' Tray design','http://www.sortimat.com/english/Handling_Technology/Services/Traydesign','_top','') oCMenu.makeMenu('sub70','sub68',' Expert advice','http://www.sortimat.com/english/Handling_Technology/Services/Ingenieur-Support','_top','') oCMenu.makeMenu('sub71','sub68',' After-sales support','http://www.sortimat.com/english/Handling_Technology/Services/After-Sales','_top','') oCMenu.makeMenu('sub72','',' Information center','http://www.sortimat.com/english/Infocenter','_top','') oCMenu.makeMenu('sub73','sub72',' Press releases','http://www.sortimat.com/english/Infocenter/Presse','_top','') oCMenu.makeMenu('sub74','sub72',' Trade shows','http://www.sortimat.com/english/Infocenter/Messen','_top','') oCMenu.makeMenu('sub75','sub72',' Downloads','http://www.sortimat.com/english/Infocenter/Downloads','_top','') oCMenu.makeMenu('sub76','sub72',' Newsletter','http://www.sortimat.com/english/Infocenter/Newslett','_top','') oCMenu.makeMenu('sub77','sub72',' sortimat jigsaw','http://www.sortimat.com/english/Infocenter/sortimat_jigsaw','_top','') oCMenu.makeMenu('sub78','sub72',' Glossary','http://www.sortimat.com/english/Infocenter/Glossar','_top','') oCMenu.makeMenu('sub79','sub72',' About this Website','http://www.sortimat.com/english/Infocenter/Impressum','_top','') oCMenu.makeMenu('sub80','',' Contact us','http://www.sortimat.com/english/Kontakt','_top','') oCMenu.makeMenu('sub81','sub80',' sortimat Technology Production Systems: Germany','http://www.sortimat.com/english/Kontakt/sortimat_Technology_Production_Systems_Deutschland','_top','370') oCMenu.makeMenu('sub82','sub80',' sortimat Technology Handling Systems: Germany','http://www.sortimat.com/english/Kontakt/sortimat_Technology_Handling_Systems_Deutschland','_top','370') oCMenu.makeMenu('sub83','sub80',' sortimat Technology Production Systems: USA','http://www.sortimat.com/english/Kontakt/sortimat_Technology_Production_Systems_USA','_top','370') oCMenu.makeMenu('sub84','sub80',' sortimat Technology Production Systems: India','http://www.sortimat.com/english/Kontakt/sortimat_Technology_Production_Systems_Indien','_top','370') //Leave this line - it constructs the menu oCMenu.construct()