﻿!function () { function t(t, e, i) { t.attachEvent ? (t["e" + e + i] = i, t[e + i] = function () { t["e" + e + i](window.event) }, t.attachEvent("on" + e, t[e + i])) : t.addEventListener(e, i, !1) } var e = window.rightAd_bodywidth || 1e3, i = window.rightAd_fixedwidth || 40, n = window.rightAd_width || 135, d = window.rightAd_height || 1e3, o = window.rightAd_url || "", h = window.rightAd_top ? window.rightAd_top +"px": "38px", r = (window.rightAd_zindex || 99, function () { if (!document.getElementById("rightAD")) { var e = '<iframe width="' + n + '" height="' + d + '" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" src="' + o + '"></iframe>', i = document.createElement("div"); i.className = "rbadbox", i.id = "rightAD", i.innerHTML = e, i.style.height = d, i.style.width = n, i.style.position = "absolute", i.style.top = h, i.style.zIndex = window.rightAd_zindex || 99, document.body.appendChild(i), t(window, "resize", function () { c() }), c() } }), w = function () { var t = document.documentElement, e = t && t.clientWidth || document.body.clientWidth || window.innerWidth, i = t && t.clientHeight || document.body.clientHeight || window.innerHeight; return { w: e, h: i } }, c = function () { var t = document.getElementById("rightAD"), d = w(), o = (document.documentElement.clientWidth - e) / 2 - i - 5; parseFloat(t.style.right) != o && (t.style.right = o + "px"), t.style.display = d.w <= e + 2 * n + 20 ? "none" : "block" }; r() }();