var dataLive = 0;
var locale = 1; //PIU' VARIE INFO DELLA SERATA (precedute da "<br>")
var via = 2;
var citta = 3;
var prov = 4;
var feat = 5; //GRUPPO/I SPALLA
var note = 6; //NOTE SULLA STRADA PER IL LOCALE
//"gg mmm(eng) aaaa | locale | indirizzo | città | prov | feat | note",
var live = new Array(
"13 Nov 2010 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"11 Sep 2010 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"25 Jun 2010 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"27 Feb 2010 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"23 Jan 2010 | Comunità Giovanile | Vicolo Carpi 5 | Busto Arsizio | VA | Thunderage | ",
"11 Dec 2009 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"23 Oct 2009 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"11 Jul 2009 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"27 Jun 2009 | KM 298 | 45.304524, 9.481346 |  |  |  | Km298 Via Emilia (SS9), Lodi",
"01 Jun 2009 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"13 Mar 2009 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI | ON THE RUN | ",
"7 Mar 2009 | KM 298 | 45.304524, 9.481346 |  |  | TYRANT | Km298 Via Emilia (SS9), Lodi",
"29 Jan 2009 | WoodStock | Statale dei Giovi 58 | Grandate | CO |  | ",
"28 Nov 2008 | Rainbow | Via Foscolo | Verano Brianza | MI |  | ",
"18 Oct 2008 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"3 Oct 2008 | Vikinghi Motor Club | Via G. Brodolini | Nova Milanese | MI | MERCY KILLINGS | Dietro Certo revisioni Nuova 4X4",
"12 Jul 2008 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"7 Jun 2008 | Polanski |  | Molina di Fiemme | TN |  | ",
"24 May 2008 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"2 May 2008 | Vikinghi Motor Club | Via G. Brodolini | Nova Milanese | MI |  | Dietro Certo revisioni Nuova 4X4",
"27 Mar 2008 | Blue Rose Saloon<br>Jack Daniels Night | Via C.Romani 1/11 | Bresso | MI | TYRANT, PORTRAIT OF TEARS | ",
"9 Mar 2008 | MarMaja | Via Monte Grappa 27 | Cusano Milanino | MI | WILD ANGELS | ",
"24 Jan 2008 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI | ONCE WAS SILENCE | ",
"21 Dec 2007 | Vikinghi Motor Club | Via G. Brodolini | Nova Milanese | MI |  | Dietro Certo revisioni Nuova 4X4",
"8 Dec 2007 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"15 Nov 2007 | Blue Rose Saloon<br>Opening Jam Session | Via C.Romani 1/11 | Bresso | MI |  | ",
"3 Nov 2007 | Humus Club |  | Biassono (Monza) | MI |  | ",
"6 Oct 2007 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI | KUNDALI from Trenitno | ",
"14 Jul 2007 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"23 Mar 2007 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"12 Jan 2007 | Motoraduno di Bresso | Via Ariosto | Bresso | MI |  | ",
"22 Apr 2006 | MOTOROCKAS |  | Mozzate | CO |  | ",
"17 Feb 2006 | Blue Rose Saloon | Via C.Romani 1/11 | Bresso | MI |  | ",
"21 Oct 2005 | Saloon Jesse James |  | Saronno | VA |  | ",
"5 Oct 2005 | Shangai Cafè |  | Milano | MI |  | ",
"15 May 2005 | Marmaja | Via Monte Grappa 27 | Cusano Milanino | MI |  | ",
"29 Apr 2005 | Motorockas |  | Mozzate | CO |  | ",
"30 Jan 2005 | MarMaja | Via Monte Grappa 27 | Cusano Milanino | MI |  | ",
"31 Dec 2004 | at Reika s Party |  | Milano | MI | MISANTHROP | ",
"14 Nov 2004 | MarMaja | Via Monte Grappa 27 | Cusano Milanino | MI |  | ",
"25 May 2004 | Box 31 |  | Paderno D. | MI |  | ",
"15 Feb 2004 | Box 31 |  | Paderno D. | MI |  | ",
"31 Dec 2003 | Toby's Pub |  | Soncino | CR |  | ");

