
function loadMap(material)
{
	if (material < 0 || material >= materialList.length)
	{
		return;
	}
	
	for (i = 0; i < zoneList.length; i++)
	{
		if (zoneMap[material][i] == 'L')
		{
			$("mat" + i).update("<img src=\"_img/low.gif\"/>");
		}
		else if (zoneMap[material][i] == 'M')
		{
			$("mat" + i).update("<img src=\"_img/medium.gif\"/>");
		}
		else if (zoneMap[material][i] == 'H')
		{
			$("mat" + i).update("<img src=\"_img/high.gif\"/>");
		}
	}
}

materialList = new Array(23);
zoneList = new Array("Nord Italia","Centro Italia","Sud Italia","UK","Russia","Polonia","Turchia");
zoneMap = new Array(materialList);

materialList[0]="Alluminium";
materialList[1]="Copper";
materialList[2]="Carbon steel";
materialList[3]="Stainless steel";
materialList[4]="Plastic - ABS";
materialList[5]="Plastic - EPS";
materialList[6]="Plastic - Polyethylene";
materialList[7]="Plastic - Polypropylene";
materialList[8]="Plastic - Polystyrene";
materialList[9]="Polyurethane";
materialList[10]="Enamels";
materialList[11]="Paint";
materialList[12]="Prepaint steel";
materialList[13]="Compressors";
materialList[14]="Motors";
materialList[15]="Pumps";
materialList[16]="Electronics";
materialList[17]="Plastic parts";
materialList[18]="Metalpressing";
materialList[19]="Diecasting";
materialList[20]="Rubber Parts";
materialList[21]="Gas Components";
materialList[22]="Glass";
materialList[23]="Electromechanic Components";
materialList[24]="Harness";
materialList[25]="Cooling Circuits";
materialList[26]="Concrete Weights";
materialList[27]="Fasteners";


zoneMap[0]= new Array('L','M','M','L','M','H','M');
zoneMap[1]= new Array('L','M','H','L','H','H','L');
zoneMap[2]= new Array('M','H','H','L','H','H','L');
zoneMap[3]= new Array('H','H','M','L','L','H','L');
zoneMap[4]= new Array('M','M','M','L','M','M','L');
zoneMap[5]= new Array('H','H','H','M','M','H','L');
zoneMap[6]= new Array('H','H','H','L','L','H','M');
zoneMap[7]= new Array('M','M','H','M','M','H','L');
zoneMap[8]= new Array('L','L','M','L','H','M','H');
zoneMap[9]= new Array('L','L','M','L','H','M','M');
zoneMap[10]= new Array('L','H','L','L','L','H','L');
zoneMap[11]= new Array('L','M','H','L','H','M','L');
zoneMap[12]= new Array('M','L','L','M','L','H','L');
zoneMap[13]= new Array('L','L','H','L','H','H','H');
zoneMap[14]= new Array('H','H','H','H','M','H','L');
zoneMap[15]= new Array('H','M','M','L','L','M','L');
zoneMap[16]= new Array('H','H','M','L','M','H','L');
zoneMap[17]= new Array('M','M','M','M','L','H','L');
zoneMap[18]= new Array('M','H','L','L','L','H','L');
zoneMap[19]= new Array('M','H','H','L','M','H','L');
zoneMap[20]= new Array('M','H','H','L','M','H','L');
zoneMap[21]= new Array('L','H','L','L','L','H','L');
zoneMap[22]= new Array('L','H','M','L','L','H','L');
zoneMap[23]= new Array('M','H','M','L','M','H','L');
zoneMap[24]= new Array('M','H','M','L','M','H','L');
zoneMap[25]= new Array('L','L','M','L','H','M','H');
zoneMap[26]= new Array('M','M','M','L','M','H','L');
zoneMap[27]= new Array('M','M','M','L','M','H','L');

