function init(img) {
var e = parseFloat("${edgzl}");
(e = isNaN("${edgzl}") ? 0 : e), (e = e > 0 ? e : 100);
var g = parseFloat("${grgzl}");
g = isNaN("${grgzl}") ? 0 : g;
var p = g / e;
function showTime() {
var t = new Date(),
e = t.getFullYear(),
i = t.getMonth() + 1,
n = t.getDate(),
o = t.getMinutes() < 10 ? "0" + t.getMinutes() : t.getMinutes();
$(".nowDateGrxx").text(
e + "\u5e74" + i + "\u6708" + n + "\u65e5 " + t.getHours() + ":" + o
);
}
$(".gzl1").css("width", 100 * (p > 1 ? 1 : p) + "%"),
$(".gzlpe").html((100 * p).toFixed(2)),
setInterval(showTime, 1e3);
var timer = null;
function tips(t, e) {
if (null != $("#" + e).html()) {
var i = $(t)[0].getBoundingClientRect(),
n = this.recursionIframe(),
o = i.left + n.left,
r = i.top + i.height + n.top,
s =
"
"),
top.$("body").append(s);
var d = document.createElement("script");
$(d).append("initNiceScorll();"),
top.$("body").append(d),
top.$(".whkDivHover").find(".popup-div").show(),
top.$(".whkDivHover").mouseenter(function () {
clearTimeout(timer);
}),
top
.$(".whkDivHover")
.find(".popup-div")
.mouseleave(function () {
tipsHidden();
});
}
}
function tipsHidden() {
top.$(".whkDivHover").remove();
}
$(".dHover").mouseenter(function () {
tips($(this), "cardList");
}),
$(".dHover").mouseleave(function () {
clearTimeout(timer),
(timer = setTimeout(function () {
tipsHidden();
}, 100));
}),
$(".dHover2").mouseenter(function (t) {
t.stopPropagation(),
tips($(this), "cardList2"),
setTimeout(function () {
top.loadSmallScorll(top.$(".popup-div"));
}, 100);
}),
$(".dHover2").mouseleave(function (t) {
clearTimeout(timer),
(timer = setTimeout(function () {
tipsHidden();
}, 100));
}),
(this.recursionIframe = function (t) {
if ((t = t || window).parent == top && t.parent == t)
return { left: 0, top: 0 };
for (
var e,
i = t.parent,
n = i.document.getElementsByTagName("IFRAME"),
o = t.document.getElementsByTagName("IFRAME"),
r = 0;
r < o.length;
r++
) {
if ((s = o[r]).contentWindow == t) {
e = s;
break;
}
}
for (r = 0; r < n.length; r++) {
var s;
if ((s = n[r]).contentWindow == t) {
e = s;
break;
}
}
var d = {
left: (function t(e) {
var i = e.offsetLeft;
return null != e.offsetParent && (i += t(e.offsetParent)), i;
})(e),
top: (function t(e) {
var i = e.offsetTop;
return null != e.offsetParent && (i += t(e.offsetParent)), i;
})(e),
};
if (i.parent != i) {
var l = this.recursionIframe(i);
(d.left += l.left), (d.top += l.top);
}
return d;
}),
$("#wh_content").find(".popup-div").hide(),
$("#rc_content").find(".popup-div").hide(),
$(".popup-div").hide(),
$("#wh_content").click(function () {
var url = window.a;
eval(url), $("div.zhdlsj").show(), $("#wh_content").hide();
});
}
$("#grtjList-div").mouseleave(function () {
$("#grtjList-child-div").css("display", "none");
}),
$(".tjlb-child").mouseenter(function () {
$("#grtjList-child-div").css("display", "block");
}),
$("#grtjList-child-div").mouseleave(function () {
$("#grtjList-child-div").css("display", "none");
}),
loadSmallScorll($("#grtjList-child-div"));
var divw = $(".grtjList-num").width();
$(".grtjList-num").mouseleave(function () {
$(this).find("div[parentId]").css("display", "none");
}),
$(".grtjList-num").mouseenter(function () {
var t = $(this).attr("id");
t &&
($("div[parentId]").css("display", "none"),
$("div[parentId='" + t + "']").css("display", "block")),
$(".grtjList-child-num").width(divw);
}),
setTimeout(function () {
loadSmallScorll($(".grtjList-child-num"));
}, 100),
$(".grtjList-child-num").width(divw);