function over(tipo,g){

for(i=0;i<g;i++){

		document.getElementById(tipo + i).style.color="#0066CC";

	}

};



function navMenuExp(){ //v1.1.0.2 by PVII-www.projectseven.com

 if(navigator.appVersion.indexOf("MSIE")==-1){return;}

 var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='navMenubar';

 for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){

 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){

 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;

 this.className=cl;};lg[k].onmouseout=function(){c=this.className;

 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}

}

// tenemos que ver que no necesitamos de esto



var ImageMenu = new Class({

	

	getOptions: function(){

		return {

			onOpen: false,

			onClose: Class.empty,

			openWidth: 200,

			transition: Fx.Transitions.quadOut,

			duration: 400,

			open: null,

			border: 0

		};

	},



	initialize: function(elements, options){

		this.setOptions(this.getOptions(), options);

		

		this.elements = $$(elements);

		

		this.widths = {};

		this.widths.closed = this.elements[0].getStyle('width').toInt();

		this.widths.openSelected = this.options.openWidth;

		this.widths.openOthers = Math.round(((this.widths.closed*this.elements.length) - (this.widths.openSelected+this.options.border)) / (this.elements.length-1))

		

		

		this.fx = new Fx.Elements(this.elements, {wait: false, duration: this.options.duration, transition: this.options.transition});

		

		this.elements.each(function(el,i){

			el.addEvent('mouseenter', function(e){

				new Event(e).stop();

				this.reset(i);

				

			}.bind(this));

			

			el.addEvent('mouseleave', function(e){

				new Event(e).stop();

				this.reset(this.options.open);

				

			}.bind(this));

			

			var obj = this;

									

		}.bind(this));

		

		if(this.options.open){

			if($type(this.options.open) == 'number'){

				this.reset(this.options.open);

			}else{

				this.elements.each(function(el,i){

					if(el.id == this.options.open){

						this.reset(i);

					}

				},this);

			}

		}

		

	},

	

	reset: function(num){

		if($type(num) == 'number'){

			var width = this.widths.openOthers;

			if(num+1 == this.elements.length){

				width += this.options.border;

			}

		}else{

			var width = this.widths.closed;

		}

		

		var obj = {};

		this.elements.each(function(el,i){

			var w = width;

			if(i == this.elements.length-1){

				w = width+5

			}

			obj[i] = {'width': w};

		}.bind(this));

		

		if($type(num) == 'number'){

			obj[num] = {'width': this.widths.openSelected};

		}

				

		this.fx.start(obj);

	}

	

});



ImageMenu.implement(new Options);

ImageMenu.implement(new Events);



//--------- adserver ------

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);

}



//Seteo de variables

var OASposToShow = new Array();



function OASmostrarTOP(){

	if(document.getElementById("oasTOP") == null) return;

	OASposToShow[OASposToShow.length] = "oasTOP";

	OAS_AD('Top');

}



function OASmostrarTopLeft(){

	if(document.getElementById("oasTopLeft") == null) return;

	OASposToShow[OASposToShow.length] = "oasTopLeft";

	OAS_AD('TopLeft');

}



//Funciones Mostrar

function OASmostrarRIGHT(){

	if(document.getElementById("oasRIGHT") == null) return;

	OASposToShow[OASposToShow.length] = "oasRIGHT";

	OAS_AD('Right');

}



function OASmostrarRIGHT1(){

	if(document.getElementById("oasRIGHT1") == null) return;

	OASposToShow[OASposToShow.length] = "oasRIGHT1";

	OAS_AD('Right1');

}



function OASmostrarRIGHT2(){

	if(document.getElementById("oasRIGHT2") == null) return;

	OASposToShow[OASposToShow.length] = "oasRIGHT2";

	OAS_AD('Right2');

}

function OASmostrarBOTTOM(){

	if(document.getElementById("oasBOTTOM") == null) return;

	OASposToShow[OASposToShow.length] = "oasBOTTOM";

	OAS_AD('Bottom');

}

function OASmostrarBOTTOMRIGHT(){

	if(document.getElementById("oasBOTTOMRIGHT") == null) return;

	OASposToShow[OASposToShow.length] = "oasBOTTOMRIGHT";

	OAS_AD('BottomRight');

}




