﻿if (typeof (AG) == "undefined") {
    AG = {};
};
AG.HorizontalSlide =
{
    MainLoad: function (ModuleID) {
        //Nếu độ rộng của trình duyệt lớn hơn 1280 thì để mặc định độ rộng trình duyệt là 1259  và 1280 tùy theo trình duyệt
        //if (AG.MainMenu._clientwith >= 1339) {
          //  var sHtml = "<iframe scrolling=\"no\" height=\"55px\" width=\"100%\" frameborder=\"0\" style=\"border: 0px none; padding: 0px; margin: 0px;\" src=\"/DesktopModules/AG.HorizontalSlide/DoiTac1366.htm\" style=\"position:absolute;top:0;left:0;\"></iframe>";
        //}
        //else if ((AG.MainMenu._clientwith >= 1259) && (AG.MainMenu._clientwith < 1339)) {
          //  var sHtml = "<iframe scrolling=\"no\" height=\"55px\" width=\"100%\" frameborder=\"0\" style=\"border: 0px none; padding: 0px; margin: 0px;\" src=\"/DesktopModules/AG.HorizontalSlide/DoiTac1280.htm\" style=\"position:absolute;top:0;left:0;\"></iframe>";
        //}
        //else {
          //  var sHtml = "<iframe scrolling=\"no\" height=\"55px\" width=\"100%\" frameborder=\"0\" style=\"border: 0px none; padding: 0px; margin: 0px;\" src=\"/DesktopModules/AG.HorizontalSlide/DoiTac1024.htm\" style=\"position:absolute;top:0;left:0;\"></iframe>";
        //}
        //$("#m_HorizontalSlide_DoiTac_" + ModuleID).html(sHtml);
    }
}

