jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}


$(document).ready(function(){
//Увеличение при наведении 
    $("ul.thumb li").hover(function() {
        $(this).css({'z-index' : '10'});
        var src = $(this).find('img').attr("src").match(/[^\.]+/) + "-up.jpg";
        $(this).find('img').attr("src", src);
        $(this).find('img').addClass("hover").stop().animate({
            marginTop: '0px',
            marginLeft: '-100px',
            top: '0%',
            left: '0%',
            width: '150px',
            height: '120px',
            padding: '0px',
        }, 200);
  
    } , function() {
        $(this).css({'z-index' : '0'});
        var src = $(this).find('img').attr("src").replace("-up", "");
        $(this).find('img').attr("src", src);
        $(this).find('img').removeClass("hover").stop().animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '42px',
            height: '42px',
            padding: '0px'
	   },400);

    });
});

