/*****************************************************************************
 * $Id: objiefix.js,v 1.1 2006/09/21 08:38:14 gerardo Exp $
 *
 * Trick to avoid the nocive and anthiesthetic effects of the
 * microsoft-anti-eolas-patent-work-around.
 *
 * To be a Who Knows The Truth, please visit:
 *
 *      http://en.wikipedia.org/wiki/Eolas
 *
 *
 * SOFT-LINK ME!
 * -------------
 *
 * DO NOT COPY THIS FILE! DO NOT KILL CULTURE!
 *   Only soft-link this file. If you copy me in the future it will be more
 *   difficult to update all sites and you will contribute to chaos and
 *   piratery.
 *
 * To soft link this file execute, in the target dir:
 *
 *    ln -s /home/estab/config/mapjs/objiefix.js
 *
 *
 * HOW TO USE THIS THINGY
 * ----------------------
 *
 * Add at the end of the web pages, before the </BODY> tag, this line:
 *
 *      <script type="text/javascript" src="/objiefix.js"></script>
 *
 * This file does not need 'basic.js' file and it is not incompatible with it.
 *
 *
 * ---------------------------------------------------------------------------
 * MasterASP Portable JavaScript Library
 *   Copyright (C) 2005-2006 MasterASP S.L.
 *   All rights reserved.
 *   Written by Gerardo García Peña
 *
 *****************************************************************************/

function __objiefix_refresh_objects()
{
  var agt;
  var objects, i;

  // if we are not in explorer then exit now...
  agt = navigator.userAgent.toLowerCase()
  if(agt.indexOf("msie") == -1 || agt.indexOf("opera") != -1)
    return;

  // refresh all 'patent covered' objects
  objects = document.getElementsByTagName("object");
  for(i = 0; i < objects.length; i++)
    objects[i].outerHTML = objects[i].outerHTML;
}

__objiefix_refresh_objects();

