original_string: public function _animate($element='this', $params=array(), $speed='', $extra='', $immediatly=false) {
  		$element=$this->_prep_element($element);
  		$speed=$this->_validate_speed($speed);
  
  		$animations="\t\t\t";
  		if (is_array($params)) {
  			foreach ( $params as $param => $value ) {
  				$animations.=$param.': \''.$value.'\', ';
  			}
  		}
  		$animations=substr($animations, 0, -2); // remove the last ", "
  
  		if ($speed!='') {
  			$speed=', '.$speed;
  		}
  
  		if ($extra!='') {
  			$extra=', '.$extra;
  		}
  
  		$str="$({$element}).animate({\n$animations\n\t\t}".$speed.$extra.");";
  
  		if ($immediatly)
  			$this->jquery_code_for_compile[]=$str;
  			return $str;
  	}
code: public function _animate($element='this', $params=array(), $speed='', $extra='', $immediatly=false) {
  		$element=$this->_prep_element($element);
  		$speed=$this->_validate_speed($speed);
  
  		$animations="\t\t\t";
  		if (is_array($params)) {
  			foreach ( $params as $param => $value ) {
  				$animations.=$param.': \''.$value.'\', ';
  			}
  		}
  		$animations=substr($animations, 0, -2); // remove the last ", "
  
  		if ($speed!='') {
  			$speed=', '.$speed;
  		}
  
  		if ($extra!='') {
  			$extra=', '.$extra;
  		}
  
  		$str="$({$element}).animate({\n$animations\n\t\t}".$speed.$extra.");";
  
  		if ($immediatly)
  			$this->jquery_code_for_compile[]=$str;
  			return $str;
  	}
code_tokens: public function _animate ( $ element = 'this' , $ params = array ( ) , $ speed = '' , $ extra = '' , $ immediatly = false ) { $ element = $ this -> _prep_element ( $ element ) ; $ speed = $ this -> _validate_speed ( $ speed ) ; $ animations = "\t\t\t" ; if ( is_array ( $ params ) ) { foreach ( $ params as $ param => $ value ) { $ animations .= $ param . ': \'' . $ value . '\', ' ; } } $ animations = substr ( $ animations , 0 , - 2 ) ; // remove the last ", " if ( $ speed != '' ) { $ speed = ', ' . $ speed ; } if ( $ extra != '' ) { $ extra = ', ' . $ extra ; } $ str = "$({$element}).animate({\n$animations\n\t\t}" . $ speed . $ extra . ");" ; if ( $ immediatly ) $ this -> jquery_code_for_compile [ ] = $ str ; return $ str ; }
docstring: Execute a jQuery animate action
  
  @param string $element element
  @param string|array $params One of 'slow', 'normal', 'fast', or time in milliseconds
  @param string $speed
  @param string $extra
  @param boolean $immediatly delayed if false
  @return string
docstring_tokens: Execute a jQuery animate action