function OASmostrarX72(){

	if(document.getElementById("oasX72") == null) return;

	OASposToShow[OASposToShow.length] = "oasX72";

	OAS_AD('x72');

}

function OASmostrarX73(){

	if(document.getElementById("oasX73") == null) return;

	OASposToShow[OASposToShow.length] = "oasX73";

	OAS_AD('x73');

}


function OASmostrarX74(){

	if(document.getElementById("oasX74") == null) return;

	OASposToShow[OASposToShow.length] = "oasX74";

	OAS_AD('x74');

}

function OASmostrarX75(){

	if(document.getElementById("oasX75") == null) return;

	OASposToShow[OASposToShow.length] = "oasX75";

	OAS_AD('x75');

}



function OASmostrarX76(){

	if(document.getElementById("oasX76") == null) return;

	OASposToShow[OASposToShow.length] = "oasX76";

	OAS_AD('x76');

}



function OASmostrarX77(){

	if(document.getElementById("oasX77") == null) return;

	OASposToShow[OASposToShow.length] = "oasX77";

	OAS_AD('x77');

}



function OASmostrarX78(){

	if(document.getElementById("oasX78") == null) return;

	OASposToShow[OASposToShow.length] = "oasX78";

	OAS_AD('x78');

}



function OASmostrarX79(){

	if(document.getElementById("oasX79") == null) return;

	OASposToShow[OASposToShow.length] = "oasX79";

	OAS_AD('x79');

}

function OASmostrarX80(){

	if(document.getElementById("oasX80") == null) return;

	OASposToShow[OASposToShow.length] = "oasX80";

	OAS_AD('x80');

}



function OASmostrarX81(){

	if(document.getElementById("oasX81") == null) return;

	OASposToShow[OASposToShow.length] = "oasX81";

	OAS_AD('x81');

}



function OASmostrarX82(){

	if(document.getElementById("oasX82") == null) return;

	OASposToShow[OASposToShow.length] = "oasX82";

	OAS_AD('x82');

}



function OASmostrarX83(){

	if(document.getElementById("oasX83") == null) return;

	OASposToShow[OASposToShow.length] = "oasX83";

	OAS_AD('x83');

}



function OASmostrarX84(){

	if(document.getElementById("oasX84") == null) return;

	OASposToShow[OASposToShow.length] = "oasX84";

	OAS_AD('x84');

}



function OASmostrarX85(){

	if(document.getElementById("oasX85") == null) return;

	OASposToShow[OASposToShow.length] = "oasX85";

	OAS_AD('x85');

}

function OASmostrarX86(){

	if(document.getElementById("oasX86") == null) return;

	OASposToShow[OASposToShow.length] = "oasX86";

	OAS_AD('x86');

}

function OASmostrarX87(){

	if(document.getElementById("oasX87") == null) return;

	OASposToShow[OASposToShow.length] = "oasX87";

	OAS_AD('x87');

}

function OASmostrarX88(){

	if(document.getElementById("oasX88") == null) return;

	OASposToShow[OASposToShow.length] = "oasX88";

	OAS_AD('x88');

}

function OASmostrarX19(){

	if(document.getElementById("oasX19") == null) return;

	OASposToShow[OASposToShow.length] = "oasX19";

	OAS_AD('x19');

}

function OASmostrarX03(){

	if(document.getElementById("oasX03") == null) return;

	OASposToShow[OASposToShow.length] = "oasX03";

	OAS_AD('x03');

}



function OASmostrarX04(){

	if(document.getElementById("oasX04") == null) return;

	OASposToShow[OASposToShow.length] = "oasX04";

	OAS_AD('x04');

}



function OASmostrarX05(){

	if(document.getElementById("oasX05") == null) return;

	OASposToShow[OASposToShow.length] = "oasX05";

	OAS_AD('x05');

}



function OASmostrarX30(){

	if(document.getElementById("oasX30") == null) return;

	OASposToShow[OASposToShow.length] = "oasX30";

	OAS_AD('x30');

}

function OASmostrarX34(){

	if(document.getElementById("oasX34") == null) return;

	OASposToShow[OASposToShow.length] = "oasX34";

	OAS_AD('x34');

}

