var n=navigator;

pxDepth = screen.pixelDepth;
if (!(pxDepth > 0)) pxDepth = screen.colorDepth;
if (!(pxDepth > 0)) pxDepth = 0;

function getFlashVersion() {
  // ie
  try {
    try {
      // avoid fp6 minor version lookup issues
      // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
      try { axo.AllowScriptAccess = 'always'; }
      catch(e) { return '6'; }
    } catch(e) {}
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, '.').match(/(\d+)/)[1];
  // other browsers
  } catch(e) {
    try {
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, '.').match(/(\d+)/)[1];
      }
    } catch(e) {}
  }
  return '0';
}

if (typeof(window['rq']) == "undefined")  {
  rq = '';
} 

if (typeof(window['sour']) == "undefined")  {
  sour = '';
} 

src = xoopsUrl + '/modules/qcmstat/hit.php?screenx=' + screen.width + '&screeny=' + screen.height + '&cdepth=' + pxDepth + '&flash=' + escape((getFlashVersion() == '0') ? 'none' : 'Shockwave Flash ' + getFlashVersion()) + '&loc=' + escape(top.document.location) + '&r=' + escape(r) + '&a=' + escape(a) + '&l=' + escape(l) + '&p=' + escape(p) + '&o=' + escape(n.platform) + '&rq=' + escape(rq) + '&sour=' + escape(sour) + '"'; 

document.write('<img src="' + src + '" width="0" height="0" alt="stat1" border="0" />');
