protected function getInlineJavaScript()
    {
        switch ($this->tab_position) {
            case self::POSITION_RIGHT:
                $position = 'right';
                break;
            case self::POSITION_LEFT:
                $position = 'left';
                break;
            case self::POSITION_BOTTOM:
                $position = 'bottom';
                break;
            case self::POSITION_TOP:
            default:
                $position = 'top';
                break;
        }

        return sprintf(
            "var %s_obj = new YAHOO.widget.TabView(" .
                "'%s', {orientation: '%s'});",
            $this->id,
            $this->id,
            $position
        );
    }