if((navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0) {
 var words=navigator.plugins["Shockwave Flash"].description.split(" ");
 for(var i=0;i<words.length;++i){
  if (isNaN(parseInt(words[i])))
   continue;
  var MM_PluginVersion=words[i];
 }
 var MM_FlashCanPlay=MM_PluginVersion>=6;
}else if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.appVersion.indexOf("Win")!=-1)) {
 document.write('<SCR'+'IPT LANGUAGE=VBScript\>\n');
 document.write('on error resume next\n');
 document.write('MM_FlashCanPlay=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
 document.write('</SCR'+'IPT\>\n');
}
if(MM_FlashCanPlay){
 var ancho;
 if (window.innerWidth)
  ancho = window.innerWidth
 else if (document.body.offsetWidth)
  ancho = document.body.offsetWidth
 else if (window.screen.width)
  ancho = window.screen.width
 else
  ancho = 770;

ancho=ancho-50; // 49 es el ancho de la columna de la izquierda

 document.write(' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="480" height="35" id="MenuBarra" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name="movie" value="/flash/MenuBarra2.swf'+qStr+'&docWidth='+ancho+'" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="bgcolor" value="#ffffff" />');
 document.write('<embed src="/flash/MenuBarra2.swf'+qStr+'&docWidth='+ancho+'" quality="high" bgcolor="#ffffff" width="480" height="35" name="MenuBarra" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}else{
 document.write('<br><br><center><A HREF=http://www.macromedia.com/go/getflashplayer/ TARGET=_blank class=sin><B><font color=#1D3C6D>');
 document.write('Para poder ver esta web<br>debe descargar la &uacute;ltima<br>versión de Flash<br>');
 document.write('<img src=/images/get_flashplayer.gif width=88 height=31 border=0 vspace=10></font></B></A></center>');
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var esInit = false, sinComunFlash = false;

function initInicial() {
 var topObj = isInternetExplorer ? document.all.top : document.top;
 topObj.SetVariable("txtPrueba", "ComunFlash");
}
function initFinal(msg) {
 if (msg!="ComunFlash") {
  sinComunFlash = true;
 }
 esInit = true;
}
function CambiaAncho() {
 var nancho;
 if (window.innerWidth)
  nancho = window.innerWidth
 else if (document.body.offsetWidth)
  nancho = document.body.offsetWidth
 else if (window.screen.width)
  nancho = window.screen.width
 else
  nancho = 770;
 nancho=nancho-50;
 if (ancho!=nancho) {
  var topObj = isInternetExplorer ? document.all.top : document.top;
  ancho=nancho;
  if (esInit) {
   if (sinComunFlash) {
    window.location.reload();
   } else {
    topObj.SetVariable("docWidth", ancho);
    topObj.GotoFrame(2);
   }
  }
 }
}
