var __wm_m='weby.hu';
var __wm_p='http://'; try {__wm_p=top.document.location.protocol;}catch(e){}
var __wm_top=''; try {__wm_top=top.document.location.href;}catch(e){}
var __wm_ref=''; try {__wm_ref=top.document.referrer;}catch(e){}
var __wm_ta=(new Date()).getTime();
var __wm_tb=(new Date()).getTime();
var __wm_url=__wm_p+'//'+__wm_m+'/'+'a.php?'+__wm_c;
var __wm_ux='';
var __wm_li='';
var __wm_mt = 200;
var __wm_i = new Image();
var __wm_s = Math.floor(Math.random()*200000000);
var __wm_id=0;
var __wm_x=0;
var __wm_y=0;

function __wm_measure(u) {
    //window.alert(u);
    //return;
    if (u!="") {
	u=u+'&js=1';
        if (typeof(__wm_i.fileSize) == "undefined") { __wm_i.fileSize=-1; }
        __wm_i.src = u;
        var ex = ((new Date()).getTime())+__wm_mt;
        while (__wm_i.fileSize==-1 && ex>(new Date()).getTime()) ;
    }
}

function __wm_unload() {
    __wm_tb=(new Date()).getTime();
    __wm_measure(__wm_url+'&sjs='+__wm_s+'&id='+__wm_id+'&exit=1&link='+escape(__wm_ux)+'&li='+escape(__wm_li)+'&x='+__wm_x+'&y='+__wm_y+'&t='+(__wm_tb-__wm_ta));
}

function __wm_click(e) {
    var p=0, l=0;
    if (typeof(Error)!='undefined' && document.getElementById) {
        if (!window.event) { p=e.target; } else { p=window.event.srcElement; }
        try { while (p) { if ((p.nodeName=='A' || p.nodeName=='AREA') && p.href && !l) { l=p; } p=p.parentNode; } if(l) __wm_ux=l.href; if(l) __wm_li=l.id; } catch (e) { }
    }
}

if (document.attachEvent) {
	document.attachEvent("onclick",__wm_click);
	window.attachEvent("onunload",__wm_unload);
}
else if(document.addEventListener) {
	document.addEventListener("click",__wm_click, false);
	window.addEventListener("unload",__wm_unload, false);
}



if (document.layers)
{
  window.captureEvents(Event.MOUSEMOVE);
}
if(window.Event && document.captureEvents) document.captureEvents(Event.MOUSEMOVE);

var __wm_mm=function(e)
{
    __wm_x = e.pageX;
    __wm_y = e.pageY;
}
if (document.all)
{
    __wm_mm=function()
    {
	__wm_x = document.body.scrollLeft + event.x;
	__wm_y = document.body.scrollTop + event.y;
    }
}

document.onmousemove = __wm_mm;





function __wm_setcookie(v) {
	var d = new Date(2030,11,11,11,11,11);
	var a = window.location.host.split('.');
	var h = a[(a.length-2)]+'.'+a[(a.length-1)];
//window.alert("__wm_id="+v+"; expires="+d.toGMTString()+"; path=/; domain=" + window.top.location.host);
	document.cookie = "__wm_id="+v+"; expires="+d.toGMTString()+"; path=/; domain=" + window.location.host;  
  }

function __wm_getcookie()  {
//window.alert(document.cookie);
	var name = "__wm_id=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
	}
	return null;
}

__wm_id=__wm_getcookie();
//window.alert(__wm_id);
if(!__wm_id) {
	__wm_id=__wm_s;
	__wm_setcookie(__wm_id);
}

__wm_measure(__wm_url+'&sjs='+__wm_s+'&id='+__wm_id+'&enter=1&url='+escape(__wm_top)+'&ref='+escape(__wm_ref));
