function ObjectCheck(AMName, ADesc)
{
  if (navigator.plugins && (navigator.mimeTypes && (AMName != '') ? (navigator.mimeTypes[AMName] && navigator.mimeTypes[AMName].enabledPlugin) : true))
  {
    for (var i = 0; i < navigator.plugins.length; i++)
      if ((navigator.plugins[i].description.indexOf(ADesc) != -1) || (navigator.plugins[i].name.indexOf(ADesc) != -1)) 
        return 1;
  } 
  return 0;
}

function FlashPluginsVerGet()
{
  for (var i = 7; i >= 2; i--)
    if (ObjectCheck('application/x-shockwave-flash', 'Shockwave Flash ' + i))
      return i;
  return 0;
}

function ClientCapsCheck()
{
//  try
//  {
    var d = new Date();

    var cc = escape((new Array(
      'JSE=' + '1',
      'CP='  + navigator.platform,
      'CB='  + navigator.appVersion,
      'SH='  + screen.height,
      'SW='  + screen.width,
      'CD='  + screen.colorDepth,
      'CE='  + (navigator.cookieEnabled ? 1 : 0),
      'AXE=' + ObjectCheck('', 'Microsoft.ActiveXPlugin'),
      'FPV=' + FlashPluginsVerGet(),
      'TZ='  + (d.getTimezoneOffset() / 60)
    )).join('|'));
    return cc;
//  }
//  catch (E)
//  {
//    return '';
//  }
}

function CCCheck(AUTCDateTime)
{ 
//  if (Math.abs((new Date).valueOf() - AUTCDateTime) > 60 * 1000)
//    return;

  document.write('<script language="JavaScript" type="text/javascript" src="' +
    'default.asp?' + SIDQ + 'S='+ SWSA_ClientCapsSave + '&TS=' + AUTCDateTime +
    '&ClientCaps=' + ClientCapsCheck() + '"><' + '/script>');
}
