/**
     * -------------------------------------------------------------------------
     */
    private function showHeader()
    {
        ?>
<mediaDisplay name="photoView"
              showHeader="yes" rowCount="6" columnCount="3" drawItemText="no" showDefaultInfo="no"
              itemImageXPC="100" itemImageYPC="100" itemOffsetXPC="4" itemOffsetYPC="14" sliding="yes"
              itemWidthPC="30" itemHeightPC="10" itemBorderColor="-1:-1:-1"
              idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8"
              bottomYPC="88" sideTopHeightPC="20" itemBackgroundColor="0:0:0" itemGap="0"
              backgroundColor="0:0:0" sideColorBottom="-1:-1:-1" sideColorTop="-1:-1:-1"
              fontSize="18">
                          <?php 
        xVoDLoader();
        ?>

    <!-- TOP MENU TITLES -->
    <text redraw="no"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="15" offsetYPC="2" widthPC="37" heightPC="5" fontSize="10" lines="1">
    </text>
    <text redraw="no"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="67" offsetYPC="2" widthPC="7" heightPC="5" fontSize="10" lines="1">
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="5.4" offsetYPC="3.1" widthPC="10" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo $this->stringHeaderBarGoHome;
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="83" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo $this->stringHeaderBarAddBookmark;
        ?>
]]>
    </text>

    <!-- ACTUAL SELECTED ITEM AND NUMBER -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="90" offsetYPC="93" widthPC="10" heightPC="5" fontSize="16" lines="1">
        <script>
            getFocusItemIndex() + " / <?php 
        echo count($this->items);
        ?>
";
        </script>
    </text>

    <!-- MOVIE TITLE -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="30" offsetYPC="93" widthPC="60" heightPC="5" fontSize="16" lines="1">
        <script>
            getItemInfo("title");
        </script>
    </text>

    <itemDisplay>
        <image redraw="no" offsetXPC="1" offsetYPC="1" widthPC="98" heightPC="98" >
            <script>
                getItemInfo(-1,"image");
            </script>
        </image>
        <image redraw="yes" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100" >
            <script>
                if( getFocusItemIndex() == getItemInfo(-1,"itemid") )
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/top-bar-focus_300.png";
                else
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/top-bar-unfocus_300.png";
            </script>
        </image>
        <text redraw="yes"
              backgroundColor="-1:-1:-1"
              offsetXPC="10" offsetYPC="10" widthPC="80" heightPC="80" fontSize="16" lines="1">
            <script>
                getItemInfo(-1,"title");
            </script>
            <foregroundColor>
                <script>
                    if( getItemInfo(-1,"itemid") &lt; <?php 
        echo $this->numberBlueItems;
        ?>
 )
                        "0:154:205";
                    else
                        "255:255:255";
                </script>
            </foregroundColor>
        </text>
    </itemDisplay>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showAddBookmarkScript();
        ?>
            if(userInput == "zero"){
                showIdle();
                jumpToLink("homePageLink");
                redrawDisplay();
            }
        </script>
    </onUserInput>

    <backgroundDisplay>
        <image  offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">
                    <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/movies-black.jpg
        </image>
    </backgroundDisplay>
</mediaDisplay>

<homePageLink>
    <link>
            <?php 
        echo $this->homePageLink;
        ?>
    </link>
