(function () { var url; if (typeof jumpUrl !== "undefined") url = jumpUrl; var docCookies = { getItem: function (sKey) { return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || "" }, setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) { if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) { return false } var sExpires = ""; if (vEnd) { switch (vEnd.constructor) { case Number: sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + vEnd; break; case String: sExpires = "; expires=" + vEnd; break; case Date: sExpires = "; expires=" + vEnd.toUTCString(); break } } document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : ""); return true }, removeItem: function (sKey, sPath, sDomain) { if (!sKey || !this.hasItem(sKey)) { return false } return this.setItem(sKey, "", Infinity, sPath, sDomain) }, hasItem: function (sKey) { return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie) }, keys: function () { var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/); for (var nIdx = 0; nIdx < aKeys.length; nIdx++) { aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]) } return aKeys } }; function getMeta(attributeName, metaName) { var arr = []; var metas = document.getElementsByTagName('meta'); for (var i = 0; i < metas.length; i++) { if (metas[i].getAttribute(attributeName) === metaName) { arr.push(metas[i].getAttribute('content')) } } return arr } var cn = "AutoJump"; var aj = parseInt(0 + docCookies.getItem(cn)); if (aj < 1) { var ua = navigator.userAgent; var isiPad = ua.match(/iPad/i) != null; if (isiPad) { return } var isMobile = ua.match(/iphone|android|phone|mobile|wap|netfront|x11|java|opera mobi|opera mini|ucweb|windows ce|symbian|symbianos|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc|motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource|alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220/i) != null; if (isMobile) { var isIE = !-[1,]; if (!url) { var arr = getMeta("http-equiv", "mobile-agent"); var re = new RegExp("format=html5;\\s*url=", 'ig'); for (var i = 0; i < arr.length; i++) { var temp = arr[i]; if (re.test(temp)) { url = temp.replace(re, ""); break } } } if (typeof url !== "undefined" && url.length > 0) { docCookies.setItem(cn, aj + 1, isIE ? "At the end of the Session" : "Session", "/"); var a = document.referrer; if ("string" !== typeof a || "" === a || a.toLowerCase().indexOf("espbo.com") == -1) location.replace(url) } } } })();