// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function setCookie (name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires : "") +
		(path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : "");
	document.cookie = curCookie;
}

function getCookie (name) {
	var prefix = name + '=';
	var c = document.cookie;
	var nullstring = '';
	var cookieStartIndex = c.indexOf(prefix);
	if (cookieStartIndex == -1)
		return nullstring;
	var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
	if (cookieEndIndex == -1)
		cookieEndIndex = c.length;
	return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie (name, path, domain) {
	if (getCookie(name))
		document.cookie = name + "=" + ((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

function fixDate (date) {
	var base = new Date(0);
	var skew = base.getTime();
	if (skew > 0)
		date.setTime(date.getTime() - skew);
}

function rememberMe (f) {
	var now = new Date();
	fixDate(now);
	now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
	now = now.toGMTString();
	if (f.author != undefined)
		setCookie('mtcmtauth', f.author.value, now, '/', '', '');
	if (f.email != undefined)
		setCookie('mtcmtmail', f.email.value, now, '/', '', '');
	if (f.url != undefined)
		setCookie('mtcmthome', f.url.value, now, '/', '', '');
}

function forgetMe (f) {
	deleteCookie('mtcmtmail', '/', '');
	deleteCookie('mtcmthome', '/', '');
	deleteCookie('mtcmtauth', '/', '');
	f.email.value = '';
	f.author.value = '';
	f.url.value = '';
}

function hideDocumentElement(id) {
	var el = document.getElementById(id);
	if (el) el.style.display = 'none';
}

function showDocumentElement(id) {
	var el = document.getElementById(id);
	if (el) el.style.display = 'block';
}

var commenter_name;

function individualArchivesOnLoad(commenter_name) {




	if (document.comments_form) {
		if (document.comments_form.email != undefined &&
			(mtcmtmail = getCookie("mtcmtmail")))
			document.comments_form.email.value = mtcmtmail;
		if (document.comments_form.author != undefined &&
			(mtcmtauth = getCookie("mtcmtauth")))
			document.comments_form.author.value = mtcmtauth;
		if (document.comments_form.url != undefined && 
			(mtcmthome = getCookie("mtcmthome")))
			document.comments_form.url.value = mtcmthome;
		if (mtcmtauth || mtcmthome) {
			document.comments_form.bakecookie.checked = true;
		} else {
			document.comments_form.bakecookie.checked = false;
		}
	}
}

function writeTypeKeyGreeting(commenter_name, entry_id) {

}



/* Blogosfere */

/* Begin TagList */
var TAGS_DATA = "2007|1,2008|1,2Pac|11,3menti3mende|1,40 Glocc|1,50 Cent|22,615|1,7 Respiri|2,8 Diagrams|2,808s And Heartbreak|1,88-Keys|1,?uestlove|1,A.G.|1,abbigliamento|2,Abruzzo|1,ACID|2,Acidplanet|2,Adige|1,Adrenalins Boys|1,Adrock|1,Aelle|1,Aerosmith|1,aerosol art|1,Afeni Shakur|4,Afro Samurai|2,Aftermath Records|4,Ahmet Ertegun|1,Ain\'t No Fun|1,Akai|2,Akon|7,Alan Baverman|1,Alessio Beltrami|1,Alicia Keys|4,All \'N My Grill|1,allhiphop.com|5,Alto|1,American Gangster|8,amici|1,Amir|1,Amnesty International|1,Amy Winehouse|1,Angelus|1,anime|2,annunci gratuiti|2,Antibiotico Trash|8,Aosta|1,aprile|1,Area Di Contagio|2,armi|8,arresto|7,Artful Dodger|1,Articolo 31|1,Asher Roth|1,Aspettando Il Sole|1,Assalti Frontali|2,Atlanta|6,Atlantic Records|1,auguri|3,Australia|1,autografi|1,AZ|1,B-Boy Event|1,B-Real|3,B.G.|1,Babaman|1,Baby Bash|1,Bad Boy|1,Badum Cha Cha|1,Ban Ki-moon|1,Barack Obama|1,Barricadero|1,Barry White|1,Basnick Fedo|1,Bassi Maestro|2,Beanie Sigel|1,Beastie Boys|1,beatbox|3,beatmakers|5,beats|1,Beats|4,Beef|1,Beef or Chicken|1,Before Curtis|1,Before I Self Distruct|2,Beppe Grillo|1,Bergamo|2,BET Hip Hop Awards|1,Beyoncé|1,Bgsteam|5,Big Daddy Kane|2,Big Pun|1,Bill Clinton|1,Billboard|9,Bishop Lamont|1,Black Eyed Peas|4,Black History month|1,Black Republican|1,Black Thought|1,Blender|1,blog|2,bloggers|1,Blogosfere|7,blogosfere|1,Bobby Digital|1,Bologna|1,Bone Thugs N Harmony|3,Bonnot|1,Boot Camp Click|1,Bow Wow|2,Boys II Man|1,Bra|1,Breakdance|2,Breakout 2|1,Britney Spears|1,Brother Ali|1,Bs\'s Team|1,Buck The World|1,Buckwild|1,Bugiardo|3,Bun B|1,Bush|1,Busta Rhymes|10,campionatore|1,campioni|3,Campioni Hip Hop|1,Caparezza|1,Capodanno|1,Capone|2,Capone-N-Noreaga|2,carcere|1,Cartoni Animati|1,cauzione|1,Celebrate|1,Censimento Hip Hop Italiano Su Myspace|2,censura|1,Central Park|1,Cepu|1,Chad Hugo|1,Chamillionaire|3,Champagne|1,Charlie Wilson|1,Charts|1,Chief e Soci|1,Chris Brown|3,Chris Milk|1,Chris Rock|1,Christmas In Hollis|1,Cina|1,Ciroc Vodka|1,City Lights|1,Classifiche|3,Clementino|1,Clifford Harris|1,Club Dogo|6,Clubbin\'|1,cocaina|1,Cold Summer|1,Colle Der Fomento|1,Columbia|1,Commento|1,Common|4,Compilation|10,Compleanno|3,comunicazione|1,concerti|3,Concerti|2,Concerto|1,concerto|1,Concorso|5,conscious rap|1,Contest|3,Controbelini|1,Cookin\' Soul|1,Coolio|2,Corveleno|1,crack|2,Crack a Bottle|1,Cristal|1,Crystal|1,CSI|1,CurryT|1,Cyndi Lauper|1,Cypress Hill|6,D.O.A.|1,D.O.E.|2,D12|1,Da Brat|1,Dabomb|1,Dabomb 2006|1,Daft Punk|2,Daily Mirror|1,Damian \"Junior Gong\" Marley|1,Damon Dash|2,Danielle Lloyd|1,Danno|1,David Banner|1,David Brown Clothing|1,Daz Dillinger|2,Deadlee|1,Death Of Autotune|1,Death Row Records|4,Deepemilia|4,Def Jam|8,Del The Funky Homosapien|1,Denzel Washington|1,Design|1,Detox|2,Detroit|1,Diageo|1,Diamond D|1,Diddy|3,Digital Underground|1,Diplomats|1,Dipset|1,Dirty South|1,dischi|3,Dissing|2,Disturbing Tha Peace|1,DITC|1,Dj Championship|1,Dj Drama|1,Dj Enzo|2,Dj Green Lantern|1,Dj Gruff|1,Dj Khaled|2,Dj Kool|1,Dj Maybez|1,Dj Muggs|2,Dj Oscar|1,Dj Premier|1,Dj Rasm|1,Dj Shadow|1,Dj Shocca|1,Dj Skizo|1,Dj Toomp|1,Dj Tsura|1,Dj Webster|1,Dj Whoo Kid|1,DMC|3,DMX|5,Doctor\'s Advocate|1,Dogo Gang|4,Dogocrazia|4,Donda West|1,Dose 26|1,Doug E Fresh|2,Dr. Dre|18,droga|3,Dru Hill|1,EA Sports|1,Eartha Kitt|1,Eazy-E|2,eBay|1,Ed Lover|1,Ego Trippin|3,elezioni|1,Elton John|1,EMI|2,Eminem|12,Enmicasa|3,Ensi|2,EPMD|2,Eretici|8,Eretico Antibiotico Mixtape|1,Eric Bobo|2,Esa|4,Evel Knievel|2,Evelyn \"Champagne\" King|1,Eventi|1,Extrabeat|1,Fab 5 Freddy|1,Fabri Fibra|9,Fabrizio Corona|1,Fabulous|4,Facebook|5,faida|1,Fall Out Boy|1,Fat Joe|2,FBI|1,FELONi|1,Fergie|4,Festa della Donna|1,figa|1,Fight The Power|1,Film|7,Five Shots|1,Flashing Lights|1,Flavor Flav|1,Focus|1,Forever Kings|1,Fotografie|1,Fox Search Light|1,Foxy Brown|2,Frank Lucas|1,Frank Siciliano|1,free download|4,Freestyle|3,Freeway|1,Friends|1,Fugees|2,Full Metal Jacket|1,Furious Five|1,G-Unit|8,G-Unit. 50 Cent|1,Gail Gotti|1,Gangsta Rap|2,Gap|1,Genova|2,George W. Bush|1,Georgia|1,Gerard Levert|2,Get Involved|1,Ghemon Scienz|1,Ghostface Killa|1,Ghostface Killah|5,Giappone|1,Gigaflow|1,Gigi D\'Agostino|3,Ginuwine|1,Giornalismo|1,Gli Originali|1,GM|1,Gnarls Barkley|1,Go Hard|1,Good Life|1,Google|2,Gopher|1,GQ|1,Graduation|1,Grafica|1,Grand Master Roc Raida|1,Grandmaster Flash|3,Green City|1,Greg Nice|1,Groove|1,Growing Pains|1,Guaio|1,Habbo|1,Haiti|2,Hakeem Jeffries|1,Hano|7,Hate Me Now|1,Havoc|1,Heineken|1,Hello Brooklyn 2.0|1,Heltah Skeltah|1,High Tech|1,Hip Hop|2,Hip Hop Italiano|6,Hip Hop Motel|1,Hip Hop Reaction|1,Hip Hop Samples|1,Hip Hop Selection|21,Hip Hop Toplist|1,Hip Hop Tv|1,Hostess|1,Hot Dollar|1,Hype Williams|1,Hyst|1,I Wanna Love You|1,Ice Cube|3,Iconix|1,ictus|1,IDA|1,Il Magico Mondo Dello Spettacolo|1,Il Sole 24 Ore|1,Illmatic|2,Infamous Mobb|2,Inoki|2,Insane In The Brain|1,Insomnia Productions|1,Intermission|1,intervista|1,Inviti|2,iPhone|1,Iran|1,Irene La Medica|1,Irv Gotti|1,Island Records|2,isolamento|1,It Ain\'t Hard To Tell|1,It\'s Nasty|1,Italianghetto.com|1,ITF|1,iTunes|1,J Dilla|1,J Period|1,Ja Rule|1,Jack The Smoker|1,Jadakiss|2,Jahda|1,Jaheim|1,Jake One|1,Jam Master Jay|2,James Brown|1,Jamie Roberts|1,Jasmine|1,Jay-Z|23,Jermaine Dupri|1,Jermaine Duprì|3,Jim Jones|5,Jizz in My Pants|1,Joe|1,Joe Budden|1,Joe Cassano|3,Joell Ortiz|1,Johnny J|1,Joker|1,Joost|2,Jus-T|1,Justin Timberlake|3,Kalief|1,Kanye West|28,Kaos|1,Karaoke|1,kARMA|1,Kaso|1,Keith Murray|1,Keri Hilson|2,Kev Brown|1,Kevin Hackie|1,Keyshia Cole|1,Kiave|2,Kid Capri|1,Kid Frost|1,King Of The Ring|2,Kingdom Come|1,Kooia|1,Kooià|1,Kriss Kross|2,Krs One|3,Kurtis Blow|1,Kurupt|3,L\'Uomo Vogue|1,L.A.X.|1,La Bestia|1,La Discarica|1,La Famiglia|1,La Rivincita Dei Nerds|1,Lady Gaga|1,Lady Sovereign|1,Last.fm|5,Laure Manaudou|3,Lauryn Hill|1,Le Invasioni Barbariche|1,legge levi prodi|1,Les Nubians|1,Leva57|1,Liberamente|1,Liberation|1,Libri|2,Life After Death|1,Liguria|1,Lil Jon|2,Lil Love|1,Lil Wayne|5,Lil\' Bow Wow|1,Lil\' Ghetto Boy|1,Lil\'Kim|3,Link|1,Live|1,Live 2 Tell|1,Live Earth|1,LL Cool J|3,Lloyd Banks|2,Lloyd Banks e Young Buck|1,Lo Schifo|2,Lo Zoo di 105|1,Lock U Down|1,Logistep|3,loops|2,Lord Finesse|1,Love Lockdown|1,LSG|1,Ludacris|4,Luniz|2,Lupe Fiasco|2,Mac|1,Madlib|2,Madman|1,Madonna|1,Magic Stick|1,Major|1,Malice N Wonderland|2,Manifestazione|1,Manipurap|2,Maria Maria|1,Mariah Carey|5,marijuana|4,Mark Ronson|1,Marketing|1,Marquees Houston|1,Marracash|2,Martin Luther King|1,Mary J. Blige|2,marzo 2009|1,Mase|1,Mash-Up|1,Massakrasta|1,Masta Killa|1,Mastafive|1,Master P|1,Matt Manent|1,Mattew Santos|1,Max B.|1,Maxi B|1,MC Lyte|1,MC Solaar|1,MCA|1,Mec de Tess|1,Media|1,Method Man|4,MF DOOM|1,Michael Jackson|4,Michael Vick|1,Migliori Colori|1,Mike Jones|1,Miketrevis|1,Milano|1,Mirkomiro|1,Miss Simpatia|1,Missy Elliott|2,Mistaman|1,Mixtape|5,mixtape|5,Mobb Deep|3,moda|1,Modernbeats|1,Mohammad Dashtgoli|1,Mondo Marcio|1,Money Maker|1,Monique Idlett|1,Mos Def|2,Mosey|1,Mp3|1,mp3 gratis|4,Mr. Lif|1,MTV|6,Multi Culti|1,Musica|1,musica|1,Mya|1,Myspace|9,myspace|2,N.W.A.|1,Nappy Roots|1,Narcosi|1,Nas|19,natale|3,Natale|3,Nate Dogg|3,Nature Sounds|1,Naughty By Nature|1,NBA|1,NBA Live 2010|1,Ne-Yo|1,Ne-Yo e Lil Wayne|1,Neffa|1,Nelly Furtado|1,Neptunes|1,Nerdate|1,Nesli|4,New Line Cinema|1,New York Daily News|1,New York Post|1,News|1,Nicolas Sarkozy|1,Nicole|1,Nigger|5,Niko & Page|1,Nivea|1,No One|1,Nokia|1,Noreaga|2,North Carolina|1,Notorious|2,Notorious B.I.G.|7,Noyz Narcos|1,NWA|2,NY\'s Finest|1,O.C.|1,Oasis|1,ODK|1,Oh No|2,Ol\' Dirty Bastard|1,Old School|3,One Mic|2,One Nation|1,OneRepublic|1,Outlawz|3,Ovunque Tu Sia|1,P. Diddy|1,P.Diddy|4,P2P|4,p2p|1,Pac\'s Life|2,Padre P-Yo|1,Palermo|2,Pandora|2,Paparazzi|1,Papoose|1,Paris Hilton|1,Parma|1,Parodia|3,Passi Nel Deserto|1,Pastor Troy|1,Patty Page|1,Pc|1,peer 2 peer|1,Peppermint Jam|5,Peppermint Records|3,personale|1,Pesto Party|2,Pete Rock|2,Petizione|1,Pharaohe Monch|1,Pharrell Williams|4,Phase2|1,Philadelphia Enquirer|1,Phone Tap|1,Photoshop|1,Phrome|1,Pierre Sarkozy|1,Pila|1,Pimp My Ride|1,Piotta|2,pippare|1,Pirla|1,Pitbull|1,Playa Hata|1,playlist|2,Playstation 2|1,Podcast|3,Poison|1,porno|1,Porro Inc.|1,Pras|1,Press Play|1,preview|1,prigione|1,Priority Records|1,Privacy|1,problemi tecnici|1,processo|1,Prodigy|1,producers|1,Producers|1,Produzioni Oblio|2,Proof|1,prossime uscite|1,Public Enemy|2,Puff Daddy|1,Pula +|3,Puma|1,PYT (Pretty Young Thing)|1,Q-Tip|2,QD3 Entertainment|1,Questo è il nuovo singolo|1,Quickmix|1,Quiet Storm|1,Quincy Jones III|1,R Kelly|1,Radio Online|3,Raekwon|4,Rahzel|1,Raige|2,Raphael Saadiq|1,rarità|1,Ravana!!|1,razzismo|1,RDS|1,Ready To Die|1,Reality Rap|2,reality show|1,recensioni|1,Redman|5,regali|1,Relapse|7,Release Therapy|1,remix contest|2,Rhymefest|1,Rick Ross|1,ridicolo|1,Ridley Scott|1,Rido|1,Rihanna|4,Rik Cordero|1,Rikers Island|1,rilascio|1,Roberto Croci|1,Roc Raida|1,Roc-A-Fella Records|1,Rocawear|1,Rock|1,Rock Steady Crew|2,Rock The Bells|1,Roggy Luciano|1,Rolling Stone|1,Roma|1,Roots|2,Royce Da 5\' 9\"|1,Run|1,Run DMC|4,Russell Simmons|3,RZA|4,S. Gio Square|1,Sabrina|1,Sam Scarfo|1,SampleMyMelodyz|1,samples|3,Samples|6,Samuel L Jackson|1,San Valentino|1,Sangue Misto|1,Sanremo 2007|5,Scarface|2,schizofrenia|1,Scion LLC|1,Scott Langston|1,Scott Storch|1,Scritti Politti|1,Seal|1,Sean \"Diddy\" Combs|3,Sean Carter|1,Sean Combs Enterprise|1,Sebastian|1,SeeqPod|1,Sen Dog|1,Sensual Seduction|1,Senti Come Suona|1,sesso|1,sesso orale|1,sex tape|1,Sgrilla|1,Shaggy|1,Shangai|1,Shoot To Kill|1,Showbiz|1,SIAE|1,Simpsons|1,Sisqo|1,Sister2Sister|1,Skaz|1,Slick Rick|1,Smau 2006|3,SMAU 2007|1,Smif N\' Wessun|1,Smile|1,Snoop|1,Snoop Dogg|27,social music|1,social networking|2,Sol Messiah|1,Sondaggio|1,Sony|2,Sottotono|2,Soul Assassins|1,Soul Survivor Records|1,Soulja Boy Tell\'em|3,Soulsista|1,Spike Lee|1,Star Trak Entertaiment|1,statua|1,Stay Up! (Viagra)|1,Stokka & Mad buddy|1,Stop The Violence|1,Stragi del sabato sera|1,Straight Outta Compton|2,Streetattitudes|1,Streetbeat|1,Streets Of Imperia|1,Stretch|1,Striscia La Notizia|1,Strong Arm Steady|1,Styles P|1,Suburban Noize Records|1,Success|2,Sudafrica|1,Sugarhill Gang|1,Suge Knight|3,Sun God|1,Supernatural|1,Superstar|1,Swizz Beatz|1,T-Pain|6,T.I.|16,Talib Kweli|2,TASF|1,Tawny Cypress|1,Tech N9ne|1,TechCrunch|1,Tecniche Perfette|1,Telecom|2,telefilm|1,Tempoxso|1,Teriyaki Boys|1,terremoto|1,tette|2,Tha Dogg Pound|3,Thank You And You\'re Welcome|1,Thats Tha Homie|1,The Big Dough Rehab|2,The Blue Carpet Treatment|2,The Blueprint 3|1,The Breaks|1,The Chronic|1,The Ecstatic|1,The Format|1,The Game|9,The Grouch & Eligh|1,The Hot Boys|1,The Kings Of Rap|1,The Lonely Island\'s|1,The LOX|1,The Man|1,The Rap Up|1,The Re-Education Of Lauryn Hill|1,The Sound Of Revenge|1,The Swine Flu|1,The True Man Show|1,The Way I Are|1,The-Dream|1,Thong Song|1,Thr33 Ringz|1,Thriller|1,Throw This Money|1,Timbaland|8,Tomica Wright|1,Tony Yayo|4,Tonyloco|5,Tora-Ki|2,Torino|2,Torre Di Controllo|1,Touch The Sky|1,Tp Factory|1,Trailer|2,Trick Daddy|1,Trio Medusa|1,Troppo Avanti|1,Truceklan|1,Tua Maaadre|1,Tuer|1,tumore|1,Tupac|5,Tupac Amaru Shakur Center for the Arts|1,Tupac Amaru Shakur Foundation|1,Turi|1,Twista e Yolanda Adams|1,Twitter|2,Ultimate Victory|1,Ultimo Capitolo|1,Underground Railroad|1,Universal|6,Up And Smoke Tour|1,upcoming|2,upskirt|1,USDA|1,Usher|1,V-Day|1,Vacca|2,Valerio Staffelli|1,Vanilla Ice|1,vh1 Soul|1,VIBE|6,Video|3,video hard|3,videogiochi|2,Videopazzeschi|1,violenza|1,viral marketing|1,Vixen|1,Vocalamity|1,Vuoti A Perdere|2,Walk This Way|1,War Angel|1,Warren G|4,Wastasi|1,We Made You|1,We Roll|1,We Want Eazy|1,web 2.0|1,Web Tv|1,Weird Al Yankovic|1,White City Party|1,Who Shot Ya|1,Whodini|1,Will.I.Am|2,Willy Valanga|1,Writing|1,Wu-Tang Clan|7,Wyclef|1,Wyclef Jean|2,X-Ecutioners|1,Xbox 360|1,XL|1,XXL|1,Xzibit|4,Young Buck|3,Young Buck: Product Of The South|1,Young Geezy|1,YoungBloodz|1,youporn|1,Youtube|3,Zagabria|1,Zatarra|1,Zero Plastica|3,Zonta|2,Zuli Mc|1,Zulu Nation|2,Zulu Queen|1".split(',');
for (var i=0; i<TAGS_DATA.length; i++) TAGS_DATA[i] = TAGS_DATA[i].split('|');

function min(a, b) {
	return a < b ? a : b;
}

function fill_taglist(limit_par, sort_by) {
	if (!document.getElementById) return;
	
	var list = document.getElementById('taglist');
	list.innerHTML = '';
	
	var TAG_NUMBER = TAGS_DATA.length;
	
	if ((TAG_NUMBER == 0) || ((TAG_NUMBER == 1) && (TAGS_DATA[0] == ''))) {
		document.getElementById('tagheader').style.display = 'None';
		return;
	}
	
	if (sort_by == 'alpha') {
		var sort_func = function (a, b) {
			return (a[0].toLowerCase() < b[0].toLowerCase()) ? -1 : 1;
		}
	} else if (sort_by == 'post') {
		var sort_func = function (a, b) {
			var compared = b[1] - a[1];

			if (compared)
				return compared;
			else
				return (a[0].toLowerCase() < b[0].toLowerCase()) ? -1 : 1;
		}
	} else {
		alert('Wrong sort_by value');
		return;
	}

	TAGS_DATA.sort(sort_func);
	
	var limit = (limit_par <= 0) ? TAG_NUMBER : min(limit_par, TAG_NUMBER);
	
	for(var i=0; i<limit; i++) {
		var curData = TAGS_DATA[i];
		
		var newLink = document.createElement('a');
		newLink.appendChild(document.createTextNode(curData[0] + ' (' + curData[1] + ')'));
		newLink.setAttribute('href', '/tag/' + curData[0]);
		
		var newNode = document.createElement('li');
		newNode.appendChild(newLink);
		list.appendChild(newNode);
	}
	
	if (TAG_NUMBER>1) {
		var newNode = document.createElement('li');
		var alpha_link = (sort_by=='alpha') ? '<strong><u><span title="Ordina alfabeticamente">A-Z</span></u></strong>' : '<a title="Ordina alfabeticamente" href="javascript:fill_taglist(' + limit_par + ', \'alpha\');">A-Z</a>';
		var post_link = (sort_by=='post') ? '<strong><u><span title="Ordina per numero di post"># post</span></u></strong>' : '<a title="Ordina per numero di post" href="javascript:fill_taglist(' + limit_par + ', \'post\');"># post</a>';
		
		newNode.innerHTML = '<br /><em>Ordina:</em> ' + alpha_link + ' | ' + post_link;
		list.appendChild(newNode);
	}
	
	if (limit<TAG_NUMBER) {
		var newLink = document.createElement('a');
		var newStrong = document.createElement('em');
		newStrong.appendChild(document.createTextNode('Altri tag >'));
		
		newLink.appendChild(newStrong);
		newLink.setAttribute('href', '#tagheader');
		newLink.onclick = function () {fill_taglist(0, sort_by);};
		
		var newNode = document.createElement('li');
		newNode.appendChild(newLink);
		list.appendChild(newNode);
	} else if (limit==TAG_NUMBER && TAG_NUMBER>limit_par) {
		var newLink = document.createElement('a');
		var newStrong = document.createElement('em');
		newStrong.appendChild(document.createTextNode('< Nascondi tag'));
		
		newLink.appendChild(newStrong);
		newLink.setAttribute('href', '#tagheader');
		newLink.onclick = function () {fill_taglist(15, sort_by);};
		
		var newNode = document.createElement('li');
		newNode.appendChild(newLink);
		list.appendChild(newNode);
	}
}
/* End TagList */

function final_js() {
	make_popup_images();
}

/* AD functions */
var ADS_468X60_COUNT = 0;
var ADS_STYLE_WRITTEN = false;

function write_ads_style() {
	if (ADS_STYLE_WRITTEN) return;

	var gads_color = getADSColor();

	document.write('<style type="text/css">' +
		'div.ads_google a:link .url-hover, div.ads_google a.url-hover:link {' +
			'color: #' + gads_color + ';' +
		'}' +
		'div.ads_google a:hover .url-hover, div.ads_google a.url-hover:hover {' +
			'background-color: #' + gads_color + '; color: #ffffff;' +
		'}' +
		'</style>');

	ADS_STYLE_WRITTEN = true;
}

function write_ads(size, container_class) {
	write_ads_style();

	var ads_code = '';

	google_ad_client = 'ca-pub-9957643622061223'; // substitute your client_id (pub-#)
	google_ad_output = 'js';
	google_feedback = 'on';
//	google_ad_channel = BLOG_AD_CHANNELS[domain_name()];
//	g_chann = google_ad_channel;
	g_chann = '';
	
	if (size == '468x60') {
		ADS_468X60_COUNT++;
		
		if (ADS_468X60_COUNT > 2) return;
		
		ads_code += '<scr' + 'ipt type="text/javascript">\n';

		ads_code += 'google_max_num_ads = "2";\n';
		ads_code += 'last_adsense_format = google_image_size = "468x60";\n';
		ads_code += 'google_ad_type = "text_html";\n';

		ads_code += '</scr' + 'ipt>\n<scr' + 'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr' + 'ipt>';
	} else if (size == '300x250') {
		ads_code += '<scr' + 'ipt type="text/javascript">\n';

		ads_code += 'google_max_num_ads = "3";\n';
		ads_code += 'last_adsense_format = google_image_size = "300x250";\n';
		ads_code += 'google_ad_type = "text_html";\n';

		ads_code += '</scr' + 'ipt>\n<scr' + 'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr' + 'ipt>';
	} else if (size == '120x90') {
		ads_code += '<scr' + 'ipt type="text/javascript">\n';

		ads_code += 'google_max_num_ads = "1";\n';
		ads_code += 'last_adsense_format = google_image_size = "120x90";\n';
		ads_code += 'google_ad_type = "text_html";\n';

		ads_code += '</scr' + 'ipt>\n<scr' + 'ipt type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr' + 'ipt>';
	}
	
	if (typeof(container_class) == 'undefined') container_class = '';

	if (ads_code != '' && container_class != '')
		ads_code = '<div class="' + container_class + '">' + ads_code + '</div>';
	
	document.write(ads_code);
}
/* End AD functions */

/* AD functions */
function GetBlogCategory() {
	var category_box = document.getElementById('blog_category');

	if (category_box) return category_box.innerHTML;
	else return 'INVALID';
}

function GetBlogName() {
	// If the domain is something.domain.com, this function returns something :)
	var domain = window.location.host;
	return domain.substring(0, domain.indexOf('.'));
}

function GetBlogArea() {
	var re_index = new RegExp(/^\/(index\.html)?$/i);
	var re_monthly = new RegExp(/^\/\d\d\d\d\/\d\d\/(index\.html)?(\d+\.html)?$/i);
	var re_individual = new RegExp(/^\/\d\d\d\d\/\d\d\/.+/i);
	var re_search = new RegExp(/^(\/network)?\/cerca\/.*/i);
	var re_tag = new RegExp(/^(\/network)?\/tag\/.*/i);
	var re_various = new RegExp(/^\/(about|privacy|404)\.html$/i);
	var re_category = new RegExp(/^\/[\w\d_-]+\/(index\.html)?(\d+\.html)?$/i);
	
	var doc_pathname = document.location.pathname;

	if (re_index.exec(doc_pathname) != null) return 'HP';
	if (re_monthly.exec(doc_pathname) != null) return 'MONTHLY';
	if (re_individual.exec(doc_pathname) != null) return 'INDIVIDUAL';
	if (re_search.exec(doc_pathname) != null) return 'SEARCH';
	if ((re_various.exec(doc_pathname) != null) || (re_tag.exec(doc_pathname) != null)) return 'VARIOUS';
	if (re_category.exec(doc_pathname) != null) return 'CATEGORY';
	
	return 'UNKNOWN';
}

var pageNum = Math.round(Math.random() * 100000000);
var adserver = "http://blogfere.adbureau.net";

var RE_ADS_POSITION = new RegExp(/(^| )position_([\w\d]+)( |$)/);
var RE_ADS_SIZE = new RegExp(/(^| )size_([\w\d]+)( |$)/);
var RE_GOOD_KEYWORD = /^[\w\xe0\xe8\xe9\xec\xf2\xf9]+$/;

function get_ads_position(classes) {
	var position_match = RE_ADS_POSITION.exec(classes);
	return position_match ? position_match[2] : '';
}

function get_ads_size(classes) {
	var size_match = RE_ADS_SIZE.exec(classes);
	return size_match ? size_match[2] : '';
}

function get_keywords() {
	/* Gets all elements with class 'entry', then search in them all <a> tags with rel='tag' and rel="category" and
	store the innerHTML value in an hash, in order to avoid duplicates. The hash is converted into an
	array, and returned back to the caller */

	var entries = document.getElementsByClassName('entry'), keywords = new Object(), results = new Array(), keywords_tmp;

	split_and_save_kw = function (kw) {
		var keywords_tmp = kw.toLowerCase().replace(/[\/\\'_]/g, ' ').replace(/[\|!"�$%&()='?^+*@#,;.:\-]/g, '').split(' ');

		for (var k=0; k<keywords_tmp.length; k++) if (RE_GOOD_KEYWORD.test(keywords_tmp[k])) keywords[keywords_tmp[k]] = null;
	}

	for (var i=0; i<entries.length; i++) {
		var tag_links = entries[i].getElementsByTagName('a');

		var individual_title = entries[i].getElementsByTagName('h1');
		if (individual_title.length) split_and_save_kw(individual_title[0].innerHTML);

		for (var j=0; j<tag_links.length; j++) {
			if (tag_links[j].rel == 'tag' || tag_links[j].rel == 'category' || tag_links[j].rel == 'bookmark') {
				split_and_save_kw(tag_links[j].innerHTML);
			}
		}
	}

	for (var kw in keywords) results[results.length] = kw;

	return results;
}

/*
function add_publiblog() {
	var entries = document.getElementsByClassName('entry');

	if (entries.length >= 2 && document.getElementsByClassName('publiblog_taken').length == 0) {
		var publiblog = document.createElement('div');
		
		insertAfter(entries[1].parentNode, publiblog, entries[1]);
		publiblog.setAttribute('class', 'adbox position_PUBLIBLOG size_468x60 publiblog_taken');
	}
}
*/

function manage_future_adboxes(max_adboxes) {
	/* Finds all boxes with 'future_adbox' class, and turn
	first max_adboxes' classes in 'adbox'; the others are hidden
	with the 'invisible' class */

	var elements = document.getElementsByClassName('future_adbox');
	var new_class = '', classes = '';

	for (var i=0; i<elements.length; i++) {
		new_classes = classes = elements[i].className;

		if (i < max_adboxes) {
			new_classes = classes.replace('future_adbox', 'adbox');
			var position = get_ads_position(new_classes);

			if (position) new_classes = new_classes.replace('position_' + position, 'position_' + position + '_' + i);
		} else {
			if (classes.indexOf('invisible') == -1) new_classes += ' invisible';
		}

		elements[i].className = new_classes;
	}
}

function render_ad(divName, aambTag) {
	var invObj = 'INV' + divName;

	try {
		var code = eval(aambTag);
	} catch(aamErr) { }

	if (typeof(code) != 'undefined' && code.right(96) != '<img src="http://blogfere-images.adbureau.net/blogfere/accipiter/images/AE0.gif" border="0"></a>') {
		if(navigator.userAgent.indexOf('MSIE') > -1) {
			code = code.replace('getADSColor()', '"' + getADSColor() + '"');
			document.getElementById(divName).innerHTML += '<div id="TMP' + divName + '" style="display:none">' + escape('<body><div id="adDiv">' + code + '</div>') + '</div><iframe name="' + invObj + '" width="0" height="0" frameborder="0" onload="javascript:try { document.getElementById(\'' + divName + '\').insertAdjacentElement(\'beforeEnd\', window.frames[\'' + invObj + '\'].document.getElementById(\'adDiv\')) } catch(aamErr) { }"></iframe>';
			window.frames[invObj].document.location = 'javascript:unescape(parent.document.getElementById(\'TMP' + divName + '\').innerHTML)';
		} else {
			document.writeln('<div id="' + invObj + '" style="display:none">' + code + '<script type="text/javascript" defer="true">document.getElementById(\'' + divName + '\').innerHTML = document.getElementById(\'' + invObj + '\').innerHTML;document.getElementById(\'' + invObj + '\').innerHTML = \'\';</scr' + 'ipt></div>');
		}
	}
}

function fill_ads() {
// 	add_publiblog();
// 	check_empty_ads();
// 	if (navigator.userAgent.indexOf('MSIE') == -1) make_popup_images();
	make_popup_images();
	manage_future_adboxes(2);
	
	var elements = document.getElementsByClassName('adbox');

	if (elements.length == 0) return 0;

	var ad_request = '', position = '', size = '';
	var keywords = [];	// get_keywords();
	
	var blog_name = GetBlogName().toUpperCase();
	var blog_area = GetBlogArea();
	var blog_category = GetBlogCategory();

	for (var i=0; i<elements.length; i++) {
		var classes = elements[i].className;
		if (elements[i].id == '') elements[i].id = 'AAMB_adbox_' + i;
		var boxid = elements[i].id;

		position = get_ads_position(classes);
		size = get_ads_size(classes);

		ad_request += '/' + boxid +
			'/SITE=' + blog_name + 
			'/AREA=' + blog_area + 
			'/CATEGORIA=' + blog_category + 
			'/AAMSZ=' + size + 
			(position.length ? '/POSITION=' + position : '');
	}

	var random = Math.round(Math.random() * 100000000);
	var ad_request = adserver + '/bservers/AAMALL/acc_random=' + random + '/pageid=' + pageNum + (keywords.length ? '/KEYWORD=' + keywords.join(' ').replace(/ /g, '%20') : '') + ad_request;
	document.write('<script type="text/javascript" src="' + ad_request + '"></script>');

	// Returns the number of adboxes
	return elements.length;
}

function show_ads() {
	for (var i=0; i<adbox_count; i++) {
		var boxid = 'AAMB_adbox_' + i;
		render_ad(boxid, boxid);
	}
}
/* End AD functions */

/* Begin Sole24Ore */
// OAS_sitepage = 'blogosfere.it/08/contatore';
OAS_sitepage = 'blogosfere.it/' + domain_name();
OAS_listpos = 'Top,SkyScraper,PubliBlog,HalfPage,VideoBox,VideoBox_2,VideoBox_3,VideoBox_4,BackGround,TextBox_01,TextBox_02,TextBox_03,TextBox_04,PopUp';
// OAS_listpos = 'Top,Top1,SkyScraper,HalfPage,VideoBox,VideoBox_2,VideoBox_3';
OAS_query = '';

OAS_req = OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos;

OAS_publiblog_count = 0;

/* Begin Publiblog, VideoBox_2, VideoBox_3 */
function hide_ads_container() {
	var ads_id = 'ads_' + get_random(1000);
	
	document.write('<div id="' + ads_id + '"><scr' + 'ipt type="text/javascript">document.getElementById("' + ads_id + '").parentNode.className = "invisible";</scr' + 'ipt></div>');
}

var ADS_post_count = 0;

function write_post_ads() {
	ADS_post_count++;
	
	switch (ADS_post_count) {
		case 2:
// 			document.write('<div class="adv_container_1"><scr' + 'ipt type="text/javascript">OAS_RICH("PubliBlog");</scr' + 'ipt></div>');
			document.write('<div class="adv_container_1"><div style="text-align: center; font-size: 10px; border-bottom: 1px solid gray; margin-left: 10px;">Pubblicit&agrave;</div><scr' + 'ipt type="text/javascript">OAS_RICH("PubliBlog");</scr' + 'ipt><div style="text-align: center; font-size: 10px; border-top: 1px solid gray; margin-left: 10px; margin-bottom: 10px;">Pubblicit&agrave;</div></div>');
			break;
		case 4:
			document.write('<div class="adv_container_1"><scr' + 'ipt type="text/javascript">OAS_RICH("VideoBox_2");</scr' + 'ipt></div>');
			break;
		case 6:
			document.write('<div class="adv_container_1"><scr' + 'ipt type="text/javascript">OAS_RICH("VideoBox_3");</scr' + 'ipt></div>');
			break;
	}
}
/* End Publiblog, VideoBox_2, VideoBox_3 */

function OAS_RICH(pos) {
	document.write('<A HREF="' + OAS_url + '1c/' + OAS_req + '!' + pos + OAS_query + '" TARGET="_top" >');
	document.write('<IMG SRC="' + OAS_url + '1/' + OAS_req + '!' + pos + OAS_query + '" BORDER="0" /></A>');
}

// The following lines will override the  OAS_RICH function using the Open AdStream MJX call.
if (navigator.userAgent.indexOf('Mozilla/3') == -1) {
	document.write('<SC' + 'RIPT LANGUAGE=JavaScript SRC="' + OAS_url + '4/' + OAS_req + OAS_query + '"></SCRIPT>');
};

function dynbox(wbds_size, wbds_position) {
	if (wbds_size=='TEXTBOX') {
		write_post_ads();
		return;
	}
	
	var OAS_pos = '';
	
	if (wbds_size=='728X90') {
		OAS_pos = 'Top';
	} else if (wbds_size=='300X250') {
		OAS_pos = 'VideoBox';
	} else if (wbds_size=='120x600') {
		OAS_pos = 'SkyScraper';
	} else {
		return;
	}

	OAS_RICH(OAS_pos);
}
/* End Sole24Ore */

/* Begin Announcements */
// 	'<big><strong>Sei di Milano?</strong></big> Vuoi collaborare con <strong><a target="_blank" href="http://milano.blogosfere.it/">Milano 2.0</a></strong>?<br/>Vuoi scrivere della tua citt&agrave;? Manda il tuo cv a <strong><a href="mailto:bloggers@blogosfere.it">bloggers@blogosfere.it</a></strong>',

var ANNOUNCEMENTS = new Array (
	'Segui con interesse la pallavolo?<br />Scrivici a <a href="mailto:bloggers@blogosfere.it">bloggers@blogosfere.it</a>',
	'Sei appassionato del mondo Apple?<br />Scrivici a <a href="mailto:bloggers@blogosfere.it">bloggers@blogosfere.it</a>',
	'Cani e gatti sono la tua passione?<br />Scrivici a <a href="mailto:bloggers@blogosfere.it">bloggers@blogosfere.it</a>',
	'Il fitness e la cura del corpo sono chiodi fissi?<br />Scrivici a <a href="mailto:bloggers@blogosfere.it">bloggers@blogosfere.it</a>'
);

function get_random(upper) {
    return Math.floor(Math.random() * upper);
}

function write_topper(topper) {
	return;	// Added on 2008-03-27
}

function write_announcement() {
	if (ANNOUNCEMENTS.length == 0) return;

	document.write('<div class="ann">' + ANNOUNCEMENTS[get_random(ANNOUNCEMENTS.length)] + '</div>');
}
/* End Announcements */

/* Begin Comments helpers */
var DAYS_TIMESTAMPS = new Array('Oggi', 'Ieri', '2 giorni fa', '3 giorni fa', '4 giorni fa', '5 giorni fa', '6 giorni fa');
var ONE_DAY = 86400000;

function strtotime(timestamp) {
	// Accepted format: yyyy-mm-dd hh:mm
	var a = timestamp.substring(0, 10).split('-');
	var b = timestamp.substring(11, 16).split(':');

	return new Date(parseInt(a[0], 10), parseInt(a[1], 10)-1, parseInt(a[2], 10), parseInt(b[0], 10), parseInt(b[1], 10), 0);
}

function pad_time(n) {
	return (n < 10) ? '0' + n : '' + n;
}

function setCommentTimestamp(comment) {
	var timestamps = comment.getElementsByTagName('span');
	if (!timestamps) return true;
	var timestamp = (timestamps) ? strtotime(timestamps[0].title) : '';

	if (timestamp) {
		var now = new Date();
		var comment_hour = timestamp.getHours();
		var comment_minute = timestamp.getMinutes();

		now.setHours(comment_hour);
		now.setMinutes(comment_minute);
		now.setSeconds(0);

		var time_diff = (now - timestamp);
		
		if (time_diff < ONE_DAY*7) {
			timestamps[0].innerHTML = DAYS_TIMESTAMPS[parseInt(time_diff / ONE_DAY)] + ', ore ' + pad_time(comment_hour) + ':' + pad_time(comment_minute);
			return true;
		}
	}

	return false;
}

function mark_author_comments() {
	/*
		Each comment is
		<div class="comment" id="comment-COMMENT_ID">
			<div class="entryTop">
				<h3><a href="#comment-COMMENT_ID">COMMENT_NUM</a>. <a href="COMMENTER_URL">COMMENTER_NAME</a></h3>
			</div>
			[...]
		</div>
	*/
	var comments = $('comments').getElementsByClassName('comment');
	var current_domain = 'http://' + window.location.host;
	var CUR_DOMAIN_LENGTH = current_domain.length;
	var continue_format_timestamp = true;
	var h3s, h3_links;

	for (var i=comments.length-1; i>=0; i--) {
		h3s = comments[i].getElementsByTagName('h3');

		if (continue_format_timestamp)
			continue_format_timestamp = setCommentTimestamp(h3s[0]);
		
		h3_links = h3s[0].getElementsByTagName('a');

		if (h3_links.length > 1) {
			if (current_domain == h3_links[1].href.toLowerCase().substring(0, CUR_DOMAIN_LENGTH)) {
				comments[i].className += ' comment-author';
			}
		}
	}
}

function block_comments() {
	document.getElementById('comments-wait-msg').style.display = 'block';
	document.getElementById('comment-post').disabled = true;
	return true;
}

function enable_comments_form() {
	if (get_random(2) == 0)
		document.comments_form.action = 'http://blogosfere01.blogosfere' + '.it/mte/mt-comments-0.cgi';
	else
		document.comments_form.action = 'http://blogosfere03.blogosfere' + '.it/mte/mt-comments-0.cgi';

// 	document.comments_form.action = 'http://blogosfere01.blogosfere' + '.it/mte/mt-comments-0.cgi';
}

function start_wysiwyg_editor_0() {
	tinyMCE_GZ.init({
		mode : "textareas",
		theme : "advanced",
		language : "it",
		plugins : "",
		theme_advanced_buttons1 : "link,unlink,separator,bold,italic,underline,separator,bullist,numlist,separator,undo,redo,separator",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_path_location : "bottom",
		theme_advanced_resizing : true,
		theme_advanced_resize_horizontal : false,
		safari_warning: false,
		content_css : "http://shared.blogosfere.it/css/tinymce.css"
	});
}

function start_wysiwyg_editor_1() {
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		language : "it",
		plugins : "",
		theme_advanced_buttons1 : "link,unlink,separator,bold,italic,underline,separator,bullist,numlist,separator,undo,redo,separator",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_path_location : "bottom",
		theme_advanced_resizing : true,
		theme_advanced_resize_horizontal : false,
		safari_warning: false,
		content_css : "http://shared.blogosfere.it/css/tinymce.css"
	});
}
/* End Comments helpers */

function google_ad_request_done(google_ads) {
/*
* This function is required and is used to display
* the ads that are returned from the JavaScript
* request. You should modify the document.write
* commands so that the HTML they write out fits
* with your desired ad layout.
*/
var s = '';
var i;

/*
* Verify that there are actually ads to display.
*/
if (google_ads.length == 0) {
return;
}

/*
* If an image or flash ad is returned, display that ad.
* Otherwise, build a string containing all of the ads and
* then use a document.write() command to print that string.
*/

if (google_ads[0].type == "flash") {

   s += '<a href=\"' + google_info.feedback_url + '\" class="adsbygoogle">Annunci Google</a><br>' 
   /* s += '<span style="color:#000; font-size:10px; text-align:right;">Annunci Google</span><br>' */

	s += ' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' +
google_ad.image_width + '" HEIGHT="' +
google_ad.image_height + '"> <PARAM NAME="movie" VALUE="' +
google_ad.image_url + '">' +
'<PARAM NAME="quality" VALUE="high">' +
'<PARAM NAME="AllowScriptAccess" VALUE="never">' +
'<EMBED src="' +
google_ad.image_url + '" WIDTH="' +
google_ad.image_width + '" HEIGHT="' +
google_ad.image_height +
'" TYPE="application/x-shockwave-flash"' +
' AllowScriptAccess="never" ' +
' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';

} else if (google_ads[0].type == "image") {

   s += '<a href=\"' + google_info.feedback_url + '\" class="adsbygoogle">Annunci Google</a><br>' 
   /* s += '<span style="color:#000; font-size:10px; text-align:right;">Annunci Google</span><br>' */
   
   s += '<a href="' +
google_ads[0].url + '" target="_blank" title="go to ' +
google_ads[0].visible_url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true"><img border="0" src="' +
google_ads[0].image_url + '"width="' +
google_ads[0].image_width + '"height="' +
google_ads[0].image_height + '"></a>';

} else if (google_ads[0].type == "html") {

s += google_ads[0].snippet;



} else {

// Blogosfere
// var gads_color = getADSColor();

if (last_adsense_format == '120x90') {
	additional_style = ' style="background-color: #' + getADSBgColor() + '"';
} else {
	additional_style = '';
}

if (google_ads.length == 1) {
/*
* Partners should adjust text sizes
* so ads occupy the majority of ad space.
*/
    s += '<a href=\"' + google_info.feedback_url + '\" class="adsbygoogle">Annunci Google</a><br>' 
     /* s += '<span style="color:#000; font-size:10px; text-align:right;">Annunci Google</span><br>' */

   s += '<div class="ads_google"' + additional_style + '><a style="text-decoration:none" target="_blank" href="' +
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true"><span class="url-hover"> <b>' +
// google_ads[0].visible_url + '\';return true"><span  class="url-hover" style="color:#' + gads_color + '"> <b>' +
google_ads[0].line1 + '</b></span></a> <span class="description">' +
google_ads[0].line2 + '&nbsp;' +
google_ads[0].line3 + '&nbsp;</span><span><a class="url-hover" target="_blank" href="' +
// google_ads[0].line3 + '&nbsp;</span><span><a class="url-hover" style="color:#' + gads_color + '" target="_blank" href="' +
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true">' +
google_ads[0].visible_url + '</span></a></div>';


} else if (google_ads.length > 1) {
   /*s += '<a href=\"' + google_info.feedback_url + '\" style="color:000000">Annunci Google</a><br>'*/
  s += '<a href=\"' + google_info.feedback_url + '\" class="adsbygoogle">Annunci Google</a><br>' 


  /*
  * For text ads, append each ad to the string.
  */

for(i = 0; i < google_ads.length; ++i) {

s += '<div class="ads_google"' + additional_style + '><a style="text-decoration:none" target="_blank" href="' +
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[i].visible_url + '\';return true"><span class="url-hover"  style="font-size:15px;text-decoration:underline;"> <b>' +
// google_ads[i].visible_url + '\';return true"><span class="url-hover"  style="color:#3300cc;font-size:15px;text-decoration:underline;"> <b>' +
// google_ads[i].visible_url + '\';return true"><span class="url-hover" style="color:#' + gads_color + '"> <b>' +
google_ads[i].line1 + '</b></span></a> <span class="description">' +
google_ads[i].line2 + '&nbsp;' +
google_ads[i].line3 + '&nbsp;</span><span><a class="url-hover" target="_blank" href="' +
// google_ads[i].line3 + '&nbsp;</span><span><a class="url-hover" style="color:#' + gads_color + '" target="_blank" href="' +
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[i].visible_url + '\';return true">' +
google_ads[i].visible_url + '</span></a></div>';

}
}
    }

    document.write(s);
    return;
}