</homePageLink>
        <?php 
    }
    /**
     * -------------------------------------------------------------------------
     */
    private function getSerieHeader()
    {
        ?>
<script>
    SwitchViewer(0);
    SwitchViewer(7);
</script>
<mediaDisplay name="photoView"
              showHeader="no" rowCount="5" columnCount="3" drawItemText="no"
              sideColorBottom="-1:-1:-1" sideColorTop="-1:-1:-1"
              itemOffsetXPC="2.1" itemOffsetYPC="14" itemWidthPC="31" itemHeightPC="13"
              itemGapXPC="0.5" itemGapYPC="0.5" itemBorderColor="-1:-1:-1"
              forceFocusOnItem="yes"
              itemCornerRounding="yes"
              itemImageWidthPC="31" itemImageHeightPC="13"
              backgroundColor="0:0:0" sliding="yes"
              idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8"
              bottomYPC="100" sideTopHeightPC="0" >
                          <?php 
        xVoDLoader();
        ?>

    <!-- ACTUAL SELECTED ITEM AND NUMBER -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="90" offsetYPC="93" widthPC="10" heightPC="5" fontSize="16" lines="1">
        <script>
            getFocusItemIndex() + " / <?php 
        echo count($this->items);
        ?>
";
        </script>
    </text>

    <!-- MOVIE DESCRIPTION -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="0:154:205"
          offsetXPC="30" offsetYPC="86" widthPC="70" heightPC="7" fontSize="12" lines="2">
        <script>
            getItemInfo("description");
        </script>
    </text>

    <!-- MOVIE TITLE -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="30" offsetYPC="93" widthPC="60" heightPC="5" fontSize="16" lines="1">
        <script>
            getItemInfo("title");
        </script>
    </text>

    <!-- MOVIE PAGES -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="5" offsetYPC="9" widthPC="90" heightPC="3" fontSize="10" lines="1">
                      <?php 
        for ($i = 1; $i <= $this->maxPages; ++$i) {
            if ($i == $this->actualPage) {
                echo "- " . $i . " - &#32;&#32;&#32;";
            } else {
                echo $i . "&#32;&#32;&#32;";
            }
        }
        ?>
    </text>

    <!-- TOP MENU TITLES -->
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="5.4" offsetYPC="3.1" widthPC="10" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_categories");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="19" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_previous_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="34.5" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_goto_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="50" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_next_page");
        ?>
]]>
    </text>
            <?php 
        if ($this->type == "mov") {
            ?>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="70" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
            echo resourceString("header_menu_play");
            ?>
]]>
    </text>
                <?php 
        } else {
            ?>
    <text redraw="no"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="67" offsetYPC="2" widthPC="7" heightPC="5" fontSize="10" lines="1">
    </text>
                <?php 
        }
        ?>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="83" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_add_bookmark");
        ?>
]]>
    </text>

            <?php 
        if ($this->searchTerm) {
            $nextPageLink = SCRAPER_URL . "series.php?type=" . base64_encode($this->type) . URL_AMP . "search=" . $this->searchTerm . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage > 1 ? $this->actualPage - 1 : 1) . URL_AMP . "pages=" . $this->maxPages;
            $lastPageLink = SCRAPER_URL . "series.php?type=" . base64_encode($this->type) . URL_AMP . "search=" . $this->searchTerm . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage < $this->maxPages ? $this->actualPage + 1 : $this->maxPages) . URL_AMP . "pages=" . $this->maxPages;
            $gotoPagelink = SCRAPER_URL . "series.php?type=" . base64_encode($this->type) . URL_AMP . "search=" . $this->searchTerm . URL_AMP . "pages=" . $this->maxPages . URL_AMP . "page=x";
        } else {
            $nextPageLink = SCRAPER_URL . "series.php?type=" . base64_encode($this->type) . URL_AMP . "letter=" . $this->letter . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage > 1 ? $this->actualPage - 1 : 1) . URL_AMP . "pages=" . $this->maxPages;
            $lastPageLink = SCRAPER_URL . "series.php?type=" . base64_encode($this->type) . URL_AMP . "letter=" . $this->letter . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage < $this->maxPages ? $this->actualPage + 1 : $this->maxPages) . URL_AMP . "pages=" . $this->maxPages;
            $gotoPagelink = SCRAPER_URL . "series.php?type=" . base64_encode($this->type) . URL_AMP . "letter=" . $this->letter . URL_AMP . "pages=" . $this->maxPages . URL_AMP . "page=x";
        }
        ?>

    <itemDisplay>
        <image redraw="no" offsetXPC="0" offsetYPC="0" widthPC="34" heightPC="100" >
            <script>
                getItemInfo(-1,"image");
            </script>
        </image>
        <text backgroundColor="0:0:0" foregroundColor="255:255:255"
              redraw="no" offsetXPC="35" offsetYPC="10" widthPC="64" heightPC="80" fontSize="12" lines="2">
            <script>
                getItemInfo(-1,"title");
            </script>
        </text>
        <image redraw="no" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100" >
            <script>
                if( getFocusItemIndex() == getItemInfo(-1,"itemid") )
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/cover-letter-focus_350.png";
                else
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/cover-letter-unfocus_350.png";
            </script>
        </image>
    </itemDisplay>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showAddBookmarkScript();
        ?>
            if(userInput == "pageup"){
                showIdle();
                url = "<?php 
        echo $nextPageLink;
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "pagedown"){
                showIdle();
                url = "<?php 
        echo $lastPageLink;
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "zero"){
                showIdle();
                jumpToLink("homePageLink");
                redrawDisplay();
            }
            if(userInput == "video_search"){
                showIdle();
                url = "<?php 
        echo $gotoPagelink;
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
        </script>
    </onUserInput>

    <backgroundDisplay>
        <image  offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">
                    <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/movies-black.jpg
        </image>
    </backgroundDisplay>

</mediaDisplay>

<gotoPageLink>
    <link>
    <script>
        url;
    </script>
    </link>
</gotoPageLink>

<homePageLink>
    <link>
            <?php 
        echo SCRAPER_URL . "series.php" . URL_AMP . "PHPSESID=" . session_id();
        ?>
    </link>
</homePageLink>

        <?php 
    }
    /**
     * -------------------------------------------------------------------------
     */
    private function getMovieHeader()
    {
        ?>
<script>
    SwitchViewer(0);
    SwitchViewer(7);
</script>
<mediaDisplay name="photoView"
              showHeader="no" rowCount="2" columnCount="6" drawItemText="no"
              sideColorBottom="-1:-1:-1" sideColorTop="-1:-1:-1"
              itemOffsetXPC="8" itemOffsetYPC="12" itemWidthPC="13.5" itemHeightPC="36"
              itemGapXPC="0.5" itemGapYPC="0.5" itemBorderColor="-1:-1:-1"
              forceFocusOnItem="yes"
              itemCornerRounding="yes"
              itemImageWidthPC="13.5" itemImageHeightPC="36"
              backgroundColor="0:0:0" sliding="yes"
              idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8"
              bottomYPC="100" sideTopHeightPC="0" >
                          <?php 
        xVoDLoader();
        ?>

    <!-- ACTUAL SELECTED ITEM AND NUMBER -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="90" offsetYPC="93" widthPC="10" heightPC="5" fontSize="16" lines="1">
        <script>
            getFocusItemIndex() + " / <?php 
        echo count($this->items);
        ?>
";
        </script>
    </text>

    <!-- MOVIE DESCRIPTION
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="0:154:205"
          offsetXPC="30" offsetYPC="86" widthPC="70" heightPC="7" fontSize="12" lines="2">
        <script>
            getItemInfo("description");
        </script>
    </text>
    -->

    <!-- MOVIE TITLE -->
    <text redraw="yes" align="center"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="17" offsetYPC="90" widthPC="63" heightPC="6" fontSize="20" lines="1">
        <script>
            getItemInfo("title");
        </script>
    </text>

    <!-- MOVIE PAGES -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="5" offsetYPC="9" widthPC="90" heightPC="3" fontSize="10" lines="1">
                      <?php 
        for ($i = 1; $i <= $this->maxPages; ++$i) {
            if ($i == $this->actualPage) {
                echo "- " . $i . " - &#32;&#32;&#32;";
            } else {
                echo $i . "&#32;&#32;&#32;";
            }
        }
        ?>
    </text>

    <!-- TOP MENU TITLES -->
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="7" offsetYPC="3.1" widthPC="10" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_categories");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="20" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_previous_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="35" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_goto_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="50" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_next_page");
        ?>
]]>
    </text>
            <?php 
        if ($this->type == "mov") {
            ?>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="70" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
            echo resourceString("header_menu_play");
            ?>
]]>
    </text>
                <?php 
        } else {
            ?>
    <text redraw="no"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="66" offsetYPC="2" widthPC="7" heightPC="5" fontSize="10" lines="1">
    </text>
                <?php 
        }
        ?>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="81" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_add_bookmark");
        ?>
]]>
    </text>

            <?php 
        if ($this->searchTerm) {
            $nextPageLink = SCRAPER_URL . "index.php?search=" . $this->searchTerm . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage > 1 ? $this->actualPage - 1 : 1) . URL_AMP . "pages=" . $this->maxPages;
            $lastPageLink = SCRAPER_URL . "index.php?search=" . $this->searchTerm . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage < $this->maxPages ? $this->actualPage + 1 : $this->maxPages) . URL_AMP . "pages=" . $this->maxPages;
            $gotoPagelink = SCRAPER_URL . "index.php?search=" . $this->searchTerm . URL_AMP . "pages=" . $this->maxPages . URL_AMP . "page=x";
        } else {
            if ($this->letter) {
                $nextPageLink = SCRAPER_URL . "index.php?letter=" . $this->letter . URL_AMP . "page=" . ($this->actualPage > 1 ? $this->actualPage - 1 : 1) . URL_AMP . "pages=" . $this->maxPages;
                $lastPageLink = SCRAPER_URL . "index.php?letter=" . $this->letter . URL_AMP . "page=" . ($this->actualPage < $this->maxPages ? $this->actualPage + 1 : $this->maxPages) . URL_AMP . "pages=" . $this->maxPages;
                $gotoPagelink = SCRAPER_URL . "index.php?letter=" . $this->letter . URL_AMP . "pages=" . $this->maxPages . URL_AMP . "page=x";
            } else {
                $nextPageLink = SCRAPER_URL . "index.php?cat=" . base64_encode($this->category) . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage > 1 ? $this->actualPage - 1 : 1) . URL_AMP . "pages=" . $this->maxPages;
                $lastPageLink = SCRAPER_URL . "index.php?cat=" . base64_encode($this->category) . URL_AMP . "title=" . base64_encode($this->title) . URL_AMP . "page=" . ($this->actualPage < $this->maxPages ? $this->actualPage + 1 : $this->maxPages) . URL_AMP . "pages=" . $this->maxPages;
                $gotoPagelink = SCRAPER_URL . "index.php?cat=" . base64_encode($this->category) . URL_AMP . "pages=" . $this->maxPages . URL_AMP . "page=x";
            }
        }
        ?>

    <itemDisplay>
        <text redraw="no"
              backgroundColor="0:0:0" foregroundColor="255:255:255"
              offsetXPC="5" offsetYPC="20" widthPC="90" heightPC="70" fontSize="15" lines="5">
            <script>
                getItemInfo(-1,"title");
            </script>
        </text>
        <image redraw="no" offsetXPC="1" offsetYPC="1" widthPC="98" heightPC="98" >
            <script>
                getItemInfo(-1,"image");
            </script>
        </image>
        <image redraw="no" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100" >
            <script>
                if( getFocusItemIndex() == getQueryItemIndex() )
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/wall-2x7-focus.png";
                else
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/wall-2x7-thumbnail.png";
            </script>
        </image>
    </itemDisplay>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showAddBookmarkScript();
        ?>
            if(userInput == "PG"){
                showIdle();
                url = "<?php 
        echo $nextPageLink;
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "PD"){
                showIdle();
                url = "<?php 
        echo $lastPageLink;
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "0"){
                showIdle();
                jumpToLink("homePageLink");
                redrawDisplay();
            }
            if(userInput == "video_search"){
                showIdle();
                url = "<?php 
        echo $gotoPagelink;
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();

            }else if(userInput == "video_play"){
                showIdle();
                playUrl = getURL("<?php 
        echo SCRAPER_URL . "enclosure.php?link=";
        ?>
" + getItemInfo("link"));
                if(playUrl == "ERROR"){
                    cancelIdle();
                    redrawDisplay();
                }else{
                    playItemURL(playUrl,0);
                }
            }
        </script>
    </onUserInput>

    <backgroundDisplay>
        <image  offsetXPC="2" offsetYPC="0" widthPC="96" heightPC="100">
                    <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/movies-black.jpg
        </image>
    </backgroundDisplay>

</mediaDisplay>

<gotoPageLink>
    <link>
    <script>
        url;
    </script>
    </link>
</gotoPageLink>

<homePageLink>
    <link>
            <?php 
        echo SCRAPER_URL . "index.php?type=" . $this->type;
        ?>
    </link>
</homePageLink>

        <?php 
    }
    /**
     * -------------------------------------------------------------------------
     */
    private function getSerieHeader()
    {
        ?>
<mediaDisplay name="photoView"
              showHeader="no" rowCount="9" columnCount="3" drawItemText="no" showDefaultInfo="no"
              itemImageXPC="100" itemImageYPC="100" itemOffsetXPC="4" itemOffsetYPC="12" sliding="yes"
              itemWidthPC="30" itemHeightPC="6" itemBorderColor="-1:-1:-1"
              idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8"
              bottomYPC="88" sideTopHeightPC="14" itemBackgroundColor="0:0:0"
              backgroundColor="-1:-1:-1" sideColorBottom="-1:-1:-1" sideColorTop="-1:-1:-1"
              fontSize="15">';
                          <?php 
        xVoDLoader();
        ?>

    <!-- TOP MENU TITLES -->
    <text redraw="no"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="15" offsetYPC="2" widthPC="37" heightPC="5" fontSize="10" lines="1">

    </text>
    <text redraw="no"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="67" offsetYPC="2" widthPC="7" heightPC="5" fontSize="10" lines="1">
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="5.4" offsetYPC="3.1" widthPC="14" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_home");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="83" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_add_bookmark");
        ?>
]]>
    </text>

    <!-- ACTUAL SELECTED ITEM AND NUMBER -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="90" offsetYPC="93" widthPC="10" heightPC="5" fontSize="16" lines="1">
        <script>
            getFocusItemIndex() + " / <?php 
        echo count($this->items);
        ?>
