// =========================================================
// ==                                                     ==
// ==     ROUTINE DE GESTION DES CHIFFRES DU COMPTEUR     ==
// ==                                                     ==
// =========================================================
// ==                                                     ==
// == CODE SOURCE VERSION : 0.0.1                         ==
// == CODE DEVELOPPER     : ASHRA-Magic                   ==
// ==                                                     ==
// =========================================================

// =========================================================
// =========================================================
// =========================================================

// FONCTION D'AFFICHAGE DES COMPTEUR.
	function drawvisitor(visitor,strpic) {
		var nbzezo	= 5;
		var tpzero	= 0;
		var result	= "";
		result = ('<table width="*" height="16" border="0" cellpadding="0" cellspacing="0"><tr>');
		document.write(result);
		for (var tpzero = 0; tpzero < nbzezo-visitor.length; tpzero++){
			result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"a.gif' width='12' height='16' border='0'></td>");
			document.write(result);
		}
		for (var tpzero = 0; tpzero < visitor.length; tpzero++) {
			switch (visitor.charAt(tpzero)){
				case "0":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"a.gif' width='12' height='16' border='0'></td>");
				break;
				case "1":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"b.gif' width='12' height='16' border='0'></td>");
				break;
				case "2":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"c.gif' width='12' height='16' border='0'></td>");
				break;
				case "3":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"d.gif' width='12' height='16' border='0'></td>");
				break;
				case "4":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"e.gif' width='12' height='16' border='0'></td>");
				break;
				case "5":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"f.gif' width='12' height='16' border='0'></td>");
				break;
				case "6":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"g.gif' width='12' height='16' border='0'></td>");
				break;
				case "7":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"h.gif' width='12' height='16' border='0'></td>");
				break;
				case "8":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"i.gif' width='12' height='16' border='0'></td>");
				break;
				case "9":
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"j.gif' width='12' height='16' border='0'></td>");
				break;
				default:
					result = ("<td width='13' height='16'><img src='pics/counter/ico_number0"+strpic+"a.gif' width='12' height='16' border='0'></td>");
			}
			document.write(result);
		}
		result = ('</tr></table>');
		document.write(result);
	}