var gruppo = 0;
var canzone = 1;
var sito = 2;
var canzoni = new Array(
"AC/DC | You Shook Me All Night Long | http://www.acdc.com | 3:30",
"AC/DC | Hell's Bells | http://www.acdc.com | 5:30",
"AC/DC | Highway to Hell | http://www.acdc.com | 3:28",
"Accept | Balls to the Wall | http://www.acceptarchive.com/ | 5:50",
"Accept | Up to the Limit | http://www.acceptarchive.com/ | 3:47",
"Accept | Metal heart | http://www.acceptarchive.com/ | 5:19",
"Annihilator | Torn | http://www.annihilatormetal.com/ | 5:02",
"Billy Idol | Rebel Yell | http://www.billyidol.com | 4:45",
"Black Sabbath | TV Crimes | http://www.black-sabbath.com | 3:58",
"Deep Purple | Highway Star | http://www.deeppurple.com/ | 6:8",
"Deep Purple | Smoke on the Water | http://www.deeppurple.com/ | 5:04",
"Faith No More | Digging the Grave | http://www.fnm.com | 3:04",
"Iron Maiden | Holy Smoke | http://www.ironmaiden.com | 3:50",
"Iron Maiden | Run to the Hills | http://www.ironmaiden.com | 4:00",
"Iron Maiden | Wrathchild | http://www.ironmaiden.com | 2:05",
"Judas Priest | Jawbreaker | http://www.judaspriest.com | 3:25",
"Manowar | Hail & Kill | http://www.manowar.com | 5:05",
"Metallica | Last Caress | http://www.metallica.com | 5:30",
"Metallica | Enter Sandman | http://www.metallica.com | 5:30",
"Metallica | Master of Puppets | http://www.metallica.com | 8:35",
"Megadeth | She Wolf | http://www.megadeth.com | ",
"Megadeth | Peace Sells | http://www.megadeth.com | ",
"Megadeth | Crush'em | http://www.megadeth.com | ",
"Motley Crüe | Kickstart my Heart | http://www.motleycrue.com | 4:05",
"Motorhead | Deaf Forever | http://www.imotorhead.com | 4:25",
"Motorhead | Orgasmatron | http://www.imotorhead.com | ",
"Overkill | Sonic Reducer | http://www.wreckingcrew.com/ | 2:50",
"Pantera | Walk | http://www.officialpantera.com/ | 5:15",
"Rage | Higher Than The Sky | http://www.rage-on.de/ | 5:00",
"Rage | End of All Days | http://www.rage-on.de/ | 5:00",
"Ronnie James Dio | Holy Diver | http://www.ronniejamesdio.com/ | 5:51",
"Saxon | Denim and Leather | http://www.saxon747.com/ | 5:25",
"Saxon | Solid ball of rock | http://www.saxon747.com/ | 4:35",
"Scorpions | Rock You Like an Hurricane | http://www.the-scorpions.com/ | 4:11",
"Twisted Sister | The Price | http://www.twistedsister.com/ | ",
"Vixen | Streets in Paradise | http://www.vixenrock.com/ | 4:34",
"W.A.S.P. | I Wanna Be Somebody | http://www.waspnation.com/ | 3:43");

var prep = new Array();

////////////////////////////////////////
// [Nome] " | " [indirizzo] " | " [note]  //
////////////////////////////////////////
var links = new Array(
"Vexed | http://www.vexed-web.tk | ",
"Longobardeath | http://www.longobardeath.it | ",
"Ghenga | http://www.ghenga.com/ | Un amico fumettista",
"On the Run | http://www.myspace.com/ontherun2007 | ",
"Once Was Silence | http://www.owsows.com/ | ",
"Wild Angels | http://www.myspace.com/wildangelsmilan | ",
"Mercy Killings | http://www.myspace.com/mercykillings1 | ",
"Dystopya | http://www.myspace.com/dystopya | ",
"Dockery Farms | http://www.dockeryfarms.it | ",
"Spiteful | http://www.spiteful.it | ",
"MainStreet | http://www.mainstreetrock.com/ | ",
"Kundali | http://www.myspace.com/236939898 | Amici dal TRENTINO!!!",
"Portrait of Tears | http://www.myspace.com/portraitoftears | ",
"Tyrant | http://www.tyrantband.com | ",
"HellStorm | http://www.hellstorm.it | ",
"Reaction | http://www.myspace.com/reactionrules | ",
"KickStart | http://www.myspace.com/kickstartitaly | ",
"Reckless | http://www.myspace.com/reckless80 | Nostri omonimi veneti...");
var otherLinks = new Array(
"Locanda dell Imperatore | http://www.lalocandadellimperatore.com/ | ",
"Zanarock | http://www.zanarock.it | ",
"Rock Inn Somma | http://www.rockinnsomma.org | Evento di Somma Lombardo ogni anno a Luglio",
"Stasera | http://stasera.altervista.org | Sito dove cercare e segnalare eventi",
"<img src='http://acdc.com/downloads/banner/images/234x60_p.jpg' border='0' height='60' width='234'> | http://www.acdc.com | ",
"Metallica Downloads | http://www.livemetallica.com | Sito dove si possono acquistare i Live dei Metallica (anche in MP3) a veramente poco...",
"<img src='http://xza.us/dio/dio_aim2.gif' border='0'> | http://www.ronniejamesdio.com/ | ",
"Rock TV | http://www.rocktelevision.com | TV Online dedicata al Rock");