";
        </script>
    </text>

    <!-- SERIE TITLE -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="30" offsetYPC="93" widthPC="60" heightPC="5" fontSize="16" lines="1">
        <script>
            getItemInfo("title");
        </script>
    </text>

    <!-- SERIE DESCRIPTION -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="0:154:205"
          offsetXPC="30" offsetYPC="76" widthPC="68" heightPC="16" fontSize="12" lines="4">
        <script>
            getItemInfo("description");
        </script>
    </text>

    <itemDisplay>
        <image redraw="no" offsetXPC="1" offsetYPC="1" widthPC="98" heightPC="98" >
            <script>
                getItemInfo(-1,"image");
            </script>
        </image>
        <image redraw="no" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100" >
            <script>
                if( getFocusItemIndex() == getItemInfo(-1,"itemid") )
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/top-bar-focus_300.png";
                else
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/top-bar-unfocus_300.png";
            </script>
        </image>
        <text redraw="yes"
              backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
              offsetXPC="5" offsetYPC="10" widthPC="90" heightPC="80" fontSize="15" lines="1">
            <script>
                getItemInfo(-1,"title");
            </script>
        </text>
    </itemDisplay>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showAddBookmarkScript();
        ?>
                if(userInput == "0"){
                    showIdle();
                    jumpToLink("homePageLink");
                    redrawDisplay();
                }
        </script>
    </onUserInput>

    <backgroundDisplay>
        <image  offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">
                    <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/movies-black.jpg
        </image>
    </backgroundDisplay>

