// JavaScript Document/*********** CALENDARIO DE EVENTOS PARA APARTADO AGENDA ************///VARIABLES QUE RECOGEN LA FECHA DEL EQUIPOvar fecha_actual = new Date()dia_mes = fecha_actual.getDate()dia_semana = fecha_actual.getDay()mesPC = fecha_actual.getMonth() + 1/*INDICAR AQUÍ LOS MESES QUE VAN A APARECER EN LA AGENDA Y EL NUMERO DE DIAS QUE TIENE CADA UNO*/mes1 = 03//MARZOdiasmes1 = 31mes2 = 04//ABRILdiasmes2 = 30//ARRAYS GENERALESvar meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");var numdias = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31);/*CONCIERTOS DEL MES ACTUAL*/var noticiasMes1 = new Array(/*01*/"-THALIA ZEDEK. Nasti. 21.00.",/*02*/"-CORNERSHOP. Moby Dick.<br>-CHRISTINA ROSENVINGE + aTULSA. Heineken.",/*03*/"-ADAM GREEN + ISH MARQUEZ. Ramdall.<br>-NIÑO Y PISTOLA. El Sol.",/*04*/"-JOSH ROUSE. Joy Eslava. 20.00.<br>-NIÑO Y PISTOLA. FNAC Callao.",/*05*/"-ANE BRUN. Moby Dick. 21.00.",/*06*/null,/*07*/null,/*08*/"-SHEARWATER + DAVID THOMAS BROUGHTON. Moby Dick. 21.00.",/*09*/"-ALONDRA BENTLEY. Costello.",/*10*/"-BRENDAN BENSON. Moby Dick. 21.00.<br>-DWOMO + GENTLE MUSIC MEN. El Sol.",/*11*/"-LA BIEN QUERIDA + JOE CREPÚSCULO. Heineken. 20.00.<br>-MARTIN BUSCAGLIA. La Boite.",/*12*/"-LA ROUX. La Riviera. 20.15.<br>-JOAN BAEZ. Palacio de Congresos.<BR>-DINERO. El Sol.",/*13*/"-YO LA TENGO. La Riviera. 20.15.<br>-ANARI + MURSEGO. Moby Dick. 21.00.",/*14*/null,/*15*/"-FLORENCE AND THE MACHINE. Heineken. 20.30.",/*16*/"-TACHENKO. FNAC Callao.",/*17*/"-YEASAYER. Caracol. 20.00.<br>-ARIZONA BABY + CLEM SNIDE + INHABITANTS. Heineken. 20.00.<br>-BABY DEE. Neu! Club. 21.00.",/*18*/"-LUCKNOW PACT. Moby Dick.",/*19*/"-<u>Festival Mueve tu culo bonico, bonico</u>: HIS MAJESTY THE KING + BALTIMORE + MUERTE Y DESTRUCCIÓN. Neu! Club. 21.00.",/*20*/"-<u>Música de Librería</u>: BETACAM. Librería El Argonauta. 13.15.<br> -LINDA GUILALA + GUATAFÁN + PAPA TOPO. Neu! Club. 21.00.",/*21*/null,/*22*/null,/*23*/null,/*24*/"-<u>20 Aniversario Sala Siroco</u>: EL CÍRCULO DE WILLIS + L.E. FLACO + VIKXIE + GARAJE JACK + MAMA FUNKO + PARPADEO + LA KINKY BEAT + RAZA GUAYA + LAIMPOSIBLE + ZUMBALE. Heineken. 20.30.<br>-<u>18 Aniversario Moby Dick</u>: HEAVY TRASH. Moby Dick. 21.00.",/*25*/"-LOVE OF LESBIAN + DORIAN. Teatro Circo Price.<br>-ANNI B SWEET. Clamores.<br>-HAYSEED DIXIE. Caracol. 20.30.",/*26*/null,/*27*/"-<u>Frontera Círculo>/u>: LACROSSE + MITTENS. Círculo de Bellas Artes.<br>-TACHENKO. Caracol.<br>-GO KART MOZART + PACIFIC STREET DJ. Neu! Club. 21.00.<br>-ALONDRA BENTLEY. Moby Dick.",/*28*/"-THE HIDDEN CAMERAS. Moby Dick. 21.00.",/*29*/null,/*30*/"-KITTY, DAISY & LEWIS. Joy Eslava.",/*31*/null)/*CONCIERTOS DEL PROXIMO MES*/var noticiasMes2 = new Array(/*01*/null,/*02*/null,/*03*/null,/*04*/null,/*05*/null,/*06*/null,/*07*/null,/*08*/"-REVEREND HORTON HEAT. Heineken. 20.00.<br>-DE LA FÉ Y LAS FLORES AZULES. Joy Eslava. 21.00.",/*09*/"-YACHT. El Sol.<br>-THE MUGGS. Würlitzer Ballroom.",/*10*/"-BLOOD RED SHOES. Moby Dick.<br>-CHARADES. Nasti.<br>",/*11*/null,/*12*/null,/*13*/null,/*14*/"-LA HABTIACIÓN ROJA. Heineken.<br>-THE LEGENDS + EDREDÓN. Círculo de Bellas Artes.",/*15*/null,/*16*/"-BEAR IN HEAVEN. Moby Dick.<br>-PILOOSKI. Nasti.",/*17*/null,/*18*/null,/*19*/"-SONIC YOUTH. La Riviera.<br>-MIKA. Palacio de Deportes.",/*20*/"-CHUCK PROPHET. Moby Dick.",/*21*/null,/*22*/"-THE VERY BEST + EL GUINCHO. Heineken. 20.00.<br>-CRYSTAL ANTLERS + TIMES NEW VIKING. Moby Dick. 21.00.",/*23*/"-<B><u>Fiesta El Cactus Radiozine</u>: THE BOBBY MCGEES + WILD HONEY. Nasti. 21.00.</b>",/*24*/null,/*25*/"-LONELY DRIFTER KAREN. Clamores. 20.00.",/*26*/"-SHE & HIM. Joy Eslava. 20.00.",/*27*/null,/*28*/"-PORT O BRIEN. Moby Dick.",/*29*/null,/*30*/"IGGY & THE STOOGES. La Riviera.",/*31*/null)//ENERO//*01*/null,//*02*/null,//*03*/null,//*04*/null,//*05*/null,//*06*/null,//*07*/null,//*08*/null,//*09*/null,//*10*/null,//*11*/null,//*12*/null,//*13*/null,//*14*/null,//*15*/null,//*16*/null,//*17*/null,//*18*/null,//*19*/null,//*20*/null,//*21*/null,//*22*/null,//*23*/null,//*24*/null,//*25*/null,//*26*/null,//*27*/null,//*28*/null,//*29*/null,//*30*/null,//*31*/null//recoge la fecha del pc y mira si hay algo para ese mismo dia.function proximoEvento(){	k = dia_mes-1;	document.getElementById('fecha').innerHTML = dia_mes + " de "+ meses[mes1-1];	switch (mesPC){		case mes1:		if(noticiasMes1[k]!=null){		document.getElementById('evento').innerHTML = noticiasMes1[k];		}else{			document.getElementById('evento').innerHTML = "El Cactus no tiene ninguna recomendación que hacerte para hoy.<br> Consulta el calendario para conocer los próximos eventos." ;		}		break		case mes2:		if(noticiasMes2[k]!=null){		document.getElementById('evento').innerHTML = noticiasMes2[k];		}else{			document.getElementById('evento').innerHTML = "El Cactus no tiene ninguna recomendación que hacerte para hoy.<br> Consulta el calendario para conocer los próximos eventos." ;		}		break		default:		document.getElementById('evento').innerHTML = "El Cactus no tiene ninguna recomendación que hacerte para hoy.<br> Consulta el calendario para conocer los próximos eventos." ;	}}//dibuja los calendariosfunction date() {//PARA ASIGNAR EL NUMERO DE DIAS EN BLANCO ANTES DEL DIA 1for(x=dia_mes; x>1; x--){if(dia_semana==0){dia_semana=7}dia_semana--var dia_semanact = dia_semana-1;}if(dia_semanact==-1){dia_semanact=6}dia_semanact=0//ESCRIBE EL CALENDARIO DEL MES ACTUAL EN PÁGINAdocument.write("<ul>");document.write("<li class='mes1'>" + meses[mes1-1] + "</li>");document.write("<li class='dia1'>L</li><li class='dia1'>M</li><li class='dia1'>X</li><li class='dia1'>JU</li><li class='dia1'>VI</li><li class='dia1'>SA</li><li class='dia1'>DO</li>")		for (j = 0; j < dia_semanact; j++) {	document.write("<li>&nbsp;</li>")	}	for (i = 0; i < diasmes1; i++) {	document.write("<li>")	if(noticiasMes1[i]!=null){	fechaEvento= "document.getElementById('fecha').innerHTML ='" + numdias[i] + " de " + meses[mes1-1] +"'";	textoEvento = "document.getElementById('evento').innerHTML ='" + noticiasMes1[i] +"'";		document.write('<a href="# " onmouseover="' + textoEvento + ';' + fechaEvento + '">' + numdias[i] + '</a>')	}	else {	document.write(numdias[i])	}	document.write("</li>")	}document.write("</ul>");//HAY QUE PONER EL NÚMERO DE DÍAS EN BLANCO ANTES DEL DÍA 1 DEL SEGUNDO MESdia_semanact=3//ESCRIBE EL CALENDARIO DEL SIGUIENTE MESdocument.write("<ul>");document.write("<li class='mes2'>" + meses[mes2-1] + "</li>");document.write("<li class='dia2'>L</li><li class='dia2'>M</li><li class='dia2'>X</li><li class='dia2'>JU</li><li class='dia2'>VI</li><li class='dia2'>SA</li><li class='dia2'>DO</li>")		for (j = 0; j < dia_semanact; j++) {	document.write("<li>&nbsp;</li>")	}	for (i = 0; i < diasmes2; i++) {	document.write("<li>")	if(noticiasMes2[i]!=null){	fechaEvento= "document.getElementById('fecha').innerHTML ='" + numdias[i] + " de " + meses[mes2-1] +"'";	textoEvento = "document.getElementById('evento').innerHTML ='" + noticiasMes2[i] +"'";		document.write('<a href="# " onmouseover="' + textoEvento + ';' + fechaEvento + '">' + numdias[i] + '</a>')	}	else {	document.write(numdias[i])	}	document.write("</li>")	}document.write("</ul>");}/*********** FIN CALENDARIO AGENDA ***********//*********** FUNCION PARA LISTADO FOTOS DE CONCIERTOS ************/function listadoFotos() {	fotosConciertos = new Array;	i = 0;	fotosConciertos[i] = new Array("../images/fotos/fiestamujeresIni.jpg", "FIESTA MUJERES PINCHAN DESESPERADAS", "ultimasFotos.htm");i++	fotosConciertos[i] = new Array("../images/fotos/fantasmaIni.jpg", "FANTASMA #3", "fantasma.htm");i++	fotosConciertos[i] = new Array("../images/fotos/atswimtwobirdsIni.jpg", "AT SWIM TWO BIRDS", "atswim.htm");i++	fotosConciertos[i] = new Array("../images/fotos/tokyoIni.jpg", "TOKYO SEX DESTRUCTION", "tokyo.htm");i++	fotosConciertos[i] = new Array("../images/fotos/violentfemmesIni.jpg", "VIOLENT FEMMES", "violent.htm");i++	fotosConciertos[i] = new Array("../images/fotos/maximoparkIni.jpg", "MAXÏMO PARK", "maximopark.htm");i++	fotosConciertos[i] = new Array("../images/fotos/magicnumbersIni.jpg", "THE MAGIC NUMBERS", "magic.htm");i++	fotosConciertos[i] = new Array("../images/fotos/edharcourtIni.jpg", "ED HARCOURT", "edharcourt.htm");i++	fotosConciertos[i] = new Array("../images/fotos/gruposalvajeIni.jpg", "GRUPO SALVAJE", "gruposalvaje.htm");i++	fotosConciertos[i] = new Array("../images/fotos/eurotrashIni.jpg", "EURO-TRASH GIRL", "eurotrash.htm");i++	fotosConciertos[i] = new Array("../images/fotos/samiamIni.jpg", "SAMIAM + THE DRAFT", "samiam.htm");i++	fotosConciertos[i] = new Array("../images/fotos/rsecretoIni.jpg", "EL REMATE SECRETO", "rsecreto.htm");i++	fotosConciertos[i] = new Array("../images/fotos/12twelvelni.jpg", "12TWELVE", "12twelve.htm");i++	fotosConciertos[i] = new Array("../images/fotos/maximoIni.jpg", "MAXIMO PARK", "maximo.htm");i++	fotosConciertos[i] = new Array("../images/fotos/azkenaWilcoIni.jpg", "AZKENA ROCK FESTIVAL", "azkena.htm");i++	//ESCRIBE EL LISTADO DE FOTOS EN PÁGINAdocument.write("<ul class='foto'>");	for (i=0; i<(fotosConciertos.length); i++) {		document.write("<li><a href='"+fotosConciertos[i][2]+"'><img src='" + fotosConciertos[i][0] +"' class = 'marcoFoto'/><br>" +fotosConciertos[i][1] +"</a></li>");	}document.write("</ul>");}/*********** FIN LISTADO FOTOS ************//*********** FUNCION PARA LISTADO DE ENTREVISTAS ************/function entrevistas() {	entrevistas = new Array;	m = 0;	entrevistas[m] = new Array("../images/entrevistas/portastaticIni.jpg", "PORTASTATIC", "Marzo del 2007", "ultima.htm");m++	entrevistas[m] = new Array("../images/entrevistas/num9Ini.jpg", "NUM9", "20 Enero del 2007", "num9.htm");m++	entrevistas[m] = new Array("../images/entrevistas/plasticIni.jpg", "PLASTIC D'AMOUR", "17 Diciembre del 2006", "plastic.htm");m++	entrevistas[m] = new Array("../images/entrevistas/chinarro02.jpg", "SR. CHINARRO", "10 Diciembre del 2006", "chinarro.htm");m++	entrevistas[m] = new Array("../images/entrevistas/fantasma3.jpg", "FANTASMA #3", "9 Diciembre del 2006", "fantasma.htm");m++	entrevistas[m] = new Array("../images/entrevistas/corcobado02.jpg", "CORCOBADO", "2 Diciembre del 2006", "corcobado.htm");m++	entrevistas[m] = new Array("../images/entrevistas/why.jpg", "WHY?", "3 Diciembre del 2005", "why.htm");m++	entrevistas[m] = new Array("../images/entrevistas/cake.jpg", "CAKE", "Noviembre de 2005", "cake.htm");m++	//ESCRIBE EL LISTADO DE FOTOS EN PÁGINAdocument.write("<ul class='entrevistas'>");	for (m=0; m<(entrevistas.length); m++) {		document.write("<li><a href='"+entrevistas[m][3]+"'><img src='" + entrevistas[m][0] +"'class = 'marcoFoto'/><br>" +entrevistas[m][1] +"<br>"+entrevistas[m][2] +"</a></li>");	}document.write("</ul>");}/********** FIN LISTADO ENTREVISTAS **********//*********** FUNCION PARA LISTADO DE ESPECIALES ************/function especiales() {	especiales = new Array;	l = 0;	especiales[l] = new Array("Resumen 2009", "ultimo.htm");l++	especiales[l] = new Array("FIB 2009", "fib2009.htm");l++	especiales[l] = new Array("SOS 4.8", "sos48.htm");l++	especiales[l] = new Array("Resumen 2008", "resumen2008.htm");l++	especiales[l] = new Array("Resumen 2007", "resumen2007.htm");l++	especiales[l] = new Array("FIB 2007", "fib2007.htm");l++	especiales[l] = new Array("Resumen 2006", "resumen2006.htm");l++	especiales[l] = new Array("FIB 2006", "fib2006.htm");l++	especiales[l] = new Array("Resumen 2005", "resumen2005.htm");l++	//especiales[l] = new Array("Azkena Rock Festival", "azkena");l++	//especiales[l] = new Array("Primavera Sound", "azkena.htm");l++	//especiales[l] = new Array("Electro 2M5", "electro2m5.htm");l++	//ESCRIBE EL LISTADO DE FOTOS EN PÁGINAdocument.write("<ul class='especiales'>");	for (l=0; l<(especiales.length); l++) {		document.write("<li><a href='"+especiales[l][1]+"'>" + especiales[l][0] +"</a></li>");	}document.write("</ul>");}/********** FIN LISTADO ESPECIALES **********//********** CARGA DE IMAGENES MENU **********/if (document.images) {    semanaup       = new Image();    semanaup.src   = "images/botones/semana.gif" ;    semanadown     = new Image() ;    semanadown.src = "images/botones/semana_over.gif" ;		agendaup       = new Image();    agendaup.src   = "images/botones/agenda.gif" ;    agendadown     = new Image() ;    agendadown.src = "images/botones/agenda_over.gif" ;	noticiasup       = new Image();    noticiasup.src   = "images/botones/noticias.gif" ;    noticiasdown     = new Image() ;    noticiasdown.src = "images/botones/noticias_over.gif" ;	entrevistasup       = new Image();    entrevistasup.src   = "images/botones/entrevistas.gif" ;    entrevistasdown     = new Image() ;    entrevistasdown.src = "images/botones/entrevistas_over.gif" ;	especialesup       = new Image();    especialesup.src   = "images/botones/especiales.gif" ;    especialesdown     = new Image() ;    especialesdown.src = "images/botones/especiales_over.gif" ;	fotosup       = new Image();    fotosup.src   = "images/botones/fotos.gif" ;    fotosdown     = new Image() ;    fotosdown.src = "images/botones/fotos_over.gif" ;	cactuspiedraup       = new Image();    cactuspiedraup.src   = "images/botones/piedra.gif" ;    cactuspiedradown     = new Image() ;    cactuspiedradown.src = "images/botones/piedra_over.gif" ;		semanaPosicion = "40px 0 0 15px";	agendaPosicion = "40px 0 0 75px";	noticiasPosicion = "40px 0 0 135px";	entrevistasPosicion = "40px 0 0 180px";	especialesPosicion = "40px 0 0 250px";	fotosPosicion = "40px 0 0 325px";	cactuspiedraPosicion = "40px 0 0 350px";}function buttondown( buttonname ){    if (document.images) {      document[ buttonname ].src = eval( buttonname + "down.src" );	  	    document.getElementById("tituloMenu").style.margin = eval( buttonname + "Posicion");	  document.getElementById("tituloMenu").style.visibility = "visible";	 if (buttonname != "semana"){	  document.getElementById("tituloMenu").innerHTML = buttonname;	 }else{		 document.getElementById("tituloMenu").innerHTML = "escucha el cactus";	 }    }}function buttonup( buttonname ){    if (document.images) {      document[ buttonname ].src = eval( buttonname + "up.src" );	  document.getElementById("tituloMenu").style.visibility="hidden";	     }}/******* FIN CARGA IMAGENES MENU ***********//****ABRIR VENTANA NAVEGADOR****/function openwindow(direccion){window.open(direccion,"escuchaCactus","menubar=no,scrollbars=YES,resizable=YES,width=550,height=600");}