	
	var total 	 	= arrImg.length;
	var position 	= total;
	
	function move_pic(request) {
		
		if ((request == 'next' && position-3 > 0) || (request == 'prev') && position < total){
		
			if (request == 'next') {
				position--;
			} else {
				position++;
			}
			
			count = position - 1;
		
			for (i=1; i<=3; i++) {
				/*document.getElementById('pic_' + i).src 	= imgPath + '/small/' + arrImg[count];*/
				document.getElementById('pic_' + i).src 	= imgPath + '/' + arrImg[count];
				document.getElementById('A' + i).href 	= pdfPath + '/' + arrpdf[count];
				document.getElementById('B' + i).href 	= pdfPath + '/' + arrpdf[count];
				/*document.getElementById('lblB' + i).innerHTML  	= arrcarname[count];*/
				count--;
			}
		}
	}
	
	function change_pic(id) {
		document.getElementById('pic_big').src = imgPath + '/big/' + arrImg[id];
	}
	
	function get_first_img() {
		document.getElementById('pic_big').src = imgPath + '/big/' + arrImg[total-1];
	}