var adServer = "http://oas.tvazteca.com";
var staticServer ="http://www.statictvazteca.com";
OAS_url = adServer + '/RealMedia/ads/';
OAS_query = '';
OAS_target = '_top';
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {
  document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
  document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
}
OAS_version = 11;
if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1))
  OAS_version = 10;
if (OAS_version >= 11)
  document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');//-->
document.write('');
function OAS_AD(pos) {
  if (OAS_version >= 11)
    OAS_RICH(pos);
  else
    OAS_NORMAL(pos);
}
function DisplayAds(pos) {
  if (OAS_version >= 11)
    OAS_RICH(pos);
  else
    OAS_NORMAL(pos);
}
// flash_ultimate
var Localbanner = '';
var remoteBanner= '';
var LocalimageAlternate='';
var RemoteImageAlternate='';
var a3rdPartyclick='';
var a3rdPartycount1x1='';
var width = '';
var height = '';
var PAGE = "";
var RAND = "";
var POS = "";
var CAMP = "";
var IMAGE = "";
var USER = "";
var clickTAG = "oas";
var Flash_OASALTTEXT="Haz Click";
var Flash_OASTARGET="_blank";
var Flash_OASPROTOCOL="http://";
var Flash_OASADID="ad_banner";
var Flash_VERSION=6;
var Flash_WMODE="transparent";
function show_flash(){
var Flash_OASDIM="WIDTH='" + width  + "' HEIGHT='" + height  + "'";
var Flash_OASCLICK= adServer+"/RealMedia/ads/click_lx.ads/"+PAGE+"/"+RAND+"/"+POS+"/"+CAMP+"/"+IMAGE+"/"+USER;
var Flash_SWFCLICKVARIABLE="?"+clickTAG+"="+Flash_OASCLICK+"?"+a3rdPartyclick;
var Flash_SWFFILE = adServer+'/RealMedia/ads/Creatives/'+CAMP+'/'+Localbanner;
if (staticServer){
 var Flash_SWFFILE = staticServer+'/RealMedia/ads/Creatives/'+CAMP+'/'+Localbanner;
}
if (remoteBanner){
 Flash_SWFFILE = remoteBanner;
}

if (LocalimageAlternate || RemoteImageAlternate){
	var MM_contentVersion = Flash_VERSION;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		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 >= MM_contentVersion;
	}
	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." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
}
if ( MM_FlashCanPlay || (! RemoteImageAlternate && ! LocalimageAlternate)  ){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+Flash_OASPROTOCOL+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+Flash_VERSION+',0,0,0" ID="'+Flash_OASADID+'" '+Flash_OASDIM+' ALIGN="">');
document.write('<PARAM NAME=movie VALUE="'+Flash_SWFFILE+'"><PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE="'+Flash_WMODE+'">'); 
document.write('<PARAM name=FlashVars VALUE="' + clickTAG + '=' + Flash_OASCLICK +'">');
document.write('<EMBED src="'+Flash_SWFFILE+'" FlashVars="' + clickTAG + '=' + Flash_OASCLICK +'"  quality=high wmode='+Flash_WMODE+' swLiveConnect=FALSE '+Flash_OASDIM+' NAME="'+Flash_OASADID+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="'+Flash_OASPROTOCOL+'www.macromedia.com/go/getflashplayer">');
document.write('</EMBED></OBJECT>');
} else {
document.write('<a href="'+Flash_OASCLICK+'" target="'+Flash_OASTARGET+'"><IMG SRC="'+LocalimageAlternate + RemoteImageAlternate +'" '+Flash_OASDIM+' BORDER=0 alt="'+Flash_OASALTTEXT+'"></a>');
} 
if (a3rdPartycount1x1){
	document.write('<IMG SRC="'+a3rdPartycount1x1+'" width="1" height="1" BORDER=0 ></a>');}
}// end of show flash

var s9_NS = (document.layers) ? 1 : 0;
var s9_IE = (document.all && document.getElementById) ? 1 : 0;
var s9_N6 = (!document.all && document.getElementById) ? 1 : 0;
var s9_hideMenu = null;
var is_NS = s9_NS;
var is_IE = s9_IE;
var is_N6 = s9_N6;


function doHideAll(){
	if(is_IE) {
		document.all.show_nav.style.visibility="hidden";
		//document.all.show_nav_hoy.style.visibility="hidden";
		//document.all.community_nav.style.visibility="hidden";
	}

	if(is_NS) {
		document.show_nav.visibility="hidden";
		//document.show_nav_hoy.visibility="hidden";
		//document.community_nav.visibility="hidden";
	}

	if(is_N6) {	
		document.getElementById('show_nav').style.visibility = "hidden";
		//document.getElementById('show_nav_hoy').style.visibility = "hidden";
		//document.getElementById('community_nav').style.visibility = "hidden";
	}
}