var vocimenu = new Array(
"Band",
"Repertorio",
"Live",
"Photos",
//"Media",
"Contatti",
"Link",
"Guestbook",
"MySpace",
"NoClick",
"Clock");

////////////////////////////////
//  NON MODIFICARE QUI SOTTO  //
////////////////////////////////
var oggi = new Date();
var giorni = new Array("Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato");
var mesi = new Array("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre");
var mesiabb = new Array("Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic");
var v = '"', text = "", vicina = false;

function menu() {
	///////////////////////
	//  MENU PRINCIPALI  //
	///////////////////////
	var larg = 100/vocimenu.length;
	for (I in vocimenu) {
		document.write("<td width='" + larg + "%'><input type='button' class='menu' style='width:100%; height:30px;' onclick="+v+"contenuto('" + vocimenu[I] + "'); sottomenu('" + vocimenu[I] + "'); this.blur(); document.title='Reckless - " + vocimenu[I] + "'"+v+" onmouseover="+v+"this.style.backgroundColor='#FF0000'"+v+" onmouseout="+v+"this.style.backgroundColor=''"+v+" value='" + vocimenu[I] + "' name='" + vocimenu[I].toLowerCase() + "' accesskey='" + I + "'></td>");
		/*deselect(); this.id='selected'; */
	}
}

function sottomenu(pagina) {
	text = "";
	voci = "";
	/////////////////////////////////
	//  SOTTOMENU PER OGNI PAGINA  //
	/////////////////////////////////
	switch (pagina) {
		case "Band":
			var voci = new Array(
			"Bryan",
			"Ea Demolition",
			"Fat",
			"Lollo");
			break;
		/*case "Live":
			var voci = new Array(
			"Prossime",
			//"2010",
			"2009",
			"2008 (10)",
			"2007 (8)",
			"2006 (2)",
			"2005 (5)",
			"2004 (4)",
			"2003 (1)",
			"Tutte");
			break;*/
		case "Media":
			var voci = new Array(
			"Deaf Forever",
			"Walk",
			"Up To the Limit",
			"Rebel Yell",
			"Wratchild");
			break;
	}
	for (I in voci) {
		text = text + "<input class='sottomenu' type='button' value='" + voci[I] + "' onclick="+v+"contenuto('" + voci[I] + "'); this.blur(); document.title='" + voci[I] + "'"+v+" onmouseover="+v+"this.style.backgroundColor='#FF0000'"+v+" onmouseout="+v+"this.style.backgroundColor=''"+v+"><br>";
	}
	scrivi(text,"sottomenu");
}

