// JavaScript Document

function LayerText(text,id){
	if (document.getElementById){
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	} else if (document.all){
		x = document.all[id];
		x.innerHTML = text;
	} else if (document.layers){
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}
function RecommendedPacks(outlet){

	switch (outlet){
		case "1":
			LayerText("<p>CO<sub>2</sub> cylinder valve closed</p><p>CO<sub>2</sub> cylinder empty</p><p>CO<sub>2</sub> pressure low</p><p>Drink too warm</p>","fault");
			LayerText("<p>Open the CO<sub>2</sub> cylinder valve</p><p>Change the CO<sub>2</sub> cylinder</p><p>Change the CO<sub>2</sub> cylinder</p><p>Clean or clear refrigeration grills/switch the unit 'ON'</p>","action");
		break;
		case "2":
			LayerText("<p>Dirty Nozzle/Diffuser</p><br/><p>Drinks too warm</p>","fault");
			LayerText("<p>Clean the dispenser nozzle/diffuser</p><p>Clean or clear refrigeration grills/switch the unit 'ON'</p>","action");
		break;
		case "3":
			LayerText("<p>CO<sub>2</sub> pressure too low</p><p>Dispensed valve out of adjustment</p>","fault");
			LayerText("<p>Change the CO<sub>2</sub> cylinder</p><p>Call National Customer Service Centre</p>","action");
		break;
		case "4":
			LayerText("<p>Dirty nozzle</p><br/><p>Wrong flavour connected to syrup line</p><br/><p>Dirty product line</p>","fault");
			LayerText("<p>Clean the dispenser nozzle/diffuser</p><p>Connect syrup line to correct flavour and open valve until rectified</p><p>Call National Customer Service Centre</p>","action");
		break;
		case "5":
			LayerText("<p>Empty Bag-In-Box</p><br/><br/><p>Line obstruction</p><p>Faulty change-over valve (where fitted)</p><p>CO<sub>2</sub> cylinder valve</p><p>CO<sub>2</sub> cylinder empty</p><p>Faulty syrup pump</p>","fault");
			LayerText("<p>Replace empty Bag-In-Box with a fresh Bag-In-Box of the same flavour</p><p>Free lines of any restriction</p><p>Manually switch change-over valve to full Bag-In-Box</p><p>Open the CO<sub>2</sub> cylinder valve</p><p>Change the CO<sub>2</sub> cylinder</p><p>Call National Customer Service Centre</p>","action");
		break;
		case "6":
			LayerText("<p>Water off</p><p>CO<sub>2</sub> cylinder valve closed</p><p>Reset button tripped</p>","fault");
			LayerText("<p>Open mains water stop cock</p><p>Open the CO<sub>2</sub> cylinder valve</p><p>Follow reset instruction located on the cooler or carbonator</p>","action");;
		break;
		case "7":
			LayerText("<p>Syrup to water ratio incorrect</p>","fault");
			LayerText("<p>Call National Customer Service Centre</p>","action");;
		break;
		case "8":
			LayerText("<p>Refrigeration unit not working</p><br/><br/><p>Insufficient airflow through condenser (dirty grill)</p><p>Grill obstruction</p>","fault");
			LayerText("<p>Check main power supply, switch 'ON' power to the refrigeration unit</p><p>Clean cooler/condenser grill</p><br/><p>Remove any objects blocking air into or out of the refrigeration unit</p>","action");;
		break;
	}
}

