// 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 = "2006|1,2007|4,2008|4,2009|2,2010|1,2015|1,31 dicembre 2007|1,360 Capital Partners|1,360 Capital partners|3,7thfloor|1,Abbeynet|1,abirascid|1,acceleratore d\'impresa|1,accessibilità|5,accordo|1,Acm|1,acquisizione|2,acustica|1,Adit|7,Adite|1,Adl group|1,advertising|1,advisor|1,aeroplani|1,aerospazio|3,agenda|1,Agenzia nazionale per l\'innovazione|1,Agnese Ananasso|5,agraria|1,agricoltura|1,Aica|1,Aida|2,Aifi|15,Ainm|1,Airc|1,Airo|1,Aitech-Assinform|1,Al Shugart|1,Alberto D\'Ottavi|2,Alberto F. De Toni|1,Alberto Minetti|1,Alberto Silvani|2,Alessandria|1,Alessandro Degli Occhi|1,Alessandro Musumeci|1,Alessandro Rossi|1,Alfonso Fuggetta|1,algoritmo|1,alimentare|2,alimentazione|2,Alintec|1,Alitalia|1,alta tecnologia|2,ambasciata|3,ambasciata britannica|1,ambasciata Usa|2,American Dialect Society|1,Amodio Di Luccio|1,analisi|5,Andrea Dossena|1,Andrea Malchiodi|1,Andrea Mameli|1,Anna Gervasoni|1,anno europeo dell\'innovazione e della creatività|1,Ansa|1,anti-terrorismo|2,Antonio Acheri|1,Antonio Dini|1,apprendimento|1,Apre|1,Apriamo la mente|1,Apsti|3,Aquis|1,Ara Pacis|2,Arab science and technology foundatio|1,archeologia|1,Area Science Park|1,Arianna|1,Arianna Greco|1,arte|2,arteriosclerosi|1,artificiale|1,artigiani|2,assegni di ricerca|2,assemblea|1,assenteismo|1,Assobiotec|2,associazione|1,Associazione industriali|1,Associazione nuova civiltà delle macchine|1,Assodigitale|1,Assolombarda|4,Assotec|1,Aster|7,audio|1,Auditorium parco della musica|2,auricolare|1,automazione|1,automotive|2,aziende|2,Bagheria|1,banca Marche|1,banda larga|1,bando|13,bando 2008|1,barcamp|2,Barcellona|3,Basilicata|1,Bayer|1,Beirut|1,beni culturali|2,Bergamo|3,BergamoScienza|1,Bic La Fucina|8,Bic-Italia Net|2,Bicocca|5,Bie|2,biennale|3,biglietti aerei|1,bilancio|1,Bio Art|2,Bio-Europe|1,biocarburante|2,biodiesel|1,Bioenergie|1,biofisica molecolare|1,Bioforum|1,BioInItaly|2,biologia|1,biomedicale|3,bioscienze|1,biotecnologie|20,blog|4,Blogosfere|1,Bmr genomics|2,Bocconi|4,bolletta|1,Bologna|16,borse di studio|4,Boston|1,Brescia|1,Bresso|1,brevetto|9,Brianza|1,British telecom|1,Budapest|1,Bulat Sanditov|1,Buongiorno|1,burocrazia|1,business|16,business angel|5,Business angel academy|1,business plan|2,business plan competition|12,BusinessWeek|1,Busto Arsizio|1,Cagliari|10,Calabria|1,calcio|2,calendario|1,California|2,cambiamento|1,Cambridge|1,camera di commercio|7,Campania|3,campione d\'Italia|2,canale web|1,Cantieri creativi|1,cardiologia|1,Carrara|1,Cassa depositi e prestiti|1,Castellanza|1,Catania|2,Catia Bastioli|1,Cattolica|2,CeBit|3,Cefriel|1,celle combustibile|3,cellule staminali|1,Centrica|1,centro di ricerca|1,centro S3|1,Centro Volta|1,Centuria RIT|3,Cepic|1,ceramica|1,Cerba|1,Cesare|1,Cesena|1,Cetif|3,chimica|1,Cina|1,Cinquant\'anni con i bit|1,cinque anni|1,Cisco|2,Cittanova|1,Città del Capo|1,Città della Scienza|3,classifica|1,Claudio Demattè|1,Claudio Gallo|1,Clay Christensen|1,Cleantech 100|1,Cna innovazione|1,Cnipa|1,Cnr|12,co2|1,CO2|2,Codice dell\'Amministrazione digitale|1,Cointegration for pair trading|1,Comer industries|1,commercio estero|12,Commissione europea|4,Como|3,competitività|1,compleanno|4,computer graphic|1,Computer history museum|1,computer palmare|2,computer quantistico|1,Comune|1,Comune di Milano|1,comunicazione|2,comunicazione della scienza|1,Comunimprese|1,comunità|2,concorso|4,confenza stampa scientifica araba|1,conferenza|1,conferenza europea|2,Confindustria|5,Confindustria servizi innovativi e tecnologici|1,congresso|2,congresso mondiale energia|1,Consorzio Gal-Pmi|1,contenuti digitali|2,convegno|8,convegno nazionale Comunicazione della scienza|1,convention|1,convergenza|1,Cooperazione italiana|1,copyright|1,corporate social responsability|1,corso|1,Cosimo Spera|1,Costa Crociere|1,costo del lavoro|1,costume|1,Cotec|2,creatività|2,credito di imposta|1,Crema|3,cristalli liquidi|1,Cristiana Compagno|1,crossmedialità|1,Crotone|1,Crs4|2,Crui|1,cultura|3,cuore|2,d-day|1,D-Wave Systems|1,Dab|1,Dada|1,Daniele Alberti|1,Daniele Mancini|1,danza delle molecole|1,David Orban|11,decreto legge|1,decreto Pisanu|2,diabete|1,Dialectica|1,Diego Fasoli|1,diffusione dell\'innovazione|1,digital divide|3,digital imaging|1,digitale|2,dipendenti pubblici|1,diploma|1,diretta|2,distretti|3,distretto tecnologico|3,DistrICT|1,divulgazione scientifica|4,Dixet|1,Dna|1,Doha|1,domanda dell\'anno|1,donne|1,Donne&tecnologia|1,dottorato di ricerca|2,Dpixel|6,Dream|1,Dseed|1,Dubai|1,Duccio Campagnoli|1,Dynanotex|1,e-business|1,e-citizen|2,e-government|1,e-learning|2,early stage|4,Ease|1,Easy investment forum|3,Eban|1,Ebn|1,Eccb08|1,Econoetica|5,economia|7,Edge Foundation|1,editoria|3,Eit|1,Electro power systems|2,elettromagnetico|1,elevator pitch|1,Elserino Piol|2,embedded|2,emendamento|1,Emilia Romagna|7,emissioni|1,Emozione Apple|1,Energethica|1,energia|2,Energia solare|4,energie alternative|3,enterprise 2.0|1,enti di ricerca pubblici|1,enti locali|2,Epd2ds17|1,Epos|1,Era|2,Erba|2,Erydel|1,esame di stato|1,Esof|2,esportazioni|1,esposizione|2,etica|2,Eureka|2,Europa|28,Europe Innova|1,European conference on computational biology|1,European innovation scoreboard|1,European institute of innovation and technology|1,European investment bank|1,European mobility forum|1,European patent office|1,European research council|2,European solar days|1,European venture contest|3,Euroscience open foru|2,Eurostars|1,Eurotech|1,Eurotrans-Bio|1,Eva Florence|1,Evca|1,Evectors|1,eventi|1,Expert system|1,Expo 2015|2,Expo Comm Italia|1,ExpoElettronica|1,Ezio Andreta|1,Fabbrica del vapore|1,Fabio Pezzotti|1,Fabrizio Capobianco|2,Fabrizio Lillo|1,Fai volare la tua mente|1,fallimento|1,farmaceutica|2,farmacologia|1,Federico Calzolari|1,Federico Rajola|1,Ferrara|2,Fest|5,Festa della matematica|1,festa della scienza|1,Festivacittàimpresa|1,festival|4,Festival|1,Festival dei due mondi|1,festival dell\'innovazione|2,festival della scienza|9,Festival multimediale|1,festival. scienza|1,Fez|1,fibre ottiche|1,fiera|7,Fiera del Sud|1,Fiera internazionale del Libro|2,Fieramilanocity|2,Filas|16,film|1,Fimak|1,finale|1,finalisti|1,finanza|5,finanziamenti|40,Finlombarda|5,Finmeccanica|1,Firenze|4,First Generation Network|7,fisco|1,fisica|2,fisico|1,Focus impresa|1,fondazione|2,Fondazione Altran|2,Fondazione Cariplo|3,Fondazione Politecnico|5,Fondazione Ugo Bordoni|1,fondo|6,Fondo sociale europeo|1,Forlì|2,formazione|13,forum|3,Forum net economy|1,Forum Pa|1,Forum ricerca innovazione|1,fotografia|1,fotonica|1,fotovoltaico|5,Francesco Profumo|1,franchising|1,Francia|3,Franco Carlini|1,Franco Nonnis|1,frequenze|1,Friuli Venezia Giulia|13,Frontiers of interaction|2,frontiers08|1,fuga dei cervelli|2,Fulbright Best|2,Funambol|1,Fuorisalone|1,Fx interactive|1,G8|1,Gal-Pmi|1,Galileo|2,Garr|2,gene|1,genomica|1,Genova|10,geopolitica|1,Geoweb|1,Germania|1,Ghost|1,Giampio Bracchi|2,Gianandrea Giacoma|2,Gianluca Dettori|1,Gianna Martinengo|1,Gianni De Michelis|1,Giappone|1,Ginevra|1,giochi|1,Giorgio De Michelis|1,giornalismo|1,Giornata della ricerca e dell\'innovazione|1,Giornata nazionale dell\'innovazione|2,giovani|3,Giovani imprenditori|2,Giovanni Gallavotti|1,Gis|1,Giunti labs|1,Giuseppe Pezzotti|1,Gl events|1,Global access program|1,global entrepreneurship week|1,globalizzazione|1,Glomera|3,Google|1,governo|10,grafica|1,Gran Bretagna|2,gruppo Zambon|1,Gruppo2003|1,Gsm|1,Guida|1,H2Roma|2,Hannover|1,hard disk|1,Hewlett-Packard|1,Hi!Tech|1,Hictu!|1,hotel|1,Ht|1,Hypo group Alpe Adria|1,Hypo innovazione|1,Hysydays|1,I tech off|1,I-Prize|1,I3p|6,Iban|6,Icaplants|1,Icgeb|1,Icomo|1,Ict|5,Ict Prize|3,Idc|4,idee|2,idrogeno|4,Ifip|1,Ilaria Selmi|1,impero|1,imprenditori|3,imprese|20,Imprese|1,imprese e start up|1,inaugurazione|1,incentivi|1,incontri|3,incubatore|10,industria|1,infarto|1,Infm|6,Infn|2,informatica|9,Informatici senza frontiere|1,Infoservi|1,infrastrutture|1,ingegneria del software|1,Ingenia|2,iniziativa spontanea|2,Inmentor|1,InnoCentive|1,Innogest|5,Innov\'azione|6,innov\'azione|1,Innovaction|5,innovalazio|2,Innovation center|1,Innovation circus|2,Innovation forum|3,Innovatore europeo dell\'anno|1,innovatori|6,innovazione|33,Innovetion valley|1,inquinamento|1,Insead|1,Inside by my clic|9,insulina|1,Intel|1,Intelligencefocus|1,intelligenza artificiale|2,Intema|1,Inter|2,interattivo|1,interfaccia|1,International conference on Plastic Optical Fibers|1,International conference on web engineering|1,internazionale|6,internazionalizzazione|1,internet|17,internet delle cose|2,Intertic|1,intervista|1,intrusione marina|1,invenzioni|1,investimenti|15,Iptv|2,Iran|1,Irccs|1,Isem|2,Israele|2,Ist Africa|1,Istituto europeo di oncologia|1,Istituto italiano di tecnologia|6,Istituto nazionale per la fisica della materia|1,Istituto superiore Mario Boella|2,istruzione|1,it|1,Italgest mare|1,Italia|23,Italia Independent|1,Italian Applications|2,Itsme|3,Jetc|1,John Brockman|1,John Nash|1,Joseph Adler|1,Jsc|1,Kafka|1,Kairos Physiomechanics|1,Kazakistan|1,Khamsa|1,L\'Oreal|1,La fabbrica del nuovo|2,La musica dell\'innovazione|1,La primavera della scienza|1,La Sapiena|1,La Spezia|1,La7|2,laboratorio|1,lago di Garda|1,Lait|2,laurea|1,lavoro|1,Lazio|14,Lazise|1,Lcdv|1,Le Web|1,Leandro Agrò|4,Lebanon partnership|1,Lecce|1,legge elettorale|1,legge Finanziaria|1,leggi|1,Leru|1,letteratura|1,Lhc|1,Libano|5,Library House|1,libro|9,life science|1,Liguria|1,Linda Alongi|12,linea telefonica|1,Lione|1,Lisbona|2,logistica|1,Lombardia|21,low-cost|1,Luca Comello|2,Luca Cordero di Montezemolo|1,Luca Foresti|1,Lucia Predolin|1,Luigi Lugiato|1,Luigi Nicolais|4,Luigi Orsi Carbone|1,Luiss|2,Luiss business school|1,luogo|1,M-aster|1,M-Aster|1,made in Italy|2,Made in tomorrow|1,malattie rare|1,Malpensa|1,Mambo|1,management buy-out|1,manager|1,manifestazione|3,manovra finanziaria|1,Manuale dell\'innovazione|1,Marco Cantamessa|1,Marco Marini|1,Marco Rossi|3,Mario Landolfi|1,marketing|1,Marocco|1,Marpark|1,Mashup|1,master|2,Master in comunicazione della scienza|1,matching tecnologico|1,matematica|2,Matera|1,Mauro Scanu|1,Mauro Sentinelli|1,Max Born|1,meccatronica|1,Mectex|1,medaglia Boltzmann|1,media|1,Media Beat|1,Media education for peace|1,medicina|4,Melete|1,mems|1,mentoring|1,Meridiana|1,mesh|1,Messiah|1,Messina|1,mestiere della ricerca|1,meta distretti|2,Meta Group|1,metropolitana|1,mezzi di comunicazione|1,mezzogiorno|3,Michele Appendino|1,Michele Leidi|1,micro blogging|1,micromanipolazione ottica|1,microscopio|1,Microsoft|6,middle east|1,Milano|89,Milanometropoli|10,milleproroghe|1,Mind the bridge|7,ministero per le Riforme e l\'innovazione|1,ministero Politiche giovanili e attività sportive|1,ministero Politiche per la famiglia|1,ministro|1,ministro commercio estero|1,ministro dell\'economia e delle finanze|1,ministro dello sviluppo economico|1,Minteos|1,Mit|1,Miur|4,Mix|1,Mms-13|1,Mobango|1,mobile virtual operator|1,mobility|2,modelli commerciali|1,modelli di business|1,Modena|2,molecola|1,mongolfiere|1,Monnalisa|1,Monza e Brianza|1,More than zero|2,Morinobu Endo|1,mostra|3,motore|1,MotorShow|1,Movenda|1,Muba|1,Museo nazionale della Scienza e della Tecnologia|6,musica|3,Myminutes.org|1,N800|2,Namex|1,nanobiotecnologie|4,Nanochallenge|1,Nanomat|1,nanomat|1,nanomedicina|2,nanoparticelle|1,nanopompa|1,Nanotec2008|1,nanotecnologie|10,nanovernici|1,Nanoweek|1,Nanoxer|1,Napoleone|1,Napoli|8,Natale|1,nautica|3,Navacchio di Casina|3,Navglio Grande|1,neomobile|1,Neptuny|1,network|1,Network of automotive regions|1,newcortec|1,Next Media|1,Nicola De Carne|1,Nnl|1,Nokia|2,nomina|1,Norman E. Bowie|1,normativa|12,notte degli angeli|1,notte dei ricercatori|1,Novamont|1,nucleare|1,nuovi materiali|1,Nuzoo|1,occhiali|1,Oecd|1,Olbia|1,olio vegetale|1,Olos|1,Oman|1,Openliven|1,OpenSpime|2,ordine dei giornalisti|1,organizzazione|1,Orgosolo|1,oriente|1,Orion|1,Orologio assistivo|2,Osservatorio|1,ottavo posto|1,ottica|1,Pact Pme|1,Padova|6,pagamenti internazionali|11,Palazzo delle Stelline|1,Palermo|2,paradisi fiscali|2,Parallel trading system|1,parchi scientifici|2,Parco Agricolo sud|1,Parigi|1,parlamento|1,parola|1,Parole d\'ordine per il futuro|1,partecipazione|1,Partito Democratico|1,partnership for growth|1,Passion for robots|1,Patrizia Filippetti|11,Pavia|1,Peering forum italiano|2,Percorsi dell\'innovazione|13,periferia|2,Pershing|1,personal computer|2,Perugia|3,Petroceramics|1,petrolio|1,PharmaFinance|1,PharmEste|4,PharmFinance|1,Philip Zimmermann|1,Piacenza|2,piante|1,piccole e medie imprese|4,Piemonte|15,Piemonte high technology|1,Pier Luigi Bersani|1,Pierluigi Ridolfi|1,Pisa|2,pitch|2,plutoed|1,Plutone|1,Pmi|4,pnicube|5,podcast|1,Pogas|2,politecnico|1,Politecnico di Milano|14,Politecnico di Torino|8,Politecnico innovazione|4,politica|7,polizia postale|1,polo tecnologico|2,portale|4,porto|1,post-incubazione|1,posta elettronica|1,Prai|1,precari|1,premio|21,premio Caccioppoli|1,premio Fausto Sartori|1,premio Ilya Prigogine|1,premio Le Scienze|1,Premio nazionale innovazione|5,Premio nazionale per l\'innovazione|15,premio Start-Up nazionale|1,prima edizione|1,primo semestre 2008|1,private equity|6,Pro inno|1,Pro Inno Europe|1,progettazione condivisa|1,progetti imprenditoriali|1,progetto Est|1,progetto Multiprotect|1,Promotor international|2,proposte|1,proprietà intellettuale|2,Protaffin|1,proteine|1,provincia di Milano|2,Pubblica Amministrazione|8,pubblicità|1,Pula|5,Qid|1,quadri|1,Quantica|1,quantistica|1,Quarto laboratorio|1,ragioneria generale dello stato|1,rapporto annuale sull\'innovazione|1,rapporto Svimez|1,Ravenna|1,Ray Kurzweil|2,Ready for equity|1,Reality|1,Reggio Emilia|1,Regione|1,Regione Lazio|1,Regno Unito|3,regolamento|1,Research to business|6,research4energy|1,rete|1,Rfid|1,Rfid Italia|1,Rgb|1,Riccardo Illy|1,ricerca|21,ricerca e sviluppo|1,ricerca industriale|2,ricerca operativa|1,ricerca scientifica|4,ricercatore|1,ricercatori|4,Rida ambiente|1,Rimini|1,Rimiwelness|1,ringraziamenti|1,rinnovabile|1,Ritalia|3,RitaliaCamp|5,ritaliacamp1|1,rivista|2,Robert Aumann|1,Roberto di Leonardo|1,RobotCub|1,robotica|7,Roche|1,Roland Spogli|1,Roma|58,Ross|1,round|1,Rovereto|1,Rvnet.eu|1,S3|1,Salento|1,salone|1,salone ricerca industriale|1,salute|1,Sanpaolo Imi|1,Sardegna|9,Sardegna ricerche|11,satellitare|3,Saturno 2007|1,Savona|1,School of management|1,School of robotics|1,Sci|1,Sci(bzaar)net|1,Science for food|1,scienza|6,Scienza under 18|1,scienze e tecnologie|1,SciNet|2,Scouting Ict|1,scudetto|2,scuola|5,Scuola Normale superiore di Pisa|1,Scuola politecnica di design|1,scuole superiori|1,Seac02|3,Seagate technology|1,Seatec|1,Second Life|3,seed capital|9,seed match|2,Seeweb|1,semiconduttori|2,seminario|2,Sesto San Giovanni|1,Sestri Levante|2,settimana cittadina della scienza|1,Settimana della cultura scientifica e tecnologica|4,settimana mondiale dell\'imprenditoria|1,settimo programma quadro|2,settore privato|1,Sgr|2,Sia-Ssb|1,Sicilia|3,sicurezza|3,Siena|3,Sienabiotech|2,Silicon Biosystems|1,Silicon Valley|9,Simone Ungaro|1,singolarità|2,Singular Id|1,Sisb|1,Sissa|8,sistemi di pagamento|1,sito|1,sito web|1,Smau|14,Social media lab|1,social network|4,Società tedesca di fisica|1,Società Umanitaria|1,software|2,sostenibile|1,sovvenzioni|1,Space2Land|2,spazio|1,Spc|1,specchio virtuale|1,Speedo|1,Spime|2,spin-off|6,Spin-off day|1,Spinner|1,Spoleto|1,Sse Venture|1,Stanford|1,Start Cup|14,start up|1,start-up|29,start-up dell\'anno|4,Start2b|1,startup 2.0|2,State of the net|1,stateofthenet|2,Stati Uniti|4,statistica|1,Statphys|1,Stefania Venturino|1,Stefano Mazzoni|1,stipendio|1,Stmicroelectronics|1,storia di internet|1,Storie di cervelli erranti tra la Sardegna e il mondo|1,strada|1,struttura|1,studenti|2,Sudafrica|1,Sugarforge|1,Summer DistrICT Camp|1,summer school Novicosmo|1,SuntoGrid|1,supermicroscopio|1,Surf the city|1,sviluppo|1,Svizzera|1,tablet|2,Tai-Chi|1,Tar|1,tasse|3,teatro|2,techgarage|5,tecnologia|8,tecnologie visive|1,Telecom Italia|1,telecomunicazioni|6,telefonia mobile|1,televisione|6,Telit|1,teoria dei giochi|1,Teoria dei vincoli|1,Teqnopolis|1,termodinamica|1,Terra|2,territorio|1,terza edizione|1,Tethis|1,The Guardian|1,the mirror|1,TheBlogTv|1,Tim Cook|1,tirocinio|1,Tix|1,Tomaso Poggio|1,Tommaso Maggio|1,Top-IX|2,Tor Vergata|8,Torino|35,Torino Wireless|15,Toscana|4,trade show|1,Training in action 2007|1,trasferimento tecnologico|9,trasporti pubblici|1,Trentino Alto Adige|1,Trento|1,tridimensionale|1,Triennale|2,Trieste|16,Triz|1,TTventure|2,tumori|1,turismo|5,tv digitale|3,TwentyFour / 7 Innovation|1,twittercamp|1,Udine|9,Uk-Italy Business Award|1,ultimo|1,Unesco|2,Unimitt|5,Università|50,Università Carlo Cattaneo - Liuc|1,Università Cattolica|2,Università degli Studi dell\'Insubria|1,Università degli Studi di Genova|1,Università degli Studi di Milano|10,Università degli Studi di Padova|1,Università degli Studi di Torino|2,Università dell\'Insubria|1,Università della Calabria|1,Università di Berkeley|1,Università di Ferrara|1,Università di Fribourg|1,Università di Milano|1,Università di Verona|3,Università Federico II|1,Università Milano Bicocca|3,Università Roma Tre|3,uomini e computer|1,Urbino|1,Usa|4,utenti|1,vaccini|1,Varese|2,vedere la scienza festival|1,Vega|3,vegetale|1,Veneto|11,Veneto Expo 2008|1,Veneto Nanotech|3,Venezia|8,venture capital|29,Venture community|3,VentureCamp|2,Verga|1,Verona|10,Viaggio nella complessità|2,Vicenza|1,video|4,videogiochi|1,videogioco|1,videoracconti|1,Videoworks|1,View conference|1,Villa Torlonia|1,Vimercate|1,Vinix|1,Virtuality|1,Visioni digitali|1,vita|2,Viviane Reding|3,Vodafone|3,voice over Ip|1,volontariato|1,web|8,web 2.0|21,web al femminile|1,web senza barriere|2,web tv|2,webchat|1,Webratio|1,Wi-next|2,wiki|2,wimax|1,wireless|4,women and technologies|1,workshop|1,World Business Forum|1,World computer congress|2,World forum|1,Xanto|1,yacht|3,Yef 2008|1,Yemen|1,Z-Cube|2,Zambon|1,Zipidy.net|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;
}