</mediaDisplay>

<homePageLink>
    <link>
            <?php 
        echo SERVER_HOST_AND_PATH . "php/index.php";
        ?>
    </link>
</homePageLink>
        <?php 
    }
    /**
     * -------------------------------------------------------------------------
     */
    private function getMovieHeader()
    {
        ?>
<script>
    SwitchViewer(0);
    SwitchViewer(7);
</script>
<mediaDisplay name="photoView"
              showHeader="no" rowCount="2" columnCount="7" drawItemText="no"
              sideColorBottom="-1:-1:-1" sideColorTop="-1:-1:-1"
              itemOffsetXPC="2.1" itemOffsetYPC="12" itemWidthPC="13.5" itemHeightPC="36"
              itemGapXPC="0.5" itemGapYPC="0.5" itemBorderColor="-1:-1:-1"
              forceFocusOnItem="yes"
              itemCornerRounding="yes"
              itemImageWidthPC="13.5" itemImageHeightPC="36"
              backgroundColor="0:0:0" sliding="yes"
              idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8"
              bottomYPC="100" sideTopHeightPC="0" >
                          <?php 
        xVoDLoader();
        ?>

    <!-- ACTUAL SELECTED ITEM AND NUMBER -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="90" offsetYPC="93" widthPC="10" heightPC="5" fontSize="16" lines="1">
        <script>
            getFocusItemIndex() + " / <?php 
        echo count($this->items);
        ?>
";
        </script>
    </text>

    <!-- MOVIE PAGES -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="5" offsetYPC="9" widthPC="90" heightPC="3" fontSize="10" lines="1">
                      <?php 
        if ($this->actualPage > 36) {
            $initialCountPage = $this->actualPage - 20;
        } else {
            $initialCountPage = 1;
        }
        for ($i = $initialCountPage; $i <= $this->maxPages; ++$i) {
            if ($i == $this->actualPage) {
                echo "- " . $i . " - &#32;&#32;&#32;";
            } else {
                echo $i . "&#32;&#32;&#32;";
            }
        }
        ?>
    </text>

    <!-- MOVIE TITLE -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="30" offsetYPC="93" widthPC="60" heightPC="5" fontSize="16" lines="1">
        <script>
            getItemInfo("title");
        </script>
    </text>

    <!-- TOP MENU TITLES -->
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="5.4" offsetYPC="3.1" widthPC="10" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_categories");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="19" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_previous_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="34.5" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_goto_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="50" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_next_page");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="70" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_play");
        ?>
]]>
    </text>
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="83" offsetYPC="3.1" widthPC="18" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_add_bookmark");
        ?>
]]>
    </text>

    <!-- PAGE TITLE -->
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="0:154:205"
          offsetXPC="30" offsetYPC="89" widthPC="60" heightPC="4" fontSize="12" lines="1">
        <script>
            "<?php 
        echo strtoupper($this->title);
        ?>
