$(document).ready(function() {

/* Yacht-club */
    $("div.hblock.yacht a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-6px',
            marginLeft: '-5px',
            width: '310px',
            height: '96px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '290px',
            height: '90px'
        },
        200);
    });

/* Seven */
    $("div.hblock.seven a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-13px',
            marginLeft: '-15px',
            width: '220px',
            height: '146px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '133px'
        },
        200);
    });

    /* Otdyh */
    $("div.hblock.otdyh a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-11px',
            marginLeft: '-5px',
            width: '220px',
            height: '117px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '106px'
        },
        200);
    });

    /* Karta */
    $("div.hblock.karta a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-26px',
            marginLeft: '-5px',
            width: '185px',
            height: '238px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '165px',
            height: '212px'
        },
        200);
    });

    /* Plan */
    $("div.hblock.plan a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-14px',
            marginLeft: '-5px',
            width: '220px',
            height: '156px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '142px'
        },
        200);
    });

    /* Zaliv */
    $("div.hblock.zaliv a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-6px',
            marginLeft: '-15px',
            width: '300px',
            height: '96px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '280px',
            height: '90px'
        },
        200);
    });


    /* Gallery */
    $("div.hblock.gallery a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-12px',
            marginLeft: '-5px',
            width: '220px',
            height: '133px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '121px'
        },
        200);
    });





    /* uchastok */
    $("div.hblock.uchastok a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-13px',
            marginLeft: '-15px',
            width: '220px',
            height: '146px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '133px'
        },
        200);
    });
	
    /* unis */
    $("div.hblock.unis a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-10px',
            marginLeft: '-15px',
            width: '220px',
            height: '110px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '100px'
        },
        200);
    });	
	
    /* leveldom */
    $("div.hblock.leveldom a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-10px',
            marginLeft: '-15px',
            width: '220px',
            height: '146px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '133px'
        },
        200);
    });		
	
	    /* bath */
    $("div.hblock.bath a").hover(function() {
        $(this).css({
            'z-index': '20'
        });
        $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '-10px',
            marginLeft: '-15px',
            width: '220px',
            height: '146px'
        },
        150);
    },
    function() {
        $(this).css({
            'z-index': '10'
        });
        $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0',
            marginLeft: '0',
            top: '0',
            left: '0',
            width: '200px',
            height: '133px'
        },
        200);
    });		
});
