// JavaScript Document

function addswf(archivo,width,height) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">\n');
  document.write('<param name="movie" value="'+archivo+'">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<param name="menu" value="false">\n');
  document.write('<param name="scale" value="showall">\n');
  document.write('<embed src="'+archivo+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" wmode="transparent"></embed>\n');
  document.write('</object>\n');
}

function np(url, ventana, ancho, alto) {
  xpos=(screen.width/2)-(ancho/2);
  ypos=(screen.height/2)-(alto/2);
  var feat = "resizable=1, scrollbars=yes, width="+ancho+", height="+alto+", left="+xpos+", top="+ypos;
  window.open(url, ventana, feat);
}

function GetXmlHttpObject() {
  var xmlHttp=null;
  try {
    xmlHttp=new XMLHttpRequest();
  }
  catch(e) {
    try {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e) {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
  return xmlHttp;
}
