
function InitializeMenus(oMenuIn, cName){
	//Men? Objekt erstellen
	oMenuIn=new makeCM(cName)
	oMenuIn.frames = 0
	
	//Men? Eigenschaften
	oMenuIn.pxBetween=1
	oMenuIn.fromLeft=-1
	oMenuIn.fromTop=76
	oMenuIn.rows=1
	oMenuIn.menuPlacement=0
	oMenuIn.offlineRoot="file:///C|/pb/api/"
	oMenuIn.onlineRoot="/us/"
	oMenuIn.resizeCheck=0
	oMenuIn.wait=700
	oMenuIn.fillImg="/images/cm_leer.gif"
	oMenuIn.zIndex=1000;
	
	//Hintergrund Hauptnavigation
	oMenuIn.useBar=0
	oMenuIn.barWidth="100%"
	oMenuIn.barHeight="menu"
	oMenuIn.barClass="clBar"
	oMenuIn.barX=0
	oMenuIn.barY=0
	oMenuIn.barBorderX=0
	oMenuIn.barBorderY=0
	oMenuIn.barBorderClass=""
	
	//Hauptmen?
	oMenuIn.level[0]=new cm_makeLevel()
	oMenuIn.level[0].width=117
	oMenuIn.level[0].height=26
	oMenuIn.level[0].regClass="clLevel0"
	oMenuIn.level[0].overClass="clLevel0over"
	oMenuIn.level[0].borderClass="clLevel0border"
	oMenuIn.level[0].borderX=0
	oMenuIn.level[0].borderY=0
	oMenuIn.level[0].offsetX=0
	oMenuIn.level[0].offsetY=0
	oMenuIn.level[0].rows=0
	oMenuIn.level[0].arrow=0
	oMenuIn.level[0].arrowWidth=0
	oMenuIn.level[0].arrowHeight=0
	oMenuIn.level[0].align="bottom"
	
	//Untermen? Ebene 1
	oMenuIn.level[1]=new cm_makeLevel()
	oMenuIn.level[1].width=oMenuIn.level[0].width-2
	//oMenuIn.level[1].width=oMenuIn.level[0].width
	oMenuIn.level[1].height=22
	oMenuIn.level[1].regClass="clLevel1"
	oMenuIn.level[1].overClass="clLevel1over"
	oMenuIn.level[1].borderClass="clLevel1border"
	oMenuIn.level[1].borderX=1
	oMenuIn.level[1].borderY=1
	oMenuIn.level[1].offsetX=-1
	oMenuIn.level[1].offsetY=-1
	oMenuIn.level[1].align="right"
	
	//Untermen? Ebene 2
	oMenuIn.level[2]=new cm_makeLevel()
	oMenuIn.level[2].width=oMenuIn.level[1].width-2
	//oMenuIn.level[2].width=oMenuIn.level[1].width
	oMenuIn.level[2].height=22
	oMenuIn.level[2].regClass="clLevel2"
	oMenuIn.level[2].overClass="clLevel2over"
	oMenuIn.level[2].borderClass="clLevel2border"
	oMenuIn.level[2].borderX=1
	oMenuIn.level[2].borderY=1
	oMenuIn.level[2].offsetX=-1
	oMenuIn.level[2].offsetY=-1
	oMenuIn.level[2].align="right"
	
	//Untermen? Ebene 3
	oMenuIn.level[3]=new cm_makeLevel()
	oMenuIn.level[3].width=oMenuIn.level[2].width-2
	//oMenuIn.level[3].width=oMenuIn.level[2].width
	oMenuIn.level[3].height=22
	oMenuIn.level[3].regClass="clLevel3"
	oMenuIn.level[3].overClass="clLevel3over"
	oMenuIn.level[3].borderClass="clLevel3border"
	oMenuIn.level[3].borderX=1
	oMenuIn.level[3].borderY=1
	oMenuIn.level[3].offsetX=0
	oMenuIn.level[3].offsetY=0
	return(oMenuIn);
}


//-------------------------------------------------------------------------------------------------
// Beispiel Men?erstellung:
// oMenuIn.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
//
//-------------------------------------------------------------------------------------------------
// NAVIGATION AB HIER ?NDERN navigation.js

