//portfolio scrolling script by Dinesh Gajbhiye.
var lcLeftPos=0; tempLRpos=0; liNo=0; 
var objTabDiv, setLCtout, ltrtVar, liNos;
function lcScrolling(ltrt)//ltrt=0 - scroll left and ltrt=1 scroll right
	{			
		ltrtVar=ltrt;		
		objTabDiv=document.getElementById("portFolio");
		liNos=objTabDiv.getElementsByTagName("li").length;
		if(ltrtVar==0 && liNo<liNos-1)//visible images 
		{
			liNo=liNo+1;	
			tempLRpos=tempLRpos+266;
			lcScrollSmooth();
			arrowHighlighting();
		}
		else if(ltrtVar==1 && liNo>0)
		{
			liNo=liNo-1;	
			tempLRpos=tempLRpos-266;
			lcScrollSmooth();
			arrowHighlighting();
		}		
		
	}
function lcScrollSmooth()
{	
	if(lcLeftPos<tempLRpos && ltrtVar==0) 
	{
		lcLeftPos=lcLeftPos+5; 
		setLCtout=setTimeout("lcScrollSmooth()",1);
	}
	else if(lcLeftPos>tempLRpos && ltrtVar==1) 
	{
		lcLeftPos=lcLeftPos-5;
		setLCtout=setTimeout("lcScrollSmooth()",1);
	}
	
	objTabDiv.style.left="-"+lcLeftPos+"px";
}

function arrowHighlighting()
{
			if(liNo>0)
			{
				document.getElementById("lnavigator").src="images/previous.jpg";
			}
			else
			{
				document.getElementById("lnavigator").src="images/previous.jpg";
			}
			
			if(liNo>=liNos-4)
			{
				document.getElementById("rnavigator").src="images/next.jpg";
			}
			else
			{
				document.getElementById("rnavigator").src="images/next.jpg";
			}
}