function OASmostrarX35(){

	if(document.getElementById("oasX35") == null) return;

	OASposToShow[OASposToShow.length] = "oasX35";

	OAS_AD('x35');

}

function OASmostrarX36(){

	if(document.getElementById("oasX36") == null) return;

	OASposToShow[OASposToShow.length] = "oasX36";

	OAS_AD('x36');

}

function OASmostrarX21(){

	if(document.getElementById("oasX21") == null) return;

	OASposToShow[OASposToShow.length] = "oasX21";

	OAS_AD('x21');

}

function OASmostrarX26(){

	if(document.getElementById("oasX26") == null) return;

	OASposToShow[OASposToShow.length] = "oasX26";

	OAS_AD('x26');

}



function OASmostrarX96(){

	if(document.getElementById("oasX96") == null) return;

	OASposToShow[OASposToShow.length] = "oasX96";

	OAS_AD('x96');

}



function OASmostrarX65(){

	if(document.getElementById("oasX65") == null) return;

	OASposToShow[OASposToShow.length] = "oasX65";

	OAS_AD('x65');

}

function OASmostrarX66(){

	if(document.getElementById("oasX66") == null) return;

	OASposToShow[OASposToShow.length] = "oasX66";

	OAS_AD('x66');

}

function OASmostrarX67(){

	if(document.getElementById("oasX67") == null) return;

	OASposToShow[OASposToShow.length] = "oasX67";

	OAS_AD('x67');

}

function OASmostrarX68(){

	if(document.getElementById("oasX68") == null) return;

	OASposToShow[OASposToShow.length] = "oasX68";

	OAS_AD('x68');

}

//possiones para locotor
function OASmostrarX55(){

	if(document.getElementById("oasX55") == null) return;

	OASposToShow[OASposToShow.length] = "oasX55";

	OAS_AD('x55');

}

function OASmostrarX56(){

	if(document.getElementById("oasX56") == null) return;

	OASposToShow[OASposToShow.length] = "oasX56";

	OAS_AD('x56');

}



//Funciones de Inicio

function OASstart(){

	if (document.all) window.attachEvent('onload', setPos);

	else window.addEventListener('load', setPos, false);

}



function setPos() {

  for(i=0; i < OASposToShow.length; i++){

   document.getElementById(OASposToShow[i]).appendChild(document.getElementById(OASposToShow[i]+"src"));

   document.getElementById(OASposToShow[i]+"src").style.display='inline';

  }

}

//Funciones de richmedia

// 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
////*****tiker banner****//
function getFlashMovieObject(movieName){
    if (window.document[movieName]) {
        return window.document[movieName];
    }
    if (navigator.appName.indexOf("Microsoft Internet") == -1) {
        if (document.embeds && document.embeds[movieName]) 
            return document.embeds[movieName];
    }
    else {
        return document.getElementById(movieName);
    }
}

function setvars(checaOAS, typoBranding, LigaOas, timerImagen, jumpto){
    x = getFlashMovieObject('flMultiplayer');
    x.SetVariable("/:checaOAS", checaOAS);
    y = getFlashMovieObject('flMultiplayer');
    y.SetVariable("/:typoBranding", typoBranding);
	z = getFlashMovieObject('flMultiplayer');
	z.SetVariable("/:LigaOas", LigaOas);
	k = getFlashMovieObject('flMultiplayer');
	k.SetVariable("/:timerImagen", timerImagen);
	n = getFlashMovieObject('flMultiplayer');
	n.SetVariable("/:jumpto", jumpto);
}
function setvars2(showTiker, tikerBanner, tikerClick, tikerLiga, videoAnuncio){
   w = getFlashMovieObject('flMultiplayer');
   w.SetVariable("/:showTiker", showTiker);
   v = getFlashMovieObject('flMultiplayer');
   v.SetVariable("/:tikerBanner", tikerBanner);
   o = getFlashMovieObject('flMultiplayer');
   o.SetVariable("/:tikerClick", tikerClick);
   q = getFlashMovieObject('flMultiplayer');
   q.SetVariable("/:tikerLiga", tikerLiga);
   p = getFlashMovieObject('flMultiplayer');
   p.SetVariable("/:videoAnuncio", videoAnuncio);
}


