var ShockMode = 0;
 if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
  {
   if (navigator.plugins && navigator.plugins["Shockwave Flash"])
    ShockMode = 1;
  }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
          && (navigator.userAgent.indexOf("Windows 9")>=0 || navigator.userAgent.indexOf("Windows NT")>=0))
  {
	 document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
   document.write('on error resume next \n');
   document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');     
   document.write('</SCR' + 'IPT\> \n');
	}

function Asigna_imagen(valor_swf,valor_gif,CodBanMan,Ancho,Alto,color_fondo)
{
 if ( ShockMode && valor_swf!="")
  {		
   document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
   document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0"');
   document.write(' ID=banner WIDTH='+Ancho+' HEIGHT='+Alto+'>');
   document.write(' <PARAM NAME=movie VALUE="'+valor_swf+'?url='+escape(CodBanMan)+'"> ');
   document.write('<param name="BGCOLOR" value="'+color_fondo+'">');
   document.write(' <PARAM NAME=quality VALUE=autohigh> ');
   document.write(' <param name=wmode value=transparent> ');
   document.write('<EMBED SRC="'+valor_swf+'"');
   document.write(' swLiveConnect=FALSE WIDTH='+Ancho+' HEIGHT='+Alto);
   document.write(' QUALITY=autohigh');
   document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
   document.write('</EMBED>');
   document.write('</OBJECT>');
  }
 else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0))
  {
   document.write('<a href='+CodBanMan+' target=_blank><IMG SRC="'+valor_gif+'" WIDTH='+Ancho+' HEIGHT='+Alto+' BORDER=0></a>');
  }
}

//Oculta animacion
function ocultaAnim(LayerId)
{
 LayerId.style.visibility="hidden";
}

//Aca hago la ejecucion del layer
function ejecutaLayer(LayerId,LayerStrId,Cx,Cy,Sec,CodImagen)
{
 LayerId.style.pixelTop=Cy;
 LayerId.style.pixelLeft=Tabla1.offsetLeft+ Cx; // document.Tabla1.offsetLeft+Cx;
 LayerId.style.visibility="visible";
 setTimeout("ocultaAnim("+LayerStrId+")",Sec);
 document.write(CodImagen);
}

function NewDivOpen(StrId) 
{
 var d = window.document;
 d.writeln('<div id="'+StrId+'" style="position:absolute; z-index:1000; visibility: hidden; width: 260; height: 260px">');
}

function NewDivClose(StrId) 
{
 var d = window.document;
 d.writeln('</div>');
}