function contenuto(voce) {
	text = "";
	voce = voce.toLowerCase();
	////////////////////////////////////////////////
	//  CONTENUTO PER OGNI VOCE MENU O SOTTOMENU  //
	//  IFRAME() O TESTO IN HTML                  //
	////////////////////////////////////////////////
	switch (voce) {
		case "band":
			text = "<div align='left'>I <b>RECKLESS</b> nascono nel 2004, fondati da EA Demolition e Laura Destiny. Dopo svariati cambi di formazione tornano con un <a href="+v+"javascript:document.menu.repertorio.click();"+v+">repertorio</a> che spazia dai Metallica agli Accept, dagli Overkill ai Saxon, passando per Motorhead, W.A.S.P., Iron Maiden, Megadeth, e altro ancora! I nostri <a href="+v+"javascript:document.menu.live.click();"+v+">show</a>, tra luci intermittenti, fumogeni e ovviamente volumi immani vi riporteranno al sano metallo degli anni Ottanta!<br><b>HEAVY METAL NIGHT ... RECKLESS NIGHT!</b><br><br></div>" + boccali();
			break;
		case "bryan":
			text = persPage("band/bryan/bryan.jpg","BRYAN","Voce","&nbsp;");
			break;
		case "ea demolition":
				text = persPage("band/ea/main.gif","<embed src='band/ea/BMW_ea.mp3' width='0' height='0' hidden='true'>EA DEMOLITION","Chitarra<br>- Ibanez<br>- Jackson","...tante... TROPPE! (Tra cui TV Crimes)<br><br><br><br><br><br><br><br><br><table style='text-align:center;'><tr><td><img src='band/ea/393.jpg'></td><td><img src='band/ea/384.jpg'></td></tr><tr><td><img src='band/ea/383.jpg'></td><td><img src='band/ea/394.jpg'></td></tr></table>");
			break;
		case "fat":
			infl = "Ha cominciato a suonare nel lontano 1998 quasi per gioco con due amici appassionati dei mitici <b>Queen</b> che allora si rivelarono una vera sfida ad imparare a suonare alla svelta.<br>E così fù: il gruppo era già formato e la voglia c'era, ma la ricerca del cantante ideale portò il gruppo a sciogliersi dopo qualche anno per il diffondersi di diverse mentalità.<br>A quel tempo nel suo stereo giravano oltre ai Queen anche <b>Jaco Pastorius</b> e i <b>Dream Theater</b>.<br><br>Lasciatosi alle spalle con qualche rimpianto il primo gruppo della sua vita il <b>Fat</b> militò in vari gruppi di vario genere, dal Punk melodico (Spiteful) al Rock classico (ShowTime) frequentando sempre ed assiduamente la cara scuola di musica che tanto gli ha insegnato.<br>La scuola di musica e i vari gruppi lo aiutarono ad aprire la sua mentalità musicale che lo fossilizzava su un solo genere. Da allora ascolta qualsiasi cosa gli capiti a tiro per cercare di carpirne i segreti e tirar fuori qualche nuovo giro strano.<br><br>Nel 2003 durante un concerto incontrò un maledetto bassista (che si vedeva non essere il suo strumento...) che gli ha chiesto di usare l'ampli e che suonava maledettamente... TRASH! Dopo il concerto quell'elemento con i capelli lunghi, una birra e una sigaretta in mano, Ea, gli propose di suonare con lui in un gruppo Hard Rock/Metal; proposta che accettò dopo la prima prova "+v+"giusto per non farli provare senza bassista"+v+".<br>Oggi dopo " + (oggi.getFullYear()-2003) + " anni di svariati cambi di formazione (dove l'unico "+v+"originale"+v+" è solo <b>Ea</b>) ha trovato il suo gruppo dove suonare non è solo un dovere per i compagni, ma un piacere e un divertimento ad ogni occasione!<br><b>Grazie Reckless!</b><br><br>Attualmente sta suonando in un gruppo Blues, ma il vero blues che ormai è difficile trovare nei locali live."
			text = persPage("band/fat/main.gif","<embed src='media/Wratchild.mp3' width='0' height='0' hidden='true'>FAT","Basso<br> - Manne XLR basic 5 corde<br> - Fender Jazz Bass classic '60 sunburst<br> - Testata Trace Elliot 300 Watt<br> - cassa MarkBass Std 102HF 400 Watt",infl);
			break;
		case "lollo":
			text = persPage("band/lollo/main.jpg","<embed src='media/Up_To_the_Limit.mp3' width='0' height='0' hidden='true'>LOLLO","Batteria","...SCUUUUSAAA!");
			break;
		case "repertorio":
			text = "<table cellpadding='2' style='font-size:85%;'><tr>"
			for (I in canzoni) {
				part = canzoni[I].split(" | ");
				text = text + "<td><b>" + (part[sito]!="" ? "<a href='" + part[sito] + "' target='_blank'>" + part[gruppo] + "</a>" : part[gruppo]) + "</b></td><td>-</td><td>" + part[canzone] + "</td>";
				if ( I%2 == 1) { text = text + "</tr><tr>"; }
				else { text = text + "<td>&nbsp;&nbsp;&nbsp;</td>"; }
			}
			text = text + "</tr><tr><td colspan='7' align='right'>Tot: " + canzoni.length + "</td></tr></table>"

			text = text + "<table cellpadding='2' style='font-size:85%;'><tr><th colspan='7' style='background-color:#FF9900;'>IN PREPARAZIONE</th></tr><tr>"
			for (I in prep) {
				part = prep[I].split(" | ");
				text = text + "<td><b>" + part[gruppo] + "</b></td><td>-</td><td>" + part[canzone] + "</td>";
				if ( I%2 == 1) { text = text + "</tr><tr>"; }
				else { text = text + "<td>&nbsp;&nbsp;&nbsp;</td>"; }
			}
			text = text + "</tr></table>"
			break;
		case "live":
			text = gcal("90%",600,"MONTH");
			break;
		/*case "prossime":
			text = livelist("live");
			break;
		case "tutte":
			text = livelist("tutte");
			break;
		case "2010":
			text = livelist("2010");
			break;
		case "2009":
			text = livelist("2009");
			break;
		case "2008 (10)":
			text = livelist("2008");
			break;
		case "2007 (8)":
			text = livelist("2007");
			break;
		case "2006 (2)":
			text = livelist("2006");
			break;
		case "2005 (5)":
			text = livelist("2005");
			break;
		case "2004 (4)":
			text = livelist("2004");
			break;
		case "2003 (1)":
			text = livelist("2003");
			break;*/
		case "photos":
			text = riquadro(iframe("photos.asp"), "100%");
			break;
		/*case "media":
			text = "Deaf Forever<br>" + riquadro("<embed name='deaf' src='media/Deaf_Forever.mp3' mastersound loop='false' autostart='true' autorewind='false' width='200' height='30'>");
			break;
		case "deaf forever":
			text = "Deaf Forever<br>" + riquadro("<embed name='deaf' src='media/Deaf_Forever.mp3' mastersound loop='false' autostart='true' autorewind='false' width='200' height='30'>");
			break;
		case "walk":
			text = "Walk<br>" + riquadro("<embed name='walk' src='media/Walk.mp3' mastersound loop='false' autostart='true' autorewind='false' width='200' height='30'>");
			break;
		case "up to the limit":
			text = "Up To the Limit<br>" + riquadro("<embed name='upto' src='media/Up_To_the_Limit.mp3' mastersound loop='false' autostart='true' autorewind='false' width='200' height='30'>");
			break;
		case "rebel yell":
			text = "Rebel Yell<br>" + riquadro("<embed name='rebe' src='media/Rebel_Yell.mp3' mastersound loop='false' autostart='true' autorewind='false' width='200' height='30'>");
			break;
		case "wratchild":
			text = "Wratchild<br>" + riquadro("<embed name='wrat' src='media/Wratchild.mp3' mastersound loop='false' autostart='true' autorewind='false' width='200' height='30'>");
			break;*/
		case "contatti":
			text = "E-Mail: <a href='mailto:info@reckless-mania.org'>info@reckless-mania.org</a><br>Ea Demolition: 347 0554232<br>Fat: 349 0914532" + boccali();
			break;
		case "link":
			text = "<table width='80%' cellspacing='1' style='text-align:center;'><tr height='50'>"
			colonne0 = 4;
			for (I in links) {
				if ( I%colonne0 == 0 && I != 0 ) { text = text + "</tr><tr height='50'>"; }
				part = links[I].split(" | ");
				text = text + "<td width='" + 100/colonne0 + "%' onmouseover="+v+"this.style.backgroundColor='rgb(" + eval(I)* (255/links.length) + ",0,0)';"+v+" onmouseout="+v+"this.style.backgroundColor='rgb(" + (255-eval(I)* (255/links.length)) + ",0,0)';"+v+" onclick="+v+"window.open('" + part[1] + "');"+v+" style='cursor:pointer; border:1px solid black; background-color:rgb(" + (255-eval(I)* (255/links.length)) + ",0,0);'><b style='color:white; text-decoration:underline;'>" + part[0] + "</b>" + (part[2]!="" ? "<div style='font-size:75%; color:white;'>"+part[2]+"</div>" : "") + "</td>";
			}
			text = text + "</tr></table><br><table width='80%' cellspacing='1' style='text-align:center;'><tr height='50'>"
			colonne1 = 2;
			for (I in otherLinks) {
				if ( I%colonne1 == 0 && I != 0 ) { text = text + "</tr><tr height='50'>"; }
				part = otherLinks[I].split(" | ");
				text = text + "<td width='" + 100/colonne1 + "%' onmouseover="+v+"this.style.backgroundColor='rgb(" + eval(I)* (255/otherLinks.length) + ",0,0)';"+v+" onmouseout="+v+"this.style.backgroundColor='rgb(" + (255-eval(I)* (255/otherLinks.length)) + ",0,0)';"+v+" onclick="+v+"window.open('" + part[1] + "');"+v+" style='cursor:pointer; border:1px solid black; background-color:rgb(" + (255-eval(I)* (255/otherLinks.length)) + ",0,0);'><b style='color:white; text-decoration:underline;'>" + part[0] + "</b>" + (part[2]!="" ? "<div style='font-size:75%; color:white;'>"+part[2]+"</div>" : "") + "</td>";
			}
			text = text + "</tr></table>"
			break;
		case "guestbook":
			text = riquadro(iframe("http://pub20.bravenet.com/guestbook/1658001305"), "100%");
			break;
		case "myspace":
			text = riquadro(iframe("http://www.myspace.com/recklessitaly"), "100%");
			break;
		case "noclick":
			text = riquadro(iframe("http://www.btkwebsite.com/bravo.swf"), "100%");
			break;
		case "clock":
			text = "<div align='center'>" + riquadro("<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='586' height='240'><param name='movie' value='http://www.nardonardo.it/swf/orologio_di_carta.swf'><param name='quality' value='high'><embed src='http://www.nardonardo.it/swf/orologio_di_carta.swf' quality='high'  pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='586' height='240'></object>") + "</div>";
			break;
		case "home":
			text = "<table><tr><td><img src='images/headbanger.gif' width='100'></td><td align=center>Benvenuti nel sito dei RECKLESS!<br>Vi diamo un caloroso benvenuto con una birra da 100 litri (da bere in un sorso solo), schitarrate e mazzate nelle orecchie!!!<br>In questo spazio non si è autorizzati a dire "+v+"sei-troppo-alto-abbassa-quel-cazzo-di-ampli"+v+"...<br>Vi aspettiamo al nostro prossimo concerto e vi vogliamo <b>Head-Banger</b>!!!</td><td><img src='images/headbanger.gif' width='100'></td></tr></table><br><br>Prossime date:<br>" + gcal("90%",200,"AGENDA") + "<br>" + boccali();
			break;
		default:
			text = "";
			break;
	}
	scrivi(text, "contenuto");
}

