$('.slide-container li').each(function(){
 $count=0;
 var arr = new Array();
 $(".slide-container li").each(function(){ $i = $count*77+3; arr[$count]=$i; $count++; 
	$(this).css({"position": "absolute", "left":$i, "margin":"0px"}); });
 $('.slide-container li:first').addClass('first');
 $('.slide-container li:last').addClass('last');
 $('.slide-container li:last').css({"position": "absolute", "left":"622px", "margin":"0px"}); 
 $('.slide-container li:first').css({"position": "absolute", "left":"0px", "margin":"0px"}); 
 $(this).hover(function(){
  if($(this).hasClass("first")) { 
     $(this).find('a').animate({ width: "80"}, 300 );
     $(this).find('img').animate({ width: "80", height: "80"}, 300 );}
  else if($(this).hasClass("last")) {
     $(this).find('a').animate({ width: "80"}, 300 ); 
     $(this).find('img').animate({ width: "80", height: "80"}, 300 );
     $(this).animate({ marginLeft: "-15"}, 300 );}
  else {
     $(this).find('a').animate({ width: "80"}, 300 ); 
     $(this).find('img').animate({ width: "80", height: "80"}, 300 );
     $(this).animate({ marginLeft: "-7", marginRight: "-7"}, 300 );};
 },
 function(){ 
     $(this).find('a').animate({ width: "65"}, 300 );
     $(this).find('img').animate({ width: "65", height: "65"}, 300 );
     $(this).animate({ marginLeft: "0", marginRight:"0" }, 300 );});
});