function dounique() { var date = new Date() ; return date.getTime() ; }
var tracker_refresh = 10000 ; // 1000 = 1 second
var btn = 1106017 ;
var do_tracker_flag_1106017 = 1 ;
var start_tracker = dounique() ;
var time_elapsed ;
var refer = escape( document.referrer ) ;
var initiate = 0 ;
var pullimage_1106017 = 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 scroll_image2 = new Image ;
var divtop;
var divleft;
var chattop;
var chatleft;
var chatlayon = 0 ;
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var ChatHelpDiv ;
var ChatHelpDiv2 ;
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 ;
if(documentHeight==0){
documentHeight = document.body.clientHeight ;
documentWidth = document.body.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);
chatinvtop = Math.round(documentHeight - 80);
chatinvleft = Math.round(documentWidth - 200);
style2 = "" ;
document.write( style2 ) ;
function initializeChatHelp_1106017()
{
divtop = Math.round(documentHeight * 0.50 - scroll_image.height/2);
divleft = Math.round(documentWidth * 0.80 - scroll_image.width/2);
if(!ns && !ie && !w3) return ;
if(ie) ChatHelpDiv = eval('document.all.ChatHelpDiv_1106017.style') ;
else if(ns) ChatHelpDiv = eval('document.layers["ChatHelpDiv_1106017"]') ;
else if(w3) ChatHelpDiv = eval('document.getElementById("ChatHelpDiv_1106017").style') ;
if (ie||w3)
ChatHelpDiv.visibility = "visible" ;
else
ChatHelpDiv.visibility = "show" ;
FloatDiv("ChatHelpDiv_1106017", divleft,divtop).floatIt();
shiftOpacity('ChatHelpDiv_1106017',900);
backtrack = 0 ;
isclosed = 0 ;
repeat = 1 ;
}
function initializeChatHelp2_1106017()
{
chatoponline=0;
chatinvdivtop = Math.round(documentHeight - 80);
chatinvdivleft = Math.round(documentWidth - 220);
if(!ns && !ie && !w3) return ;
if(ie) ChatHelpDiv2 = eval('document.all.ChatHelpDiv2_1106017.style') ;
else if(ns) ChatHelpDiv2 = eval('document.layers["ChatHelpDiv2_1106017"]') ;
else if(w3) ChatHelpDiv2 = eval('document.getElementById("ChatHelpDiv2_1106017").style') ;
if (ie||w3)
ChatHelpDiv2.visibility = "visible" ;
else
ChatHelpDiv2.visibility = "show" ;
FloatDiv("ChatHelpDiv2_1106017", chatinvdivleft,chatinvdivtop).floatIt();
}
function DoClose(){
if (ie||w3)
ChatHelpDiv.visibility = "hidden" ;
else
ChatHelpDiv.visibility = "hide" ;
isclosed = 1 ;
changeOpac(0, 'ChatHelpDiv_1106017');
}
function CloseChatLay(){
if (ie||w3)
ChatHelpDiv2.visibility = "hidden" ;
else
ChatHelpDiv2.visibility = "hide" ;
var unique = dounique() ;
var closelayimage_1106017 = new Image ;
closelayimage_1106017.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&unique="+unique+"&action=closelay" ;
}
function checkinitiate_1106017()
{
initiate = pullimage_1106017.width ;
if ( initiate == 2 )
{
initializeChatHelp_1106017() ;
}
}
function do_tracker_1106017()
{
var unique = dounique() ;
time_elapsed = unique - start_tracker ;
if ( time_elapsed > 3600000 )
do_tracker_flag_1106017 = 0 ;
pullimage_1106017 = new Image ;
pullimage_1106017.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&pagex="+url+"&ref="+refer+"&unique="+unique ;
pullimage_1106017.onload = checkinitiate_1106017 ;
if ( do_tracker_flag_1106017 == 1 )
setTimeout("do_tracker_1106017()",tracker_refresh) ;
}
function WriteChatDiv()
{
scroll_image.src = "http://operator.chathelp.hu/pics/meghiv_szin/7005900felugr_piros_39.png";
output = "
" ;
output += "
" ;
output += "";
output += " ";
output += "";
output += " |
" ;
output += "
" ;
document.writeln( output ) ;
if(ie) ChatHelpDiv = eval('document.all.ChatHelpDiv_1106017.style') ;
else if(ns) ChatHelpDiv = eval('document.layers["ChatHelpDiv_1106017"]') ;
else if(w3) ChatHelpDiv = eval('document.getElementById("ChatHelpDiv_1106017").style') ;
changeOpac(0, 'ChatHelpDiv_1106017');
if (ie||w3)
ChatHelpDiv.visibility = "hidden" ;
else
ChatHelpDiv.visibility = "hide" ;
}
function WriteChatDiv2()
{
scroll_image2.src = "http://operator.chathelp.hu/pics/layeresoff/394385chat_on_7_off.png";
output2 = "" ;
output2 += "
" ;
output2 += "";
output2 += " ";
output2 += "";
output2 += " |
" ;
output2 += "
" ;
document.writeln( output2 ) ;
if(ie) ChatHelpDiv2 = eval('document.all.ChatHelpDiv2_1106017.style') ;
else if(ns) ChatHelpDiv2 = eval('document.layers["ChatHelpDiv2_1106017"]') ;
else if(w3) ChatHelpDiv2 = eval('document.getElementById("ChatHelpDiv2_1106017").style') ;
if (ie||w3)
ChatHelpDiv2.visibility = "hidden" ;
else
ChatHelpDiv2.visibility = "hide" ;
}
function RejectInitiate()
{
var unique = dounique() ;
var rejectimage_1106017 = new Image ;
rejectimage_1106017.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&unique="+unique+"&action=reject" ;
DoClose() ;
}
function AcceptInitiate()
{
var unique = dounique() ;
var acceptimage_1106017 = new Image ;
acceptimage_1106017.src = "http://operator.chathelp.hu/chat_tracker.php?x=10&unique="+unique+"&action=accept" ;
DoClose() ;
}
if ( !chathelp_loaded )
{
WriteChatDiv() ;
if ( chatlayon == 1 )
{
WriteChatDiv2() ;
initializeChatHelp2_1106017() ;
}
do_tracker_1106017() ;
}
var chathelp_loaded = 1 ;