var SWIS = {

    /**
     *  @desc start function, wordt altijd uitgevoerd
     *
     */
    start: function(){
    
        SWIS.pageHit();
    
    },
    
    /**
     *  @desc pageHit: statistieken
     *
     */ 
    pageHit: function(){
        p = escape(document.location.href);
        rfr = escape(document.referrer);
        if (rfr == "undefined"){ rfr = "";}
        sx = screen.width;
        sy = screen.height;
        sc = (navigator.appName.indexOf("Microsoft") > -1) ? screen.colorDepth : screen.pixelDepth;
        src = 'stats.php?p=' + p + '&rfr=' + rfr + '&sx=' + sx + '&sy=' + sy + '&sc=' + sc;
        src = '<img style="position:absolute;left:-10px;top:-10px;" src="' + src + '" width="1" height="1" border="0" alt="" />';
        document.getElementById('counter').innerHTML = src;    
    }
    
}

onload = SWIS.start;