﻿/*
function point(x, y, click) {
    this.x = x;
    this.y = y;
    this.click = click;
}

var points = [];
*/


    var _ldd = 0;
    var _customerId = '999';
    var _url = 'http://analytics.jokingaround.com/log/';

    if (document.addEventListener)
        document.addEventListener("DOMContentLoaded", function () { _ldd = 1; listen(); }, false); else if (document.all && !window.opera) { document.write('<script type="text/javascript" id="_ld" defer="defer" src="javascript:void(0)"><\/script>'); var contentloadtag = document.getElementById("_ld"); contentloadtag.onreadystatechange = function () { if (this.readyState == "complete") { _ldd = 1; listen(); } } }
    window.onload = function () { setTimeout("if (!_ldd){listen(); }", 0); }
    function listen() {
        document.onmousedown = function (e) {
            var x, y; if (document.all) { x = event.clientX; y = event.clientY; } else { x = e.clientX; y = e.clientY; }
            i = new Image(); i.src = _url + x + "/" + y + "/" + _customerId;

            return true;
        }
    }

    /*
    if (document.addEventListener)
        document.addEventListener("DOMContentLoaded", function () { _ldd = 1; listen(); }, false);
    else if (document.all && !window.opera) {
        document.write('<script type="text/javascript" id="_ld" defer="defer" src="javascript:void(0)"><\/script>');
        var contentloadtag = document.getElementById("_ld");
        contentloadtag.onreadystatechange = function () {
            if (this.readyState == "complete") {
                _ldd = 1;

                listen();
            }
        }
    }

    window.onload = function () {
        setTimeout("if (!_ldd){listen(); }", 0);
    }

    function listen() {
        document.onmousedown = function (e) {
            var x, y;
            if (document.all) {
                x = event.clientX;
                y = event.clientY;
            } else {
                x = e.clientX;
                y = e.clientY;
            }


            i = new Image();

            i.src = _url + x + "/" + y + "/" + _customerId;
            return true;
        }
    }

*/
