function dounique() { var date = new Date() ; return date.getTime() ; } var tracker_refresh = 10000 ; // 1000 = 1 second var btn = 1820961 ; var do_tracker_flag_1820961 = 1 ; var start_tracker = dounique() ; var time_elapsed ; var refer = escape( document.referrer ) ; var initiate = 0 ; var pullimage_1820961 = new Image ; var date = new Date() ; var unique = dounique() ; var url = escape( location.toString() ) ; var nsx = (navigator.appName.indexOf("Netscape") != -1); var d = document; var scroll_image = new Image ; var divtop; var divleft; var chattop; var chatleft; var ns=(document.layers); var ie=(document.all); var w3=(document.getElementById && !ie); var ChatHelpDiv ; var browser_width ; var backtrack = 0 ; var isclosed = 0 ; function opacity(id, opacStart, opacEnd, millisec) { var speed = Math.round(millisec / 100); var timer = 0; if(opacStart > opacEnd) { for(i = opacStart; i >= opacEnd; i--) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } else if(opacStart < opacEnd) { for(i = opacStart; i <= opacEnd; i++) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } } function changeOpac(opacity, id) { var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.MozOpacity = (opacity / 100); object.KhtmlOpacity = (opacity / 100); object.filter = "alpha(opacity=" + opacity + ")"; } function shiftOpacity(id, millisec) { if(document.getElementById(id).style.opacity == 0) { opacity(id, 0, 100, millisec); } } function FloatDiv(id, sx, sy) { var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id]; var px = document.layers ? "" : "px"; window[id + "_obj"] = el; if(d.layers) { el.style=el; } el.cx = el.sx = sx;el.cy = el.sy = sy; el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;}; el.floatIt=function() { var pX, pY; pX = (this.sx >= 0) ? 0 : nsx ? innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth; pY = nsx ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; if(this.sy<0) { pY += nsx ? innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight; } this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8; this.sP(this.cx, this.cy); setTimeout(this.id + "_obj.floatIt()", 30); } return el; } style = "" ; document.write( style ) ; if (ie) { documentHeight = document.documentElement.clientHeight ; documentWidth = document.documentElement.clientWidth ; } else if (ns) { documentHeight = window.innerHeight ; documentWidth = window.innerWidth ; } else if (w3) { documentHeight = self.innerHeight ; documentWidth = self.innerWidth ; } chattop = Math.round(documentHeight * 0.50 - 235); chatleft = Math.round(documentWidth * 0.80 - 200); function initializeChatHelp_1820961() { divtop = Math.round(documentHeight * 0.50 - scroll_image.height/2 - 10); divleft = Math.round(documentWidth * 0.80 - scroll_image.width/2); if(!ns && !ie && !w3) return ; if(ie) ChatHelpDiv = eval('document.all.ChatHelpDiv_1820961.style') ; else if(ns) ChatHelpDiv = eval('document.layers["ChatHelpDiv_1820961"]') ; else if(w3) ChatHelpDiv = eval('document.getElementById("ChatHelpDiv_1820961").style') ; if (ie||w3) ChatHelpDiv.visibility = "visible" ; else ChatHelpDiv.visibility = "show" ; FloatDiv("ChatHelpDiv_1820961", divleft,divtop).floatIt(); shiftOpacity('ChatHelpDiv_1820961',900); backtrack = 0 ; isclosed = 0 ; repeat = 1 ; } function DoClose(){ if (ie||w3) ChatHelpDiv.visibility = "hidden" ; else ChatHelpDiv.visibility = "hide" ; isclosed = 1 ; changeOpac(0, 'ChatHelpDiv_1820961'); } function checkinitiate_1820961() { initiate = pullimage_1820961.width ; if ( initiate == 2 ) { initializeChatHelp_1820961() ; } } function do_tracker_1820961() { var unique = dounique() ; time_elapsed = unique - start_tracker ; if ( time_elapsed > 3600000 ) do_tracker_flag_1820961 = 0 ; pullimage_1820961 = new Image ; pullimage_1820961.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&pagex="+url+"&ref="+refer+"&unique="+unique ; pullimage_1820961.onload = checkinitiate_1820961 ; if ( do_tracker_flag_1820961 == 1 ) setTimeout("do_tracker_1820961()",tracker_refresh) ; } function WriteChatDiv() { scroll_image.src = "http://operator.chathelp.hu/pics/meghiv_szin/167747lilaat.jpg"; output = "
" ; document.writeln( output ) ; if(ie) ChatHelpDiv = eval('document.all.ChatHelpDiv_1820961.style') ; else if(ns) ChatHelpDiv = eval('document.layers["ChatHelpDiv_1820961"]') ; else if(w3) ChatHelpDiv = eval('document.getElementById("ChatHelpDiv_1820961").style') ; changeOpac(0, 'ChatHelpDiv_1820961'); if (ie||w3) ChatHelpDiv.visibility = "hidden" ; else ChatHelpDiv.visibility = "hide" ; } function RejectInitiate() { var unique = dounique() ; var rejectimage_1820961 = new Image ; rejectimage_1820961.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&unique="+unique+"&action=reject" ; DoClose() ; } function AcceptInitiate() { var unique = dounique() ; var acceptimage_1820961 = new Image ; acceptimage_1820961.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&unique="+unique+"&action=accept" ; DoClose() ; } if ( !chathelp_loaded ) { WriteChatDiv() ; do_tracker_1820961() ; } var chathelp_loaded = 1 ;