var xmlHttp;function sendData(a){a="/haekchen/script/heat.asp?datei="+(location.pathname.substr(10,location.pathname.length-10)+location.hash).replace(/.asp/,"").replace(/\?/g,"_").replace(/#/g,"_").replace(/=/g,"_")+"&"+a;xmlHttp=GetXmlHttpObject();xmlHttp.open("GET",a,true);xmlHttp.send(null)}function GetXmlHttpObject(a){var b=null;if(navigator.userAgent.indexOf("MSIE")>=0){var c="Msxml2.XMLHTTP";if(navigator.appVersion.indexOf("MSIE 5.5")>=0)c="Microsoft.XMLHTTP";try{b=new ActiveXObject(c);b.onreadystatechange=a;return b}catch(d){alert("Error. Scripting for ActiveX might be disabled");return}}if(navigator.userAgent.indexOf("Mozilla")>=0){b=new XMLHttpRequest;b.onload=a;b.onerror=a;return b}}timeOnSite=start=0;date=new Date;visitor="_"+date.getDate()+(date.getMonth()+1)+date.getYear()+date.getHours()+date.getMinutes()+date.getSeconds()+"_";res=window.innerWidth+"x"+window.innerHeight;function record(a){if(a.type=="mousemove"){window.timeOnSite=timeOnSite+1;if(timeOnSite%10==0){x=document.all?window.event.x+document.body.scrollLeft:a.pageX;y=document.all?window.event.y+document.body.scrollTop:a.pageY;date=new Date;nullM=date.getMonth()+1<10?"0":"";nullD=date.getDate()<10?"0":"";nullH=date.getHours()<10?"0":"";nullMin=date.getMinutes()<10?"0":"";nullS=date.getSeconds()<10?"0":"";time=date.getYear()+1900+"-"+nullM+(date.getMonth()+1)+"-"+nullD+date.getDate()+" "+nullH+date.getHours()+":"+nullMin+date.getMinutes()+":"+nullS+date.getSeconds();sendData("type="+a.type+"&visitor="+visitor+"&res="+res+"&xIn="+x+"&yIn="+y+"&time="+time)}}else{x=document.all?window.event.x+document.body.scrollLeft:a.pageX;y=document.all?window.event.y+document.body.scrollTop:a.pageY;date=new Date;year=date.getYear()-100<10?"0"+(date.getYear()-100):date.getYear()-100;month=date.getMonth()+1<10?"0"+(date.getMonth()+1):date.getMonth()+1;sendData("type="+a.type+"&visitor="+visitor+"&res="+res+"&xIn="+x+"&yIn="+y+"&time="+year+month)}}document.onmousemove=record;document.onclick=record;