function drawNav(){
	appendNav('mansBelts', 'mansHalf');
	appendNav('womansBelts', 'womansHalf');
}
function appendNav(listContainerId, halfId){
	var listContainerElement = document.getElementById(listContainerId);
	var aElement = document.createElement('a');
	aElement.appendChild(document.createTextNode(''));
	aElement.href = '#back';
	aElement.className = 'backBut';
	aElement.onclick = new Function("turnBeltsList(0,'"+listContainerId+"')");
	listContainerElement.parentNode.getElementsByTagName('div').item(0).appendChild(aElement);
	
	aElement = document.createElement('a');
	aElement.appendChild(document.createTextNode(''));
	aElement.href = '#next';
	aElement.className = 'nextBut';
	aElement.onclick = new Function("turnBeltsList(1,'"+listContainerId+"')");
	listContainerElement.parentNode.getElementsByTagName('div').item(0).appendChild(aElement);
}
function turnBeltsList(direction, listContainerId){
	var s;
	var listContainerElement = document.getElementById(listContainerId);
	if (listContainerId == 'mansBelts'){
		s = '1';
		if (direction == 1){
			if (listsNums[0][0] + increment > listsNums[0][2]){
				listsNums[0][0] = 1;
				listsNums[0][1] = increment;				
			}
			else{
				listsNums[0][0] = listsNums[0][0] + increment;
				listsNums[0][1] = listsNums[0][1] + increment;					
			}
		}
		else if (direction == 0){
			if (listsNums[0][0] == 1){
				listsNums[0][0] = listsNums[0][2] - increment + 1;
				listsNums[0][1] = listsNums[0][2];					
			}
			else if (listsNums[0][0] - increment < 1){
				listsNums[0][0] = 1;
				listsNums[0][1] = increment;
			}
			else {
				listsNums[0][0] = listsNums[0][0] - increment;
				listsNums[0][1] = listsNums[0][1] - increment;				
			}
		}
		var startNum = listsNums[0][0];
		var endNum = listsNums[0][1];
	}
	if (listContainerId == 'womansBelts'){
		s = '0';
		if (direction == 1){
			if (listsNums[1][0] + increment > listsNums[1][2]){
				listsNums[1][0] = 1;
				listsNums[1][1] = increment;				
			}
			else{
				listsNums[1][0] = listsNums[1][0] + increment;
				listsNums[1][1] = listsNums[1][1] + increment;					
			}
		}
		else if (direction == 0){
			if (listsNums[1][0] == 1){
				listsNums[1][0] = listsNums[1][2] - increment + 1;
				listsNums[1][1] = listsNums[1][2];					
			}
			else if (listsNums[1][0] - increment < 1){
				listsNums[1][0] = 1;
				listsNums[1][1] = increment;				
			}
			else {
				listsNums[1][0] = listsNums[1][0] - increment;
				listsNums[1][1] = listsNums[1][1] - increment;				
			}
		}
		var startNum = listsNums[1][0];
		var endNum = listsNums[1][1];
	}
	var ulElementNewBeltsList = new String(getBeltsList(s, '', collectionId, startNum, endNum, '', listContainerElement));
	
	//listContainerElement.innerHTML = ulElementNewBeltsList;
}
