var Website='http://www.medical-malpractice-attorney-source.com'; var theURL='http://www.medical-malpractice-attorney-source.com'; var Browser='CCBot/1.0 (+http://www.commoncrawl.org/bot.html)'; var IP='38.107.191.101'; var thePost='http://www.medical-malpractice-attorney-source.com/AUST/anmtd/image.php'; var startDate = new Date(); var startTime=startDate.getTime(); var anmtd=''; var sss=''; var theInc=0; var lastCheck=0; var theCoords=''; var totalRecords=0; var totalAllowed=10; var http_request = false; var sent=false; var theFocus=''; var theFile=''; function check() { //alert(Referrer); if (document.images) { //alert('a'); var count=1; var theString=''; var wh=showWH(); img1 = new Image(); img1.src = Website+"/AUST/sstkr/image.php?s="+sss+"&size="+wh.width+"x"+wh.height; var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < 500); //alert(img1.src) } } function showWH() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return {width:myWidth, height:myHeight}; } function getSourceIndex(theEvent) { if(!document.body.addEventListener) { var allElements = document.getElementsByTagName('*'); for (var i = 0; i < allElements.length; i++) { if (allElements[i] == theEvent.srcElement) { return i; } } } else { var allElements = document.getElementsByTagName('*'); for (var i = 0; i < allElements.length; i++) { if (allElements[i] == theEvent.target) { return i; } } } } function init() { var theWindow=showWH(); theCoords=sss+'='+theWindow.width+'x'+theWindow.height+':'+startTime+","; if (document.body.addEventListener) { document.body.addEventListener('click', storeCoordinates, false); document.body.addEventListener('mousemove', storeCoordinates, false); document.body.addEventListener('keypress', storeCoordinates, false); } else if (document.body.attachEvent) { document.body.attachEvent('onclick', storeCoordinates); document.body.attachEvent('onmousemove', storeCoordinates); document.body.attachEvent('onkeypress', storeCoordinates); } } window.onbeforeunload = function (oEvent) { if(anmtd=='f') { makeRequest(thePost); } else { check(); } } window.onload = function (oEvent) { if(anmtd=='f') { init(); } myInterval = window.setInterval(timedMousePos,250); } function makeRequest(url) { if(sent==false) { var poststr = "info="+theCoords+';'; http_request = false; if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); var thankyou='Are you sure that you want to leave our site?'; } else if (window.ActiveXObject) { try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } var thankyou=false; } if (!http_request) { alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } http_request.onreadystatechange = alertContents; http_request.open('POST', url, true); http_request.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); http_request.send(poststr); if(thankyou) { pausecomp(1000); } sent=true; } } function alertContents() { if (http_request.readyState == 4) { if (http_request.status == 200|| http_request.status == 0) { //alert(http_request.responseText); } } } function getLineEnd() { if(totalRecords>=totalAllowed) { totalRecords=0; return ',';//";\n"; } else { totalRecords++; return ','; //';'; } } function storeCoordinates(theEvent) { var theDate = new Date(); var theTime=theDate.getTime(); var theType=theEvent.type; switch(theType) { case 'mousemove': //mousemove if((theTime-lastCheck)>=theInc) { var theScroll=scrollingDetector(); theCoords=theCoords+(theTime-startTime)+'*m_'+theEvent.clientX+'-'+theEvent.clientY+'-'+((theScroll.scrollX==0)?'':theScroll.scrollX)+'-'+((theScroll.scrollY==0)?'':theScroll.scrollY)+getLineEnd(); } break; case 'click': var theScroll=scrollingDetector(); var theSourceElement=getSourceIndex(theEvent); theCoords=theCoords+(theTime-startTime)+'*'+'c_'+theSourceElement+"_"+theEvent.clientX+'-'+theEvent.clientY+'-'+theScroll.scrollX+'-'+theScroll.scrollY+getLineEnd(); break; case 'keypress': var theScroll=scrollingDetector(); var theSourceElement=getSourceIndex(theEvent); if(window.event) // IE { var keynum = theEvent.keyCode; } else if(theEvent.which) // Netscape/Firefox/Opera { var keynum = theEvent.which; } theCoords=theCoords+(theTime-startTime)+'*'+"t_"+theSourceElement+"_"+String.fromCharCode(keynum)+'_'+theEvent.clientX+'-'+theEvent.clientY+'-'+theScroll.scrollX+'-'+theScroll.scrollY+getLineEnd(); break; } lastCheck=theTime; } function pausecomp(millis) { var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < millis); } function scrollingDetector() { if (document.all) { if (!document.documentElement.scrollLeft) scrollX = document.body.scrollLeft; else scrollX = document.documentElement.scrollLeft; if (!document.documentElement .scrollTop) scrollY = document.body.scrollTop; else scrollY = document.documentElement.scrollTop; } else { if(window.pageXOffset) { scrollX = window.pageXOffset; scrollY = window.pageYOffset; } } return {scrollX:scrollX, scrollY:scrollY}; } function fireTheEvent(e) { var fireOnThis = document.getElementById('oButton'); if( document.createEvent ) { var evObj = document.createEvent('MouseEvents'); evObj.initMouseEvent( 'click', true, false, window, 0, 12, 345, 7, 220, false, false, true, false, 0, null ); fireOnThis.dispatchEvent(evObj); } else if( document.createEventObject ) { var evObj = document.createEventObject(); evObj.detail = 0; evObj.screenX = 12; evObj.screenY = 345; evObj.clientX = 7; evObj.clientY = 220; evObj.ctrlKey = false; evObj.altKey = false; evObj.shiftKey = true; evObj.metaKey = false; evObj.button = 0; evObj.relatedTarget = null; fireOnThis.fireEvent('onclick',evObj); } }