var currentindex = 0;
function slidePortfolioNext()
{
	currentindex = currentindex+1;
	setButtons(currentindex);
	showPanel(currentindex);
}
function slidePortfolioPrev()
{
	currentindex = currentindex-1;
	setButtons(currentindex);
	showPanel(currentindex-1);
}
function setButtons(index)
{
	$("#portNext")[0].style.display='';
	$("#portPrev")[0].style.display='';
	if(currentindex == 0)
		$("#portPrev")[0].style.display='none';
		
	if(currentindex == $(".panelSlider").length -1)
		$("#portNext")[0].style.display='none';
}
function showPanel(index){
      var l = ($(".tab-container")[0].clientWidth)*index;
      $(".panels").animate({left:"-"+l+"px"},"slow","easeboth");
}