function CreateMenuEntries(oMenuIn, cName, cSection){

if (cSection + '' == 'all'){
	CreateMenuEntries(oMenuIn, cName, 0);
	CreateMenuEntries(oMenuIn, cName, 1);
	CreateMenuEntries(oMenuIn, cName, 2);
	CreateMenuEntries(oMenuIn, cName, 3);
	CreateMenuEntries(oMenuIn, cName, 4);
	CreateMenuEntries(oMenuIn, cName, 5);
	CreateMenuEntries(oMenuIn, cName, 6);
	CreateMenuEntries(oMenuIn, cName, 7);
	return(1);
}

switch (cSection * 1){
case 0:
	oMenuIn.makeMenu(cName + 'top0','','Home','index.htm','_self','118','26','','','','','center')
	break
case 1:
oMenuIn.makeMenu(cName + 'top1','','About API','AboutUs/index.htm','_self','118','26','','','','','center')
	oMenuIn.makeMenu(cName + 'sub10',cName + 'top1','Background on Company','AboutUs/index.htm','','195')
       oMenuIn.makeMenu(cName + 'sub9001',cName + 'top1','Product Development','AboutUs/productdevelopment.htm','','195')
	oMenuIn.makeMenu(cName + 'sub11',cName + 'top1','Certifications','AboutUs/CodeCertifications.htm','','195')
	oMenuIn.makeMenu(cName + 'sub12',cName + 'top1','Terms & Conditions of Sales','GeneralInformation/TermsAndConditionsOfSale.htm','','195')
	oMenuIn.makeMenu(cName + 'sub13',cName + 'top1','API Apparel','Apparel/index.htm','','195')
       
	break
case 2:
oMenuIn.makeMenu(cName + 'top2','','Markets','Markets/index.htm','_self','118','26','','','','','center')
	oMenuIn.makeMenu(cName + 'sub20',cName + 'top2','Introduction','Markets/index.htm','','150')
	oMenuIn.makeMenu(cName + 'sub21',cName + 'top2','Compressor','Markets/Compressor.htm','','150')
	oMenuIn.makeMenu(cName + 'sub23',cName + 'top2','Fluid Power','Markets/FluidPower.htm','','150')
	oMenuIn.makeMenu(cName + 'sub24',cName + 'top2','Food & Beverage','Markets/FoodBeverage.htm','','150')
	oMenuIn.makeMenu(cName + 'sub25',cName + 'top2','Mobile Vehicle','Markets/MobileVehicle.htm','','150')
	oMenuIn.makeMenu(cName + 'sub26',cName + 'top2','Power Generation','Markets/PowerGeneration.htm','','150')
	oMenuIn.makeMenu(cName + 'sub27',cName + 'top2','Process & Chemical','Markets/ProcessChemical.htm','','150')
	oMenuIn.makeMenu(cName + 'sub28',cName + 'top2','Refrigerant Air Dryer','Markets/RefrigerantAirDryer.htm','','150')
	break
/*
    oMenuIn.makeMenu(cName + 'sub20',cName + 'top2','Introduction','Applications/index.htm','','300')
	oMenuIn.makeMenu(cName + 'sub21',cName + 'top2','Process Water','Applications/ProcessCooling.htm','','300')
	oMenuIn.makeMenu(cName + 'sub22',cName + 'top2','Chemical Processing','Applications/ChemicalProcessing.htm','','300')
	oMenuIn.makeMenu(cName + 'sub23',cName + 'top2','Air & Gas Cooling','Applications/AirAndGas.htm','','300')
	oMenuIn.makeMenu(cName + 'sub24',cName + 'top2','Lube Oil Cooling','Applications/LubeOil.htm','','300')
	oMenuIn.makeMenu(cName + 'sub25',cName + 'top2','Food Processing','Applications/Sanitary.htm','','300')
	oMenuIn.makeMenu(cName + 'sub26',cName + 'top2','Refrigeration','Applications/Refrigeration.htm','','300')
	oMenuIn.makeMenu(cName + 'sub27',cName + 'top2','DCRA Heat Exchangers for Air Separation','Applications/AirSeparation-DCRA.htm','','300')
	oMenuIn.makeMenu(cName + 'sub28',cName + 'top2','Dual Circuit Aftercooler Heat Exchangers for Air Separation','Applications/AirSeparation-DualCircuitAftercooler.htm','','300', '45')
	oMenuIn.makeMenu(cName + 'sub29',cName + 'top2','Oxygen Coolers for Air Separation','Applications/AirSeparation-OxygenCoolers.htm','','300')
	oMenuIn.makeMenu(cName + 'sub210',cName + 'top2','Lube Oil Console Coolers','Applications/Compressor-LubeOilConsoleCoolers.htm','','300')
	oMenuIn.makeMenu(cName + 'sub211',cName + 'top2','Natural Gas Heaters','Applications/Compressor-NaturalGasHeaters.htm','','300')
	oMenuIn.makeMenu(cName + 'sub212',cName + 'top2','Basco Type 500 Coolers for Rotary Screw Compressors','Applications/Compressor-Type500RotaryScrewCompressors.htm','','300')
	oMenuIn.makeMenu(cName + 'sub213',cName + 'top2','Basco Type ES Intercoolers for Compressors','Applications/Compressor-TypeESIntercoolers.htm','','300')
	oMenuIn.makeMenu(cName + 'sub214',cName + 'top2','Gland Steam Condenser Package','Applications/Power-GlandSteamCondenserPackage.htm','','300')
*/	

// Beispielnavigation anfang
	//oMenuIn.makeMenu(cName + 'sub20',cName + 'top2','Beispiel 1-1','beispiel.php','','102')
		//oMenuIn.makeMenu(cName + 'sub200',cName + 'sub20','Beispiel 1-2','beispiel.php','','100')
			//oMenuIn.makeMenu(cName + 'sub2000',cName + 'sub200','Beispiel 1-3','beispiel.php','','100')
			//oMenuIn.makeMenu(cName + 'sub2001',cName + 'sub200','Beispiel 1-3','beispiel.php','','100')
	//oMenuIn.makeMenu(cName + 'sub21',cName + 'top2','Beispiel 2-1','beispiel.php','','102','','','','','','left')
		//oMenuIn.makeMenu(cName + 'sub210',cName + 'sub21','Beispiel 2-2','beispiel.php','','100','','','','','','left')
			//oMenuIn.makeMenu(cName + 'sub2100',cName + 'sub210','Beispiel 2-3','beispiel.php','','100')
// Beispielnavigation ende

case 3:
oMenuIn.makeMenu(cName + 'top3','','Products','Products/index.htm','_self','118','26','','','','','center')
	oMenuIn.makeMenu(cName + 'sub30',cName + 'top3','Air-Cooled Technology','Products/HeatExchangers/AirCooled/index.htm','','235')
		oMenuIn.makeMenu(cName + 'sub300',cName + 'sub30','Brazed Aluminium Bar & Plate Coolers','Products/HeatExchangers/AirCooled/AirtechAluminumAirCooledHeatExchangers.htm','','230')
		oMenuIn.makeMenu(cName + 'sub301',cName + 'sub30','Radiators','Products/HeatExchangers/AirCooled/AirtechRadiator.htm','','230')
		oMenuIn.makeMenu(cName + 'sub302',cName + 'sub30','PCR\'s','Products/HeatExchangers/AirCooled/AirtechPCRAluminumHeatExchangers.htm','','230')
		oMenuIn.makeMenu(cName + 'sub303',cName + 'sub30','Fan-Cooled Units','Products/HeatExchangers/AirCooled/AirtechFanCooledAluminumHeatExchangers.htm','','230')


	oMenuIn.makeMenu(cName + 'sub31',cName + 'top3','Shell & Tube Technology','Products/HeatExchangers/ShellAndTube/index.htm','','235')
		oMenuIn.makeMenu(cName + 'sub310',cName + 'sub31','Type 500','Products/HeatExchangers/ShellAndTube/Type500.htm','','235')
		oMenuIn.makeMenu(cName + 'sub311',cName + 'sub31','Hub','Products/HeatExchangers/ShellAndTube/HubDesign.htm','','235')
		oMenuIn.makeMenu(cName + 'sub312',cName + 'sub31','U-Tube','Products/HeatExchangers/ShellAndTube/UTube.htm','','235')
		oMenuIn.makeMenu(cName + 'sub313',cName + 'sub31','Type OP','Products/HeatExchangers/ShellAndTube/TypeOP.htm','','235')
		oMenuIn.makeMenu(cName + 'sub314',cName + 'sub31','PLAC Aftercooler','Products/HeatExchangers/ShellAndTube/PLACShellAndTube.htm','','235')
		oMenuIn.makeMenu(cName + 'sub315',cName + 'sub31','Custom Shell & Tube Heat Exchangers','Products/HeatExchangers/ShellAndTube/CustomShellAndTube.htm','','235')
		oMenuIn.makeMenu(cName + 'sub316',cName + 'sub31','Extended Surface Type ES Plate Fin','Products/HeatExchangers/ShellAndTube/TypeES.htm','','235')

	oMenuIn.makeMenu(cName + 'sub32',cName + 'top3','Plate Technology','Products/HeatExchangers/PlateHeatExchanger/index.htm','','235')
		oMenuIn.makeMenu(cName + 'sub320',cName + 'sub32','Gasketed Plate Heat Exchangers','Products/HeatExchangers/PlateHeatExchanger/GasketedPHE.htm','','245')
		oMenuIn.makeMenu(cName + 'sub321',cName + 'sub32','Semi-Welded Plate Heat Exchangers','Products/HeatExchangers/PlateHeatExchanger/SemiWeldedPHE.htm','','245')
		oMenuIn.makeMenu(cName + 'sub322',cName + 'sub32','Sigmawig Welded Plate Heat Exchangers','Products/HeatExchangers/PlateHeatExchanger/WeldedPHE.htm','','245')
		oMenuIn.makeMenu(cName + 'sub323',cName + 'sub32','Brazed Plate Heat Exchangers','Products/HeatExchangers/PlateHeatExchanger/BrazedPHE.htm','','245')


	oMenuIn.makeMenu(cName + 'sub33',cName + 'top3','Thermal Systems','Products/HeatExchangers/ThermalSystems/index.htm','','235')
		oMenuIn.makeMenu(cName + 'sub330',cName + 'sub33','Plate Evaporation Systems','Products/HeatExchangers/ThermalSystems/ThermalSystemsEvaporationSystems.htm','','190')
		oMenuIn.makeMenu(cName + 'sub331',cName + 'sub33','Dealalcoholization Plants','Products/HeatExchangers/ThermalSystems/ThermalSystemsDealcoholizationSystems.htm','','190')
		oMenuIn.makeMenu(cName + 'sub332',cName + 'sub33','Pasteurizers','Products/HeatExchangers/ThermalSystems/ThermalSystemsShortTimeHeater.htm','','190')
		oMenuIn.makeMenu(cName + 'sub333',cName + 'sub33','Deaeration Systems','Products/HeatExchangers/ThermalSystems/ThermalSystemsDeaerationSystems.htm','','190')
//		oMenuIn.makeMenu(cName + 'sub354',cName + 'sub33','Aroma Recovery Systems','#','','190')


	oMenuIn.makeMenu(cName + 'sub34',cName + 'top3','Specialty Products','Products/Specialty/index.htm','','235')
		oMenuIn.makeMenu(cName + 'sub340',cName + 'sub34','Moisture Separators','Products/Specialty/MoistureSeparators.htm','','160')
break

case 4:
oMenuIn.makeMenu(cName + 'top4','','Service & Parts','Service/index.htm','_self','118','26','','','','','center')
	oMenuIn.makeMenu(cName + 'sub42',cName + 'top4','Airtech Aircooled','Service/Airtech.htm','','190')
	oMenuIn.makeMenu(cName + 'sub40',cName + 'top4','Basco Whitlock Shell & Tube','Service/Basco.htm','','190')
	oMenuIn.makeMenu(cName + 'sub41',cName + 'top4','Schmidt Plate Heat Exchanger','Service/Schmidt.htm','','190')
	oMenuIn.makeMenu(cName + 'sub43',cName + 'top4','Schmidt Thermal Systems','Service/SchmidtThermal.htm','','190')
break
case 5:
oMenuIn.makeMenu(cName + 'top5','','Literature','Literature/index.htm','_self','118','26','','','','','center')
	oMenuIn.makeMenu(cName + 'sub50',cName + 'top5','Group','Literature/Group.htm','','200')
    oMenuIn.makeMenu(cName + 'sub51',cName + 'top5','Air-Cooled Heat Exchangers','Literature/AirCooled.htm','','200')
	oMenuIn.makeMenu(cName + 'sub52',cName + 'top5','Shell & Tube Heat Exchangers','Literature/ShellAndTube.htm','','200')
	oMenuIn.makeMenu(cName + 'sub53',cName + 'top5','Plate Heat Exchangers','Literature/PlateHeatExchangers.htm','','200')
	oMenuIn.makeMenu(cName + 'sub54',cName + 'top5','Thermal Systems','Literature/ThermalSystems.htm','','200')
	oMenuIn.makeMenu(cName + 'sub55',cName + 'top5','Specialty Products','Literature/Specialty.htm','','200')
//    oMenuIn.makeMenu(cName + 'sub56',cName + 'top5','Market Specific','#','','200')
break
case 6:
oMenuIn.makeMenu(cName + 'top6','','Careers','Careers/index.htm','_self','118','26','','','','','center')
//	oMenuIn.makeMenu(cName + 'sub60',cName + 'top6','Introduction','#','','150')
	oMenuIn.makeMenu(cName + 'sub60',cName + 'top6','Open Opportunities','Careers/index.htm','','150')
	oMenuIn.makeMenu(cName + 'sub61',cName + 'top6','Benefits','Careers/Benefits.htm','','150')
	//oMenuIn.makeMenu(cName + 'sub61',cName + 'top6','Skilled worker','jobs.php#facharbeiter','','150')
	//oMenuIn.makeMenu(cName + 'sub62',cName + 'top6','Apprentice','jobs.php#kfm','','150')
	//oMenuIn.makeMenu(cName + 'sub63',cName + 'top6','Apprentice','jobs.php#gew','','150')
	//oMenuIn.makeMenu(cName + 'sub64',cName + 'top6','Praktica etc.','jobs.php#praktika','','150')
break;
case 7:
oMenuIn.makeMenu(cName + 'top7','','Contact Us','ContactUs/index.htm','_self','118','26','','','','','center')
	oMenuIn.makeMenu(cName + 'sub70',cName + 'top7','API Contacts','ContactUs/index.htm','','150','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub700',cName + 'sub70','Corporate','#','','210','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub701',cName + 'sub70','API Airtech','#','','210','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub702',cName + 'sub70','API Basco','#','','210','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub703',cName + 'sub70','API Schmidt Bretten','#','','210','','','','','','left')
//	        oMenuIn.makeMenu(cName + 'sub7030',cName + 'sub703','API Schmidt Bretten Americas','#','','250','','','','','','left')
//			oMenuIn.makeMenu(cName + 'sub7031',cName + 'sub703','API Schmidt Bretten Germany','#','','250','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub704',cName + 'sub70','API Heat Transfer (Suzhou) Co Ltd','#','','210','','','','','','left')

	oMenuIn.makeMenu(cName + 'sub71',cName + 'top7','Sales Representatives','http://status.apiheattransfer.com/wwwSiteServices/RepLookup.asp','','150','','','','','','left')
	    oMenuIn.makeMenu(cName + 'sub710',cName + 'sub71','Find my Representative','http://status.apiheattransfer.com/wwwSiteServices/RepLookup.asp','','150','40','','','','','left')
//	    oMenuIn.makeMenu(cName + 'sub711',cName + 'sub71','Canada','#','','150','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub712',cName + 'sub71','Mexico','#','','150','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub713',cName + 'sub71','Europe','#','','150','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub714',cName + 'sub71','Middle East','#','','150','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub715',cName + 'sub71','China','#','','150','','','','','','left')
//		oMenuIn.makeMenu(cName + 'sub716',cName + 'sub71','Asia Pacific','#','','150','','','','','','left')




		// Beispielnavigation anfang
	//oMenuIn.makeMenu(cName + 'sub20',cName + 'top2','Beispiel 1-1','beispiel.php','','102')
		//oMenuIn.makeMenu(cName + 'sub200',cName + 'sub20','Beispiel 1-2','beispiel.php','','100')
			//oMenuIn.makeMenu(cName + 'sub2000',cName + 'sub200','Beispiel 1-3','beispiel.php','','100')
			//oMenuIn.makeMenu(cName + 'sub2001',cName + 'sub200','Beispiel 1-3','beispiel.php','','100')
	//oMenuIn.makeMenu(cName + 'sub21',cName + 'top2','Beispiel 2-1','beispiel.php','','102','','','','','','left')
		//oMenuIn.makeMenu(cName + 'sub210',cName + 'sub21','Beispiel 2-2','beispiel.php','','100','','','','','','left')
			//oMenuIn.makeMenu(cName + 'sub2100',cName + 'sub210','Beispiel 2-3','beispiel.php','','100')
// Beispielnavigation ende
break;
default:
	return(0)
}
return(1);
}

