protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %1\$s_obj = new %2\$s('%1\$s', %3\$s);",
            $this->id,
            $this->getJavascriptClassName(),
            $this->animate ? 'true' : 'false'
        );

        $javascript .= sprintf(
            "\n%s_obj.animate = %s;",
            $this->id,
            $this->animate ? 'true' : 'false'
        );

        $javascript .= sprintf(
            "\n%s_obj.always_open = %s;",
            $this->id,
            $this->always_open ? 'true' : 'false'
        );

        return $javascript;
    }