
/*	File library_app.js - Directory SRB							*/

/*	Versione del 22-02-2011										*/

/*	-----------------------------------------------------------	*/

	banner_alt[0] = null;
	banner_alt[1] = "Parrocchia San Roberto Bellarmino - Home Page";
	banner_alt[2] = "";
	banner_alt[3] = "";
	banner_alt[4] = "";
	banner_alt[5] = "";
	banner_alt[6] = "";
	
/*	--------------------------------------------------------------	*/

/*	Caricamento del CSS in funzione della larghezza della finestra	*/

/*	Versione del 25/05/2010											*/

if (gl_livello == 0) gl_path = "";
else
if (gl_livello == 1) gl_path = "../";
else
if (gl_livello == 2) gl_path = "../../";
else alert("Warning - Layout_app.js - Variable gl_livello errata = " + gl_livello);

if (dim_finestra == "low")  	/* 800 x 600 */
{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/library_800.css type=text/css>");
	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/srb_800.css type=text/css>");
	document.write("<link rel=stylesheet href=user_800.css type=text/css>");
}
else if (dim_finestra == "high") 	/* 1024 x 768 */
{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/library_1024.css type=text/css>");
	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/srb_1024.css type=text/css>");
	document.write("<link rel=stylesheet href=user_1024.css type=text/css>");
} 
else  if (dim_finestra == "large")	/* 1280 x 800 oppure 1024 */
{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/library_1280.css type=text/css>");
	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/srb_1280.css type=text/css>");
	document.write("<link rel=stylesheet href=user_1280.css type=text/css>");
}
else  if (dim_finestra == "xl")		/* 1400 x 1050 */
{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/library_1400.css type=text/css>");
	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/srb_1400.css type=text/css>");
	document.write("<link rel=stylesheet href=user_1400.css type=text/css>");
}
else
{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/library_1600.css type=text/css>");
	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/srb_1600.css type=text/css>");
	document.write("<link rel=stylesheet href=user_1600.css type=text/css>");
}

	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/library_print.css type=text/css media=print>");
	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/srb_print.css type=text/css media=print>");
	document.write("<link rel=stylesheet href=user_print.css type=text/css media=print>");
	
/*	25/05/2010 - Gestione dello scroll verticale	*/	
	if (tipo_browser != "ie") 
	{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/scroll_verticale.css type=text/css>");
		document.write("<link rel=stylesheet href=" + gl_path + "cssjs/scroll_verticale_print.css type=text/css media=print>");
	}
	else
	{	if (navigator.userAgent.indexOf("MSIE 8") > 0)
		{	document.write("<link rel=stylesheet href=" + gl_path + "cssjs/scroll_verticale.css type=text/css>");
			document.write("<link rel=stylesheet href=" + gl_path + "cssjs/scroll_verticale_print.css type=text/css media=print>");	
		}			
	}
	
/*	++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++	*/

/*    --------------------------------------------------------	*/
/*		Funzioni per il caricamento del banner			*/
/*    --------------------------------------------------------	*/

/*	Funzione scrivi_logo(lang) - Versione del 24/11/2007		*/

/*	Cliccando sull'immagine si raggiunge l'indirizzo		*/
/*	contenuto nella variabile globale logo_link			*/

