var current = 1;
var maxCount = 8;
var shouldSlide = true;
function showNext(){
  if(current<maxCount){
    showImg(current+1);
  }else{
    showImg(1);
  }
}
function showPrev(){
  if(current>1){
    showImg(current-1);
  }else{
    showImg(maxCount);
  }
}
function showImg(id){
    if(current != id){
      $("#img"+current).animate({opacity:0},1000);
      $("#img"+id).animate({opacity:1},1000);
      $("#almni_desc").html($("#img"+id).attr("title"));
      current = id;
    }
}
function continueSlideShow(){
  if(shouldSlide){
    showNext();
    setTimeout("continueSlideShow()",4000);
  }  
}
setTimeout("continueSlideShow()",4000);
