 var obj = null;
        $(window).ready(function() {
            obj = $(document).height();
            $("#feedback-menu").css('height', obj+'px');

            obj = $(window).height()-35;
            $("#feedback-icon").css('top', obj+'px');

            width = $("#feedback-menu").width();
            if(width != '40'){
                if(obj>750){
                     $("#feedback-menu").css('width',350+'px');
                }else{
                    $("#feedback-menu").css('width',640+'px');
                }
            }
        });

        var obj = null;
            $(window).resize(function() {
            resize();
        });

        function resize(){

            obj = $(document).height();
            $("#feedback-menu").css('height', obj+'px');

            obj = $(window).height()-35;
            $("#feedback-icon").css('top', obj+'px');

            width = $("#feedback-menu").width();
            if(width != '40'){
                if(obj>750){
                     $("#feedback-menu").css('width',350+'px');                    
                }else{
                    $("#feedback-menu").css('width',640+'px');                   
                }
            }else{
                  if(obj>750){
                     return 350;
                }else{
                    return 640;
                }
            }
        }

        function feed()
        {
            with_actual = $("#feedback-menu").width();
            width_need = resize();
            if(with_actual == '40'){
                $("#feedback-menu").animate({
                    width: ''+width_need+'px'
                },500);                
            }else{
                $("#feedback-menu").animate({
                    width: '40px'
                },500);               
            }
        }
