
        $(document).ready(function(){
            $('#photos').galleryView({frame_width: 203, frame_height: 205, panel_height: 335});

            var text = $('div#description div.text');
            var max_height = text.height();
            var min_height = 230;

            var args = $('div#arguments div.text');
            var max_h_arg = args.height();

            if(text.height() < 230){
                $('#less_desc').css({display:"none"});
                $('#more_desc').css({display:"none"});
            } else {
                $('#less_desc').css({display:"none"});
                text.css({height:'230px', overflow: 'hidden'});
            }

            if(args.height() < 230) {
                $('#less_args').css({display:"none"});
                $('#more_args').css({display:"none"});
            } else {
                $('#less_args').css({display:"none"});
                args.css({height:'230px', overflow: 'hidden'});
            }

            $('#more_desc a').unbind('click');
            $('#more_desc a').bind('click', function(e){
                e.preventDefault();
                text.animate({height: max_height});
                $('#more_desc').css({display:"none"});
                $('#less_desc').css({display:"block"});
            });

            $('#less_desc a').unbind('click');
            $('#less_desc a').bind('click', function(e){
                e.preventDefault();
                text.animate({height: min_height});
                $('#less_desc').css({display:"none"});
                $('#more_desc').css({display:"block"});
            });

            $('#more_args a').unbind('click');
            $('#more_args a').bind('click', function(e){
                e.preventDefault();
                args.animate({height: max_h_arg});
                $('#more_args').css({display:"none"});
                $('#less_args').css({display:"block"});
            });

            $('#less_args a').unbind('click');
            $('#less_args a').bind('click', function(e){
                e.preventDefault();
                args.animate({height: min_height});
                $('#less_args').css({display:"none"});
                $('#more_args').css({display:"block"});
            });
        });

        $(function(){
            $('#photos li a').lightBox();
        });

