        //pictogram.js v0.4
        
        //Copyright 2011 Kononenko Nikolay <conan.chief@gmail.com>
        
        //This program is free software; you can redistribute it and/or modify
        //it under the terms of the GNU General Public License as published by
        //the Free Software Foundation; either version 2 of the License, or
        //(at your option) any later version.
        
        //This program is distributed in the hope that it will be useful,
        //but WITHOUT ANY WARRANTY; without even the implied warranty of
        //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        //GNU General Public License for more details.
        
        //You should have received a copy of the GNU General Public License
        //along with this program; if not, write to the Free Software
        //Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
        //MA 02110-1301, USA.

$(document).ready(function() {

	//перемещения изображения в пикселях
	var move = -15;
	
	//процент увеличения, 1.2 =120%
	var zoom = 1.2;

	//При наведении курсора на миниатюры
	$('.item').hover(function() {
		
		//Установите ширину и высоту в соответствии с увеличением процента
		width = $('.item').width() * zoom;
		height = $('.item').height() * zoom;
		
		//Перемещение и масштабирование изображений
		$(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});
		
		//Показать заголовок
		$(this).find('div.caption').stop(false,true).fadeIn(250);
	},
	function() {
		//Сброс изображения
		$(this).find('img').stop(false,true).animate({'width':$('.item').width(), 'height':$('.item').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Скрыть заголовок
		$(this).find('div.caption').stop(false,true).fadeOut(250);
	});

});