// AB HIER NICHTS MEHR ?NDERN !!!!
//-------------------------------------------------------------------------------------------------

//Nichts ?ndern - Navigarion wird erstellt
var oCMenu;
oCMenu = InitializeMenus(oCMenu, 'oCMenu');
CreateMenuEntries(oCMenu, 'oCMenu', 'all');
oCMenu.construct();

//Extra Code f?r Positionsbestimmung
function findPos(num){
  //alert(num)
  if(bw.ns4){   //Netscape 4
    x = document.layers["layerMenu"+num].pageX
    y = document.layers["layerMenu"+num].pageY
  }else{ //andere browser
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"+num]:document.getElementById("divMenu"+num);
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){
        temp=temp.offsetParent;
        x+=temp.offsetLeft
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft
    y+=el.offsetTop
  }
  //Return x und y als array
  return [x,y]
}
function findPosEl(cName){
  //alert(num)
  if(bw.ns4){   //Netscape 4
    x = document.layers[cName].pageX;
    y = document.layers[cName].pageY;
  }else{ //andere browser
    x=0; y=0; var el,temp;
    el = bw.ie4?document.all[cName]:document.getElementById(cName);
    if(el.offsetParent){
      temp = el;
      while(temp.offsetParent){
        temp=temp.offsetParent;
        x+=temp.offsetLeft;
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft;
    y+=el.offsetTop;
  }
  //Return x und y als array
  return [x,y];	
}

function placeElements(){
  //Position aller top items ?ndern:
  pos = findPos(0);
  oCMenu.m["oCMenutop0"].b.moveIt(pos[0],pos[1]);
  pos = findPos(1);
  oCMenu.m["oCMenutop1"].b.moveIt(pos[0],pos[1]);
  pos = findPos(2);
  oCMenu.m["oCMenutop2"].b.moveIt(pos[0],pos[1]);
  pos = findPos(3);
  oCMenu.m["oCMenutop3"].b.moveIt(pos[0],pos[1]);
  pos = findPos(4);
  oCMenu.m["oCMenutop4"].b.moveIt(pos[0],pos[1]);
  pos = findPos(5);
  oCMenu.m["oCMenutop5"].b.moveIt(pos[0],pos[1]);
  pos = findPos(6);
  oCMenu.m["oCMenutop6"].b.moveIt(pos[0],pos[1]);
  pos = findPos(7);
  oCMenu.m["oCMenutop7"].b.moveIt(pos[0],pos[1]);
  //Setze den fromtop value
  oCMenu.fromTop = pos[1];
}

window.onload="placeElements(); ShowSubMenu();"
//Elemente nach resize platzieren
oCMenu.onafterresize="placeElements()"
