/* automatically generated by JSCoverage - do not edit */
try {
  if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) {
    // this is a browser window that was opened from another window

    if (! top.opener._$jscoverage) {
      top.opener._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null) {
    // this is a browser window

    try {
      if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) {
        top._$jscoverage = top.opener._$jscoverage;
      }
    }
    catch (e) {}

    if (! top._$jscoverage) {
      top._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null && top._$jscoverage) {
    _$jscoverage = top._$jscoverage;
  }
}
catch (e) {}
if (typeof _$jscoverage !== 'object') {
  _$jscoverage = {};
}
if (! _$jscoverage['plugins/background.js']) {
  _$jscoverage['plugins/background.js'] = [];
  _$jscoverage['plugins/background.js'][6] = 0;
  _$jscoverage['plugins/background.js'][7] = 0;
  _$jscoverage['plugins/background.js'][8] = 0;
  _$jscoverage['plugins/background.js'][9] = 0;
  _$jscoverage['plugins/background.js'][12] = 0;
  _$jscoverage['plugins/background.js'][13] = 0;
  _$jscoverage['plugins/background.js'][15] = 0;
  _$jscoverage['plugins/background.js'][17] = 0;
  _$jscoverage['plugins/background.js'][18] = 0;
  _$jscoverage['plugins/background.js'][25] = 0;
  _$jscoverage['plugins/background.js'][26] = 0;
  _$jscoverage['plugins/background.js'][27] = 0;
  _$jscoverage['plugins/background.js'][30] = 0;
  _$jscoverage['plugins/background.js'][31] = 0;
}
_$jscoverage['plugins/background.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///commands &#25554;&#20837;&#32972;&#26223;</span>","<span class=\"c\">///commandsName  background</span>","<span class=\"c\">///commandsTitle  &#25554;&#20837;&#32972;&#26223;</span>","<span class=\"c\">///commandsDialog  dialogs\\background</span>","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'background'</span><span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","    <span class=\"k\">var</span> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","    me<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">\"getAllHtml\"</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">(</span>type<span class=\"k\">,</span>headHtml<span class=\"k\">)</span><span class=\"k\">{</span>","        <span class=\"k\">var</span> body <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>body<span class=\"k\">,</span>","            su <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"background-image\"</span><span class=\"k\">),</span>","            url<span class=\"k\">=</span><span class=\"s\">\"\"</span><span class=\"k\">;</span>","        <span class=\"k\">if</span><span class=\"k\">(</span>su<span class=\"k\">.</span>indexOf<span class=\"k\">(</span>me<span class=\"k\">.</span>options<span class=\"k\">.</span>imagePath<span class=\"k\">)&gt;</span><span class=\"s\">0</span><span class=\"k\">)</span><span class=\"k\">{</span>","            url <span class=\"k\">=</span>  su<span class=\"k\">.</span>substring<span class=\"k\">(</span>su<span class=\"k\">.</span>indexOf<span class=\"k\">(</span>me<span class=\"k\">.</span>options<span class=\"k\">.</span>imagePath<span class=\"k\">),</span>su<span class=\"k\">.</span>length<span class=\"k\">-</span><span class=\"s\">1</span><span class=\"k\">).</span>replace<span class=\"k\">(</span><span class=\"s\">/\"|\\(|\\)/ig</span><span class=\"k\">,</span><span class=\"s\">\"\"</span><span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">else</span><span class=\"k\">{</span>","            url <span class=\"k\">=</span>  su<span class=\"k\">!=</span><span class=\"s\">\"none\"</span> <span class=\"k\">?</span> su<span class=\"k\">.</span>replace<span class=\"k\">(</span><span class=\"s\">/url\\(\"?|\"?\\)/ig</span><span class=\"k\">,</span><span class=\"s\">\"\"</span><span class=\"k\">):</span><span class=\"s\">\"\"</span><span class=\"k\">;</span>","        <span class=\"k\">}</span>","        <span class=\"k\">var</span> html <span class=\"k\">=</span> <span class=\"s\">'&lt;style type=\"text/css\"&gt;body{'</span><span class=\"k\">;</span>","        <span class=\"k\">var</span> bgObj <span class=\"k\">=</span> <span class=\"k\">{</span>","            <span class=\"s\">\"background-color\"</span> <span class=\"k\">:</span> domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"background-color\"</span><span class=\"k\">)||</span><span class=\"s\">\"#ffffff\"</span><span class=\"k\">,</span>","            <span class=\"s\">'background-image'</span> <span class=\"k\">:</span> url <span class=\"k\">?</span> <span class=\"s\">'url('</span><span class=\"k\">+</span>url<span class=\"k\">+</span><span class=\"s\">')'</span> <span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">,</span>","            <span class=\"s\">'background-repeat'</span><span class=\"k\">:</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"background-repeat\"</span><span class=\"k\">)||</span><span class=\"s\">\"\"</span><span class=\"k\">,</span>","            <span class=\"s\">'background-position'</span><span class=\"k\">:</span> browser<span class=\"k\">.</span>ie<span class=\"k\">?(</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"background-position-x\"</span><span class=\"k\">)+</span><span class=\"s\">\" \"</span><span class=\"k\">+</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"background-position-y\"</span><span class=\"k\">)):</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"background-position\"</span><span class=\"k\">),</span>","            <span class=\"s\">'height'</span><span class=\"k\">:</span>domUtils<span class=\"k\">.</span>getComputedStyle<span class=\"k\">(</span>body<span class=\"k\">,</span><span class=\"s\">\"height\"</span><span class=\"k\">)</span>","        <span class=\"k\">}</span><span class=\"k\">;</span>","        <span class=\"k\">for</span> <span class=\"k\">(</span> <span class=\"k\">var</span> name <span class=\"k\">in</span> bgObj <span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span> bgObj<span class=\"k\">.</span>hasOwnProperty<span class=\"k\">(</span> name <span class=\"k\">)</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","                html <span class=\"k\">+=</span> name<span class=\"k\">+</span><span class=\"s\">\":\"</span><span class=\"k\">+</span>bgObj<span class=\"k\">[</span>name<span class=\"k\">]+</span><span class=\"s\">\";\"</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span>","        html <span class=\"k\">+=</span> <span class=\"s\">'}&lt;/style&gt; '</span><span class=\"k\">;</span>","        headHtml<span class=\"k\">.</span>push<span class=\"k\">(</span>html<span class=\"k\">);</span>","    <span class=\"k\">}</span><span class=\"k\">);</span>","<span class=\"k\">}</span>"];
_$jscoverage['plugins/background.js'][6]++;
UE.plugins.background = (function () {
  _$jscoverage['plugins/background.js'][7]++;
  var me = this;
  _$jscoverage['plugins/background.js'][8]++;
  me.addListener("getAllHtml", (function (type, headHtml) {
  _$jscoverage['plugins/background.js'][9]++;
  var body = this.body, su = domUtils.getComputedStyle(body, "background-image"), url = "";
  _$jscoverage['plugins/background.js'][12]++;
  if ((su.indexOf(me.options.imagePath) > 0)) {
    _$jscoverage['plugins/background.js'][13]++;
    url = su.substring(su.indexOf(me.options.imagePath), (su.length - 1)).replace(/"|\(|\)/gi, "");
  }
  else {
    _$jscoverage['plugins/background.js'][15]++;
    url = ((su != "none")? su.replace(/url\("?|"?\)/gi, ""): "");
  }
  _$jscoverage['plugins/background.js'][17]++;
  var html = "<style type=\"text/css\">body{";
  _$jscoverage['plugins/background.js'][18]++;
  var bgObj = {"background-color": (domUtils.getComputedStyle(body, "background-color") || "#ffffff"), "background-image": (url? ("url(" + url + ")"): ""), "background-repeat": (domUtils.getComputedStyle(body, "background-repeat") || ""), "background-position": (browser.ie? (domUtils.getComputedStyle(body, "background-position-x") + " " + domUtils.getComputedStyle(body, "background-position-y")): domUtils.getComputedStyle(body, "background-position")), "height": domUtils.getComputedStyle(body, "height")};
  _$jscoverage['plugins/background.js'][25]++;
  for (var name in bgObj) {
    _$jscoverage['plugins/background.js'][26]++;
    if (bgObj.hasOwnProperty(name)) {
      _$jscoverage['plugins/background.js'][27]++;
      html += (name + ":" + bgObj[name] + ";");
    }
}
  _$jscoverage['plugins/background.js'][30]++;
  html += "}</style> ";
  _$jscoverage['plugins/background.js'][31]++;
  headHtml.push(html);
}));
});
