function imgNext(imgid,side,count){
	
	//alert('test');
	var count;
	//alert('count');
	var imgthis = document.getElementById(imgid).src;
	var newImg = new Image();
	newImg.src = imgthis;
	var height2 = newImg.height;
	//alert(height2);
	if(height2!=0)
	{
	
		imgsplit = imgthis.split("/"); // split path with /
		lastpart = imgsplit.length; // get length of array
		imgname = imgsplit[lastpart-1]; // get last element name = image name
		
		imgname = imgname.split("."); // split image name with . 
		lastpart1 = imgname.length; // get length of array
		imgname1 = imgname[lastpart1-2]; // get image name without extension
	
		
		imgid1 = imgname1.split("_"); // split image name with _
		lastpart2 = imgid1.length; // get length of array
		imgidis = imgid1[lastpart2-1]; // get image name without extension
		
		var side;
		//alert(imgidis);
		if((side == '+') && (imgidis < count ))
		{
			imgidNext = parseInt(imgidis)+1; // increment 
		}
		else if((side == '-') && (imgidis-1!=0))
		{
			imgidNext = parseInt(imgidis)-1; // increment 
		}
		else
		{
			imgidNext = imgidis;
			
		}
		
		club = imgid1[lastpart2-2] + '_'+ imgidNext + '.'+imgname[lastpart1-1];
		
		var getfull = imgthis.replace(imgidis,imgidNext);

		document.getElementById(imgid).src = getfull;
	}
	else
	{
	
	
	}
	
}
	