function livelist(com) {
	text = "<table style='font-weight:bold;' cellpadding='4' cellspacing='0'><tr><td colspan='4' style='text-align:right; font-size:80%;'>Oggi è "+giorni[oggi.getDay()]+" "+oggi.getDate()+" "+mesi[oggi.getMonth()]+" "+oggi.getFullYear()+"</td></tr><tr><th colspan='2'>Data</th><th>Locale</th><th>Indirizzo</th></tr>";
	switch (com) {
		case "live":
			for (I in live) {
				part = live[live.length-1-I].split(" | ");
				var data = new Date(part[dataLive]);
				if ( data >= (oggi-86400000) ) {
					if ( (data-oggi) >= -86400000 && (data-oggi) <= 900000000 )
					{ text = text + "<tr style='background-color:#FFFF00;'>"; }
					else { text = text + "<tr>"; };
					text = text + rigaLive(data,part[locale],part[feat],part[via],part[citta],part[prov],part[note]);
				}
			}
			break;
		case "tutte":
			for (I in live) {
				part = live[I].split(" | ");
				var data = new Date(part[dataLive]);
				if ( data >= (oggi-86400000) ) {
					if ( (data-oggi) >= -86400000 && (data-oggi) <= 900000000 )
					{ text = text + "<tr style='background-color:#FFFF00;'>"; vicina = true; }
					else { text = text + "<tr>"; };
				}
				else { text = text + "<tr style='font-size:75%; color:#777777;'>"; };
				text = text + rigaLive(data,part[locale],part[feat],part[via],part[citta],part[prov],part[note]);
			}
			break;
		case "2009":
			for (I in live) {
				part = live[I].split(" | ");
				var data = new Date(part[dataLive]);
				if ( data.getFullYear() == 2009 && oggi >= data ) {
					text = text + "<tr style='font-size:75%; color:#777777;' onMouseOver="+'"'+"this.style.backgroundColor="+"'"+"black"+"'"+";"+'"'+" onMouseOut="+'"'+"this.style.backgroundColor="+"'"+""+"'"+";"+'"'+">" + rigaLive(data,part[locale],part[feat],part[via],part[citta],part[prov],part[note]);
				}
			}
			break;
		case "2008":
			text = liveAnno("2008");
			break;
		case "2007":
			text = liveAnno("2007");
			break;
		case "2006":
			text = liveAnno("2006");
			break;
		case "2005":
			text = liveAnno("2005");
			break;
		case "2004":
			text = liveAnno("2004");
			break;
		case "2003":
			text = liveAnno("2003");
			break;
	}
	text = text + "</table>";
	return text;
}

