function PrintFaces()
	{
		var faces_container = document.getElementById('faces_container');
		if(faces_container)
		{
			var tmp_html = '<table border="0" cellpadding="0" cellspacing="0" width="95%">' +
			               '<tr>';

			if(facesArr.length > 3)
			{
				tmp_html += '<td valign="top" width="5%"><input type="image" style="cursor:pointer;cursor: hand;" src="img/p-left.gif" alt="Назад" height="20" width="16" onclick="StepFaceLeft();" /></td>';
			}
			else
			{
				tmp_html += '<td valign="top" width="5%"></td>';
			}

			var showedWorkers = 0;
			for(var i = firstVisible; i < facesArr.length && showedWorkers < 3; i++, showedWorkers++)
			{
				tmp_html += '<td valign="top" width="30%" class="human"><a href="['url']"><img src="' + facesArr[i]['Picture']+ '" alt="' + facesArr[i]['Name']+ '" align="left"  width="150" /></a><p>' + facesArr[i]['Name']+ '</p><p><span>' + facesArr[i]['Position']+ '</span></p><p><span>' + facesArr[i]['Icq'] + '</span></p></td>';
			}
			for(var i = 0; i < firstVisible && showedWorkers < 3; i++, showedWorkers++)
			{
				tmp_html += '<td valign="top" width="30%" class="human"><a href="['url']"><img src="' + facesArr[i]['Picture']+ '" alt="' + facesArr[i]['Name']+ '" align="left" width="150" /></a><p>' + facesArr[i]['Name']+ '</p><p><span>' + facesArr[i]['Position']+ '</span></p><p><span>' + facesArr[i]['Icq'] + '</span></p></td>';
			}
			if(facesArr.length > 3)
			{
				tmp_html += '<td align="right" valign="top" width="5%"><input type="image" style="cursor:pointer;cursor: hand;" src="img/p-right.gif" alt="Вперед" height="20" width="16" onclick="StepFaceRigth();" /></td>';
			}
			else
			{
				tmp_html += '<td align="right" valign="top" width="5%"></td>';
			}
			tmp_html += '</tr>' +
			               '</table>';
			faces_container.innerHTML = tmp_html;
		}
	}
	
	function StepFaceLeft()
	{
		if(firstVisible > 0)
		{
			firstVisible--;
		}
		else
		{
			firstVisible = facesArr.length - 1;
		}
		PrintFaces();
	}

	function StepFaceRigth()
	{
		if(firstVisible < facesArr.length - 1)
		{
			firstVisible++;
		}
		else
		{
			firstVisible = 0;
		}
		PrintFaces();
	}
