function photoScrollHeight(heightV)	{
	var prdScrollList=document.getElementById("imgS");
	var photoScrollEa = prdScrollList.getElementsByTagName("li");
	var photoScrollHeight	= photoScrollEa.length * heightV;
	prdScrollList.style.height = photoScrollHeight + "px";
}

function photoScrollMove(moveF,moveV,EA)	{
	var prdScrollList=document.getElementById("imgS");
	var prdScrollTop = prdScrollList.style.top;
	prdScrollTop = parseInt(prdScrollTop.replace("px",""));
	
	photoScrollHeight = prdScrollList.style.height;
	photoScrollHeight = parseInt(photoScrollHeight.replace("px",""));
	photoScrollHeight = -(photoScrollHeight + (moveV*EA));

	if (moveF == "U") {
		if (prdScrollTop !=0)	{
			prdScrollList.style.top = prdScrollTop + moveV + "px";
		}
		else	{
			alert("nema više slika");
		}
	}
	else	{
		
		if (prdScrollTop > photoScrollHeight)	{
			prdScrollList.style.top = prdScrollTop + moveV + "px";
		}
		else	{
			alert("nema više slika");
		}
	}
}

function imgView(n,prdName,imageListSize) {
	
	obj_I = document.getElementById('imbView');
	
	for(var i = 1; i <= imageListSize; i++) {

	obj_T = document.getElementById('imgS_'+i);
	
	if ( n == i ) {
			obj_T.className	="on";
			obj_I.src= prdName;
			
		} else {
			obj_T.className	="";
		}
	}
}