<?php
/*
 * @ PHP 5.6
 * @ Decoder version : 1.0.0.1
 * @ Release on : 24.03.2018
 * @ Website    : http://EasyToYou.eu
 */

include "includes/header.php";
$ShoAllCategories = array();
$FinalCategoriesArray = array();
$GetCateGories = webtvpanel_CallApiRequest($hostURL . $bar . "player_api.php?username=" . $username . "&password=" . $password . "&action=get_series_categories");
if ($GetCateGories["result"] == "success") {
    $FinalCategoriesArray = $GetCateGories;
    $FinalCategoriesArray["data"]["all"] = (object) array("category_id" => "all", "category_name" => "All", "parent_id" => "0");
}
if ($GetCateGories["result"] != "success") {
    $FetchAllSeries = webtvpanel_CallApiRequest($hostURL . $bar . "player_api.php?username=" . $username . "&password=" . $password . "&action=get_series");
    if ($FetchAllSeries["result"] == "success") {
        $ShoAllCategories = $FetchAllSeries["data"];
        $FinalCategoriesArray["result"] = "success";
        $FinalCategoriesArray["data"][0] = (object) array("category_id" => "all", "category_name" => "All", "parent_id" => "0");
    }
}
include "includes/sideNav.php";
echo "<p class=\"SerchResult hideOnLoad\">\r\n    Search Result of <span id=\"searchOf\">American</span>\r\n    <span class=\"clearSearch\">Clear Search</span>\r\n</p>\r\n<h1 id=\"NoResultFound\" class=\"hideOnLoad\">No Result Found!!</h1>\r\n";
if (!empty($ShoAllCategories)) {
    echo "  <div id=\"posts\">\r\n    <center id=\"fullLoader\"><img src=\"images/roundloader.gif\"  alt=\"tv image\"><p class=\"text-center\">LOADING DATA</p> </center>\r\n      <ul class=\"free-wall grid effect-3 videoSection hideOnLoad\" id=\"SeriesContainer\" style=\"margin-bottom: 50px !important;\">\r\n        \r\n      </ul>\r\n    </div>\r\n  ";
} else {
    echo "\t <div id=\"posts\">\r\n\t \t<center id=\"fullLoader\"><img src=\"images/roundloader.gif\"  alt=\"tv image\"><p class=\"text-center\">LOADING DATA</p> </center>\r\n\t    <ul class=\"free-wall grid effect-3 videoSection hideOnLoad\" id=\"SeriesContainer\" style=\"margin-bottom: 50px !important;\">\r\n\t    \t\r\n\t    </ul>\r\n\t  </div>\r\n\t";
}
echo "\r\n</div>\r\n<div class=\"modal fade movie-popup\" id=\"menuModal\"  tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\r\n  <div class=\"modal-dialog modal-dialog-custom\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\" style=\"border:0;\"> <span class=\"p-close\" data-dismiss=\"modal\" aria-hidden=\"true\">x</span> </div>\r\n      <div class=\"modal-body\">\r\n        <div class=\"popup-content t-s\">\r\n          <div class=\"pull-left\" style=\"width: 10%;\">\r\n            <div class=\"poster\">\r\n              <div class=\"poster-img\"><img src=\"img/t-s.jpg\" alt=\"\" class=\"img-responsive\"></div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col-sm-9 col-md-10 col-xs-12\">\r\n            <div class=\"poster-details\">\r\n              <h2>Vikings</h2>\r\n              <ul>\r\n                <li><i class=\"fa fa-anchor\"></i>Drama</li>\r\n                <li><i class=\"fa fa-clock-o\"></i>44 min</li>\r\n                <li><i class=\"fa fa-calendar\"></i>2013-2016</li>\r\n                <li> <span class=\"fa fa-star\"></span> <span class=\"fa fa-star\"></span> <span class=\"fa fa-star\"></span> <span class=\"fa fa-star\"></span> <span class=\"fa fa-star-o\"></span></li>\r\n              </ul>\r\n              <p>Vikings follows the adventures of Ragnar Lothbrok, the greatest hero of his age. The series tells the sagas of Ragnar's band of Viking brothers and his family, as he rises to become King of the Viking tribes. As well as being a fearless warrior, Ragnar embodies the Norse traditions of devotion to the gods. Legend has it that he was a direct descendant of Odin, the god of war and warriors.</p>\r\n            </div>\r\n          </div>\r\n          <div class=\"clearfix\"></div>\r\n          <div class=\"ts-content\">\r\n            <div class=\"column seasons\">\r\n              <ul>\r\n                <li class=\"active\"><a data-toggle=\"tab\" href=\"#s-1\">Season 1</a></li>\r\n                <li><a data-toggle=\"tab\" href=\"#s-2\">Season 2</a></li>\r\n                <li><a data-toggle=\"tab\" href=\"#s-3\">Season 3</a></li>\r\n                <li><a data-toggle=\"tab\" href=\"#s-4\">Season 4</a></li>\r\n                <li><a data-toggle=\"tab\" href=\"#s-5\">Season 5</a></li>\r\n              </ul>\r\n            </div>\r\n            <div class=\"column episodes\">\r\n              <div class=\"tab-content\">\r\n                <ul id=\"s-1\" class=\"tab-pane fade in active\">\r\n                  <li class=\"active\"><a data-toggle=\"tab\" href=\"#epis-1\"><b>1 </b>Rites of Passage</a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-2\"><b>2 </b>Wrath of the Northmen </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-3\"><b>3 </b>Dispossessed </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-4\"><b>4 </b>Trial </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-5\"><b>5 </b>Raid </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-6\"><b>6 </b>Burial of the Dead </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-7\"><b>7 </b>A King's Ransom </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-8\"><b>8 </b>Sacrifice </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-9\"><b>9 </b>All Change </a></li>\r\n                </ul>\r\n                <ul id=\"s-2\" class=\"tab-pane fade\">\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-2\"><b>2 </b>Wrath of the Northmen </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-3\"><b>3 </b>Dispossessed </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-4\"><b>4 </b>Trial </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-5\"><b>5 </b>Raid </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-6\"><b>6 </b>Burial of the Dead </a></li>\r\n                </ul>\r\n                <ul id=\"s-3\" class=\"tab-pane fade\">\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-2\"><b>2 </b>Wrath of the Northmen </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-3\"><b>3 </b>Dispossessed </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-4\"><b>4 </b>Trial </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-6\"><b>6 </b>Burial of the Dead </a></li>\r\n                </ul>\r\n                <ul id=\"s-4\" class=\"tab-pane fade\">\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-2\"><b>2 </b>Wrath of the Northmen </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-3\"><b>3 </b>Dispossessed </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-4\"><b>4 </b>Trial </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-5\"><b>5 </b>Raid </a></li>\r\n                </ul>\r\n                <ul id=\"s-5\" class=\"tab-pane fade\">\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-7\"><b>7 </b>A King's Ransom </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-8\"><b>8 </b>Sacrifice </a></li>\r\n                  <li><a data-toggle=\"tab\" href=\"#epis-9\"><b>9 </b>All Change </a></li>\r\n                </ul>\r\n              </div>\r\n            </div>\r\n            <div class=\"column w-content\">\r\n              <div class=\"tab-content\">\r\n                <div id=\"epis-1\" class=\"tab-pane fade in active\">\r\n                  <h2>Rites of Passage</h2>\r\n                  <h5>Episode 1</h5>\r\n                  <p>Ragnar goes on a trip of initiation with his son. Meanwhile, he thinks he has finally found a way to sail ships to the west. However, his beliefs are seen as insane so he chooses to go against the law.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-2\" class=\"tab-pane fade\">\r\n                  <h2>Wrath of the Northmen</h2>\r\n                  <h5>Episode 2</h5>\r\n                  <p>The stage is set for the first journey west by Ragnar Lothbrok as he gathers a crew willing to risk their lives to travel into the unknown.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-3\" class=\"tab-pane fade\">\r\n                  <h2>Dispossessed</h2>\r\n                  <h5>Episode 3</h5>\r\n                  <p>A monastery in Lindesfarne, England is about to get a firsthand look at how the Vikings operate.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-4\" class=\"tab-pane fade\">\r\n                  <h2>Trial</h2>\r\n                  <h5>Episode 4</h5>\r\n                  <p>The Vikings head back to England to see what other treasures this new world has to offer. This go round Ragnar and his crew sail out with Earl Haraldson's permission.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-5\" class=\"tab-pane fade\">\r\n                  <h2>Raid</h2>\r\n                  <h5>Episode 5</h5>\r\n                  <p>In the Great Hall of Kattegat, a seer reads Earl Haraldson's future and tells him that Ragnar Lothbrok searches for his death.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-6\" class=\"tab-pane fade\">\r\n                  <h2>Burial of the Dead</h2>\r\n                  <h5>Episode 6</h5>\r\n                  <p>Ragnar, weak and still hurt, must meet the Earl head-on after it comes to light that Rollo has been tortured on Haraldson's orders.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-7\" class=\"tab-pane fade\">\r\n                  <h2>A King's Ransom</h2>\r\n                  <h5>Episode 7</h5>\r\n                  <p>Three Viking ships sail upriver towards the very heart of power in eastern England: the Royal Villa of King Aelle.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-8\" class=\"tab-pane fade\">\r\n                  <h2>Sacrifice</h2>\r\n                  <h5>Episode 8</h5>\r\n                  <p>The traditional pilgrimage to Uppsalla to thank the gods brings a torrent of emotions for Ragnar, Lagertha, and Athelstan.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n                <div id=\"epis-9\" class=\"tab-pane fade\">\r\n                  <h2>All Change</h2>\r\n                  <h5>Episode 9</h5>\r\n                  <p>At the behest of King Horik, Ragnar assembles a small party to travel to Gotaland (modern day Sweden) to resolve a land dispute with the area's leader, Jarl Borg.</p>\r\n                  <div class=\"fav row\">\r\n                    <div class=\"res-list\">\r\n                      <select>\r\n                        <option>480p</option>\r\n                        <option selected>720p</option>\r\n                        <option>1080p</option>\r\n                      </select>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"watch-now row\">\r\n                    <button>watch it now</button>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <!--tab-content--> \r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <!-- /.modal-content --> \r\n  </div>\r\n  </div>\r\n  <!-- /.modal-dialog --> \r\n<script src='https://content.jwplatform.com/libraries/fgbTqCCh.js'></script>\r\n<script src='js/flowplayer/flowplayer.js'></script>\r\n<script src='js/mediaPlayers.js'></script>\r\n<link rel=\"stylesheet\" href=\"js/flowplayer/skin/skin.css\" media=\"screen\">\r\n   <script type=\"text/javascript\">\r\n\r\n    \$(document).ready(function(){\r\n      var vid = '';\r\n    \tvar SeriesContainer = \$(\"#SeriesContainer\");\r\n    \tvar CHeckExists = SeriesContainer.length;\r\n      if(CHeckExists != 0)\r\n      {\r\n        var omLoadCategoryID = \$(document).find('.onloadCallCategory').data('categoryid');\r\n        var parentControlData = \$(document).find('.onloadCallCategory').data('pcon');\r\n        if(parentControlData == 1)\r\n        {\r\n            getData(omLoadCategoryID);\r\n        }\r\n        else\r\n        {\r\n          getData(omLoadCategoryID);\r\n        }\r\n        \r\n        \$(document).find(\".rippler\").rippler({\r\n    effectClass      :  'rippler-effect'\r\n    ,effectSize      :  0      // Default size (width & height)\r\n    ,addElement      :  'div'   // e.g. 'svg'(feature)\r\n    ,duration        :  400\r\n  });\r\n      }   \r\n\r\n        \$('#SearchData').keypress(function (e) {\r\n            var key = e.which;\r\n            if(key == 13)  // the enter key code\r\n            {\r\n              callSearchFun(); \r\n            }\r\n        });\r\n        \$( document ).on(\"click\", \"#SearchBtn\", function(){\r\n          callSearchFun();\r\n        });\r\n        \$( document ).on(\"click\", \".clearSearch\", function(){\r\n            removeSearchSec();\r\n        });\r\n      \$( document ).on(\"click\", \".LoadMoreBtn\", function(){\r\n            \$('.LoadingMoreFa').removeClass('hideOnload');\r\n            var categoryid =\$(this).data('categoryid'); \r\n            var dataoffset =\$(this).data('dataoffset');\r\n            datalimit = Number(28)+Number(dataoffset);\r\n            dataoffset = Number(dataoffset)+Number(1); \r\n            jQuery.ajax({\r\n                type:\"POST\",\r\n                url:\"includes/ajax-control.php\",\r\n                dataType:\"text\",\r\n                data:{\r\n                action:'GetSeriesByCateGoryId',\r\n                categoryID:categoryid,\r\n                dataoffset:dataoffset,\r\n                datalimit:datalimit,\r\n                hostURL: \"";
echo $XCStreamHostUrl . $bar;
echo "\"\r\n                },  \r\n                  success:function(response2){\r\n                    \$('.LoadingMoreFa').addClass('hideOnload');\r\n                    \$('.LoadMoreBtn').remove();\r\n                     var SeriesContainer = \$('#SeriesContainer');\r\n                     SeriesContainer.append(response2);\r\n                     setformatOfListsByClass('.thumb-b');\r\n                     \$('html, body').animate({\r\n                      scrollTop: Number(\$('.un-'+dataoffset).offset().top)-Number(140)\r\n                    }, 1500);\r\n                     \$(document).find(\".rippler\").rippler({\r\n    effectClass      :  'rippler-effect'\r\n    ,effectSize      :  0      // Default size (width & height)\r\n    ,addElement      :  'div'   // e.g. 'svg'(feature)\r\n    ,duration        :  400\r\n  });\r\n                  }\r\n                });\r\n          });  \r\n\r\n  });\r\n\r\n  function callSearchFun()\r\n  { \r\n    \$('.LoadMoreBtn').addClass('hideOnLoad');\r\n     var SearchData = \$(\"#SearchData\").val();   \r\n     \$('.visible-sec').removeClass('visible-sec');\r\n     \$('.SerchResult').addClass('hideOnLoad');\r\n     \$('#NoResultFound').addClass('hideOnLoad');\r\n     if(SearchData != \"\")\r\n     {\r\n        \$('.streamList').addClass('hideOnLoad');\r\n        var moive_namesearch = \$('.serch_key');\r\n        filter = SearchData.toUpperCase();\r\n        CustomIndex = 0;\r\n        moive_namesearch.each(function( index ) {\r\n          if (\$( this ).val().toUpperCase().indexOf(filter) > -1) {\r\n            \$(\".\"+\$(this).data('parentliclass')).removeClass('hideOnLoad');\r\n            \$(\".\"+\$(this).data('parentliclass')).addClass('visible-sec');\r\n            CustomIndex = 1;\r\n          }\r\n        });  \r\n        if(CustomIndex == 0)\r\n        {\r\n            \$('#NoResultFound').removeClass('hideOnLoad');\r\n        }\r\n        \$('#search').removeClass('open');\r\n        \$('#searchOf').text(filter);\r\n        \$('.SerchResult').removeClass('hideOnLoad');\r\n        setformatOfListsByClass('.visible-sec');\r\n\r\n     }\r\n     else\r\n     {\r\n        swal('Enter keyword for search.',{button: false});\r\n        setTimeout(function(){swal.close();},2000);\r\n     }\r\n  }\r\n\r\n  function removeSearchSec()\r\n  {\r\n    \$('.LoadMoreBtn').removeClass('hideOnLoad');\r\n     \$('.SerchResult').addClass('hideOnLoad'); \r\n     \$('#SearchData').val(''); \r\n     \$('#NoResultFound').addClass('hideOnLoad');\r\n     \$('.streamList').removeClass('hideOnLoad'); \r\n      setformatOfListsByClass('.thumb-b');\r\n  }\r\n\r\n\r\n  function setformatOfListsByClass(ClassName = \"\")\r\n  {\r\n      \$(\".free-wall\").each(function() {\r\n      var wall = new Freewall(this);\r\n      wall.reset({\r\n        selector: ClassName,\r\n        animate: true,\r\n        cellW: 185,\r\n        cellH: 278,\r\n        fixSize: 0,\r\n        gutterY: 0,\r\n        gutterX: -15,\r\n        onResize: function() {\r\n          wall.fitWidth();\r\n        }\r\n      })\r\n      wall.fitWidth();\r\n      /* \$(this).find('.iconImage').parent().parent().addClass('checkingcontrol');\r\n        console.log(\$(this).find('.iconImage').parent().parent().attr('data-width')+\"px\");*/\r\n        \$(this).find('.iconImage').css('width',\$(this).find('.iconImage').parent().parent().attr('data-width')+\"px\");\r\n        \$(this).find('.iconImage').css('height',\$(this).find('.iconImage').parent().parent().attr('data-height')+\"px\");\r\n    });\r\n    \$(window).trigger(\"resize\");\r\n     \$('#fullLoader').addClass('hideOnLoad');\r\n\r\n  }\r\n\r\n\r\n    function confirmparent(\$categoryID = '', \$dataoffset = '0' ,\$datalimit = '28')\r\n  {\r\n      getData(\$categoryID);\r\n  }  \r\n\r\n   function getData(\$categoryID = '', \$dataoffset = '0' ,\$datalimit = '28')\r\n  {\r\n    removeSearchSec();\r\n  \t\$(this).addClass('active'); \r\n    var SeriesContainer = \$('#SeriesContainer');\r\n    SeriesContainer.html('');\r\n    SeriesContainer.addClass('hideOnLoad');\r\n    \$('#fullLoader').removeClass('hideOnLoad');\r\n    SeriesContainer.html('');\r\n    SeriesContainer.addClass('hideOnLoad');\r\n\tjQuery.ajax({\r\n\t    type:\"POST\",\r\n\t    url:\"includes/ajax-control.php\",\r\n\t    dataType:\"text\",\r\n\t    data:{\r\n\t    action:'GetSeriesByCateGoryId',\r\n\t    categoryID:\$categoryID,\r\n      dataoffset:\$dataoffset,\r\n      datalimit:\$datalimit,\r\n\t    hostURL: \"";
echo $XCStreamHostUrl . $bar;
echo "\"\r\n\t    },  \r\n\t      success:function(response2){\r\n\t\t     \r\n\t\t      if(response2 != '0')\r\n\t\t      {\r\n\t\t      \tSeriesContainer.html('');\r\n                SeriesContainer.html(response2);\r\n                SeriesContainer.removeClass('hideOnLoad');\r\n                SeriesContainer.css('margin-bottom','50px !important');\r\n                setformatOfListsByClass('.thumb-b');\r\n\r\n\t\t      }\r\n\t\t      else\r\n\t\t      {\r\n            \$('#fullLoader').addClass('hideOnLoad');\r\n\t\t      \t\$(\"#NoResultFound\").removeClass(\"hideOnLoad\");\r\n\t\t      }\r\n\t\t      \$(document).find(\".rippler\").rippler({\r\n    effectClass      :  'rippler-effect'\r\n    ,effectSize      :  0      // Default size (width & height)\r\n    ,addElement      :  'div'   // e.g. 'svg'(feature)\r\n    ,duration        :  400\r\n  });\r\n\t      }\r\n\t    });\r\n\t   \r\n  }\r\n\r\n  function showInfo(\$seriesID = '')\r\n  {\r\n    var fullDataVal = \$(\"#fullData-\"+\$seriesID).val();\r\n    /*\$('#fullLoader').removeClass('hideOnLoad');*/\r\n    \$('.sectionNo'+\$seriesID+'').addClass('InfoLoading');\r\n\tjQuery.ajax({\r\n\t\ttype:\"POST\",\r\n\t\turl:\"includes/ajax-control.php\",\r\n\t\tdataType:\"text\",\r\n\t\tdata:{\r\n\t\taction:'getSeriesInfo',\r\n        seriesID:\$seriesID,\r\n\t\tfullDataVal:fullDataVal,\r\n\t\thostURL: \"";
echo $XCStreamHostUrl . $bar;
echo "\"\r\n\t\t},  \r\n\t\tsuccess:function(response2){ \r\n\t\t\tif(response2 != \"0\")\r\n\t\t\t{\r\n\t\t\t\t\$(document).find('.modal-dialog-custom').html(response2);\r\n        \$('.sectionNo'+\$seriesID+'').removeClass('InfoLoading');\r\n\t\t\t\t\$('#menuModal').modal('show');\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tswal('No Result found!!');\r\n        \$('.sectionNo'+\$seriesID+'').removeClass('InfoLoading');\r\n\t\t\t}\r\n      \$(document).find(\".rippler\").rippler({\r\n    effectClass      :  'rippler-effect'\r\n    ,effectSize      :  0      // Default size (width & height)\r\n    ,addElement      :  'div'   // e.g. 'svg'(feature)\r\n    ,duration        :  400\r\n  });\r\n\t\t}\r\n\t});\r\n  }\r\n\r\n  \$(document).on(\"click\", \".backToInfo\", function(){\r\n    \r\n    var episID = \$(this).data('episid');\r\n    \$(this).addClass('hideOnLoad');\r\n    \$('#player-holder').html('');\r\n    \$('#player-holder').addClass('hideOnLoad');\r\n    \$('#epis-'+episID+'').removeClass('hideOnLoad');\r\n    \r\n  })\r\n\r\n  \$(document).on(\"click\", \".episodes li a\", function(){\r\n    var episID = \$(this).data('episid');\r\n    //\$(this).addClass('hideOnLoad');\r\n    \$('#player-holder').html('');\r\n    \$('#player-holder').addClass('hideOnLoad');\r\n    \$('#epis-'+episID+'').removeClass('hideOnLoad');\r\n    \$('.backToInfo').addClass('hideOnLoad');\r\n    /*\$(document).find('.PlayerHolder div').html('').addClass('hideOnLoad');\r\n    \$('.backToInfo').addClass('hideOnLoad');*/\r\n    \r\n  })\r\n\r\n  function watchnow(\$movie, \$format)\r\n  {\r\n    \$('#player-holder').removeClass('hideOnLoad');\r\n    \$('#epis-'+\$movie+'').addClass('hideOnLoad');\r\n    \$('#backToInfo-'+\$movie+'').removeClass('hideOnLoad');\r\n   \r\n   ";
$resp = webtvpanel_checkPlayer();
if ($resp) {
    $livePlayer = $resp->{$username}->live_player;
    $moviesPlayer = $resp->{$username}->movie_player;
    $seriesPlayer = $resp->{$username}->series_player;
    if ($seriesPlayer == "JW Player") {
        echo "           \$movieVideoLink = \"";
        echo $XCStreamHostUrl . $bar;
        echo "series/";
        echo $username . "/" . $password;
        echo "/\"+\$movie+'.'+\$format;\r\n          set_jwplayer(\$movieVideoLink);\r\n        ";
    } else {
        if ($seriesPlayer == "Flow player") {
            echo "         \$movieVideoLink = \"";
            echo $XCStreamHostUrl . $bar;
            echo "series/";
            echo $username . "/" . $password;
            echo "/\"+\$movie+'.'+\$format;\r\n          set_flowplayer(\$movieVideoLink);\r\n        ";
        } else {
            if ($seriesPlayer == "AJ player") {
                echo "        \$movieVideoLink = \"";
                echo $XCStreamHostUrl . $bar;
                echo "series/";
                echo $username . "/" . $password;
                echo "/\"+\$movie+'.'+\$format;\r\n          set_ajplayer(\$movieVideoLink);\r\n        ";
            } else {
                echo "           \$movieVideoLink = \"";
                echo $XCStreamHostUrl . $bar;
                echo "series/";
                echo $username . "/" . $password;
                echo "/\"+\$movie+'.'+\$format;\r\n          set_jwplayer(\$movieVideoLink);\r\n          ";
            }
        }
    }
} else {
    echo "         \$movieVideoLink = \"";
    echo $XCStreamHostUrl . $bar;
    echo "series/";
    echo $username . "/" . $password;
    echo "/\"+\$movie+'.'+\$format;\r\n        set_jwplayer(\$movieVideoLink);\r\n        ";
}
echo "   \r\n  }\r\n\r\n\r\n\r\n\r\n\r\n\r\n  </script>\r\n\r\n          ";
include "includes/footer.php";

?>