function rigaLive(giornoR,localeR,featR,viaR,cittaR,provR,noteR) {
	text = "<td>" + giorni[giornoR.getDay()] + "</td><td>" + giornoR.getDate() + " " + mesiabb[giornoR.getMonth()] + " " + giornoR.getFullYear() + "</td><td>" + localeR + (featR!="" ? "<br><small>feat. " + featR + "</small>": "") + "</td><td style='font-size:75%;'><a href='http://maps.google.com/maps?f=q&hl=it&q=" +  (cittaR=="" && provR=="" ? viaR : (viaR!="" ? viaR+"," : "") + cittaR + "," + provR ) + "&ie=UTF8&iwloc=addr&om=1' target='_blank'>" + (cittaR=="" && provR=="" ? viaR : (viaR!="" ? viaR+", " : "") + cittaR + " (" + provR + ")") + (noteR!="" ? "<br>"+noteR : "") + "</a></td></tr>";
	return text;
}

function liveAnno(anno) {
	for (I in live) {
		part = live[I].split(" | ");
		var data = new Date(part[dataLive]);
		if ( data.getFullYear() == anno ) {
			text = text + "<tr style='font-size:75%; color:#777777;' onMouseOver="+'"'+"this.style.backgroundColor="+"'"+"black"+"'"+";"+'"'+" onMouseOut="+'"'+"this.style.backgroundColor="+"'"+""+"'"+";"+'"'+">" + rigaLive(data,part[locale],part[feat],part[via],part[citta],part[prov],part[note]);
		}
	}
	return text;
}

