  /* 
    
  Script available at
  http://www.tricolormix.de/
    
  free to use. please don´t remove this comment.
    
  */
  
  ResizingTextArea = new Class(  
      {
         initialize: function(id, options)  
         { 
             this.options = Object.extend(  
                 options || {}  
             );   
             this.options.min = this.options.min || 100;
             this.options.max = this.options.max || 500;
             this.element = $(id); 
             this.gripid = id+'_grip';
             this.build();
         },  
         build: function() {
            var grip = new Element('div',{'class':'grip','id':this.gripid});
            grip.injectAfter(this.element);
            this.element.makeResizable({
            	handle: grip.id,
            	modifiers:{x: false, y:'height'}, 
            	limit: {y: [this.options.min, this.options.max]}
            });
         }
     }   
  ); 



  window.addEvent('domready', function() {    
    new ResizingTextArea('code',{'min':337,'max':800});
  });

  

