var hcClickUpdateState = 0; var hcImage; var hcIsImage = false; var hcCounter = 0; var hcCmd = "startPage"; var hcTimeout = 5; var hcSendCounter = 0; var hcLeft = -1; var hcTop = -1; var hcNS = (document.layers) ? true : false; var hcIE = (document.all) ? true : false; var hcShowImage = false; var hcPos = - 30; var hcStep = 3; var hcDir = hcStep; var hcBorder = 100; var hcAnimate = false; var hcNeedImage; var hcCloseImage; var hcImageFetched = false; function hcDate() { var d = new Date(); return d.getTime(); } function hcSendRequest() { hcSendCounter++; if (hcSendCounter == 5) hcIsImage = false; if (! hcIsImage) { hcImage= new Image; var u = 'http://hc2.humanclick.com/hc/84418185/?site=84418185' + '&cmd=' + hcCmd + '&page=' + escape(document.location) + '&title=' + escape(document.title) + '&referrer=' + escape(document.referrer) + '&d=' + hcDate(); hcCmd = "inPage"; hcImage.src = u; hcIsImage = true; hcSendCounter = 0; } } function hcHandleWidth(w) { if (w == 60) { openChat(); } else if (w == 70) { openWantsToChat(); } else if (w == 30) { hcTimeout = -1; } else if (w == 40) { hcTimeout = 15; } else if (w == 50) { hcTimeout = 30; } else if (w >= 80) { if (w != 80 && isNaN(hcClickUpdateState)) hcClickUpdateState(w-80); hcReloadIcon(); hcSendRequest(); } } function hcCheckImages() { if (hcIsImage) { var w = hcImage.width; if (w == 0) return; hcIsImage = false; hcHandleWidth(w); } } function hcXoomImage() { for (var i = 0; i < document.links.length; i++) { if (document.links[i].href.indexOf('javascript') >= 0) { document.links[i].target = "_self"; } } } function hcLoop() { if (hcTimeout < 0) return; if (hcCounter == 0) hcSendRequest(); hcCounter = (hcCounter + 1) % hcTimeout; hcCheckImages(); hcXoomImage(); setTimeout('hcLoop()', 1000); } function hcReloadIcon() { document.images['hcIcon'].src = 'http://hc2.humanclick.com/hc/84418185/?cmd=repstate&site=84418185&d=' + hcDate(); } function openChat() { window.open('http://hc2.humanclick.com/hc/84418185/?cmd=file&file=visitorWantsToChat&site=84418185&d=' + hcDate(), 'chat84418185', 'width=419,height=320,menubar=no,scrollbars=0,resizable=1'); } function openWantsToChat() { if (hcIE || hcNS) { hcShowTheImage(); } else { window.open('http://hc2.humanclick.com/hc/84418185/?cmd=file&file=wantsToChat&site=84418185&d=' + hcDate(), 'wanttochat84418185', 'width=128,height=191,menubar=no,scrollbars=no'); } } function hcPreload() { hcNeedImage = new Image(); hcNeedImage.src = "http://hc2.humanclick.com/hcp/female/1/en/need_help_on.gif"; hcCloseImage = new Image(); hcCloseImage.src = "http://hc2.humanclick.com/hcp/female/1/en/close_on.gif"; } function hcSetImageGo(name, image, go) { hcAnimate = go; hcSetImage(name, image); } function hcSetImage(name, image) { document[name].src = "http://hc2.humanclick.com/hcp/female/1/en/" + image; } document.write('
'); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
Powered by HumanClick
'); document.write('
'); if (hcIE) { document.write(''); } else if (hcNS) { document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); } function hcFloatIconLoaded() { hcImageFetched = true; } function hcImageTimer() { if (hcShowImage && hcImageFetched) { var top; var left; if (hcIE) { top = document.body.scrollTop; left = document.body.scrollLeft; if ((hcTop < 0) || ((hcTop == top) && (hcLeft == left))) { document.all.mylayer.style.visibility = "visible"; } else { document.all.mylayer.style.visibility = "hidden"; } } else if (hcNS) { top = pageYOffset; left = pageXOffset; if ((hcTop < 0) || ((hcTop == top) && (hcLeft == left))) { document.layers.mylayer.visibility = "visible"; } else { document.layers.mylayer.visibility = "hidden"; } } hcPlaceImage(); hcTop = top; hcLeft = left; } setTimeout('hcImageTimer()', 250); } function hcAcceptCall() { hcHideTheImage(); openChat(); } function hcRejectCall() { hcHideTheImage(); hcCmd = "rejectChat"; hcCounter = 0; } function hcHideTheImage() { hcShowImage = false; if (hcIE) { document.all.mylayer.style.visibility = "hidden"; } else if (hcNS) { document.layers.mylayer.visibility = "hidden"; } } function hcShowTheImage() { hcShowImage = true; hcSetImage("need_help","need_help_off.gif"); hcSetImage("need_close","close_off.gif"); hcAnimate = true; hcPreload(); hcAnimateStart(); } function hcAnimateStart() { if (hcIE) { hcBorder = document.body.clientWidth; } else if (hcNS) { hcBorder = window.innerWidth; } hcAnimateImage(); } function hcAnimateImage() { if (hcImageFetched && hcAnimate) hcPos = hcPos + hcDir; if (hcPos > hcBorder - 160) hcDir = - hcStep; hcPlaceImage(); if ((hcPos > 30) || (hcDir > 0)) setTimeout("hcAnimateImage()", 20); } function hcPlaceImage() { var y = 40; if (hcIE) { document.all.mylayer.style.left = document.body.scrollLeft + hcPos; document.all.mylayer.style.top = document.body.scrollTop + y; } else if (hcNS) { document.layers.mylayer.left = pageXOffset + hcPos; document.layers.mylayer.top = pageYOffset + y; } } function hcgo() { hcLoop(); setTimeout('hcImageTimer()', 250); } if (true) hcgo();