function scriviAvviso() {
	for (I in live) {
		part = live[live.length-1-I].split(" | ");
		var data = new Date(part[dataLive]);
		if (data == oggi) { stasera = "STASERA!!!<br>"; } else { stasera = ""; }
		if ( data >= (oggi-86400000) && I>=live.length-10 ) {;
			if ( (data-oggi) >= -86400000 && (data-oggi) <= 900000000 ) {stile = " style='background-color:yellow;'";} else {stile = "";};
			text = text + "<tr" + stile + "><td>" + stasera + giorni[data.getDay()] + " " + data.getDate() + " " + mesi[data.getMonth()] + " " + data.getFullYear() + "</td><td>" + part[locale] + (part[feat]!="" ? "<br><small>feat. " + part[feat] + "</small>": "") + "</td><td><a href='http://maps.google.com/maps?f=q&hl=it&q=" + part[via] + (part[citta]!="" ? ", " + part[citta] + ", " + part[prov] : "") + "&ie=UTF8&iwloc=addr&om=1' target='_blank'>" + part[via] + ' ' + part[citta] + (part[prov]!="" ? " (" + part[prov] + ")" : "") + (part[note]!="" ? "<br><span style='font-size:70%'>" + part[note] + "</span>" : "") + "</a></td></tr>";
		}
	}
	if (text != "") { text = "<br><br>Prossime date:<table cellpadding='5' cellspacing='0' style='font-weight:bold;'>" + text + "</table><a href="+v+"javascript:document.menu.live.click();"+v+">Vai nella sezione "+v+"Live"+v+" per le nostre altre date.</a>"; }
	return text;
}

function scrivi(text,id) {
	if (document.getElementById) {
		x = document.getElementById(id);
		x.innerHTML = "";
		x.innerHTML = x.innerHTML + text;
	}
	else if (document.all) {
		x = document.all[id];
		x.innerHTML = "";
		x.innerHTML = x.innerHTML + text;
	}
	else if (document.layers) {
		x = document.layers[id];
		x.document.open();
		x.document.write(text);
		x.document.close();
	}
}

function deselect() {
	for (i in document.menu.elements) {
	var formElement = document.menu.elements[i];
		if (true) {
			formElement.id = '';
		}
	}
}

function iframe(pagina,larg,alt) {
	text = "<iframe src='" + pagina + "' width='" + (isNaN(eval(larg))==false ? larg : "100%") + "' height='" + (isNaN(eval(alt))==false ? alt : "600") + "' frameborder='0' name='reckIframe'></iframe><noframes>Il tuo browser non supporta i Frame, clicca sul seguente link per andare alla pagina:<br><a href='" + pagina + "' target='_blank'>" + pagina + "</a></noframes>" + (pagina.split(":")[0]=="http" ? "<div align='right' style='background-color:black; font-size:75%;'><a style='color:#8f0000;' href='" + pagina + "' target='_self'>Rimuovi riquadro >></a></div>" : "");
	return text;
}

function riquadro(interno,larg) {
	text = "<table" + (larg!="" ? " width='" + larg + "'" : "") + " border='0' cellspacing='0' cellpadding='0'><tr><td width='10'><img src='images/int-up-sx.png'></td><td background='images/int-up.png'></td><td width='10'><img src='images/int-up-dx.png'></td></tr><tr><td background='images/int-sx.png'></td><td>" + interno + "</td><td background='images/int-dx.png'></td></tr><tr><td><img src='images/int-bot-sx.png'></td><td background='images/int-bot.png'></td><td><img src='images/int-bot-dx.png'></td></tr></table>";
	return text;
}