function scrivi_logo (lang)  {
	var i, dim, stringa, relative_logo_link;

	if (lang != "it" && lang != "en" && lang != "fr" && lang != "sp" && lang != "pt" && lang != "de")
	{	alert("Funz. scrivi_logo() - lingua: '" + lang + "' non supportata.");
		return false;
	}
	
	if (gl_dir_banner == "")
	{	alert("Funz. scrivi_logo() - Variabile Directory banner (gl_dir_banner) vuota.");
		return false;
	}
	
	dim = lista_lingue.length;
	for (i=0; i<dim; i++)
	{	if (lang == lista_lingue[i]) { stringa = banner_alt[i]; break; }
	}
	
/*	Calcolo dell'indirizzo dove andare quando si clicca sul banner	*/
/*	in funzione delle variabili gl_livello e gl_nome_hp		*/
	
	if (gl_livello == 0) relative_logo_link = gl_nome_hp;
	else
	{	relative_logo_link = "";
		for (i=0; i<gl_livello; i++) relative_logo_link = relative_logo_link + "../";
		relative_logo_link = relative_logo_link + gl_nome_hp;
	}
	
	if (fichier() != relative_logo_link) document.write("<a href='" + relative_logo_link + "'>");

	if (dim_finestra == "low")  		/* 800 x 600 */
	{	document.write("<img id='logo' src='" + gl_path + gl_dir_banner + "banner_800_" + lang + ".jpg' alt='" + stringa + "'>");
	}
	else if (dim_finestra == "high") 	/* 1024 x 768 */
	{	document.write("<img id='logo' src='" + gl_path + gl_dir_banner + "banner_1024_" + lang + ".jpg' alt='" + stringa + "'>");
	} 
	else  if (dim_finestra == "large")	/* 1280 x 800 oppure 1024 */
	{	document.write("<img id='logo' src='" + gl_path + gl_dir_banner + "banner_1280_" + lang + ".jpg' alt='" + stringa + "'>");
	}
	else  if (dim_finestra == "xl")		/* 1400 x 1050 */
	{	document.write("<img id='logo' src='" + gl_path + gl_dir_banner + "banner_1400_" + lang + ".jpg' alt='" + stringa + "'>");
	}
	else
	{	document.write("<img id='logo' src='" + gl_path + gl_dir_banner + "banner_1600_" + lang + ".jpg' alt='" + stringa + "'>");
	}
	
	if (fichier() != relative_logo_link) document.write("</a>");
	
	return true;
}

/*    --------------------------------------------------------	*/
/*	Funzioni per la scrittura del footer				*/
/*    --------------------------------------------------------	*/

/*	Funzione scrivi_dua(lang) - Versione del 2/11/2007		*/

/*	DUA: Data Ultimo Aggiornamento					*/

function scrivi_dua (lang)  {
	var i, dim, stringa;

	if (lang != "it" && lang != "en" && lang != "fr" && lang != "sp" && lang != "pt" && lang != "de")
	{	alert("Funz. scrivi_dua() - lingua: '" + lang + "' non supportata.");
		return false
	}

	dim = lista_lingue.length;
	for (i=0; i<dim; i++)
	{	if (lang == lista_lingue[i]) { stringa = gl_dua[i]; break; }
	}

	document.write(stringa);
	
	return true;
}

/*	Funzione scrivi_footer(lang) - Versione del 03/12/2007		*/

function scrivi_footer (lang)  {

	if (lang == "it")
	{	document.write("Copyright © 2007 - Parrocchia San Robero Bellarmino - Via Panama, 13 - 00198 Roma<br>Tel. 06 844 07 41  - Fax. 06 855 95 27");	
	
	}
	else { alert("Funz. scrivi_footer() - errore lang"); return false; }
	
	return true;
}

/*	--------------- SEZIONE PERSONALIZZAZIONI PER TUTTO IL SITO -------------------------	*/

/*    ------------------------------------------------------------	*/
/*		Funzioni per la modifica dinamica del menu orizzontale	*/
/*		Versione del 15-07-08							*/
/*    ------------------------------------------------------------	*/

function DOM01 (lang) { return true; }
function DOM02 (lang) { return true; }

/*	-----------------------------------------------		*/

/*	Funzione servizio_10 (lang)							*/

/*	Versione 15-07-08 | 31-08-2010						*/

function servizio_10 (lang) {
	
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-8846198-5']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

	return true;
}

/*	-----------------------------------------------		*/

/*	Destinatari e-mail SRB - Versione del 22-02-2011	*/

var destinatari = new Array();

	destinatari[0] = "";
	destinatari[1] = "segreteriaparrocchiale@sanrobertoroma.it";
	destinatari[2] = "dongianrico@sanrobertoroma.it";
	destinatari[3] = "andrea.celli@vicariatusurbis.org";
	destinatari[4] = "dongiorgiogh@yahoo.fr";
	destinatari[5] = "donmauriziomd@yahoo.it";
	destinatari[6] = "essefan@libero.it";
	
/*	destinatari[7] = "ascolto_sanroberto@yahoo.it";		*/
	destinatari[7] = "cdasanroberto@caritasroma.it";
	
	destinatari[8] = "cwelcome@tiscali.it";
	destinatari[9] = "debenedetti2006@libero.it";
	destinatari[10] = "antonpaolo.tanda@libero.it";
	destinatari[11] = "ppe.amato@tiscali.it";
	destinatari[12] = "telefonodargento@hotmail.it";

/*	--------------- FINE SEZIONE PERSONALIZZAZIONI PER TUTTO IL SITO ---------------------	*/

