public function _toggle($element='this', $immediatly=false) {
		$element=$this->_prep_element($element);
		$str="$({$element}).toggle();";

		if ($immediatly)
			$this->jquery_code_for_compile[]=$str;
			return $str;
	}
public function _toggle($element='this', $immediatly=false) {
		$element=$this->_prep_element($element);
		$str="$({$element}).toggle();";

		if ($immediatly)
			$this->jquery_code_for_compile[]=$str;
			return $str;
	}
public function _toggle ( $ element = 'this' , $ immediatly = false ) { $ element = $ this -> _prep_element ( $ element ) ; $ str = "$({$element}).toggle();" ; if ( $ immediatly ) $ this -> jquery_code_for_compile [ ] = $ str ; return $ str ; }
Outputs a jQuery toggle event

@param string $element element
@param boolean $immediatly delayed if false
@return string
Outputs a jQuery toggle event