jQuery(document).ready(
    function() {

        resizeElement(".menu-item");
        resizeElement(".footer a");
        function resizeElement(element) {
            //alert(1);
            //console.log($(element));
            $(element).each(
                function() {
                    var width = $("img",this).width();
                    var height = $("img",this).height();
                    $(this).hover(
                        function() {
                            $("img",this).stop(true, true).animate({
                                height: (height/100)*110,
                                width: (width/100)*110
                            },100);
                            $(".sep",this).css("position","absolute").css("z-index",100);
                            $(".sep",this).stop(true, true).animate({
                                height: $(".sep span",this).height()+30
                            },300);
                        }
                        ,
                        function() {
                            $("img",this).stop(true, true).animate({
                                height: height,
                                width: width
                            },100);
                            $(".sep",this).css("position","relative");
                            $(".sep",this).stop(true, true).animate({
                                height: "9"
                            },300);
                        }
                   );
                }
            );
        }

    }
);
