var expDate = new Date(); expDate.setTime(expDate.getTime() + (86400 * 1000 * expDays)); return expDate; } function _hwaCookieInit() { var s=""; var count = _hwaGetCookie('hwatime'); var unique = _hwaGetCookie('hwaunique'); if (unique == null) { _huq = 1; var utime = new Date(); utime.setHours(23); utime.setMinutes(59); utime.setSeconds(59); utime.setMilliseconds(999); _hwaSetCookie('hwaunique', 1, utime, "/"); } if (count == null) { _hwaSetCookie('hwatime', _hdt, _hwaSetDatetime(365), "/"); } else { var found = 0; var reg = new RegExp("^http[s]?:\/\/([-a-z0-9]+\.)?" + _hdn, "ig"); if (_hrf && reg.test(_hrf)) { found = 1; } if (found) { _hld = -1; } else { _hld = _hwaGetCookie('hwatime'); } _hwaRemoveCookie('hwatime'); _hwaSetCookie('hwatime', _hdt, _hwaSetDatetime(365), "/"); } if (_hld == null) _hld = 0; s += "&lv="+_hld+"&uq="+_huq; return s; } function _hwaGetConfig() { var s=""; var n = navigator; var an = n.appName; var ua = n.userAgent; var ua2 = ua.toLowerCase(); var moz = (an.indexOf("Netscape") != -1); var ie = (ua2.indexOf("msie") != -1); var win = ((ua2.indexOf("win")!=-1) || (ua2.indexOf("32bit")!=-1)); var jv = n.javaEnabled() ? "1" : "0"; var ck = n.cookieEnabled ? "1" : "0"; s+="&jv="+jv+"&ck="+ck; var cd = window.screen.colorDepth; var rs = window.screen.width+"X"+window.screen.height; var ln = (n.language) ? n.language : n.browserLanguage; ln = ln.toLowerCase(); s+="&cd="+cd+"&rs="+rs+"&ln="+ln+"&ua="+ua; return s; } function _hwaPlugMoz(plug) { find = false; if (_hmime.indexOf(plug) != -1) { if (navigator.mimeTypes[plug].enabledPlugin != null) { find = true; } } return find; } function _hwaPlugIE(plug) { find = false; _hdo.write('\n on error resume next \n find = IsObject(CreateObject("' + plug + '"))\n'); if (find) return true; else return false; }*/