";
        </script>
    </text>

    <itemDisplay>
        <text redraw="no"
              backgroundColor="0:0:0" foregroundColor="255:255:255"
              offsetXPC="5" offsetYPC="20" widthPC="90" heightPC="70" fontSize="15" lines="5">
            <script>
                getItemInfo(-1,"title");
            </script>
        </text>
        <image redraw="no" offsetXPC="1" offsetYPC="1" widthPC="98" heightPC="98" >
            <script>
                getItemInfo(-1,"image");
            </script>
        </image>
        <image redraw="no" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100" >
            <script>
                if( getFocusItemIndex() == getItemInfo(-1,"itemid") )
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/wall-2x7-focus.png";
                else
                    "<?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/wall-2x7-thumbnail.png";
            </script>
        </image>
    </itemDisplay>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showAddBookmarkScript();
        ?>

            if(userInput == "pageup"){
                showIdle();
                url = "<?php 
        echo SCRAPER_URL . "index.php?pages=" . $this->maxPages . URL_AMP . "cat=" . $this->category . URL_AMP . "page=" . ($this->actualPage > 0 ? $this->actualPage - 1 : 1) . URL_AMP . "PHPSESID=" . session_id();
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "pagedown"){
                showIdle();
                url = "<?php 
        echo SCRAPER_URL . "index.php?pages=" . $this->maxPages . URL_AMP . "cat=" . $this->category . URL_AMP . "page=" . ($this->actualPage < $this->maxPages ? $this->actualPage + 1 : $this->maxPages) . URL_AMP . "PHPSESID=" . session_id();
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "video_search"){
                showIdle();
                url = "<?php 
        echo SCRAPER_URL . "index.php?pages=" . $this->maxPages . URL_AMP . "cat=" . $this->category . URL_AMP . "page=x" . URL_AMP . "PHPSESID=" . session_id();
        ?>
";
                jumpToLink("gotoPageLink");
                redrawDisplay();
            }
            if(userInput == "zero"){
                showIdle();
                jumpToLink("homePageLink");
                redrawDisplay();
            }
            if(userInput == "video_play"){
                showIdle();
                playUrl = getURL("<?php 
        echo SCRAPER_URL . "enclosure.php?link=";
        ?>
" + getItemInfo("link"));
                if(playUrl == "ERROR"){
                    cancelIdle();
                }else{
                    playItemURL(playUrl,0);
                }
            }
        </script>
    </onUserInput>

    <backgroundDisplay>
        <image  offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">
                    <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/movies-black.jpg
        </image>
    </backgroundDisplay>
</mediaDisplay>

<gotoPageLink>
    <link>
    <script>
        url;
    </script>
    </link>
</gotoPageLink>

<homePageLink>
    <link>
            <?php 
        echo SCRAPER_URL . "index.php?PHPSESID=" . session_id();
        ?>
    </link>
</homePageLink>

        <?php 
    }
    private function showHeader()
    {
        echo "  <script>\n";
        foreach ($this->bookmarks as $bookmark) {
            echo '      titleArray  = pushBackStringArray( titleArray,  "' . utf8_encode($bookmark->getName()) . '" );' . "\n";
        }
        echo "  </script>\n";
        ?>

<mediaDisplay  name="photoView"
               rowCount="5" columnCount="3" drawItemText="no" showHeader="no" showDefaultInfo="no"
               menuBorderColor="0:0:0" sideColorBottom="-1:-1:-1" sideColorTop="-1:-1:-1"
               itemWidthPC="0" itemHeightPC="0" itemOffsetXPC="100" itemOffsetYPC="100"
               itemImageWidthPC="0" itemImageHeightPC="0" itemImageXPC="100"
               backgroundColor="-1:-1:-1" sliding="no" itemGap="1" slidingItemText="yes"
               imageUnFocus="null" imageParentFocus="null" imageBorderPC="0"
               idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8">
                           <?php 
        xVoDLoader();
        ?>

    <image redraw="yes" offsetXPC="43.9" offsetYPC="71.6" widthPC="56.1" heightPC="6" backgroundColor="-1:-1:-1" >
                <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/websites_title.jpg
    </image>

    <image redraw="yes" offsetXPC="29.88" offsetYPC="28.95" widthPC="70.13" heightPC="34.86">
                <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/bookmarks_items.jpg
    </image>

    <text redraw="yes" backgroundColor="-1:-1:-1" foregroundColor="0:0:0"
          offsetXPC="46" offsetYPC="65.4" widthPC="50" heightPC="18" fontSize="20" lines="1">
        <script>
            getItemInfo(-1,"title");
        </script>
    </text>

    <image redraw="yes" offsetXPC="6.55" offsetYPC="11.43" widthPC="17.86" heightPC="41.62" backgroundColor="-1:-1:-1" >
        <script>
            getItemInfo(-1,"image");
        </script>
    </image>

    <!-- HEADER BUTTON TITLES -->
    <text redraw="no" backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="5.95" offsetYPC="2.6" widthPC="12" heightPC="2.4" fontSize="12" lines="1">
                      <?php 
        echo resourceString("header_menu_home") . "\n";
        ?>
    </text>
    <text redraw="no" backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="20" offsetYPC="2.6" widthPC="30" heightPC="2.4" fontSize="12" lines="1">
                      <?php 
        echo resourceString("header_menu_remove_bookmark") . "\n";
        ?>
    </text>

            <?php 
        $y = 0;
        $x = 0;
        for ($i = 0; $i < 15; ++$i) {
            $script = "\n                        temp = " . $i . " + (15 * getItemInfo(\"pagenum\"));\n                        title = getStringArrayAt(titleArray, temp);\n                        title;";
            $this->showScreenDisplayText($script, 30 + $x * 23, 30 + $y * 6, 23, 10);
            if ($y > 0 && ($y + 1) % 5 == 0) {
                ++$x;
                $y = 0;
            } else {
                ++$y;
            }
        }
        ?>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showDeleteBookmarkScript();
        ?>
            if( userInput == "three" ){
                jumpToLink("bookmarksLink");
                redrawDisplay();
            }
            if(userInput == "zero"){
                showIdle();
                jumpToLink("homePageLink");
                redrawDisplay();
            }
        </script>
    </onUserInput>

    <backgroundDisplay>        
        <image offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">
                    <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/bookmarks.jpg
        </image>
    </backgroundDisplay>
</mediaDisplay>

<homePageLink>
    <link>
            <?php 
        echo SERVER_HOST_AND_PATH . "php/index.php";
        ?>
    </link>
</homePageLink>

<bookmarksLink>
    <link>
            <?php 
        echo SERVER_HOST_AND_PATH . "php/index.php?action=" . ViewBookmarksPageAction::getActionName();
        ?>
    </link>
</bookmarksLink>
        <?php 
    }
    /**
     * -------------------------------------------------------------------------
     */
    private function getMovieListHeader()
    {
        ?>
<script>
    SwitchViewer(0);
    SwitchViewer(7);
</script>
<mediaDisplay name="threePartsView"
              showDefaultInfo="no" bottomYPC="0" itemGap="0" itemPerPage="18"
              showHeader="no" fontSize="14"
              itemImageXPC="72" itemImageHeightPC="0" itemImageWidthPC="0"
              itemXPC="72" itemYPC="5" itemWidthPC="26" itemHeightPC="5" capWidthPC="58"
              unFocusFontColor="101:101:101" focusFontColor="255:255:255"
              idleImageXPC="90" idleImageYPC="5" idleImageWidthPC="5" idleImageHeightPC="8"
              backgroundColor="0:0:0" drawItemText="yes">
                          <?php 
        xVoDLoader();
        ?>

    <!-- RSS PUZZLE, MOVIE PART -->
    <image redraw="no" offsetXPC="0" offsetYPC="0" widthPC="71.65" heightPC="100" backgroundColor="-1:-1:-1" >
                <?php 
        echo XTREAMER_IMAGE_PATH;
        ?>
background/movies-inlist-noright.jpg
    </image>

    <!-- TOP MENU TITLES -->
    <text redraw="no"
          backgroundColor="-1:-1:-1" foregroundColor="255:255:255"
          offsetXPC="5.5" offsetYPC="3.1" widthPC="10" heightPC="3" fontSize="10" lines="1">
        <![CDATA[<?php 
        echo resourceString("header_menu_categories");
        ?>
]]>
    </text>

    <!-- COVER SERIE IMAGE -->
    <image redraw="yes" offsetXPC="2.8" offsetYPC="23.8" widthPC="18.9" heightPC="48.1" backgroundColor="-1:-1:-1" >
        <script>
            getItemInfo("image");
        </script>
    </image>    

    <!-- MOVIE TITLE -->
    <text redraw="yes"
          backgroundColor="0:0:0" foregroundColor="255:255:255"
          offsetXPC="23" offsetYPC="24" widthPC="35" heightPC="6" fontSize="16" lines="1">
        <script>
            getItemInfo("title");
        </script>
    </text>

    <!-- MOVIE DESCRIPTION -->
    <text redraw="yes"
          backgroundColor="-1:-1:-1" foregroundColor="160:160:160"
          offsetXPC="23" offsetYPC="47" widthPC="41" heightPC="25" fontSize="10" lines="8">
        <script>
            getItemInfo("description");
        </script>
    </text>

    <!-- PAGE TITLE -->
    <text redraw="yes"
          backgroundColor="-1:-1:-1" foregroundColor="0:154:205"
          offsetXPC="23" offsetYPC="32" widthPC="35" heightPC="5" fontSize="11" lines="1">
        <script>
            "<?php 
        echo strtoupper($this->title);
        ?>
";
        </script>
    </text>

    <onUserInput>
        <script>
        <?php 
        RssScriptUtil::showAddBookmarkScript();
        ?>
            if ( userInput == "two" )      {
                showIdle();
                jumpToLink("detailView");
                redrawDisplay();
            }
            if ( userInput == "three" ){
                showIdle();
                jumpToLink("gridView");
                redrawDisplay();
            }
            if(userInput == "zero"){
                showIdle();
                jumpToLink("homePageLink");
                redrawDisplay();
            }
            if(userInput == "video_play"){
                showIdle();
                playUrl = getURL("<?php 
        echo SCRAPER_URL . "enclosure.php?link=";
        ?>
" + getItemInfo("link"));
                if(playUrl == "ERROR"){
                    cancelIdle();
                }else{
                    playItemURL(playUrl,0);
                }
            }
        </script>
    </onUserInput>


</mediaDisplay>
<detailView>
    <link><?php 
        echo $this->url . URL_AMP . "view=detail";
        ?>
</link>
</detailView>

<gridView>
    <link><?php 
        echo $this->url . URL_AMP . "view=grid";
        ?>
</link>
</gridView>

<homePageLink>
    <link>
            <?php 
        echo SCRAPER_URL . "index.php";
        ?>
    </link>
</homePageLink>
        <?php 
    }