function doStyleChange(obj) {

	if(obj == "show_nav_hoy")
	{
		reDoStyleChange('show_nav_prog');
		reDoStyleChange('show_nav_nvo');
	}
	if(obj == "show_nav_prog")
	{
		reDoStyleChange('show_nav_hoy');
		reDoStyleChange('show_nav_nvo');
		recibeid('/navegacion/top/desplegado4.shtml','variablegetenviada=enviaste solo get','','show_nav_prog');
		//alert("Mostramos menu");
	}
	
	if(obj == "show_nav_nvo")
	{
		reDoStyleChange('show_nav_hoy');
		reDoStyleChange('show_nav_prog');
	}
	
	if(is_IE) {
		eval('document.all.'+obj+'.style.visibility="visible"');
		eval('document.all.'+obj+'.style.display="block"');
	}
	if(is_NS) {
		eval('document.'+obj+'.visibility="visible"');
		eval('document.'+obj+'.display="block"');
	}
	if(is_N6) {	
		the_obj = document.getElementById(obj);
		the_obj.style.visibility = "visible";
		the_obj.style.display = "block";		
	}
}

function reDoStyleChange(obj) {
	if(is_IE) {
		eval('document.all.'+obj+'.style.visibility="hidden"');
		eval('document.all.'+obj+'.style.display="none"');
	}
	if(is_NS) {
		eval('document.'+obj+'.visibility="hidden"');
		eval('document.'+obj+'.display="none"');
	}
	if(is_N6) {	
		the_obj = document.getElementById(obj);
		the_obj.style.visibility = "hidden";
		the_obj.style.display = "none";		
	}
}
/*******************************/

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/***************************************************/

function objetus(file) {
xmlhttp=false;
this.AjaxFailedAlert = "Su navegador no soporta las funcionalidades de este sitio y podria experimentarlo de forma diferente a la que fue pensada. Por favor habilite javascript en su navegador para verlo normalmente.\n";
 this.requestFile = file;
 this.encodeURIString = true;
 this.execute = false;
 if (window.XMLHttpRequest) { 
            this.xmlhttp = new XMLHttpRequest();
            if (this.xmlhttp.overrideMimeType) {
                this.xmlhttp.overrideMimeType('text/xml');
            }
        } 
        else if (window.ActiveXObject) { // IE
try {
  this.xmlhttp  = new ActiveXObject("Msxml2.XMLHTTP");
}catch (e) {
 try {
  this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e) {
   this.xmlhttp = null;
   }
       }
 if (!this.xmlhttp  && typeof XMLHttpRequest!='undefined') {
                this.xmlhttp = new XMLHttpRequest();
    if (!this.xmlhttp){
   this.failed = true; 
  } } }
 return this.xmlhttp ;
 }

function recibeid(_pagina,valorget,valorpost,capa){ 
ajax=objetus(_pagina);
if(valorpost!=""){
ajax.open("POST", _pagina+"?"+valorget+"&tiempo="+new Date().getTime(),true);
} else {
ajax.open("GET", _pagina+"?"+valorget+"&tiempo="+new Date().getTime(),true);
}
ajax.onreadystatechange=function() {
 if (ajax.readyState==1){
  document.getElementById(capa).innerHTML = "Cargando Información ...";
  }
  if (ajax.readyState==4) {
   if(ajax.status==200)
   	{
   		//document.getElementById(capa).innerHTML = ajax.responseText;
		//document.getElementById(id_contenedor).innerHTML = pagina_requerida.responseText;
		SetContainerHTML(capa, ajax.responseText, true);
	}
   else if(ajax.status==404)
                                             {
 capa.innerHTML = "La direccion no existe";
                                             }
                           else
                                             {
                            capa.innerHTML = "Error: ".ajax.status;
                                             }
}
}
if(valorpost!=""){
ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ajax.send(valorpost);
} else {
ajax.send(null);
}
} 

/**************************************************** Funcion para ejecutar JS ****************************************************/
function SetContainerHTML(id,html,processScripts)
{
	mydiv = document.getElementById(id);
	mydiv.innerHTML = html;
	if(processScripts!=false)
	{
		var elementos = mydiv.getElementsByTagName('script');
		for(i=0;i<elementos.length;i++)
		{
			var elemento = elementos[i];
			nuevoScript = document.createElement('script');
			nuevoScript.text = elemento.innerHTML;
			nuevoScript.type = 'text/javascript';
			if(elemento.src!=null && elemento.src.length>0)
				nuevoScript.src = elemento.src;
			elemento.parentNode.replaceChild(nuevoScript,elemento);
		}
	}
}

if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();return true;
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){
var _23=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};
deconcept.PlayerVersion=function(_27){
this.major=_27[0]!=null?parseInt(_27[0]):0;
this.minor=_27[1]!=null?parseInt(_27[1]):0;
this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){
return false;
}return true;};
deconcept.util={getRequestParameter:function(_29){
var q=document.location.search||document.location.hash;
if(q){var _2b=q.substring(1).split("&");
for(var i=0;i<_2b.length;i++){
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return "";}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
__flash_savedUnloadHandler=function(){};
if(typeof window.onunload=="function"){
var _30=window.onunload;
window.onunload=function(){
deconcept.SWFObjectUtil.cleanupSWFs();_30();};
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
if(typeof window.onbeforeunload=="function"){
var oldBeforeUnload=window.onbeforeunload;
window.onbeforeunload=function(){
deconcept.SWFObjectUtil.prepUnload();
oldBeforeUnload();};
}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){
Array.prototype.push=function(_31){
this[this.length]=_31;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;