/*** 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','',' Entreprise','http://www.sortimat.com/french/Unternehmen','_top','') oCMenu.makeMenu('sub2','sub1',' Notre philosophie','http://www.sortimat.com/french/Unternehmen/Wie_wir_denken','_top','200') oCMenu.makeMenu('sub3','sub1',' Collaborateurs et Management','http://www.sortimat.com/french/Unternehmen/Mitarbeiter_und_Management','_top','200') oCMenu.makeMenu('sub4','sub1',' Lieux d’implantation','http://www.sortimat.com/french/Unternehmen/Standorte','_top','200') oCMenu.makeMenu('sub5','sub1',' Historique','http://www.sortimat.com/french/Unternehmen/Geschichte','_top','200') oCMenu.makeMenu('sub6','sub1',' Jobs et carrière','http://www.sortimat.com/french/Unternehmen/Jobs_und_Karriere','_top','200') oCMenu.makeMenu('sub7','sub6',' Offres d’emploi','http://www.sortimat.com/french/Unternehmen/Jobs_und_Karriere/Stellenangebote','_top','195') oCMenu.makeMenu('sub8','sub6',' Formation','http://www.sortimat.com/french/Unternehmen/Jobs_und_Karriere/Ausbildung','_top','195') oCMenu.makeMenu('sub9','sub6',' Stages','http://www.sortimat.com/french/Unternehmen/Jobs_und_Karriere/Praktika','_top','195') oCMenu.makeMenu('sub10','sub6',' L’initiative peut être payante','http://www.sortimat.com/french/Unternehmen/Jobs_und_Karriere/Initiativbewerbung','_top','195') oCMenu.makeMenu('sub11','sub1',' Chiffres et données','http://www.sortimat.com/french/Unternehmen/Zahlen_und_Fakten','_top','200') oCMenu.makeMenu('sub12','',' Technologie d’assemblage','http://www.sortimat.com/french/Montage-Technology','_top','') oCMenu.makeMenu('sub13','sub12',' Nos produits','http://www.sortimat.com/french/Montage-Technology/Produktwelt','_top','') oCMenu.makeMenu('sub14','sub12',' Technologie','http://www.sortimat.com/french/Montage-Technology/Technologien','_top','') oCMenu.makeMenu('sub15','sub14',' Technologies d’assemblage','http://www.sortimat.com/french/Montage-Technology/Technologien/Montagetechnologien','_top','190') oCMenu.makeMenu('sub16','sub14',' Innovations + F&E','http://www.sortimat.com/french/Montage-Technology/Technologien/Innovationen__FE','_top','190') oCMenu.makeMenu('sub17','sub12',' Marché et clients','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden','_top','') oCMenu.makeMenu('sub18','sub17',' Branches','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub19','sub17',' Pays','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub20','sub17',' Clients','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub21','sub17',' Nos solutions de pointe','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Montage_Highlights','_top','') oCMenu.makeMenu('sub22','sub21',' Set d’infusion','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Infusionsset','_top','') oCMenu.makeMenu('sub23','sub21',' Cathéter','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Katheter','_top','') oCMenu.makeMenu('sub24','sub21',' Cassette d’ analyse de sang','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Blutanalysekassette','_top','') oCMenu.makeMenu('sub25','sub21',' Inhalateur à poudre','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Montage_Highlights/Pulverinhalator','_top','') oCMenu.makeMenu('sub26','sub17',' Projets de référence','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte','_top','') oCMenu.makeMenu('sub27','sub26',' Produits pour infusions','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Infusionsprodukte','_top','') oCMenu.makeMenu('sub28','sub26',' Produits pour injections','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Injektionsprodukte','_top','') oCMenu.makeMenu('sub29','sub26',' Systèmes-stylo','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Pensysteme','_top','') oCMenu.makeMenu('sub30','sub26',' Produits pour diagnostics','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Diagnostikprodukte','_top','') oCMenu.makeMenu('sub31','sub26',' Produits pour inhalations','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Inhalationsprodukte','_top','') oCMenu.makeMenu('sub32','sub26',' Produits pour soins médicaux','http://www.sortimat.com/french/Montage-Technology/Maerkte__Kunden/Referenzprojekte/Healthcareprodukte','_top','') oCMenu.makeMenu('sub33','sub12',' Gestion des projets','http://www.sortimat.com/french/Montage-Technology/Projektmanagement','_top','') oCMenu.makeMenu('sub34','sub12',' Services','http://www.sortimat.com/french/Montage-Technology/Services','_top','') oCMenu.makeMenu('sub35','sub34',' Validation','http://www.sortimat.com/french/Montage-Technology/Services/Qualifizierung','_top','') oCMenu.makeMenu('sub36','sub35',' Plan de validation','http://www.sortimat.com/french/Montage-Technology/Services/Qualifizierung/Projektplan','_top','') oCMenu.makeMenu('sub37','sub35',' Analyse des risques','http://www.sortimat.com/french/Montage-Technology/Services/Qualifizierung/Risikoanalyse','_top','') oCMenu.makeMenu('sub38','sub35',' Phases de validation','http://www.sortimat.com/french/Montage-Technology/Services/Qualifizierung/Q-phasen','_top','') oCMenu.makeMenu('sub39','sub34',' Service pré-vente','http://www.sortimat.com/french/Montage-Technology/Services/Pre_Sales','_top','') oCMenu.makeMenu('sub40','sub34',' Service après-vente','http://www.sortimat.com/french/Montage-Technology/Services/After_Sales','_top','') oCMenu.makeMenu('sub41','sub40',' Après-vente','http://www.sortimat.com/french/Montage-Technology/Services/After_Sales/After_sales','_top','195') oCMenu.makeMenu('sub42','sub40',' Service des pièces de rechange','http://www.sortimat.com/french/Montage-Technology/Services/After_Sales/Ersatzteilservice','_top','195') oCMenu.makeMenu('sub43','sub40',' Formation','http://www.sortimat.com/french/Montage-Technology/Services/After_Sales/Schulung','_top','195') oCMenu.makeMenu('sub44','',' Technologie d’amenage','http://www.sortimat.com/french/Zufuehr-Technology','_top','') oCMenu.makeMenu('sub45','sub44',' Nos produits','http://www.sortimat.com/french/Zufuehr-Technology/Produktwelt','_top','190') oCMenu.makeMenu('sub46','sub44',' Innovation et production','http://www.sortimat.com/french/Zufuehr-Technology/Innovationen__Produktion','_top','190') oCMenu.makeMenu('sub47','sub44',' Marchés et clients','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden','_top','190') oCMenu.makeMenu('sub48','sub47',' Branches','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub49','sub47',' Pays','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub50','sub47',' Clients','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub51','sub47',' Projets de référence','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte','_top','') oCMenu.makeMenu('sub52','sub51',' Technique médicale','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Medizintechnik','_top','190') oCMenu.makeMenu('sub53','sub51',' Industrie électrotechnique','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Elektroindustrie','_top','190') oCMenu.makeMenu('sub54','sub51',' Industrie de l’emballage','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Verpackungsindustrie','_top','190') oCMenu.makeMenu('sub55','sub51',' Industrie automobile','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Automobilindustrie','_top','190') oCMenu.makeMenu('sub56','sub51',' Construction mécanique','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Maschinenbau','_top','190') oCMenu.makeMenu('sub57','sub51',' Industrie du meuble','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Moebelindustrie','_top','190') oCMenu.makeMenu('sub58','sub51',' Industrie du jouet','http://www.sortimat.com/french/Zufuehr-Technology/Maerkte__Kunden/Referenzprojekte/Spielzeugindustrie','_top','190') oCMenu.makeMenu('sub59','sub44',' Services','http://www.sortimat.com/french/Zufuehr-Technology/Services','_top','190') oCMenu.makeMenu('sub60','',' Technologie de manipulation','http://www.sortimat.com/french/Handling_Technology','_top','180') oCMenu.makeMenu('sub61','sub60',' Nos produits','http://www.sortimat.com/french/Handling_Technology/Produktwelt','_top','220') oCMenu.makeMenu('sub62','sub60',' Technologies complémentaires','http://www.sortimat.com/french/Handling_Technology/Technologien','_top','220') oCMenu.makeMenu('sub63','sub60',' Marchés et clients','http://www.sortimat.com/french/Handling_Technology/Maerkte__Kunden','_top','220') oCMenu.makeMenu('sub64','sub63',' Branches d’industries','http://www.sortimat.com/french/Handling_Technology/Maerkte__Kunden/Branchen','_top','') oCMenu.makeMenu('sub65','sub63',' Pays','http://www.sortimat.com/french/Handling_Technology/Maerkte__Kunden/Laender','_top','') oCMenu.makeMenu('sub66','sub63',' Clients','http://www.sortimat.com/french/Handling_Technology/Maerkte__Kunden/Kunden','_top','') oCMenu.makeMenu('sub67','sub60',' Services','http://www.sortimat.com/french/Handling_Technology/Services','_top','220') oCMenu.makeMenu('sub68','sub67',' Conception des plateaux','http://www.sortimat.com/french/Handling_Technology/Services/Traydesign','_top','170') oCMenu.makeMenu('sub69','sub67',' Conseil d’experts','http://www.sortimat.com/french/Handling_Technology/Services/Ingenieur-Support','_top','170') oCMenu.makeMenu('sub70','sub67',' Après-vente','http://www.sortimat.com/french/Handling_Technology/Services/After-Sales','_top','170') oCMenu.makeMenu('sub71','',' Infos','http://www.sortimat.com/french/Infocenter','_top','') oCMenu.makeMenu('sub72','sub71',' Presse','http://www.sortimat.com/french/Infocenter/Presse','_top','') oCMenu.makeMenu('sub73','sub71',' Salons','http://www.sortimat.com/french/Infocenter/Messen','_top','') oCMenu.makeMenu('sub74','sub71',' Téléchargement','http://www.sortimat.com/french/Infocenter/Downloads','_top','') oCMenu.makeMenu('sub75','sub71',' Glossaire','http://www.sortimat.com/french/Infocenter/Glossar','_top','') oCMenu.makeMenu('sub76','sub71',' Impressum','http://www.sortimat.com/french/Infocenter/Impressum','_top','') oCMenu.makeMenu('sub77','',' Contacts','http://www.sortimat.com/french/Kontakt','_top','') oCMenu.makeMenu('sub78','sub77',' sortimat Technology Production Systems: Allemagne','http://www.sortimat.com/french/Kontakt/sortimat_Technology_Production_Systems_Deutschland','_top','370') oCMenu.makeMenu('sub79','sub77',' sortimat Technology Handling Systems: Allemagne','http://www.sortimat.com/french/Kontakt/sortimat_Technology_Handling_Systems_Deutschland','_top','370') oCMenu.makeMenu('sub80','sub77',' sortimat Technology Production Systems: USA','http://www.sortimat.com/french/Kontakt/sortimat_Technology_Production_Systems_USA','_top','370') oCMenu.makeMenu('sub81','sub77',' sortimat Technology Production Systems: Inde','http://www.sortimat.com/french/Kontakt/sortimat_Technology_Production_Systems_Indien','_top','370') //Leave this line - it constructs the menu oCMenu.construct()