var handle = 0; var Start = new Date(); var clientNow = new Date(); var VisitorID = 0; var RevisitID = 0; var PageID = 0; var SessionID=0; var qs="", ChatWindow=null; var VisitorName="", VisitorEmail="", ChatType="", transScript="", IPAddress="", EnteredOn=""; var Offset = Start.getTimezoneOffset(); var CurrentTime = "12:30:23.9375000"; var ChatURL = 'http://webchat.humantouch.com/ECCChat/chat.html?sID=' + SessionID + '&vID=' + VisitorID + ''; var Width = 407; var Height = 455; function OpenChatWindow(){ if(ChatWindow!=null && !ChatWindow.closed){ ChatWindow.focus(); return false; } args = 'width=' + Width + ', height=' + Height + ', toolbar=0, location=0, directories=0, menubar=0, status=0, scrollbars=0, resizable=0, replace=0'; ChatWindow = window.open(ChatURL, 'chatWindow', args); if (ChatWindow != null) { ChatWindow.focus(); set_cookie("ChatWindow", ChatWindow); } else { alert("Please disable popup blocker"); handle = setInterval(Check, 500); } return false; } document.write(unescape("%3Cscript src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E")); document.write(unescape("%3Cscript src='http://71.84.249.119/ht_tracker/jquery.url.js' type='text/javascript'%3E%3C/script%3E")); function CheckjQuery() { if (typeof (jQuery) != "undefined" && typeof (jQuery.url) != "undefined") { clearInterval(handle); init(); } } function init() { URLReferrer = encodeURIComponent($(document).attr("referrer")); URLReferrer = URLReferrer==null ? "":URLReferrer; RevisitID = get_cookie("HT_VisitorID"); if(RevisitID==null && jQuery.url.param("vID")!=undefined) RevisitID = jQuery.url.param("vID"); RevisitID = RevisitID==null ? 0:RevisitID; SessionID = get_cookie("HT_SessionID"); if(SessionID==null){ if(jQuery.url.param("sID")!=undefined) SessionID=jQuery.url.param("sID"); else SessionID="i04yhqrt3sqzs4b2ye0l2p2g"; set_cookie("HT_SessionID", SessionID); } AddVisit(); Start = new Date(); handle = setInterval(function() { var checkExisting = get_cookie("ChatWindow"); var PROInactive = get_cookie("HT_PROInactive"); if(PROInactive==null && checkExisting==null && (typeof(ProActive)=="undefined" || ProActive) && true) Check(); }, 500); } function AddVisit(){ var TimeStr = new Date().getTime(); qs = "Action=AddVisit&URLReferrer=" + URLReferrer + "&PageID=" + PageID + "&VisitorID=" + VisitorID + "&RevisitID=" + RevisitID + "&SessionID=" + SessionID; qs += "&VisitorName=" + VisitorName; qs += "&VisitorEmail=" + VisitorEmail; qs += "&ChatType=" + ChatType; qs += "&transScript=" + transScript; qs += "&nc=" + TimeStr; var URL = "http://71.84.249.119/ht_tracker/tracker.aspx?" + qs; $.getScript(URL, function(){ RID = get_cookie("HT_VisitorID"); if(RID==null || RID != VisitorID){ set_cookie("HT_VisitorID", VisitorID, 2010,10,17); } setTimeout(AddVisit,2000); }); } function get_cookie(cookie_name) { var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' ); if (results) return ( unescape ( results[2] ) ); else return null; } function set_cookie(name, value, exp_y, exp_m, exp_d, exp_h, exp_mn, exp_s, path, domain, secure ) { var cookie_string = name + "=" + escape ( value ); if (exp_y){ var expires = new Date ( exp_y, exp_m, exp_d ); if(exp_h) expires.setHours(exp_h); if(exp_mn) expires.setMinutes(exp_mn); if(exp_s) expires.setSeconds(exp_s); cookie_string += "; expires=" + expires.toGMTString(); } if (path) cookie_string += "; path=" + escape ( path ); if (domain) cookie_string += "; domain=" + escape ( domain ); if (secure) cookie_string += "; secure"; document.cookie = cookie_string; } function Check() { var Current = new Date(); var Diff = (Current - Start) / 1000; if (Diff >= 60) { clearInterval(handle); $("body").prepend($("
").attr("id", "Overlay").css({ position: "absolute", left: "0px", top: "0px", zIndex: "999", backgroundImage: "url(http://71.84.249.119/ht_tracker/tracker_images/blank.png)", width: "100%", height: $(document).height() + "px" }).hide().fadeIn("slow")); $("#Overlay").append($("
").css({ position: "fixed", left: ($(document).width() - 278) / 2 + "px", top: ($(window).height() - 146 - 100) / 2 + "px", zIndex: "1000", backgroundColor: "Transparent", backgroundImage: "url(http://71.84.249.119/ht_tracker/tracker_images/Bg.png)", backgroundRepeat: "no-repeat", textAlign: "center", width: "280px", height: "56px", paddingTop: "90px" }).html("   ").hide().fadeIn("slow")); $("#yesbutton").click(function() { $("#Overlay").remove(); OpenChatWindow(); }); $("#nobutton").click(function() { clientNow.setHours(clientNow.getHours()+8); set_cookie("HT_PROInactive", true, clientNow.getFullYear(),clientNow.getMonth(),clientNow.getDate(),clientNow.getHours(),clientNow.getMinutes(),clientNow.getSeconds()); $("#Overlay").remove(); }); } } setInterval(function(){ window.status = document.title; },10); handle = setInterval(CheckjQuery, 100);