var count = "";
var index = 0;
var first = true;
function slideShow() {
  count = $(".slideShow").children().length;
  var height = 0;
  //$(".slideShow img").each(function(i){
    //alert($(this).height());
    //if(height < $(this).height())
    //  height = $(this).height();
    //$(this).hide();
  //});
  //$(".slideShow").css('height',height);
  nextFrame();
}

function nextFrame() {
  var prev = index-1;
  if( prev< 0)
    prev = count-1;

  $(".slideShow a").eq(prev).fadeOut("slow", function() {
    $(".slideShow a").eq(index).fadeIn("slow",function(){$(this).css('display','block');});
    ++index;
    if(index>=count)
      index = 0;
    setTimeout('nextFrame()',5000);
  });
  
  
  
}

$(document).ready(function(){
  slideShow();
});