var munayShoesCounter = 20;
var munayManSchoesCounter = 10;

function scrollShoesForward(type, counter){
	divId = type+"PictureTd";
	var oldCounter1 = document.getElementById(divId).innerHTML.substring(10,11)
	var oldCounter2 = document.getElementById(divId).innerHTML.substring(11,12)
	var oldCounter = document.getElementById(divId).innerHTML.substring(10,12)
	
	var newCounter;
		
	if (oldCounter1=="0"&&oldCounter2!="9"){
		oldCounter2=oldCounter2*1;
		oldCounter2=oldCounter2+1;
		newCounter = oldCounter1+oldCounter2
		
	}else if (oldCounter1=="0"&&oldCounter2=="9"){
		newCounter="10"
	}else if(oldCounter==counter){
		newCounter="01"
	}
	
	else newCounter=(oldCounter*1)+1;
	

	document.getElementById(divId).innerHTML='<img src="'+newCounter+type+'.jpg"/>'
	
	
}

function scrollShoesBackwards(type, counter){
	divId = type+"PictureTd";
	var oldCounter1 = document.getElementById(divId).innerHTML.substring(10,11)
	var oldCounter2 = document.getElementById(divId).innerHTML.substring(11,12)
	var oldCounter = document.getElementById(divId).innerHTML.substring(10,12)
	
	var newCounter;
		
	if (oldCounter1=="0"&&oldCounter2!="1"){
		oldCounter2=oldCounter2*1;
		oldCounter2=oldCounter2-1;
		newCounter = oldCounter1+oldCounter2
		
	}else if (oldCounter1=="1"&&oldCounter2=="0"){
		newCounter="09"
	}else if(oldCounter=="01"){
		newCounter=counter
	}
	
	else newCounter=(oldCounter*1)-1;
	

	document.getElementById(divId).innerHTML='<img src="'+newCounter+type+'.jpg"/>'
	
	
}