function Abrir_musica (pagina) {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=410, height=540, top=105, left=200";
window.open(pagina,"",opciones);
}


function Abrir_ventana (pagina) {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=600, height=565, top=85, left=140";
window.open(pagina,"",opciones);
}

function Abrir(pagina) {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=580, height=250, top=105, left=200";
window.open(pagina,"",opciones);
} 

function abrirPublicidad(ID,alto,ancho) {
	window.open('publiPopUpNexo.php?id='+ID,'Publicidad','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+ancho+',height='+alto+',left = 262,top = 100');
	}
	
function pasado(uno){
	var listo=uno;
	var dos = "si";
	llamarnoticia(uno,dos);
	document.getElementById("calendario").style.display="none";
}

function listo(mem){
	document.getElementById(mem).style.display="block";
}
function listo2(mem){
	document.getElementById(mem).style.display="none";
}


function popUp(URL) {
	window.open('resumen_notiNexo.php?id='+URL,'ventana','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=790,height=550,left = 262,top = 100');
	}
	
function pop2() {
	window.open('res_clima.php','ventana','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=790,height=550,left = 262,top = 100');
	}

variable = 0;


// Esto es el boton 1------------------------------------------------
function cambiotodo(){
	document.botop1.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton1.src = 'nexoCambio/botAzul_03.gif';
	document.botop2.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton2.src = 'nexoCambio/botAzul_05.gif';
	document.botop3.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton3.src = 'nexoCambio/botAzul_07.gif';
	document.botop4.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton4.src = 'nexoCambio/botAzul_09.gif';
	document.botop5.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton5.src = 'nexoCambio/botAzul_11.gif';
}

function bot1A(){
	if(variable != 1){
	document.botop1.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton1.src = 'nexoCambio/botAzul_03.gif';
	}
	}
function bot1B(){
		if(variable != 1){
		document.botop1.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton1.src = 'nexoCambio/botAmarillo_03.gif';
		}
	}
function bot1C(vare){
	variable = vare;
	cambiotodo()
	document.botop1.src = 'nexoCambio/fra_rojoNexo.gif';
	document.boton1.src = 'nexoCambio/botAmarillo_03.gif';
	}
	
// Esto es el boton 2------------------------------------------------
	
function bot2A(){
	if(variable != 2){
	document.botop2.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton2.src = 'nexoCambio/botAzul_05.gif';
	}
	}
function bot2B(){
		if(variable != 2){
		document.botop2.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton2.src = 'nexoCambio/botAmarillo_05.gif';
		}
	}
function bot2C(vare){
	variable = vare;
	cambiotodo()
		document.botop2.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton2.src = 'nexoCambio/botAmarillo_05.gif';
	}
	
// Esto es el boton 3------------------------------------------------
	
function bot3A(){
	if(variable != 3){
	document.botop3.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton3.src = 'nexoCambio/botAzul_07.gif';
	}
	}
function bot3B(){
		if(variable != 3){
		document.botop3.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton3.src = 'nexoCambio/botAmarillo_07.gif';
		}
	}
function bot3C(vare){
	variable = vare;
	cambiotodo()
			document.botop3.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton3.src = 'nexoCambio/botAmarillo_07.gif';

	}
	
// Esto es el boton 4------------------------------------------------
	
function bot4A(){
	if(variable != 4){
	document.botop4.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton4.src = 'nexoCambio/botAzul_09.gif';
	}
	}
function bot4B(){
		if(variable != 4){
		document.botop4.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton4.src = 'nexoCambio/botAmarillo_09.gif';
		}
	}
function bot4C(vare){
	variable = vare;
	cambiotodo()
		document.botop4.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton4.src = 'nexoCambio/botAmarillo_09.gif';
	}
// Esto es el boton 5------------------------------------------------
	
function bot5A(){
	if(variable != 5){
	document.botop5.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton5.src = 'nexoCambio/botAzul_11.gif';
	}
	}
function bot5B(){
		if(variable != 5){
		document.botop5.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton5.src = 'nexoCambio/botAmarillo_11.gif';
		}
	}
function bot5C(vare){
	variable = vare;
	cambiotodo()
		document.botop5.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton5.src = 'nexoCambio/botAmarillo_11.gif';
	}
	
// Esto es el boton 6------------------------------------------------
	
function bot6A(){
	document.botop6.src = 'nexoCambio/fra_azulNexo.gif';
	document.boton6.src = 'nexoCambio/botAzul_13.gif';
	}
function bot6B(){
		document.botop6.src = 'nexoCambio/fra_rojoNexo.gif';
		document.boton6.src = 'nexoCambio/botAmarillo_13.gif';
	}
function bot6C(){
	document.botop6.src = 'nexoCambio/fra_rojoNexo.gif';
	document.boton6.src = 'nexoCambio/botAmarillo_13.gif';

	}
//---------------------------termino botones del menu principal----------------------

function lineA(){
	document.imagenline.src = 'imagenes/lineaImg.gif' 
}
function lineB (){
	document.imagenline.src = 'imagenes/lineaImg2.gif'
}


function notiA(){
	document.noticias.src = 'imagenes/botNotiA.gif' 
}
function notiB (){
	document.noticias.src = 'imagenes/botNotiB.gif'
}
function cambioA(){
	document.cambio.src = 'imagenes/botnexA.gif' 
}
function cambioB (){
	document.cambio.src = 'imagenes/botnexB.gif'
}


function radA(){
	document.otraradio.src = 'imagenes/nexo1A.gif' 
}
function radB(){
	document.otraradio.src = 'imagenes/nexo1B.gif'
}


function tiempoA(){
	document.tiempo.src = 'imagenes/masti1.gif' 
}
function tiempoB(){
	document.tiempo.src = 'imagenes/masti2.gif'
}
function tiempoC(){
	document.getElementById("pronos").style.display="block";
}


function menosA(){
	document.cerrar.src = 'imagenes/menosA.gif' 
}
function menosB(){
	document.cerrar.src = 'imagenes/menosB.jpg'
}


function Cancho(){
	if(document.layers){
		ancho = window.innerWidth; 
	}else{
		ancho = document.body.clientWidth;
	}
	document.getElementById("memo").style.width=(ancho+100)+"px";
	document.getElementById("memo").style.height=ancho+"px";
	document.getElementById("memo").style.display="block";
	document.getElementById("yoy").style.display="block";
}

function invisible(){
	document.getElementById("memo").style.display="none";
	document.getElementById("yoy").style.display="none";
}

function pasarVariables(pagina) {
  location.href=pagina;
}

function servirestore(){
	document.servi01.src = 'imagenes/grupo_03b.jpg';
	document.servi02.src = 'imagenes/grupo_06b.jpg';
	document.servi03.src = 'imagenes/grupo_08b.jpg';
	document.servi04.src = 'imagenes/grupo_10b.jpg';
	}
function servibot01(){
	document.servi01.src = 'imagenes/grupo_03.jpg';
}
function servibot02(){
	document.servi02.src = 'imagenes/grupo_06.jpg';
}
function servibot03(){
	document.servi03.src = 'imagenes/grupo_08.jpg';
}
function servibot04(){
	document.servi04.src = 'imagenes/grupo_10.jpg';
}