function persPage(immagine,nome,strumento,influenze) {
	text = "<p align='justify'><img src='" + immagine + "' height='300' align='left' hspace='10'><i>Nome</i>:<br><b>" + nome + "</b><br><br><i>Strumento</i>:<br><b>" + strumento + "</b><br><br><i>Influenze</i>:<br>" + influenze + "</p>";
	return text;
}

function boccali() {
	var boccali = "<br><br><br>";
	for (I=1; I<=9; I++) {
		var n = Math.round(19*Math.random());
		if (n==0) { n=1 };
		boccali = boccali + "<img src='images/boccale"+n+".png'>";
	}
	return boccali;
}

function slideImg(u,aid) {
	//u=195325269
	//aid=1423168
	return text = "<object type='application/x-shockwave-flash' allowScriptAccess='never' allowNetworking='all' height='230' width='445' data='http://lads.myspace.com/slides/photoslider.swf?u=" + u + "&aid=" + aid + "'> <param name='allowScriptAccess' value='never' /><param name='allowNetworking' value='all' /><param name='movie' value='http://lads.myspace.com/slides/photoslider.swf?u=" + u + "&aid=" + aid + "' /><param name='flashvars' value='culture=en-US' /><param name='wmode' value='transparent' /></object>"
}

function rdmImg() {
	return text = "";
	/*"<object id='apppanel_104453_profileleft' allowScriptAccess='never' allowNetworking='all' type='application/x-shockwave-flash' height='225' width='300' data='http://cache01-widget01.myspacecdn.com/1/l_cd3cbd8eb0c60b9750453b34c7a8c38c.swf'><param name='movie' value='http://cache01-widget01.myspacecdn.com/1/l_cd3cbd8eb0c60b9750453b34c7a8c38c.swf'/><param name='FlashVars' value='opensocial_token=jXg1WeL%2fgbMq6m0SenFiWmacGgAV89OH3NgArNRB%2bKjzCxaEjoHkPlQfP%2fh3lt0G%2fD%2ba%2bpbskKEjS2ALC%2fG4IATKYgdFc4UsYpIz6TIXfHk%3d&opensocial_surface=profile.left'/><param name='quality' value='high'/><param name='wmode' value='transparent'/></object>";*/
}

function elencoLive() {
	for (I in live) {
		var oggi = new Date();
		var part = live[live.length-1-I].split(" | ");
		var data = new Date(part[dataLive]);
		if (data > oggi) {
			document.write("<option value='" + part[dataLive] + "|" + part[locale] + "|" + part[via] + "|" + part[citta] + "|" + part[prov] + "|" + part[feat] + "|" + part[note] + "'>" + part[locale] + " - " + part[dataLive] + "</option>");
		}
	}
}

function scriviLive(comando) {
	if (comando != "") {
		var part = comando.split("|");
		///////////////////////////////////////////////////////////////////////////////////////////////
		//     1             2             3           4            5             6             7    //
		//  [data] " | " [locale] " | " [feat] " | " [via] " | " [città] " | " [prov.] " | " [note]  //
		///////////////////////////////////////////////////////////////////////////////////////////////
		var live = new Date(part[dataLive]);
		document.locandina.giorno.value = live.getDate();
		document.locandina.mese.selectedIndex = live.getMonth();
		document.locandina.anno.value = live.getFullYear();
		document.locandina.locale.value = part[locale];
		document.locandina.feat.value = part[feat];
		document.locandina.indirizzo.value = part[via] + ", " + part[citta] + " (" + part[prov] + ")";
		document.locandina.note.value = part[note];
	};
}

function gcal(larg,alt,mode) {
	return text = "<div align=center><iframe src='http://www.google.com/calendar/embed?showTitle=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=" + mode + "&amp;height=" + alt + "&amp;wkst=2&amp;bgcolor=%23990000&amp;src=info%40reckless-mania.org&amp;color=%8F0000&amp;ctz=Europe%2FRome' style='border:solid 1px #8F0000' width='" + larg + "' height='" + alt + "' frameborder='0' scrolling='no'></iframe><br><a href='http://www.google.com/calendar/feeds/info%40reckless-mania.org/public/basic' target='_blank' title='RSS Reckless'><img border='0' src='images/rss.gif' width='40'>&nbsp;Resta aggiornato sulle nostre date!&nbsp;<img border='0' src='images/rss.gif' width='40'></a></div>"
}