var plugin = 0;
// **** var urlRichMedia = "http://www.nacion.com/richmedia/lg_richmedia.swf";
var urlRichMedia = "http://spe.atdmt.com/ds/L3LT3MICRMIC/vista_350x400.swf";


var cookieName = 'richm-wc2006';
var enableThisRichMedia = false;

   if ( enableThisRichMedia ) {
      if ( GNGetThisCookie(cookieName) =='' ) {
         mostrarRichMedia(urlRichMedia);
         document.cookie = cookieName + "=yes; path=/";
      }
   }

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function mostrarRichMedia(urlMedia) {
var browser_name = navigator.appName;
var browser_version = parseFloat(navigator.appVersion);

  if (browser_name == 'Microsoft Internet Explorer' && browser_version >= 4) {
	document.write('<SCRIPT LANGUAGE="VBScript"> \n');
	document.write('on error resume next \n');
	document.write('For i = 2 to 7 \n');
	document.write('   If IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i)) Then \n');
	document.write('      If plugin = 0 Then \n');
	document.write('         plugin = 1 \n');
	document.write('      End If \n');
	document.write('   End If \n');
	document.write('Next \n');
	document.write('</SCRIPT> \n');

	if ( plugin ) {
		document.write('<DIV id="richmedia" style="position:absolute; left:0px; top:0px; width:807; height:713; z-index:200; visibility: visible"> \n');
		document.write('   <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="RichMediaWC2006" width="807" height="713"> \n');
		document.write('      <PARAM name="movie" value="' + urlMedia + '"> \n');
		document.write('      <PARAM name="quality" value=high> \n');
		document.write('      <PARAM name="wmode" value="Transparent"> \n');
		document.write('   </OBJECT> \n');
		document.write('</DIV> \n');
	}
  }
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function GNGetThisCookie(name) {
  var search = name + "=";
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search);
    if (offset != -1) {
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) {
        end = document.cookie.length;
      }
      returnvalue=unescape(document.cookie.substring(offset, end));
    }
  }
  return returnvalue;
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
