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;
	}
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;
	}
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 ; }
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
Execute a jQuery animate action