$(function() {
	var footer_json = [];
	footer_json.push({
		"id": "17957",
		"preview": "map/map_pre.jpg",
		"image": "map/map_big.jpg",
		"link": "/diller.php",
		"place": "17954",
		"current": "false"
	});

	try {
        if (typeof(footer_json) != 'undefined') {
            banner = footer_json[0];
            $('.b-map .map-box .shadow-box').append('<a href="' + banner.link + '" class="sh-in"><img src="' + banner.preview + '" class="img"><img src="' + banner.image + '" class="img-wide"></a>');
        } else {
            $(".b-map").css("display","none");
        }
    } catch(e) {
    }

    $('.b-map .sh-in').hover(
        function () {
        $(this).find('.img').fadeOut(300);
        $(this).find('.img-wide').fadeIn(300);
        $(this).animate({width: '500px', height: '250px'}, 200);
        $(this).parent().animate({top: '-20px', left: '-60px'}, 200);
        $(this).parent().css('z-index','100');
    }, 

        function () {
        $(this).find('.img').fadeIn(300);
        $(this).find('.img-wide').fadeOut(200);
        $(this).animate({width: '450px', height: '180px'}, 200);
        $(this).parent().animate({top: '0', left: '0'}, 200);
        $(this).parent().css('z-index','');
    });

});
