var frm;var doc;sPath = "";sHost = "";sUrl="";pattern = ", ";sCliente = "";var nn=1;var newImg = new Image();function getParameter ( queryString, parameterName ) {	var parameterName = parameterName + "=";	if ( queryString.length > 0 ) {		begin = queryString.indexOf ( parameterName );		if ( begin != -1 ) {			begin += parameterName.length;			end = queryString.indexOf ( "&" , begin );			if ( end == -1 ) {				end = queryString.length			}			return unescape ( queryString.substring ( begin, end ) );		}		return "null";	}}//INIZIO Variabili e funzioni per caricamento contenuti via XML / XSLT---------------------------------------------------------------------------------------------------------------->>>var HTMLresults;var source;var style;var sortColumn;//funzione per caricamento risultati click su TagCloud---------------------------------------------------------------------------->>>function loadTagCloudResultXML (elem) {	var sInnerHTML="<tr><td class='messageBotCentro'>";	sInnerHTML += "Nessun documento corrispondente alla chiave di ricerca";	sInnerHTML += "</td></tr>";		loadXML('bodySmartRelease', null, null, elem);	if (document.getElementById('innerTableReleases').innerHTML == '') {		document.getElementById('innerTableReleases').innerHTML  = sInnerHTML;	}	loadXML('bodyEventi', null, null, elem);	if (document.getElementById('innerTableEventi').innerHTML == '') {		document.getElementById('innerTableEventi').innerHTML  = sInnerHTML;	}}//funzione per caricamento risultati click su TagCloud----------------------------------------------------------------------------<<<//funzione per esecuzione search------------------------------------------------------------------------------------------------------->>>/*function searchXML(sDest, sSource, sStyle, elem) {	var sSource = "./XMLMediakitCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=100";	var sStyle = "./MediakitDetailsStyle.xsl";			}*///funzione per esecuzione search-------------------------------------------------------------------------------------------------------<<<//funzione principale per caricamento contenuti XML----------------------------------------------------------------------------->>>function loadXML(sDest, sSource, sStyle, elem) {/*//superato da introduzione banner multimedia flash	for (n=1; n<=3;n++) {		if (document.getElementById('imgFloat'+n) != null) {		document.getElementById('imgFloat'+n).style.display = 'none';		}	}*/var hideSmartRelease;var hideEventi;var showContXML;sCliente = document.getElementById('NomeCliente').innerHTML;//sezione if per gestire lancio parsing XML da links Home Page--------------------------------------------------->>>//quando la funzione viene lanciata da onLoad, elem \u00E8 null	if (elem != null) {		if ((elem.id=="lnkTuttiLinks") || (elem.id=="lnkTuttiBlogs") || (elem.id=="icoTuttiLinks") || (elem.id=="icoTuttiBlogs")) {			selectBrowser (sSource, sStyle, sDest);			return;		} else {			//ri-visualizzo i dettagli relativi al management, nella col sx, nel caso siano stati in precedenza nascosti			resetManagement ()		}				if (elem.id != "linkDettagliManagement") {			window.scrollTo(0,0);				}//alert (elem.id);		if (elem.id =="linkSearch") {			if (document.getElementById('ChiaveRicerca').value == '') {				return;			} else {				var sSource = "./Ajax_FTSearch?OpenAgent&";				sSource += document.getElementById('ChiaveRicerca').value;				var sStyle = "./SearchDetailsStyle.xsl";							hideSmartRelease = true;				hideEventi = true;				showContXML = true;			}		} else if (elem.id =="linkMediakit") {			var sSource = "./XMLMediakitCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=100";			if (document.getElementById("StileMediaKit").innerHTML == "2") {			var sStyle = "./MediakitElencoStyle.xsl";						} else {			var sStyle = "./MediakitDetailsStyle.xsl";						}			hideSmartRelease = true;			hideEventi = true;			showContXML = true;		} else if (elem.id =="linkProdServ") {			var sSource = "./XMLMediakitCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=100";			if (document.getElementById("StileMediaKit").innerHTML == "2") {				var sStyle = "./ProdServElencoStyle.xsl";									} else {				var sStyle = "./ProdServDetailsStyle.xsl";					}			hideSmartRelease = true;			hideEventi = true;			showContXML = true;					} else if (elem.id =="linkProdotto") {			var sSource = "./XMLMediakitProdServizi?ReadViewEntries&restricttocategory="+elem.name;					var sStyle = "./MediakitDettagliProdottoStyle.xsl";						hideSmartRelease = true;			hideEventi = true;			showContXML = true;								} else if (elem.id == "linkInterniEventi") {			var sSource = "./XMLEventiCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=6";			var sStyle = "./EventiCompletoStyle.xsl";			hideSmartRelease = true;			hideEventi = true;			showContXML = true;		} else if ((elem.id == "linkInterniManagement") | (elem.id == "linkDettagliManagement")) {			var sSource = "./XMLContattiCompany?ReadViewEntries&restricttocategory="+sCliente;			var sStyle = "./ManagementDetailsStyle.xsl";			hideSmartRelease = true;			hideEventi = true;			showContXML = true;			//nascondo i dettagli del management nella colonna di sinistra, lasciando visibili solo i nomi----------->>>			var nMan = document.getElementById('NumManagers').innerHTML;			for (n=1; n <= nMan; n++) {				if (document.getElementById('managerImg'+n) != null) {					document.getElementById('managerImg'+n).style.display = 'none';				}				if (document.getElementById('managerPhone'+n) != null) {					document.getElementById('managerPhone'+n).style.display = 'none';				}				if (document.getElementById('managerCellPhone'+n) != null) {					document.getElementById('managerCellPhone'+n).style.display = 'none';				}				if (document.getElementById('managerMail'+n) != null) {					document.getElementById('managerMail'+n).style.display = 'none';				}				if (document.getElementById('managerLinks'+n) != null) {					document.getElementById('managerLinks'+n).style.display = 'none';				}			}//nascondo i dettagli del management nella colonna di sinistra, lasciando visibili solo i nomi-----------<<<			//			document.getElementById('tableContenutiXML').style.display = '';			} else if (elem.id=="linkProfilo") {			var sSource = "./XMLProfiloCompany?ReadViewEntries&restricttocategory="+sCliente;			var sStyle = "./ProfiloDetailsStyle.xsl";			hideSmartRelease = true;			hideEventi = true;			showContXML = true;//			document.getElementById('tableContenutiXML').style.display = '';			} else if (elem.id=="linkTuttiArticoli") {			var sSource = "./XMLArticoliCompany?ReadViewEntries&restricttocategory="+sCliente;			var sStyle = "./ArticoloDetailsStyle.xsl";			hideSmartRelease = true;			hideEventi = true;			showContXML = true;//			document.getElementById('tableContenutiXML').style.display = '';			} else if (elem.id=="linkTagCloud") {			if (sDest == 'bodySmartRelease') {			var sSource = "./XMLComunicatiCompanyTags?ReadViewEntries&restricttocategory="+sCliente+elem.title;			var sStyle = "./SmartReleaseStyle.xsl";			} else {			var sSource = "./XMLEventiCompanyTags?ReadViewEntries&restricttocategory="+sCliente+elem.title;			var sStyle = "./EventiStyle.xsl";						}			hideSmartRelease = false;			hideEventi = false;			} else if (elem.id.substr(0,10) =="linkAnnoSR")  {//			if (elem.innerHTML >= 2008) {				var sSource = "./XMLComunicatiCompanyAnno?ReadViewEntries&restricttocategory="+sCliente+elem.innerHTML;			//			} else {//				if (sCliente == "NAESCONSULTING") {//					sCliente = "altromercato";//				}//				var sSource = "http://"+sHost+"/bpsito.nsf/XMLComunicatiClienteAnno?ReadViewEntries&restricttocategory="+sCliente+elem.innerHTML;			//			}//alert (sSource);			var sStyle = "./SmartReleaseStyle.xsl";			hideSmartRelease = false;			hideEventi = false;				elem.style.fontWeight = "normal";			elem.style.color="rgb(126,139,156)";			document.getElementById("AnnoCorrente").innerHTML = elem.innerHTML; 						//reimposta l'aspetto grafico dell'etichetta per l'anno corrente----------------------------------------------------------------------->>>			for (n=1; n<=10; n++) {				if (document.getElementById(elem.id.substr(0,10)+(Number(elem.innerHTML)+n)) != null) {					document.getElementById(elem.id.substr(0,10)+(Number(elem.innerHTML)+n)).style.fontWeight = "bold";					document.getElementById(elem.id.substr(0,10)+(Number(elem.innerHTML)+n)).style.color = "rgb(31,54,85)";								} else {					break;				}			}			for (n=1; n<=10; n++) {				if (document.getElementById(elem.id.substr(0,10)+"2"+(Number(elem.innerHTML)+n)) != null) {					document.getElementById(elem.id.substr(0,10)+"2"+(Number(elem.innerHTML)+n)).style.fontWeight = "bold";					document.getElementById(elem.id.substr(0,10)+"2"+(Number(elem.innerHTML)+n)).style.color = "rgb(31,54,85)";								} else {					break;				}			}			//reimposta l'aspetto grafico dell'etichetta per l'anno corrente----------------------------------------------------------------------<<<						//reimposta l'aspetto grafico dell'etichetta per gli altri anni--------------------------------------------------------------------------->>>			for (n=1; n<=10; n++) {				if (document.getElementById(elem.id.substr(0,10)+(Number(elem.innerHTML)-n)) != null) {					document.getElementById(elem.id.substr(0,10)+(Number(elem.innerHTML)-n)).style.fontWeight = "bold";					document.getElementById(elem.id.substr(0,10)+(Number(elem.innerHTML)-n)).style.color = "rgb(31,54,85)";								} else {					break;				}			}			for (n=1; n<=10; n++) {				if (document.getElementById(elem.id.substr(0,10)+"2"+(Number(elem.innerHTML)-n)) != null) {					document.getElementById(elem.id.substr(0,10)+"2"+(Number(elem.innerHTML)-n)).style.fontWeight = "bold";					document.getElementById(elem.id.substr(0,10)+"2"+(Number(elem.innerHTML)-n)).style.color = "rgb(31,54,85)";								} else {					break;				}			}			//reimposta l'aspetto grafico dell'etichetta per gli altri anni---------------------------------------------------------------------------<<<			//reimposta l'aspetto grafico dell'etichetta per tutti i mesi----------------------------------------------------------------------------->>>			for (n=1; n<=12; n++) {				if (document.getElementById("linkMeseSR"+n) != null) {					document.getElementById("linkMeseSR"+n).style.fontWeight = "bold";					document.getElementById("linkMeseSR"+n).style.color = "rgb(31,54,85)";								} else {					break;				}			}			for (n=1; n<=12; n++) {				if (document.getElementById("linkMeseSR2"+n) != null) {					document.getElementById("linkMeseSR2"+n).style.fontWeight = "bold";					document.getElementById("linkMeseSR2"+n).style.color = "rgb(31,54,85)";								} else {					break;				}			}			//reimposta l'aspetto grafico dell'etichetta per tutti i mesi-----------------------------------------------------------------------------<<<		} else if (elem.id.substr(0,10) =="linkMeseSR")  {//			if (document.getElementById("AnnoCorrente").innerHTML >= 2008) {				var sSource = "./XMLComunicatiCompanyAnnoMese?ReadViewEntries&restricttocategory="+sCliente+document.getElementById("AnnoCorrente").innerHTML+elem.innerHTML;			//			} else {//				if (sCliente == "NAESCONSULTING") {//					sCliente = "altromercato";//				}			//				var sSource = "http://"+sHost+"/bpsito.nsf/XMLComunicatiClienteAnnoMese?ReadViewEntries&restricttocategory="+sCliente+document.getElementById("AnnoCorrente").innerHTML+elem.innerHTML;			//			}	//alert (sSource);			var sStyle = "./SmartReleaseStyle.xsl";			hideSmartRelease = false;			hideEventi = false;					for (n=1; n<=12; n++) {				if (document.getElementById(elem.id.substr(0,10)+n) != null) {					document.getElementById(elem.id.substr(0,10)+n).style.fontWeight = "bold";					document.getElementById(elem.id.substr(0,10)+n).style.color = "rgb(31,54,85)";								} else {					break;				}			}			for (n=1; n<=12; n++) {				if (document.getElementById(elem.id.substr(0,10)+"2"+n) != null) {					document.getElementById(elem.id.substr(0,10)+"2"+n).style.fontWeight = "bold";					document.getElementById(elem.id.substr(0,10)+"2"+n).style.color = "rgb(31,54,85)";								} else {					break;				}			}						elem.style.fontWeight = "normal";			elem.style.color="rgb(126,139,156)";		} else if ((elem.id == "bodyRss") | (elem.id == "headerRssLink")) {//alert (elem.id);//			var sSource = "./rssDetails.xml";			var sSource = "./XMLFeedsCompany?ReadViewEntries";						var sStyle = "./rssDetailsStyle.xsl";			hideSmartRelease = true;			hideEventi = true;			showContXML = true;//			document.getElementById('tableContenutiXML').style.display = '';			}	} //sezione if per gestire lancio parsing XML da links Home Page---------------------------------------------------<<<		selectBrowser (sSource, sStyle, sDest);			if (document.getElementById('colSmartRoom').style.display = 'none') {		document.getElementById('colSmartRelease').style.display = 'none';		document.getElementById('colSmartRoom').style.display = '';	}	if (hideSmartRelease==true) {		document.getElementById('tableHeaderSmartRelease').style.display = 'none';		document.getElementById('tableBodySmartRelease').style.display = 'none';	} else if (document.getElementById('tableHeaderSmartRelease').style.display = 'none') {		document.getElementById('tableHeaderSmartRelease').style.display = 'block';		document.getElementById('tableBodySmartRelease').style.display = 'block';		document.getElementById('tableContenutiXML').style.display = 'none';	}	if (hideEventi==true) {		document.getElementById('tableEventi').style.display = 'none';	} else if (document.getElementById('tableEventi').style.display = 'none') {		document.getElementById('tableEventi').style.display = 'block';		document.getElementById('tableContenutiXML').style.display = 'none';	}	if (document.getElementById('tableEventoXML').style.display != 'none') {		document.getElementById('tableEventoXML').style.display = 'none';			document.getElementById('tableLocandinaEvento').style.display = 'none';		document.getElementById('tableTagCloud').style.display = '';	}	if (showContXML==true) {		document.getElementById('tableContenutiXML').style.display = 'block';		}	//chiamata per visualizzare banner immagini multimedia Flash in MEDIAKIT (se presente)--------------------->>>	if (document.getElementById('bodyMultimediaKitXML') != null) {			var sUnid = document.getElementById('bodyMultimediaKitXML').getAttribute('name');		var showObj = "http://"+ sHost +sPath+"/slide.swf?OpenFileResource"	;		var showSource = "http://"+ sHost +sPath+"/slideshowSR.xml?OpenPage&u=" + sUnid;//alert (showSource);				var s2 = "<embed src='"+showObj+"' width='400' height='120' allowscriptaccess='always' allowfullscreen='true' flashvars='xml="+showSource+"'/>";			document.getElementById('bodyMultimediaKitXML').innerHTML = s2;	}//chiamata per visualizzare banner immagini multimedia Flash in MEDIAKIT (se presente)---------------------<<<	//chiamata per visualizzare banner immagini multimedia Flash relativi alle schede prodotto (se presenti)--------------------->>>	var numSchede = document.getElementById('NumSchedeProdotto').innerHTML;	for (x=1;x<=numSchede; x++) {		if (document.getElementById('bannerProdottoXML'+x) != null) {			if (document.getElementById('bodyMultimediaProdottoXML'+x) != null) {			var sUnid = document.getElementById('bodyMultimediaProdottoXML'+x).getAttribute('name');			var showObj = "http://"+ sHost +sPath+"/slide.swf?OpenFileResource"	;			var showSource = "http://"+ sHost +sPath+"/slideshowSR.xml?OpenPage&u=" + sUnid;//alert (showSource);					var s2 = "<embed src='"+showObj+"' width='400' height='120' allowscriptaccess='always' allowfullscreen='true' flashvars='xml="+showSource+"'/>";			document.getElementById('bodyMultimediaProdottoXML'+x).innerHTML = s2;			}		}	}//chiamata per visualizzare banner immagini multimedia Flash relativi alle schede prodotto (se presenti)---------------------<<<		//scroll fino al nome del manager selezionato, quando si carica la pagina del management cliccando sul nome di un manager------------------->>>		if ((elem != null) && (elem.id == "linkDettagliManagement")) {		if (document.getElementById("mng"+elem.innerHTML) != null) {			ScrollToElement (document.getElementById("mng"+elem.innerHTML));					}	}//scroll fino al nome del manager selezionato, quando si carica la pagina del management cliccando sul nome di un manager-------------------<<<		//registrazione statistiche su Google analytics------------------------------------------------------------>>>	if (elem != null) {		statsGA (elem.id, null, null);		statsEKN (elem.id, null, null, null);	}	//registrazione statistiche su Google analytics------------------------------------------------------------<<<	} // function loadXML//funzione principale per caricamento contenuti XML-----------------------------------------------------------------------------<<<//funzione per caricamento dettagli eventoXML------------------------------------------------------------------------------------->>>function loadEventoXML(sUnid, sTitolo) {//alert (sUnid);	document.getElementById('bodyRsvpEventoAjax').innerHTML = '';	document.getElementById('tableEventoXML').style.display = 'block';		document.getElementById('formRsvpEvento').style.display = '';			document.getElementById('tableLocandinaEvento').style.display = 'block';			//chiamo funzione Ajax per visualizzare sezione RSVP o commenti, secondo che l'evento sia passato o futuro	selectCommentiRSVP (sUnid);		var sSource = "./XMLEventiUnid?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./EventoTitoloStyle.xsl";		sDest = 'bodyTitoloEventoXML';	selectBrowser (sSource, sStyle, sDest);//alert (sSource);		var sSource = "./XMLEventiUnid?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./EventoDetailsStyle.xsl";	sDest = 'bodyCorpoEventoXML';	selectBrowser (sSource, sStyle, sDest);		var sSource = "./XMLEventiUnid?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./EventoLocandinaStyle.xsl";	sDest = 'bodyLocandinaEvento';	selectBrowser (sSource, sStyle, sDest);	var sSource = "./XMLEventiUnid?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./EventoMultimediaStyle.xsl";	sDest = 'bodyMultimediaEvento';	selectBrowser (sSource, sStyle, sDest);	//chiamata per visualizzare banner immagini multimedia Flash (se presente)--------------------->>>	if (document.getElementById('titoloEvento').getAttribute('banner') == '1') {		var sUnid = document.getElementById('titoloEvento').getAttribute('name')		var showObj = "http://"+ sHost +sPath+"/slide.swf?OpenFileResource"	;		var showSource = "http://"+ sHost +sPath+"/slideshowSR.xml?OpenPage&u=" + sUnid;		var s2 = "<embed src='"+showObj+"' width='400' height='120' allowscriptaccess='always' allowfullscreen='true' flashvars='xml="+showSource+"'/>";					document.getElementById('bodyMultimediaEventoXML').innerHTML = s2;	} else {		document.getElementById('bodyMultimediaEventoXML').innerHTML = '';	}//chiamata per visualizzare banner immagini multimedia (Flash se presente)---------------------<<<		document.getElementById('tableContenutiXML').style.display = 'none';		document.getElementById('tableHeaderSmartRelease').style.display = 'none';	document.getElementById('tableBodySmartRelease').style.display = 'none';	document.getElementById('tableEventi').style.display = 'none';	document.getElementById('tableTagCloud').style.display = 'none';	window.scrollTo(0,0);	statsGA ("evento", sUnid, sTitolo);	statsEKN ("evento", sUnid, sTitolo, null);} //function loadEventoXML//funzione per caricamento dettagli eventoXML-------------------------------------------------------------------------------------<<<//funzione per caricamento dettagli SmartReleaseXML------------------------------------------------------------------------------------->>>function loadSmartReleaseXML(sUnid, sTitolo, sKey) {//alert (elem.id);	document.getElementById('colSmartRoom').style.display = 'none';	document.getElementById('bodyCommentoAjax').innerHTML = '';	document.getElementById('colSmartRelease').style.display = '';	document.getElementById('formCommentoSR').style.display = '';				if (sKey == "NoteID") {		var sSource = "./XMLComunicatiNoteID?ReadViewEntries&restricttocategory="+sUnid;				} else {		var sSource = "./XMLComunicatiUnid?ReadViewEntries&restricttocategory="+sUnid;					}	var sStyle = "./SmartReleaseTitoloStyle.xsl";	sDest = 'bodyTitoloReleaseXML';	selectBrowser (sSource, sStyle, sDest);//alert (document.getElementById('titoloSR').getAttribute('name'));	if (sKey == "NoteID") {		sUnid = document.getElementById('titoloSR').getAttribute('name');	}		var sSource = "./XMLComunicatiAbstractDXLUnid/"+sUnid+"?OpenDocument";				var sStyle = "./SmartReleaseAbstractDXLStyle.xsl";	sDest = 'bodyAbstractReleaseXML';	selectBrowser (sSource, sStyle, sDest);	var sSource = "./XMLComunicatiUnid?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./SmartReleaseTagsStyle.xsl";	sDest = 'bodyTagsReleaseXML';	selectBrowser (sSource, sStyle, sDest);	var sSource = "./XMLQuotesComunicatiUnid?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./SmartReleaseQuoteStyle.xsl";	sDest = 'bodyQuoteReleaseXML';	selectBrowser (sSource, sStyle, sDest);	var sSource = "./XMLComunicatiBodyDXLUnid/"+sUnid+"?OpenDocument";				var sStyle = "./SmartReleaseBodyDXLStyle.xsl";	sDest = 'bodyCorpoReleaseXML';	selectBrowser (sSource, sStyle, sDest);	var sSource = "./XMLMediakitSmartRelease?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./SmartReleaseMediakitStyle.xsl";	sDest = 'bodyMediakitReleaseXML';	selectBrowser (sSource, sStyle, sDest);	//chiamata ajax per contare il numero di commenti pubblicati----------------------------------------->>>		var sSource = "./XMLCommentiSR?ReadViewEntries&restricttocategory="+sUnid;				var sStyle = "./SmartReleaseContaCommentiStyle.xsl";	sDest = 'tdLinkCommentiSR';	selectBrowser (sSource, sStyle, sDest);//chiamata ajax per contare il numero di commenti pubblicati-----------------------------------------<<<//chiamata per visualizzare video (se presente)----------------------------------------------------->>>	if (document.getElementById('container') != null) {		var videoURL = document.getElementById('videoUrl').innerHTML;		var videoFileURL = document.getElementById('videoFileUrl').innerHTML;		var videoImgURL = document.getElementById('videoImgUrl').innerHTML;		//		alert ("http://"+sHost+videoURL);//		alert ("http://"+sHost+videoImgURL);				var s1 = new SWFObject("http://"+ sHost +sPath+"/mediaplayer.swf?OpenFileResource","mediaplayer","320","220","7");//		var s1 = new SWFObject("http://smartroom.bpress.it/bpweb/naesconsultingsmartroom.nsf/mediaplayer.swf?OpenFileResource","mediaplayer","320","220","7");		s1.addParam("allowfullscreen","true");		s1.addVariable("width","320");		s1.addVariable("height","220");		s1.addVariable("lightcolor","0xffffff");		s1.addVariable("screencolor","0xd8d8e0");		s1.addVariable("backcolor","0x1f3653");		s1.addVariable("frontcolor","0xd8d8e0");		//		s1.addVariable("file","http://"+sHost+videoURL);		s1.addVariable("file",videoFileURL);//		s1.addVariable("file","/smartroom/naesconsultingsmartroom/5AC594A79876EA9BC12573D6005EBD57.flv");				s1.addVariable("image","http://"+sHost+videoImgURL);//		s1.addVariable("image","/smartroom/video.jpg");		s1.write("container");	}		if (document.getElementById('youtubeContainer') != null) {		var videoFileURL = document.getElementById('videoFileUrl').innerHTML;					var s1 = "<object width='320' height='267'>";		s1 += "<param name='movie' value='" + videoFileURL + "' />";		s1 += "<param name='wmode' value='transparent' />";		s1 += "<embed src='" + videoFileURL + "' type='application/x-shockwave-flash' wmode='transparent' width='320' height='267' />";			s1 += "</object>";			document.getElementById('youtubeContainer').innerHTML = s1; 	/*<object width='425' height='355'><param name='movie' value='http://www.youtube.com/v/l2TtxPu6j70&rel=1' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/l2TtxPu6j70&rel=1' type='application/x-shockwave-flash' wmode='transparent' width='425' height='355' /></object>*/	}	//chiamata per visualizzare video (se presente)-----------------------------------------------------<<<//chiamata per visualizzare banner immagini multimedia Flash (se presente)--------------------->>>	if (document.getElementById('titoloSR').getAttribute('banner') == '1') {		var sUnid = document.getElementById('titoloSR').getAttribute('name')		var showObj = "http://"+ sHost +sPath+"/slide.swf?OpenFileResource"	;		var showSource = "http://"+ sHost +sPath+"/slideshowSR.xml?OpenPage&u=" + sUnid;//		var showSource = "http://smartroom.bpress.it/bpweb/naesconsultingsmartroom.nsf/slideshowSR.xml?OpenPage&u=C3B735BC7059BADDC12573D6005E81D0";				var s2 = "<embed src='"+showObj+"' width='510' height='120' allowscriptaccess='always' allowfullscreen='true' flashvars='xml="+showSource+"'/>";//		var s2 = "<embed src='"+showObj+"' width='510' height='120' allowscriptaccess='always' allowfullscreen='true' flashvars='xml=http://www.bpress.it/smartroom/photo.xml'/>";					document.getElementById('bodyMultimediaReleaseXML').innerHTML = s2;			} else {		document.getElementById('bodyMultimediaReleaseXML').innerHTML = '';	}//chiamata per visualizzare banner immagini multimedia (Flash se presente)---------------------<<<	statsGA ("release", sUnid, sTitolo);	statsEKN ("release", sUnid, sTitolo, null);} //loadSmartReleaseXMLfunction chkLoad () {	if (newImg.complete) {		clearTimeout();		return;	}	if (!newImg.complete) {		setTimeout ('chkLoad()', 100);	}}//funzione per caricamento dettagli SmartReleaseXML-------------------------------------------------------------------------------------<<<//funzione per caricamento commenti  SmartReleaseXML------------------------------------------------------------------------------------->>>function loadCommentiXML(elem) {//alert (elem.innerHTML);	if (elem.getAttribute("href") == "action:nascondi commenti") {		if (document.getElementById("bodyCommentoAjax") != null) {			document.getElementById("bodyCommentoAjax").innerHTML ="";		}		if (document.getElementById("bodyCommEventoAjax") != null) {			document.getElementById("bodyCommEventoAjax").innerHTML ="";		}				elem.innerHTML = "Mostra commenti (" + elem.getAttribute("count") + ")";		elem.setAttribute("href", "action:visualizza commenti");			} else {		if (elem.id == 'linkCommentiEvento') {			var sUnid = document.getElementById("titoloEvento").getAttribute("name");			var sSource = "./XMLCommentiEventi?ReadViewEntries&restricttocategory="+sUnid;						var sStyle = "./CommentiSmartReleaseStyle.xsl";			sDest = 'bodyCommEventoAjax';			selectBrowser (sSource, sStyle, sDest);				} else {			var sUnid = document.getElementById("titoloSR").getAttribute("name");			var sSource = "./XMLCommentiSR?ReadViewEntries&restricttocategory="+sUnid;						var sStyle = "./CommentiSmartReleaseStyle.xsl";			sDest = 'bodyCommentoAjax';			selectBrowser (sSource, sStyle, sDest);		}				elem.innerHTML = "Nascondi commenti (" + elem.getAttribute("count") + ")";		elem.setAttribute("href", "action:nascondi commenti");	}}//funzione per caricamento commenti SmartReleaseXML-------------------------------------------------------------------------------------<<<//funzioni per richiesta intervista management----------------------------------------------------------------------------------------------------->>>function showRequestFields (elem) {//	elem.innerHTML='';var id = new String (elem.id);var pos = id.substr(16);//	elem.innerHTML = '';	elem.style.visibility='hidden';//	elem.style.width='325px';	document.getElementById('formManagement'+pos).style.display = '';	}//funzioni per richiesta intervista management-----------------------------------------------------------------------------------------------------<<<//selezione XMLT della funzione adatta, in funzione del browser usato---------------------------->>>function selectBrowser (sSource, sStyle, sDest) {	if (self.ActiveXObject) {		source = new ActiveXObject("Microsoft.XMLDOM");		style = new ActiveXObject("Microsoft.XMLDOM");//alert ('MS Explorer/' + sStyle );			source.async = false;		style.async = false;		source.load(sSource);		style.load(sStyle);				err=style.parseError;		if (err.errorCode!=0) {		 	alert("A parse error occured");		}		doTransformIE(sDest);	}	else {		if (document.implementation && document.implementation.createDocument) {//alert ('Firefox');			try {				source = document.implementation.createDocument ("", "", null);				style = document.implementation.createDocument ("", "", null);				source.async = false;				style.async = false;		//	alert (sSource);										source.load(sSource);				style.load(sStyle);								doTransformFirefox(sDest);						} catch (e) {//Safari: da errore su source.load//alert (e);				doTransformSafari(sDest,sSource,sStyle);			}					}	}}//seleziona della funzione adatta, in funzione del browser usato----------------------------<<<//esecuzione parsing XML per Safari--------------------------------------------------------------->>>function doTransformSafari(sDest,sSource,sStyle) {	var html = null;			try {		var xsltProc = new XSLTProcessor();// load the xslt file		var myXMLHTTPRequest = new XMLHttpRequest();		myXMLHTTPRequest.open("GET", sStyle, false);		myXMLHTTPRequest.send(null);		xslStylesheet = myXMLHTTPRequest.responseXML;		xsltProc.importStylesheet(xslStylesheet);// load the xml file		myXMLHTTPRequest = new XMLHttpRequest();		myXMLHTTPRequest.open("GET", sSource, false);		myXMLHTTPRequest.send(null);		 		 		 		 		var xmlSource = myXMLHTTPRequest.responseXML;//transform			var resultDocument = xsltProc.transformToFragment(xmlSource, document);				html=resultDocument.childNodes[0].innerHTML//		alert(html.indexOf("<body>"));//		alert(html.indexOf("</body>"));		html = html.slice (html.indexOf("<body>")+6, html.indexOf("</body>"));//		alert (html);		if(html.length==0) {//			html = "No entries found!";		}	} 	catch (e) {		alert (e)	}	finally {		document.getElementById(sDest).innerHTML = html;//		document.getElementById(sDest).appendChild(resultDocument);			}			}//esecuzione parsing XML per Safari---------------------------------------------------------------<<<//esecuzione parsing XML per IE--------------------------------------------------------------------->>>function doTransformIE(sDest) {	//alert(source);//alert(style);	if (getReadyState()){		resulting = source.transformNode(style);		document.all.item(sDest).innerHTML = resulting;	}	} //function doTransformIE()//esecuzione parsing XML per IE---------------------------------------------------------------------<<<function getReadyState() {	// alert("ready state: " + source.readyState);	if (source.readyState == 4) {		return true;	}	setTimeout("getReadyState()", 100);} //function getReadyState()//esecuzione parsing XML per Firefox--------------------------------------------------------------->>>function doTransformFirefox(sDest) {		var html = null;			try {		var xsltProc = new XSLTProcessor();		xsltProc.importStylesheet(style);				var resultDoc = xsltProc.transformToDocument(source);		var xmlSerial = new XMLSerializer;		html = xmlSerial.serializeToString(resultDoc);		if(html.length==0) {			html = "No entries found!";		}	} 	catch (e) {		alert (e)	}	finally {		//document.getElementById(sDest).style.display = 'invisible';		document.getElementById(sDest).innerHTML = html;		//document.getElementById(sDest).style.display = '';	}		}//esecuzione parsing XML per Firefox---------------------------------------------------------------<<<//funzioni AJAX per visualizzare Commenti o RSVP che l'evento sia passato o fururo----------------------------------------------------------------------------------------------->>>function selectCommentiRSVP (sUnid) {	var strURL = "http://"+sHost+sPath+"/Ajax_CheckEventDate?OpenAgent&"+sUnid;		if (self.ActiveXObject) {		oXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");	} else {		oXmlHttp = new XMLHttpRequest();			}	oXmlHttp.open("GET", strURL , false);	oXmlHttp.send(null);//	alert (oXmlHttp.readyState);	stateChangedRSVP();}function stateChangedRSVP() {//alert (oXmlHttp.readyState);	if (oXmlHttp.readyState==4 || oXmlHttp.readyState=="complete") {	//alert (oXmlHttp.responseText);//	alert (oXmlHttp.responseText.substr(0,4));						if (oXmlHttp.responseText.substr(0,4) == "pass") {//alert ('comm');//			document.getElementById("formRsvpEvento").style.display='none';//			document.getElementById("txtBannerRSVP").innerHTML='Lascia un commento';			document.getElementById("bannerRSVP").style.display='none';			document.getElementById("bannerCommenti").style.display='';									sHTML = "<table width='100%' border='0' cellspacing='0' cellpadding='0' valign='center' align='left'>";			sHTML += "<tr>";						sHTML += "<td colspan='2'>";			sHTML += "<table width='100%' border='0' cellspacing='0' cellpadding='0' valign='center' align='left'>";						sHTML += "<tr>";						sHTML += "<td class='etichFormEvento' colspan='1'>Nombre:</td>";			sHTML += "<td id='nomeGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='CommEventoNome'/></td>";						sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>Apellido:</td>";			sHTML += "<td id='cognomeGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='CommEventoCognome'/></td>";			sHTML += "</tr>";						sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>e-mail:</td>";			sHTML += "<td id='emailGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='CommEventoInternet'/></td>";			sHTML += "</tr>";						sHTML += "</table>";			sHTML += "</td>";						sHTML += "</tr>";						sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='2'>Comentario:</td>";			sHTML += "</tr>";			sHTML += "<tr>";						sHTML += "<td id='commentoGiorn' class='fieldsFormEvento' colspan='2'><textarea class='fieldFormSR' cols='50' rows='7' style='height:150px; width:390px' name='CommEventoBody'></textarea></td>";			sHTML += "</tr>";						sHTML += "<tr>";			sHTML += "<td class='linkEvento' colspan='1' style='cursor:pointer' onclick='validateEventComment()'>ENVIAR</td>";			sHTML += "<td class='etichFormEvento' colspan='1'>&nbsp;</td>";			sHTML += "</tr>";							//alert(oXmlHttp.responseText.lastIndexOf('&'));						if (oXmlHttp.responseText.lastIndexOf('&') != '-1') {				var numRisp = (oXmlHttp.responseText.substr(oXmlHttp.responseText.lastIndexOf('&')+1));				sHTML += "<tr>";				sHTML += "<td id='tdLinkCommentiEvento' class='linkSR' colspan='1'>";				sHTML += "<a id='linkCommentiEvento' count='" + numRisp.substr(0, numRisp.length -1) + "' onclick='loadCommentiXML(this); return false' href='action:visualizza commenti'> Mostra Commenti ("+numRisp.substr(0, numRisp.length -1)+") </a>"				sHTML += "</td>";				sHTML += "<td class='textSR'>&nbsp;</td>";				sHTML += "</tr>";						}												sHTML += "<tr>";			sHTML += "<td id='bodyCommEventoAjax' colspan='2'>&nbsp;</td>";			sHTML += "</tr>";											sHTML += "</table>";			//			sHTML += ;//			sHTML += ;//			sHTML += ;//alert (sHTML);			document.getElementById("formRsvpEvento").innerHTML = sHTML;					} else {//alert ('rsvp');//			document.getElementById("formRsvpEvento").style.display='';//			document.getElementById("txtBannerRSVP").innerHTML='RSVP';			document.getElementById("bannerRSVP").style.display='';			document.getElementById("bannerCommenti").style.display='none';						sHTML = "<table width='100%' border='0' cellspacing='0' cellpadding='0' valign='center' align='left'>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>Nombre:</td>";			sHTML += "<td id='nomeGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='EventoNome'/></td>";			sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>Apellido:</td>";			sHTML += "<td id='cognomeGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='EventoCognome'/></td>";			sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>Encabezamiento:</td>";			sHTML += "<td id='testataGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='EventoTestata'/></td>";			sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>Tel\u00E9fono:</td>";			sHTML += "<td id='phoneGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='EventoPhone'/></td>";			sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>e-mail:</td>";			sHTML += "<td id='emailGiorn' class='fieldsFormEvento' colspan='1'><input class='fieldFormSR' value='' name='EventoInternet'/></td>";			sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='etichFormEvento' colspan='1'>&nbsp;</td>";			sHTML += "<td id='prefGiorn' class='fieldsFormEvento' colspan='1'>";			sHTML += "<input type='radio' value='4' name='EventoPrefs' />";			sHTML += "Participar\u00E9<br />"			sHTML += "<input type='radio' value='3' name='EventoPrefs' />";			sHTML += "Puede que participe<br />"			sHTML += "<input type='radio' value='2' name='EventoPrefs' />";			sHTML += "No participar\u00E9 pero solicito el Media kit<br />"			sHTML += "<input type='radio' value='1' name='EventoPrefs' />";			sHTML += "No participar\u00E9<br />"			sHTML += "</td>";			sHTML += "</tr>";			sHTML += "<tr>";			sHTML += "<td class='linkEvento' colspan='1' style='cursor:pointer'  onclick='validateEvent()'>ENVIAR</td>";			sHTML += "<td class='etichFormEvento' colspan='1'>&nbsp;</td>";			sHTML += "</tr>";						sHTML += "</table>";			document.getElementById("formRsvpEvento").innerHTML = sHTML;				}	} }//funzioni AJAX per visualizzare Commenti o RSVP che l'evento sia passato o fururo-----------------------------------------------------------------------------------------<<<//funzioni per ritorno a visualizzazione default interno contenuti diversi--------------------------------------------------------------------->>>//normalmente, associati a pulsante "Back..."function resetDisplay () {		document.getElementById('tableContenutiXML').style.display = 'none';		document.getElementById('tableEventoXML').style.display = 'none';		document.getElementById('tableLocandinaEvento').style.display = 'none';			document.getElementById('tableHeaderSmartRelease').style.display = '';	document.getElementById('tableBodySmartRelease').style.display = '';	document.getElementById('tableEventi').style.display = '';	document.getElementById('tableTagCloud').style.display = '';				resetManagement ();	statsEKN ('back', null, null, null);}function backSR () {			document.getElementById('colSmartRelease').style.display = 'none';	document.getElementById('colSmartRoom').style.display = '';		for (n=1; n<=3;n++) {		if (document.getElementById('imgFloat'+n) != null) {		document.getElementById('imgFloat'+n).style.display = 'none';		}	}		statsEKN ('back', null, null, null);	}function resetManagement () {//ri-visualizzo i dettagli del management nella colonna di sinistra-------------------------------->>>		var nMan = document.getElementById('NumManagers').innerHTML;	for (n=1; n <= nMan; n++) {		if (document.getElementById('managerImg'+n) != null) {			if(document.getElementById('managerImg'+n).style.display == 'none') {				document.getElementById('managerImg'+n).style.display = '';			}		}		if (document.getElementById('managerPhone'+n) != null) {			if(document.getElementById('managerPhone'+n).style.display == 'none') {				document.getElementById('managerPhone'+n).style.display = '';			}		}		if (document.getElementById('managerCellPhone'+n) != null) {			if(document.getElementById('managerCellPhone'+n).style.display == 'none') {				document.getElementById('managerCellPhone'+n).style.display = '';			}		}		if (document.getElementById('managerMail'+n) != null) {			if(document.getElementById('managerMail'+n).style.display == 'none') {				document.getElementById('managerMail'+n).style.display = '';			}		}		if (document.getElementById('managerLinks'+n) != null) {			if(document.getElementById('managerLinks'+n).style.display == 'none') {				document.getElementById('managerLinks'+n).style.display = '';			}		}	}//ri-visualizzo i dettagli del management nella colonna di sinistra--------------------------------<<<	}//funzioni per ritorno a visualizzazione default interno contenuti diversi---------------------------------------------------------------------<<<function espandiLista(elem, sOpt1, sOpt2) {//alert (elem.title);	var sPostfix = elem.id.substr(3,10);	sIcoPathA = "http://"+sHost+sPath+"/AllegatiGrafica/SetAttivo/$File/"+"icoTriangolo12A.gif"+"?OpenElement";		sIcoPathB = "http://"+sHost+sPath+"/AllegatiGrafica/SetAttivo/$File/"+"icoTriangolo12B.gif"+"?OpenElement";					if (elem.title == "espandi") {		if ((elem.id == "lnkTuttiLinks") | (elem.id == "icoTuttiLinks")) {			var sSource1 = "./XMLLinksCompany?ReadViewEntries&restricttocategory="+sCliente;			var sSource2 = "./XMLBlogsCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=3";				if (document.getElementById('lnkTuttiBlogs') != null) {				document.getElementById('lnkTuttiBlogs').innerHTML = "ver todos";						document.getElementById('lnkTuttiBlogs').title = "espandi";			}			if (document.getElementById('icoTuttiBlogs') != null) {				sIco = new String (document.getElementById('icoTuttiBlogs').innerHTML);				if (sIco.length > 25) {					document.getElementById('icoTuttiBlogs').innerHTML = "<img src=\""+sIcoPathA+" \" alt=\"\" width=\"12px\" style=\"border:none;\" />";				}				document.getElementById('icoTuttiBlogs').title = "espandi";						}				} else {			var sSource1 = "./XMLLinksCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=3";			var sSource2 = "./XMLBlogsCompany?ReadViewEntries&restricttocategory="+sCliente;			if (document.getElementById('lnkTuttiLinks') != null) {				document.getElementById('lnkTuttiLinks').innerHTML = "ver todos";						document.getElementById('lnkTuttiLinks').title = "espandi";			}			if (document.getElementById('icoTuttiLinks') != null) {							sIco = new String (document.getElementById('icoTuttiLinks').innerHTML);				if (sIco.length > 25) {					document.getElementById('icoTuttiLinks').innerHTML = "<img src=\""+sIcoPathA+" \" alt=\"\" width=\"12px\" style=\"border:none;\" />";				}				document.getElementById('icoTuttiLinks').title = "espandi";			}		}			if (document.getElementById('lnk'+sPostfix) != null) {			document.getElementById('lnk'+sPostfix).innerHTML = "reducir lista";			document.getElementById('lnk'+sPostfix).title = "contrai";		}		if (document.getElementById('ico'+sPostfix) != null) {			document.getElementById('ico'+sPostfix).innerHTML = "<img src=\""+sIcoPathB+"\" alt=\"\" width=\"12\" style=\"border:none;\" />";					document.getElementById('ico'+sPostfix).title = "contrai";				}	} else {		var sSource1 = "./XMLLinksCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=3";		var sSource2 = "./XMLBlogsCompany?ReadViewEntries&restricttocategory="+sCliente+"&count=3";					if (document.getElementById('lnk'+sPostfix) != null) {				document.getElementById('lnk'+sPostfix).innerHTML = "ver todos";					document.getElementById('lnk'+sPostfix).title = "espandi";		}		if (document.getElementById('ico'+sPostfix) != null) {			document.getElementById('ico'+sPostfix).innerHTML = "<img src=\""+sIcoPathA+" \" alt=\"\" width=\"12px\" style=\"border:none;\" />";			document.getElementById('ico'+sPostfix).title = "espandi";		}	}		var sStyle = "./LinksConsigliatiStyle.xsl";	var sDest = "bodyLinksConsigliati"; 	loadXML(sDest, sSource1, sStyle, elem);	var sStyle = "./BlogsStyle.xsl";	var sDest = "bodyBlogs"; 	loadXML(sDest, sSource2, sStyle, elem);}//FINE Variabili e funzioni per caricamento contenuti via XML / XSLT----------------------------------------------------------------------------------------------------------------<<<function cursoreAttivo (elem,sType,sOpt1) {	if (sOpt1 == 'si') {		elem.style.cursor=sType;	}} //function cursoreAttivo(elem)//funzioni per bottoni social media--------------------------------------------------------------------------------------------------------->>>function linkSocialMedia (elem, p, u) {//alert (p);//window.location="http://del.icio.us/post?v=4;url="+encodeURIComponent(window.location.href)+";title="+encodeURIComponent(document.title);switch (elem.id) {	case  "link del.icio.us" :		sUrl="http://del.icio.us/post?v=4;url="+encodeURIComponent(window.location.href +"&p="+p+"&u="+u)+";title="+encodeURIComponent(document.title);		break;	case "link digg" :		sUrl="http://digg.com/submit?phase=2&url="+encodeURIComponent(window.location.href +"&p="+p+"&u="+u)+"&title="+encodeURIComponent(document.title);			break;	case "link oknotizie" :		sUrl="http://oknotizie.com/post?url="+encodeURIComponent(window.location.href +"&p="+p+"&u="+u)+"&title="+encodeURIComponent(document.title);			break;	case "link segnalo" :		sUrl="http://segnalo.com/post.html.php?url="+encodeURIComponent(window.location.href +"&p="+p+"&u="+u)+"&title="+encodeURIComponent(document.title);			break;			case "link technocrati" :		sUrl="http://technorati.com/faves?add="+encodeURIComponent(window.location.href +"&p="+p+"&u="+u);			break;			case "link bloglines" ://		sUrl="http://www.bloglines.com/sub/"+window.location.href +"&p="+p+"&u="+u;			sUrl="http://www.bloglines.com/sub/"+sHost+sPath+"/rss2.0.xml?OpenPage&sez=smartrelease";					break;		case "link facebook" ://		sUrl="http://www.facebook.com/sharer.php?u="+window.location.href +"&p="+p+"&u="+u;			sUrl="http://www.facebook.com/sharer.php?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument";//encodeURIComponent(window.location.href +"&p="+p+"&u="+u)		break;			case "link furl" :		if (p=="evento") {			if (document.getElementById('titoloEvento') != null) {				sUrl="http://www.furl.net/storeIt.jsp?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.getElementById('titoloEvento').innerHTML);								} else {				sUrl="http://www.furl.net/storeIt.jsp?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.title);						}						} else if (p=="smartrelease") {			if (document.getElementById('titoloSR') != null) {				sUrl="http://www.furl.net/storeIt.jsp?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.getElementById('titoloSR').innerHTML);								} else {				sUrl="http://www.furl.net/storeIt.jsp?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.title);						}				} else {			sUrl="http://www.furl.net/storeIt.jsp?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.title);							}		break;			case "link yahoo" :		sBase="http://myweb.yahoo.com/myresults/bookmarklet?u=";		if (p=="evento") {			if (document.getElementById('titoloEvento') != null) {				sUrl=sBase+"http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.getElementById('titoloEvento').innerHTML);								} else {				sUrl=sBase+"http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.title);						}		} else if (p=="smartrelease") {			if (document.getElementById('titoloSR') != null) {				sUrl=sBase+"http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.getElementById('titoloSR').innerHTML);								} else {				sUrl=sBase+"http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.title);						}		} else {			sUrl="http://www.furl.net/storeIt.jsp?u=http://"+sHost+sPath+"/0/"+u+"?OpenDocument&t="+encodeURIComponent(document.title);							}				break;			case "link google" :		sBase="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=";		sUrl=sBase+encodeURIComponent(window.location.href +"&p="+p+"&u="+u)+"&title="+encodeURIComponent(document.title);		break;	default :		sUrl="";}/*if (elem.id == "link del.icio.us") {sUrl="http://del.icio.us/post?v=4;url="+encodeURIComponent(window.location.href +"&p="+p+"&u="+u)+";title="+encodeURIComponent(document.title);}*/if (sUrl != "") {	winName="";	winOpts="";	newWindow = window.open( sUrl, winName, winOpts );}/*document.write("<a href=' target='new' ><img src='/<Computed Value>' alt='del.icio.us' style='border:none'/></a>")*/}//funzioni per bottoni social media---------------------------------------------------------------------------------------------------------<<<function statsAll (sourceId, sUnid, sTitolo) {	statsEKN (sourceId, sUnid, sTitolo, null);	statsGA (sourceId, sUnid, sTitolo);}//funzione per registrazione statistiche su Google analytics------------------------------------------------------------>>>function statsGA (sourceId, sUnid, sTitolo) {	if (sourceId == "release") {		var pageTracker = _gat._getTracker(document.getElementById('GAcode').innerHTML);		pageTracker._initData();		pageTracker._trackPageview("/"+sPath+"/Smartroom?OpenForm&p=smartrelease&u="+sUnid);//pageTracker._trackPageview("/"+sTitolo);	} else if (sourceId == "evento") {		var pageTracker = _gat._getTracker(document.getElementById('GAcode').innerHTML);		pageTracker._initData();		pageTracker._trackPageview("/"+sPath+"/Smartroom?OpenForm&p=evento&u="+sUnid);//pageTracker._trackPageview("/"+sTitolo);		} else {//alert(sourceId);		var destUrl = '';		var destSection = '';		var category = '';		var action = '';		var opt_value;			if (sourceId == "linkMediakit") {			destUrl = "/Smartroom?OpenForm&p=mediakit";			destSection = "Media kit";		} else if ((sourceId == "linkInterniManagement") | (sourceId == "linkDettagliManagement")) {			destUrl = "/Smartroom?OpenForm&p=management";			destSection = "Dettagli management";		} else if (sourceId == "linkInterniEventi") {			destUrl = "/Smartroom?OpenForm&p=eventi";				destSection = "Eventi";		} else if (sourceId == "linkProfilo") {			destUrl = "/Smartroom?OpenForm&p=profilo";				destSection = "Profilo aziendale";		} else if (sourceId == "linkTagCloud") {//ha senso tracciare i click sulla tag Cloud? se si, pensare come fare				destUrl = "";			destSection = "Click TagCloud";		} else if (sourceId.substr(0,10) =="linkAnnoSR") {//ha senso tracciare i click sui link "Anni releases"? se si, pensare come fare				destUrl = "";				destSection = "";		} else if (sourceId.substr(0,10) =="linkMeseSR") {//ha senso tracciare i click sui link "Mesi releases"? se si, pensare come fare				destUrl = "";				destSection = "";		} else if (sourceId == "linkDelicious") {//ha senso tracciare i click sui link "Social media"? se si, pensare come fare					destUrl = "";				category = "Contenuti multimediali";			action = "Pagina Delicious";			opt_value = 1;		}		if (destUrl != "") {			var pageTracker = _gat._getTracker(document.getElementById('GAcode').innerHTML);			pageTracker._initData();			pageTracker._trackPageview("/" + sPath + destUrl);		//			pageTracker._trackPageview("/" + destSection);				}	}}	//funzione per registrazione statistiche su Google analytics------------------------------------------------------------<<<function openWindow(elem, winURL, sAction, sOpt) {	sUrl="http://"+sHost+sPath+"/" + winURL+sAction;	//alert(sUrl);	window.location=sUrl;} //function openWindow(elem, winURL)//funzione per memorizzare in bookmars (IE 4+, FF e Opera)------------------------------------>>>function favoris(elem, titleSource) {		var url = elem.href;	var title = document.getElementById(titleSource).getAttribute("shortTitle");	if (window.sidebar) // firefox		window.sidebar.addPanel(title,url,''); 	else if(window.opera && window.print){ // opera		var newElem = document.createElement('a');		newElem.setAttribute('href',url);		newWlem.setAttribute('title',title);		newElem.setAttribute('rel','sidebar');		newElem.click();	} else if(document.all) {// ie		window.external.AddFavorite(url, title);	}}//funzione per memorizzare in bookmars (IE 4+, FF e Opera)------------------------------------<<<function loadPrintPageXML(elem, sType) {var sUnid = "";var sUrl = "";	switch (sType) {		case "sr" :			sUnid = document.getElementById("titoloSR").getAttribute("name");			sUrl = "http://"+sHost+sPath+"/print.xml?OpenPage&p=smartrelease&u="+sUnid;			break;		case "evento" :			sUnid = document.getElementById("titoloEvento").getAttribute("name");			sUrl = "http://"+sHost+sPath+"/print.xml?OpenPage&p=evento&u="+sUnid;			break;		case "management" :			sCliente = document.getElementById('NomeCliente').innerHTML;			sUrl = "http://"+sHost+sPath+"/print.xml?OpenPage&p=management&u="+sCliente;			break;		case "articoli" :			sCliente = document.getElementById('NomeCliente').innerHTML;			sUrl = "http://"+sHost+sPath+"/print.xml?OpenPage&p=articoli&u="+sCliente;			break;				default :	}				winName="";		winOpts="";		newWindow = window.open( sUrl, winName, winOpts );}