var site_type = 0;
var language = "it";
var memoria_capitolo_attivo = 1;
var memoria_capitolo_rollover = 1;
var memoria_numero_attivo = 0;
var memoria_numero_rollover = 0;
var capitolo_ordine = "0-0-0-0-0-0-0";
var numeri_ordine = "0-0-0-0-0-0-0-0-0";
var chapter1_cleaned;
var chapter2_cleaned;
var chapter3_cleaned;
var chapter4_cleaned;
var chapter5_cleaned;
var chapter6_cleaned;
var chapter7_cleaned;
var editorial_it = "nulla";
var editorial_fr = "nulla";
var editorial_en = "nulla";
var nome_di_pic1 = "nulla";
var sototitolo_di_pic1it = "nulla";
var sototitolo_di_pic1fr = "nulla";
var sototitolo_di_pic1en = "nulla";
var nome_di_pic2 = "nulla"
var sototitolo_di_pic2it = "nulla";
var sototitolo_di_pic2fr = "nulla";
var sototitolo_di_pic2en = "nulla";
var nome_di_pic3 = "nulla"
var sototitolo_di_pic3it = "nulla";
var sototitolo_di_pic3fr = "nulla";
var sototitolo_di_pic3en = "nulla";
var nome_di_pic4 = "nulla"
var sototitolo_di_pic4it = "nulla";
var sototitolo_di_pic4fr = "nulla";
var sototitolo_di_pic4en = "nulla";
var nome_di_pic5 = "nulla"
var sototitolo_di_pic5it = "nulla";
var sototitolo_di_pic5fr = "nulla";
var sototitolo_di_pic5en = "nulla";
var nome_di_pic6 = "nulla"
var sototitolo_di_pic6it = "nulla";
var sototitolo_di_pic6fr = "nulla";
var sototitolo_di_pic6en = "nulla";
var nome_di_pic7 = "nulla"
var sototitolo_di_pic7it = "nulla";
var sototitolo_di_pic7fr = "nulla";
var sototitolo_di_pic7en = "nulla";
var nome_di_pic8 = "nulla"
var sototitolo_di_pic8it = "nulla";
var sototitolo_di_pic8fr = "nulla";
var sototitolo_di_pic8en = "nulla";
var nome_di_pic9 = "nulla"
var sototitolo_di_pic9it = "nulla";
var sototitolo_di_pic9fr = "nulla";
var sototitolo_di_pic9en = "nulla";
var count_editorial_it = editorial_it.length;
var count_editorial_fr = editorial_fr.length;
var count_editorial_en = editorial_en.length;
var count_sototitolo_di_pic1it = 0;
var count_sototitolo_di_pic1fr = 0;
var count_sototitolo_di_pic1en = 0;
var count_sototitolo_di_pic2it = 0;
var count_sototitolo_di_pic2fr = 0;
var count_sototitolo_di_pic2en = 0;
var count_sototitolo_di_pic3it = 0;
var count_sototitolo_di_pic3fr = 0;
var count_sototitolo_di_pic3en = 0;
var count_sototitolo_di_pic4it = 0;
var count_sototitolo_di_pic4fr = 0;
var count_sototitolo_di_pic4en = 0;
var count_sototitolo_di_pic5it = 0;
var count_sototitolo_di_pic5fr = 0;
var count_sototitolo_di_pic5en = 0;
var count_sototitolo_di_pic6it = 0;
var count_sototitolo_di_pic6fr = 0;
var count_sototitolo_di_pic6en = 0;
var count_sototitolo_di_pic7it = 0;
var count_sototitolo_di_pic7fr = 0;
var count_sototitolo_di_pic7en = 0;
var count_sototitolo_di_pic8it = 0;
var count_sototitolo_di_pic8fr = 0;
var count_sototitolo_di_pic8en = 0;
var count_sototitolo_di_pic9it = 0;
var count_sototitolo_di_pic9fr = 0;
var count_sototitolo_di_pic9en = 0;
var error_which = "ok"
var error_empty_space = "no"
var error_too_much_letters = "no"
var error_no_first_chapter = "no"
var error_no_first_pic = "no"
var first_time = "yes"

function start() {
	if (window.location.search == "?it") {
		language = "it"; }
	if (window.location.search == "?fr") {
		language = "fr"; }
	if (window.location.search == "?en") {
		language = "en"; }
	if (language == "it") {
//	document.getElementById("navitop2x").innerHTML = '<div id="navitop2"><a href="bio-italiano.html?' + language +'">bio</a></div>'; 
	} if (language == "fr") {
//	document.getElementById("navitop2x").innerHTML = '<div id="navitop2"><a href="bio-francais.html?' + language +'">bio</a></div>'; 
	} if (language == "en") {
//	document.getElementById("navitop2x").innerHTML = '<div id="navitop2"><a href="bio-english.html?' + language +'">bio</a></div>'; 
	} 
	replace_languages_in_links();
}

function set_language_it() {
	first_time = "no"
	language = "it";
	if 	(site_type == 2) {	
	window.location.href = "bio-italiano.html?it"	}
	else {
//	document.getElementById("navitop2x").innerHTML = '<div id="navitop2"><a href="bio-italiano.html?' + language +'">bio</a></div>';
	replace_languages_in_links(); }
}

function set_language_fr() {
	first_time = "no"
	language = "fr";
	if 	(site_type == 2) {	
	window.location.href = "bio-francais.html?fr"	}
	else {
//	document.getElementById("navitop2x").innerHTML = '<div id="navitop2"><a href="bio-francais.html?' + language +'">bio</a></div>';
	replace_languages_in_links(); }
}

function set_language_en() {
	first_time = "no"
	language = "en";
	if 	(site_type == 2) {	
	window.location.href = "bio-english.html?en"	}
	else {
//	document.getElementById("navitop2x").innerHTML = '<div id="navitop2"><a href="bio-english.html?' + language +'">bio</a></div>';
	replace_languages_in_links(); }
}

function replace_languages_in_links() {
	document.getElementById("navitop1x").innerHTML = '<div id="navitop1"><a href="index.html?' + language +'">home</a></div>';
	document.getElementById("navitop3x").innerHTML = '<div id="navitop3"><a href="contact.html?' + language +'">contact</a></div>';
	document.getElementById("navitop4x").innerHTML = '<div id="navitop4"><a href="links.html?' + language +'">links</a></div>';
	document.getElementById("navibottom1x").innerHTML = '<div id="navibottom1"><a href="stories.html?' + language +'">stories</a></div>';
	document.getElementById("navibottom2x").innerHTML = '<div id="navibottom2"><a href="portraits.html?' + language +'">portraits</a></div>';
	document.getElementById("navibottom3x").innerHTML = '<div id="navibottom3"><a href="places.html?' + language +'">places</a></div>';
	document.getElementById("navibottom4x").innerHTML = '<div id="navibottom4">&nbsp;&nbsp;&nbsp;</div>';	
	document.getElementById("navibottom5x").innerHTML = '<div id="navibottom5"><a href="commercial.html?' + language +'">commercial</a></div>';
	if (site_type == 1) {
		if (first_time == "yes") {
			replace_empty_spaces_chapters(); 	
			set_highlight_language(); }
		else {
			if (error_empty_space == "yes") {
				set_highlight_language();
				replace_empty_spaces_chapters(); }	
			else if (error_too_much_letters == "yes") {
				set_highlight_language();
				crea_capitoli(); }
			else if (error_no_first_chapter == "yes") {
				set_highlight_language();
				crea_capitoli(); }
			else if (error_no_first_pic == "yes") {
				set_highlight_language();
				crea_numeri(); }
			else {
			count_letters_subtitles_and_editorials();
			set_highlight_language(); }
		}
	}
	if (site_type == 2) {
		set_highlight_language();}
	if (site_type == 3) {
		set_highlight_language();}
	if (site_type == 4) {
		random_pic();
		set_highlight_language();}
}

function set_highlight_language() { 
	if (language == "it") {
	document.getElementById("navitop-it").style.fontWeight = "bold";
	document.getElementById("navitop-it").style.color = "#666666"; 
	document.getElementById("navitop-it").style.borderLeft = "1px solid #BBBBBB";
//	document.getElementById("navitop-fr").style.fontWeight = "normal";
//	document.getElementById("navitop-fr").style.borderLeft = "none";
//	document.getElementById("navitop-fr").style.color = "#999999"; 
//	document.getElementById("navitop-en").style.fontWeight = "normal";
	document.getElementById("navitop-en").style.color = "#666666"; 
	document.getElementById("navitop-en").style.borderLeft = "none";
}
	else if (language == "fr") {
//	document.getElementById("navitop-it").style.fontWeight = "normal";
	document.getElementById("navitop-it").style.borderLeft = "none";
	document.getElementById("navitop-it").style.color = "#BBBBBB";
//	document.getElementById("navitop-fr").style.fontWeight = "bold";
//	document.getElementById("navitop-fr").style.borderLeft = "1px solid #BBBBBB";
//	document.getElementById("navitop-fr").style.color = "#666666"; 
//	document.getElementById("navitop-en").style.fontWeight = "normal";
	document.getElementById("navitop-en").style.borderLeft = "none";
	document.getElementById("navitop-en").style.color = "#BBBBBB"; 
}
	else if (language == "en") {
//	document.getElementById("navitop-it").style.fontWeight = "normal";
	document.getElementById("navitop-it").style.color = "#666666"; 
	document.getElementById("navitop-it").style.borderLeft = "none";
//	document.getElementById("navitop-fr").style.fontWeight = "normal";
//	document.getElementById("navitop-fr").style.borderLeft = "none";
//	document.getElementById("navitop-fr").style.color = "#999999"; 
	document.getElementById("navitop-en").style.fontWeight = "bold";
	document.getElementById("navitop-en").style.color = "#666666"; 
	document.getElementById("navitop-en").style.borderLeft = "1px solid #BBBBBB";
}

}

function random_pic() {
	//Dieses Skript stammt von Michael Mailer?s JavaScripts
	//URL: http://www.webaid.de/js  --  eMail: mm@webaid.de
	//Bitte   entfernen   Sie   diesen   Vermerk   nicht  !

	// document.write(albumEntry[Math.round(Math.random()*albumEntry.length)]);
	var valore = Math.round(Math.random()*randompics.length)
    var picked_pic = randompics[valore];
	if (valore > 4) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + randompics[4] +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; }
	else {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + picked_pic +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; }
}

function replace_empty_spaces_chapters() {
	var last_sign_lengh_chapter1 = chapter1.length - 1;
	var last_sign_lengh_chapter2 = chapter2.length - 1;
	var last_sign_lengh_chapter3 = chapter3.length - 1;
	var last_sign_lengh_chapter4 = chapter4.length - 1;
	var last_sign_lengh_chapter5 = chapter5.length - 1;
	var last_sign_lengh_chapter6 = chapter6.length - 1;
	var last_sign_lengh_chapter7 = chapter7.length - 1;
	if  (chapter1.charAt(last_sign_lengh_chapter1) == " ") {
	error_empty_space = "yes"
	error_which = "chapter1"
	write_which_error_chaptername(); }
	else if  (chapter2.charAt(last_sign_lengh_chapter2) == " ") {
	error_empty_space = "yes"
	error_which = "chapter2"
	write_which_error_chaptername(); }
	else if  (chapter3.charAt(last_sign_lengh_chapter3) == " ") {
	error_empty_space = "yes"
	error_which = "chapter3"
	write_which_error_chaptername(); }
	else if  (chapter4.charAt(last_sign_lengh_chapter4) == " ") {
	error_empty_space = "yes"
	error_which = "chapter4"
	write_which_error_chaptername(); }
	else if  (chapter5.charAt(last_sign_lengh_chapter5) == " ") {
	error_empty_space = "yes"
	error_which = "chapter5"
	write_which_error_chaptername(); }
	else if  (chapter6.charAt(last_sign_lengh_chapter6) == " ") {
	error_empty_space = "yes"
	error_which = "chapter6"
	write_which_error_chaptername(); }
	else if  (chapter7.charAt(last_sign_lengh_chapter7) == " ") {
	error_empty_space = "yes"
	error_which = "chapter7"
	write_which_error_chaptername(); }
	else {
	chapter1_cleaned = chapter1.replace(/\s/, "&nbsp;");
	chapter2_cleaned = chapter2.replace(/\s/, "&nbsp;");
	chapter3_cleaned = chapter3.replace(/\s/, "&nbsp;");
	chapter4_cleaned = chapter4.replace(/\s/, "&nbsp;");
	chapter5_cleaned = chapter5.replace(/\s/, "&nbsp;");
	chapter6_cleaned = chapter6.replace(/\s/, "&nbsp;");
	chapter7_cleaned = chapter7.replace(/\s/, "&nbsp;");
	crea_capitoli(); 
	}
}

function write_which_error_chaptername() { 
	document.getElementById("picsubtitles").innerHTML = "&nbsp;";
	document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">! ! ! ERROR: The last letter of the name of '+ error_which +' is a white space. Please delete that white space (also in the "nulla"-definition)!</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '&nbsp;';
	document.getElementById("navipics5x").innerHTML = '&nbsp;';
	document.getElementById("navipics6x").innerHTML = '&nbsp;';
	document.getElementById("navipics7x").innerHTML = '&nbsp;';
}

function count_letters_chapters() {
	var lengh_chapter1 = chapter1.length
	var lengh_chapter2 = chapter2.length
	var lengh_chapter3 = chapter3.length
	var lengh_chapter4 = chapter4.length
	var lengh_chapter5 = chapter5.length
	var lengh_chapter6 = chapter6.length
	var lengh_chapter7 = chapter7.length
	var all_7_chapters = eval(lengh_chapter1 + lengh_chapter2 + lengh_chapter3 + lengh_chapter4 + lengh_chapter5 + lengh_chapter6 + lengh_chapter7)
	var all_6_chapters = eval(lengh_chapter1 + lengh_chapter2 + lengh_chapter3 + lengh_chapter4 + lengh_chapter5 + lengh_chapter6)
	var all_5_chapters = eval(lengh_chapter1 + lengh_chapter2 + lengh_chapter3 + lengh_chapter4 + lengh_chapter5)
	var all_4_chapters = eval(lengh_chapter1 + lengh_chapter2 + lengh_chapter3 + lengh_chapter4)
	var all_3_chapters = eval(lengh_chapter1 + lengh_chapter2 + lengh_chapter3)
	var all_2_chapters = eval(lengh_chapter1 + lengh_chapter2)
	var all_1_chapters = eval(lengh_chapter1)
	if (chapter7 != "nulla") {
		if (all_7_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1-2-3-4-5-6-7"; } 
	}
	if (chapter7 == "nulla") {
		if (all_6_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1-2-3-4-5-6"; } 
	}
	if (chapter6 == "nulla") {
		if (all_5_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1-2-3-4-5"; } 
	}
	if (chapter5 == "nulla") {
		if (all_4_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1-2-3-4"; } 
	}
	if (chapter4 == "nulla") {
		if (all_3_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1-2-3"; }
	}
	if (chapter3 == "nulla") {
		if (all_2_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1-2"; }
	}
	if (chapter2 == "nulla") {
		if (all_1_chapters >= 53) {
		capitolo_ordine = "too much letters"; } 
		else {	
		capitolo_ordine = "1"; }
	}
	if (chapter1 == "nulla") {
	capitolo_ordine = "0-0-0-0-0-0-0"; }
}

function crea_capitoli() { 
 	count_letters_chapters();
	if (capitolo_ordine == "too much letters") {
	error_too_much_letters = "yes"
	document.getElementById("picsubtitles").innerHTML = "&nbsp;";
	document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">! ! ! ERROR: Some or all chapternames are too long!<br>All showed chapternames = max 52 letters, white spaces included (chapternames definied with "nulla" are not counted).</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '&nbsp;';
	document.getElementById("navipics5x").innerHTML = '&nbsp;';
	document.getElementById("navipics6x").innerHTML = '&nbsp;';
	document.getElementById("navipics7x").innerHTML = '&nbsp;'; }
	else if (capitolo_ordine == "0-0-0-0-0-0-0") {
	error_no_first_chapter = "yes"
	document.getElementById("picsubtitles").innerHTML = "&nbsp;";
	document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">This site is under construction</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '&nbsp;';
	document.getElementById("navipics5x").innerHTML = '&nbsp;';
	document.getElementById("navipics6x").innerHTML = '&nbsp;';
	document.getElementById("navipics7x").innerHTML = '&nbsp;'; }
	else if (capitolo_ordine == "1-2-3-4-5-6-7") {
	document.getElementById("navipics1x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>';
	document.getElementById("navipics2x").innerHTML = '<div id="navipics2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 2; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 2; crea_capitoli();">' + chapter2_cleaned +'</div>';
	document.getElementById("navipics3x").innerHTML = '<div id="navipics3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 3; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 3; crea_capitoli();">' + chapter3_cleaned +'</div>';
	document.getElementById("navipics4x").innerHTML = '<div id="navipics4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 4; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 4; crea_capitoli();">' + chapter4_cleaned +'</div>';
	document.getElementById("navipics5x").innerHTML = '<div id="navipics5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 5; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 5; crea_capitoli();">' + chapter5_cleaned +'</div>';
	document.getElementById("navipics6x").innerHTML = '<div id="navipics6" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 6; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 6; crea_capitoli();">' + chapter6_cleaned +'</div>';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics7" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 7; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 7; crea_capitoli();">' + chapter7_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
	else if (capitolo_ordine == "1-2-3-4-5-6") {
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>';
	document.getElementById("navipics3x").innerHTML = '<div id="navipics2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 2; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 2; crea_capitoli();">' + chapter2_cleaned +'</div>';
	document.getElementById("navipics4x").innerHTML = '<div id="navipics3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 3; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 3; crea_capitoli();">' + chapter3_cleaned +'</div>';
	document.getElementById("navipics5x").innerHTML = '<div id="navipics4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 4; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 4; crea_capitoli();">' + chapter4_cleaned +'</div>';
	document.getElementById("navipics6x").innerHTML = '<div id="navipics5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 5; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 5; crea_capitoli();">' + chapter5_cleaned +'</div>';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics6" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 6; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 6; crea_capitoli();">' + chapter6_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
	else if (capitolo_ordine == "1-2-3-4-5") {
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>';
	document.getElementById("navipics4x").innerHTML = '<div id="navipics2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 2; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 2; crea_capitoli();">' + chapter2_cleaned +'</div>';
	document.getElementById("navipics5x").innerHTML = '<div id="navipics3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 3; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 3; crea_capitoli();">' + chapter3_cleaned +'</div>';
	document.getElementById("navipics6x").innerHTML = '<div id="navipics4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 4; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 4; crea_capitoli();">' + chapter4_cleaned +'</div>';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 5; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 5; crea_capitoli();">' + chapter5_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
	else if (capitolo_ordine == "1-2-3-4") {
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>';
	document.getElementById("navipics5x").innerHTML = '<div id="navipics2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 2; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 2; crea_capitoli();">' + chapter2_cleaned +'</div>';
	document.getElementById("navipics6x").innerHTML = '<div id="navipics3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 3; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 3; crea_capitoli();">' + chapter3_cleaned +'</div>';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 4; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 4; crea_capitoli();">' + chapter4_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
	else if (capitolo_ordine == "1-2-3") {
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '&nbsp;';
	document.getElementById("navipics5x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>';
	document.getElementById("navipics6x").innerHTML = '<div id="navipics2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 2; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 2; crea_capitoli();">' + chapter2_cleaned +'</div>';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 3; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 3; crea_capitoli();">' + chapter3_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
	else if (capitolo_ordine == "1-2") {
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '&nbsp;';
	document.getElementById("navipics5x").innerHTML = '&nbsp;';
	document.getElementById("navipics6x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 2; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 2; crea_capitoli();">' + chapter2_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
	else if (capitolo_ordine == "1") {
	document.getElementById("navipics1x").innerHTML = '&nbsp;';
	document.getElementById("navipics2x").innerHTML = '&nbsp;';
	document.getElementById("navipics3x").innerHTML = '&nbsp;';
	document.getElementById("navipics4x").innerHTML = '&nbsp;';
	document.getElementById("navipics5x").innerHTML = '&nbsp;';
	document.getElementById("navipics6x").innerHTML = '&nbsp;';
	document.getElementById("navipics7x").innerHTML = '<div id="navipics1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_capitolo_rollover = 1; rollover_capitolo();" onmouseout="rollout_capitolo();" onclick="memoria_capitolo_attivo = 1; crea_capitoli();">' + chapter1_cleaned +'</div>'; 
	set_highlight_capitolo();
	memoria_numero_attivo = 0;
	crea_numeri();
	}
}

function set_highlight_capitolo() { 
	if (memoria_capitolo_attivo == 1) {
	document.getElementById("navipics1").style.fontWeight = "bold";
	document.getElementById("navipics1").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics1").style.color = "#666666"; }
	else if (memoria_capitolo_attivo == 2) {
	document.getElementById("navipics2").style.fontWeight = "bold";
	document.getElementById("navipics2").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics2").style.color = "#666666"; }
	else if (memoria_capitolo_attivo == 3) {
	document.getElementById("navipics3").style.fontWeight = "bold";
	document.getElementById("navipics3").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics3").style.color = "#666666"; }
	else if (memoria_capitolo_attivo == 4) {
	document.getElementById("navipics4").style.fontWeight = "bold";
	document.getElementById("navipics4").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics4").style.color = "#666666"; }
	else if (memoria_capitolo_attivo == 5) {
	document.getElementById("navipics5").style.fontWeight = "bold";
	document.getElementById("navipics5").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics5").style.color = "#666666"; }
	else if (memoria_capitolo_attivo == 6) {
	document.getElementById("navipics6").style.fontWeight = "bold";
	document.getElementById("navipics6").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics6").style.color = "#666666"; }
	else if (memoria_capitolo_attivo == 7) {
	document.getElementById("navipics7").style.fontWeight = "bold";
	document.getElementById("navipics7").style.borderLeft = "1px solid #BBBBBB";
	document.getElementById("navipics7").style.color = "#666666"; }
}

function rollover_capitolo() { 
	if (memoria_capitolo_rollover == 1) {
	document.getElementById("navipics1").style.color = "#FF0000"; }
	else if (memoria_capitolo_rollover == 2) {
	document.getElementById("navipics2").style.color = "#FF0000"; }
	else if (memoria_capitolo_rollover == 3) {
	document.getElementById("navipics3").style.color = "#FF0000"; }
	else if (memoria_capitolo_rollover == 4) {
	document.getElementById("navipics4").style.color = "#FF0000"; }
	else if (memoria_capitolo_rollover == 5) {
	document.getElementById("navipics5").style.color = "#FF0000"; }
	else if (memoria_capitolo_rollover == 6) {
	document.getElementById("navipics6").style.color = "#FF0000"; }
	else if (memoria_capitolo_rollover == 7) {
	document.getElementById("navipics7").style.color = "#FF0000"; }
 }

function rollout_capitolo() { 
	if (memoria_capitolo_rollover == 1) {
		if (memoria_capitolo_attivo == 1) {
		document.getElementById("navipics1").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 1) {
		document.getElementById("navipics1").style.color = "#BBBBBB"; }
	}
	else if (memoria_capitolo_rollover == 2) {
		if (memoria_capitolo_attivo == 2) {
		document.getElementById("navipics2").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 2) {
		document.getElementById("navipics2").style.color = "#BBBBBB"; }
	}
	else if (memoria_capitolo_rollover == 3) {
		if (memoria_capitolo_attivo == 3) {
		document.getElementById("navipics3").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 3) {
		document.getElementById("navipics3").style.color = "#BBBBBB"; }
	}
	else if (memoria_capitolo_rollover == 4) {
		if (memoria_capitolo_attivo == 4) {
		document.getElementById("navipics4").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 4) {
		document.getElementById("navipics4").style.color = "#BBBBBB"; }
	}
	else if (memoria_capitolo_rollover == 5) {
		if (memoria_capitolo_attivo == 5) {
		document.getElementById("navipics5").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 5) {
		document.getElementById("navipics5").style.color = "#BBBBBB"; }
	}
	else if (memoria_capitolo_rollover == 6) {
		if (memoria_capitolo_attivo == 6) {
		document.getElementById("navipics6").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 6) {
		document.getElementById("navipics6").style.color = "#BBBBBB"; }
	}
	else if (memoria_capitolo_rollover == 7) {
		if (memoria_capitolo_attivo == 7) {
		document.getElementById("navipics7").style.color = "#666666"; }
		else if (memoria_capitolo_attivo != 7) {
		document.getElementById("navipics7").style.color = "#BBBBBB"; }
	}
 }

function crea_numeri() { 
	editorial_it = eval("chapter" + memoria_capitolo_attivo + "editorialit")
	editorial_fr = eval("chapter" + memoria_capitolo_attivo + "editorialfr")
	editorial_en = eval("chapter" + memoria_capitolo_attivo + "editorialen")
	nome_di_pic1 = eval("chapter" + memoria_capitolo_attivo + "pic1")
	sototitolo_di_pic1it = eval("chapter" + memoria_capitolo_attivo + "pic1commentit")
	sototitolo_di_pic1fr = eval("chapter" + memoria_capitolo_attivo + "pic1commentfr")
	sototitolo_di_pic1en = eval("chapter" + memoria_capitolo_attivo + "pic1commenten")
	nome_di_pic2 = eval("chapter" + memoria_capitolo_attivo + "pic2")
	sototitolo_di_pic2it = eval("chapter" + memoria_capitolo_attivo + "pic2commentit")
	sototitolo_di_pic2fr = eval("chapter" + memoria_capitolo_attivo + "pic2commentfr")
	sototitolo_di_pic2en = eval("chapter" + memoria_capitolo_attivo + "pic2commenten")
	nome_di_pic3 = eval("chapter" + memoria_capitolo_attivo + "pic3")
	sototitolo_di_pic3it = eval("chapter" + memoria_capitolo_attivo + "pic3commentit")
	sototitolo_di_pic3fr = eval("chapter" + memoria_capitolo_attivo + "pic3commentfr")
	sototitolo_di_pic3en = eval("chapter" + memoria_capitolo_attivo + "pic3commenten")
	nome_di_pic4 = eval("chapter" + memoria_capitolo_attivo + "pic4")
	sototitolo_di_pic4it = eval("chapter" + memoria_capitolo_attivo + "pic4commentit")
	sototitolo_di_pic4fr = eval("chapter" + memoria_capitolo_attivo + "pic4commentfr")
	sototitolo_di_pic4en = eval("chapter" + memoria_capitolo_attivo + "pic4commenten")
	nome_di_pic5 = eval("chapter" + memoria_capitolo_attivo + "pic5")
	sototitolo_di_pic5it = eval("chapter" + memoria_capitolo_attivo + "pic5commentit")
	sototitolo_di_pic5fr = eval("chapter" + memoria_capitolo_attivo + "pic5commentfr")
	sototitolo_di_pic5en = eval("chapter" + memoria_capitolo_attivo + "pic5commenten")
	nome_di_pic6 = eval("chapter" + memoria_capitolo_attivo + "pic6")
	sototitolo_di_pic6it = eval("chapter" + memoria_capitolo_attivo + "pic6commentit")
	sototitolo_di_pic6fr = eval("chapter" + memoria_capitolo_attivo + "pic6commentfr")
	sototitolo_di_pic6en = eval("chapter" + memoria_capitolo_attivo + "pic6commenten")
	nome_di_pic7 = eval("chapter" + memoria_capitolo_attivo + "pic7")
	sototitolo_di_pic7it = eval("chapter" + memoria_capitolo_attivo + "pic7commentit")
	sototitolo_di_pic7fr = eval("chapter" + memoria_capitolo_attivo + "pic7commentfr")
	sototitolo_di_pic7en = eval("chapter" + memoria_capitolo_attivo + "pic7commenten")
	nome_di_pic8 = eval("chapter" + memoria_capitolo_attivo + "pic8")
	sototitolo_di_pic8it = eval("chapter" + memoria_capitolo_attivo + "pic8commentit")
	sototitolo_di_pic8fr = eval("chapter" + memoria_capitolo_attivo + "pic8commentfr")
	sototitolo_di_pic8en = eval("chapter" + memoria_capitolo_attivo + "pic8commenten")
	nome_di_pic9 = eval("chapter" + memoria_capitolo_attivo + "pic9")
	sototitolo_di_pic9it = eval("chapter" + memoria_capitolo_attivo + "pic9commentit")
	sototitolo_di_pic9fr = eval("chapter" + memoria_capitolo_attivo + "pic9commentfr")
	sototitolo_di_pic9en = eval("chapter" + memoria_capitolo_attivo + "pic9commenten")
	count_editorial_it = editorial_it.length;
	count_editorial_fr = editorial_fr.length;
	count_editorial_en = editorial_en.length;
	count_sototitolo_di_pic1it = sototitolo_di_pic1it.length;
	count_sototitolo_di_pic1fr = sototitolo_di_pic1fr.length;
	count_sototitolo_di_pic1en = sototitolo_di_pic1en.length;
	count_sototitolo_di_pic2it = sototitolo_di_pic2it.length;
	count_sototitolo_di_pic2fr = sototitolo_di_pic2fr.length;
	count_sototitolo_di_pic2en = sototitolo_di_pic2en.length;
	count_sototitolo_di_pic3it = sototitolo_di_pic3it.length;
	count_sototitolo_di_pic3fr = sototitolo_di_pic3fr.length;
	count_sototitolo_di_pic3en = sototitolo_di_pic3en.length;
	count_sototitolo_di_pic4it = sototitolo_di_pic4it.length;
	count_sototitolo_di_pic4fr = sototitolo_di_pic4fr.length;
	count_sototitolo_di_pic4en = sototitolo_di_pic4en.length;
	count_sototitolo_di_pic5it = sototitolo_di_pic5it.length;
	count_sototitolo_di_pic5fr = sototitolo_di_pic5fr.length;
	count_sototitolo_di_pic5en = sototitolo_di_pic5en.length;
	count_sototitolo_di_pic6it = sototitolo_di_pic6it.length;
	count_sototitolo_di_pic6fr = sototitolo_di_pic6fr.length;
	count_sototitolo_di_pic6en = sototitolo_di_pic6en.length;
	count_sototitolo_di_pic7it = sototitolo_di_pic7it.length;
	count_sototitolo_di_pic7fr = sototitolo_di_pic7fr.length;
	count_sototitolo_di_pic7en = sototitolo_di_pic7en.length;
	count_sototitolo_di_pic8it = sototitolo_di_pic8it.length;
	count_sototitolo_di_pic8fr = sototitolo_di_pic8fr.length;
	count_sototitolo_di_pic8en = sototitolo_di_pic8en.length;
	count_sototitolo_di_pic9it = sototitolo_di_pic9it.length;
	count_sototitolo_di_pic9fr = sototitolo_di_pic9fr.length;
	count_sototitolo_di_pic9en = sototitolo_di_pic9en.length;
	if (nome_di_pic9 != "nulla") {
	numeri_ordine = "1-2-3-4-5-6-7-8-9"; } 
	if (nome_di_pic9 == "nulla") {
	numeri_ordine = "1-2-3-4-5-6-7-8"; } 
	if (nome_di_pic8 == "nulla") {
	numeri_ordine = "1-2-3-4-5-6-7"; } 
	if (nome_di_pic7 == "nulla") {
	numeri_ordine = "1-2-3-4-5-6"; } 
	if (nome_di_pic6 == "nulla") {
	numeri_ordine = "1-2-3-4-5"; }
	if (nome_di_pic5 == "nulla") {
	numeri_ordine = "1-2-3-4"; }
	if (nome_di_pic4 == "nulla") {
	numeri_ordine = "1-2-3"; }
	if (nome_di_pic3 == "nulla") {
	numeri_ordine = "1-2"; }
	if (nome_di_pic2 == "nulla") {
	numeri_ordine = "1"; }
	if (nome_di_pic1 == "nulla") {
	numeri_ordine = "0-0-0-0-0-0-0-0-0"; }
	if (numeri_ordine == "0-0-0-0-0-0-0-0-0") {
	error_no_first_pic = "yes"
	document.getElementById("picsubtitles").innerHTML = "&nbsp;";
	document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">This chapter is under construction</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
	document.getElementById("picnr0x").innerHTML = '<div id="picnr0">+</div>';
	document.getElementById("picnr1x").innerHTML = '<div id="picnr1">+</div>';
	document.getElementById("picnr2x").innerHTML = '<div id="picnr2">+</div>';
	document.getElementById("picnr3x").innerHTML = '<div id="picnr3">+</div>';
	document.getElementById("picnr4x").innerHTML = '<div id="picnr4">+</div>';
	document.getElementById("picnr5x").innerHTML = '<div id="picnr5">+</div>';
	document.getElementById("picnr6x").innerHTML = '<div id="picnr6">+</div>';
	document.getElementById("picnr7x").innerHTML = '<div id="picnr7">+</div>';
	document.getElementById("picnr8x").innerHTML = '<div id="picnr8">+</div>';
	document.getElementById("picnr9x").innerHTML = '<div id="picnr9">+</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	}
	else if (numeri_ordine == "1-2-3-4-5-6-7-8-9") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr0x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr0x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr0x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr1x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr2x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr3x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picnr4x").innerHTML = '<div id="picnr4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 4; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 4; crea_numeri();">4</div>'; 
	document.getElementById("picnr5x").innerHTML = '<div id="picnr5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 5; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 5; crea_numeri();">5</div>'; 
	document.getElementById("picnr6x").innerHTML = '<div id="picnr6" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 6; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 6; crea_numeri();">6</div>'; 
	document.getElementById("picnr7x").innerHTML = '<div id="picnr7" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 7; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 7; crea_numeri();">7</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr8" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 8; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 8; crea_numeri();">8</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr9" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 9; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 9; crea_numeri();">9</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2-3-4-5-6-7-8") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr1x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr1x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr1x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr3x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr4x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picnr5x").innerHTML = '<div id="picnr4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 4; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 4; crea_numeri();">4</div>'; 
	document.getElementById("picnr6x").innerHTML = '<div id="picnr5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 5; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 5; crea_numeri();">5</div>'; 
	document.getElementById("picnr7x").innerHTML = '<div id="picnr6" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 6; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 6; crea_numeri();">6</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr7" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 7; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 7; crea_numeri();">7</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr8" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 8; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 8; crea_numeri();">8</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2-3-4-5-6-7") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr2x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr2x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr2x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr3x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr4x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr5x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picnr6x").innerHTML = '<div id="picnr4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 4; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 4; crea_numeri();">4</div>'; 
	document.getElementById("picnr7x").innerHTML = '<div id="picnr5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 5; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 5; crea_numeri();">5</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr6" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 6; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 6; crea_numeri();">6</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr7" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 7; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 7; crea_numeri();">7</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2-3-4-5-6") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr3x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr3x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr3x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr3x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr4x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr5x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr6x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picnr7x").innerHTML = '<div id="picnr4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 4; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 4; crea_numeri();">4</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 5; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 5; crea_numeri();">5</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr6" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 6; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 6; crea_numeri();">6</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2-3-4-5") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr4x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr4x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr4x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numerorollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr4x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr3x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr5x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr6x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr7x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 4; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 4; crea_numeri();">4</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr5" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 5; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 5; crea_numeri();">5</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2-3-4") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr5x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr5x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr5x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr5x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr3x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr4x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr6x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr7x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr4" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 4; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 4; crea_numeri();">4</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2-3") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr6x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr6x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr6x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr6x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr3x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr4x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr5x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr7x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr8x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr3" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 3; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 3; crea_numeri();">3</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1-2") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr7x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr7x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr7x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr7x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr3x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr4x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr5x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr6x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr8x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_cnumero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picnr9x").innerHTML = '<div id="picnr2" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 2; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 2; crea_numeri();">2</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
	else if (numeri_ordine == "1") {
		if (editorial_it != "nulla") {
		document.getElementById("picnr8x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr8x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr8x").innerHTML = '<div id="picnr0" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 0; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 0; crea_numeri();">0</div>'; }
		else {
		document.getElementById("picnr8x").innerHTML = '<div>&nbsp;</div>'; }
	document.getElementById("picnr0x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr1x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr2x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr3x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr4x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr5x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr6x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr7x").innerHTML = '<div>&nbsp;</div>';
	document.getElementById("picnr9x").innerHTML = '<div id="picnr1" style="cursor:pointer; cursor:hand;" onmouseover="memoria_numero_rollover = 1; rollover_numero();" onmouseout="rollout_numero();" onclick="memoria_numero_attivo = 1; crea_numeri();">1</div>'; 
	document.getElementById("picupx").innerHTML = '<div id="picup" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_up();" onmouseout="rollout_pic_up();" onclick="pic_up();"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown" style="cursor:pointer; cursor:hand;" onmouseover="rollover_pic_down();" onmouseout="rollout_pic_down();" onclick="pic_down();"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
	set_highlight_numero(); 
	count_letters_subtitles_and_editorials();
	}
}

function set_highlight_numero() { 
	var editorial_it = eval("chapter" + memoria_capitolo_attivo + "editorialit")
	var editorial_fr = eval("chapter" + memoria_capitolo_attivo + "editorialfr")
	var editorial_en = eval("chapter" + memoria_capitolo_attivo + "editorialen")
	if (memoria_numero_attivo == 0) {
		if (editorial_it != "nulla") {
		document.getElementById("picnr0").style.fontWeight = "bold";
		document.getElementById("picnr0").style.borderTop = "1px solid #BBBBBB";
		document.getElementById("picnr0").style.color = "#666666"; }
		else if (editorial_fr != "nulla") {
		document.getElementById("picnr0").style.fontWeight = "bold";
		document.getElementById("picnr0").style.borderTop = "1px solid #BBBBBB";
		document.getElementById("picnr0").style.color = "#666666"; }
		else if (editorial_en != "nulla") {
		document.getElementById("picnr0").style.fontWeight = "bold";
		document.getElementById("picnr0").style.borderTop = "1px solid #BBBBBB";
		document.getElementById("picnr0").style.color = "#666666"; }
		else {
		memoria_numero_attivo = 1; }
	}
	if (memoria_numero_attivo == 1) {
	document.getElementById("picnr1").style.fontWeight = "bold";
	document.getElementById("picnr1").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr1").style.color = "#666666"; }
	else if (memoria_numero_attivo == 2) {
	document.getElementById("picnr2").style.fontWeight = "bold";
	document.getElementById("picnr2").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr2").style.color = "#666666"; }
	else if (memoria_numero_attivo == 3) {
	document.getElementById("picnr3").style.fontWeight = "bold";
	document.getElementById("picnr3").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr3").style.color = "#666666"; }
	else if (memoria_numero_attivo == 4) {
	document.getElementById("picnr4").style.fontWeight = "bold";
	document.getElementById("picnr4").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr4").style.color = "#666666"; }
	else if (memoria_numero_attivo == 5) {
	document.getElementById("picnr5").style.fontWeight = "bold";
	document.getElementById("picnr5").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr5").style.color = "#666666"; }
	else if (memoria_numero_attivo == 6) {
	document.getElementById("picnr6").style.fontWeight = "bold";
	document.getElementById("picnr6").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr6").style.color = "#666666"; }
	else if (memoria_numero_attivo == 7) {
	document.getElementById("picnr7").style.fontWeight = "bold";
	document.getElementById("picnr7").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr7").style.color = "#666666"; }
	else if (memoria_numero_attivo == 8) {
	document.getElementById("picnr8").style.fontWeight = "bold";
	document.getElementById("picnr8").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr8").style.color = "#666666"; }
	else if (memoria_numero_attivo == 9) {
	document.getElementById("picnr9").style.fontWeight = "bold";
	document.getElementById("picnr9").style.borderTop = "1px solid #BBBBBB";
	document.getElementById("picnr9").style.color = "#666666"; }
}

function rollover_numero() {
	if (memoria_numero_rollover == 0) {
	document.getElementById("picnr0").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 1) {
	document.getElementById("picnr1").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 2) {
	document.getElementById("picnr2").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 3) {
	document.getElementById("picnr3").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 4) {
	document.getElementById("picnr4").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 5) {
	document.getElementById("picnr5").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 6) {
	document.getElementById("picnr6").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 7) {
	document.getElementById("picnr7").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 8) {
	document.getElementById("picnr8").style.color = "#FF0000"; }
	else if (memoria_numero_rollover == 9) {
	document.getElementById("picnr9").style.color = "#FF0000"; }
 }

function rollout_numero() { 
	if (memoria_numero_rollover == 0) {
		if (memoria_numero_attivo == 0) {
		document.getElementById("picnr0").style.color = "#666666"; }
		else if (memoria_numero_attivo != 0) {
		document.getElementById("picnr0").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 1) {
		if (memoria_numero_attivo == 1) {
		document.getElementById("picnr1").style.color = "#666666"; }
		else if (memoria_numero_attivo != 1) {
		document.getElementById("picnr1").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 2) {
		if (memoria_numero_attivo == 2) {
		document.getElementById("picnr2").style.color = "#666666"; }
		else if (memoria_numero_attivo != 2) {
		document.getElementById("picnr2").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 3) {
		if (memoria_numero_attivo == 3) {
		document.getElementById("picnr3").style.color = "#666666"; }
		else if (memoria_numero_attivo != 3) {
		document.getElementById("picnr3").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 4) {
		if (memoria_numero_attivo == 4) {
		document.getElementById("picnr4").style.color = "#666666"; }
		else if (memoria_numero_attivo != 4) {
		document.getElementById("picnr4").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 5) {
		if (memoria_numero_attivo == 5) {
		document.getElementById("picnr5").style.color = "#666666"; }
		else if (memoria_numero_attivo != 5) {
		document.getElementById("picnr5").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 6) {
		if (memoria_numero_attivo == 6) {
		document.getElementById("picnr6").style.color = "#666666"; }
		else if (memoria_numero_attivo != 6) {
		document.getElementById("picnr6").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 7) {
		if (memoria_numero_attivo == 7) {
		document.getElementById("picnr7").style.color = "#666666"; }
		else if (memoria_numero_attivo != 7) {
		document.getElementById("picnr7").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 8) {
		if (memoria_numero_attivo == 8) {
		document.getElementById("picnr8").style.color = "#666666"; }
		else if (memoria_numero_attivo != 8) {
		document.getElementById("picnr8").style.color = "#BBBBBB"; }
	}
	else if (memoria_numero_rollover == 9) {
		if (memoria_numero_attivo == 9) {
		document.getElementById("picnr9").style.color = "#666666"; }
		else if (memoria_numero_attivo != 9) {
		document.getElementById("picnr9").style.color = "#BBBBBB"; }
	}
 }

function pic_up() { 
	if (numeri_ordine == "1-2-3-4-5-6-7-8-9") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 9;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 9; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5-6-7-8") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 8;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 8; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5-6-7") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 7;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 7; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5-6") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 6;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 6; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 5;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 5; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 4;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 4; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 3;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 3; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 2;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 2; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1") {
		if (memoria_numero_attivo == 0) {
		memoria_numero_attivo = 1;
		crea_numeri();
		} else if (memoria_numero_attivo == 1) {
			if (editorial_it != "nulla") { 
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_fr != "nulla") {
			memoria_numero_attivo = 0;
			crea_numeri();
			} else if (editorial_en != "nulla") {
			memoria_numero_attivo = 0;			
			crea_numeri();
			} else {
			memoria_numero_attivo = 1; }
			crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo - 1;
		crea_numeri();
		}
	}
}

function pic_down() { 
	if (numeri_ordine == "1-2-3-4-5-6-7-8-9") {
		if (memoria_numero_attivo == 9) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5-6-7-8") {
		if (memoria_numero_attivo == 8) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5-6-7") {
		if (memoria_numero_attivo == 7) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5-6") {
		if (memoria_numero_attivo == 6) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4-5") {
		if (memoria_numero_attivo == 5) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3-4") {
		if (memoria_numero_attivo == 4) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2-3") {
		if (memoria_numero_attivo == 3) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1-2") {
		if (memoria_numero_attivo == 2) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
	if (numeri_ordine == "1") {
		if (memoria_numero_attivo == 1) {
		memoria_numero_attivo = 0;
		crea_numeri();
		} else {
		memoria_numero_attivo = memoria_numero_attivo + 1;
		crea_numeri();
		}
	}
}

function rollover_pic_up() { 
	window.document.getElementById("up").src = "programma/naviup-b.gif";	
}
function rollout_pic_up() { 
	window.document.getElementById("up").src = "programma/naviup-a.gif";	
}
function rollover_pic_down() { 
	window.document.getElementById("down").src = "programma/navidown-b.gif";	
}
function rollout_pic_down() { 
	window.document.getElementById("down").src = "programma/navidown-a.gif";	
}

function count_letters_subtitles_and_editorials() {
//	if (memoria_numero_attivo == 0) {
		if (count_editorial_it >= 551) {
			error_which = "Italian editorial";
			write_which_error_editorial(); }
		else if (count_editorial_fr >= 551) {
			error_which = "French editorial";
			write_which_error_editorial(); }
		else if (count_editorial_en >= 551) {
			error_which = "English editorial";
			write_which_error_editorial(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 1) {
		else if (count_sototitolo_di_pic1it >= 63) {
			error_which = "Italian subtitle of pic1";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic1fr >= 63) {
			error_which = "French subtitle of pic1";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic1en >= 63) {
			error_which = "English subtitle of pic1";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 2) {
		else if (count_sototitolo_di_pic2it >= 63) {
			error_which = "Italian subtitle of pic2";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic2fr >= 63) {
			error_which = "French subtitle of pic2";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic2en >= 63) {
			error_which = "English subtitle of pic2";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 3) {
		else if (count_sototitolo_di_pic3it >= 63) {
			error_which = "Italian subtitle of pic3";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic3fr >= 63) {
			error_which = "French subtitle of pic3";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic3en >= 63) {
			error_which = "English subtitle of pic3";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 4) {
		else if (count_sototitolo_di_pic4it >= 63) {
			error_which = "Italian subtitle of pic4";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic4fr >= 63) {
			error_which = "French subtitle of pic4";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic4en >= 63) {
			error_which = "English subtitle of pic4";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 5) {
		else if (count_sototitolo_di_pic5it >= 63) {
			error_which = "Italian subtitle of pic5";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic5fr >= 63) {
			error_which = "French subtitle of pic5";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic5en >= 63) {
			error_which = "English subtitle of pic5";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 6) {
		else if (count_sototitolo_di_pic6it >= 63) {
			error_which = "Italian subtitle of pic6";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic6fr >= 63) {
			error_which = "French subtitle of pic6";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic6en >= 63) {
			error_which = "English subtitle of pic6";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 7) {
		else if (count_sototitolo_di_pic7it >= 63) {
			error_which = "Italian subtitle of pic7";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic7fr >= 63) {
			error_which = "French subtitle of pic7";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic7en >= 63) {
			error_which = "English subtitle of pic7";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 8) {
		else if (count_sototitolo_di_pic8it >= 63) {
			error_which = "Italian subtitle of pic8";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic8fr >= 63) {
			error_which = "French subtitle of pic8";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic8en >= 63) {
			error_which = "English subtitle of pic8";
			write_which_error_subtitle(); }
//		else { set_pic_e_sottotitolo(); }
//	}
//	if (memoria_numero_attivo == 9) {
		else if (count_sototitolo_di_pic9it >= 63) {
			error_which = "Italian subtitle of pic9";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic9fr >= 63) {
			error_which = "French subtitle of pic9";
			write_which_error_subtitle(); }
		else if (count_sototitolo_di_pic9en >= 63) {
			error_which = "English subtitle of pic9";
			write_which_error_subtitle(); }
		else { set_pic_e_sottotitolo(); }
//	}
}

function write_which_error_editorial() {
	document.getElementById("picsubtitles").innerHTML = "&nbsp;";
	document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">! ! ! ERROR: The ' + error_which + ' of this chapter is too long.<br>Each editorial = max 550 letters, white spaces included.</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
	document.getElementById("picnr0x").innerHTML = '<div id="picnr0">+</div>';
	document.getElementById("picnr1x").innerHTML = '<div id="picnr1">+</div>';
	document.getElementById("picnr2x").innerHTML = '<div id="picnr2">+</div>';
	document.getElementById("picnr3x").innerHTML = '<div id="picnr3">+</div>';
	document.getElementById("picnr4x").innerHTML = '<div id="picnr4">+</div>';
	document.getElementById("picnr5x").innerHTML = '<div id="picnr5">+</div>';
	document.getElementById("picnr6x").innerHTML = '<div id="picnr6">+</div>';
	document.getElementById("picnr7x").innerHTML = '<div id="picnr7">+</div>';
	document.getElementById("picnr8x").innerHTML = '<div id="picnr8">+</div>';
	document.getElementById("picnr9x").innerHTML = '<div id="picnr9">+</div>';
	document.getElementById("picupx").innerHTML = '<div id="picup"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
}

function write_which_error_subtitle() {
	document.getElementById("picsubtitles").innerHTML = "&nbsp;";
	document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">! ! ! ERROR: The ' + error_which + ' of this chapter is too long.<br>Each subtitle = max 62 letters, white spaces included.</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
	document.getElementById("picnr0x").innerHTML = '<div id="picnr0">+</div>';
	document.getElementById("picnr1x").innerHTML = '<div id="picnr1">+</div>';
	document.getElementById("picnr2x").innerHTML = '<div id="picnr2">+</div>';
	document.getElementById("picnr3x").innerHTML = '<div id="picnr3">+</div>';
	document.getElementById("picnr4x").innerHTML = '<div id="picnr4">+</div>';
	document.getElementById("picnr5x").innerHTML = '<div id="picnr5">+</div>';
	document.getElementById("picnr6x").innerHTML = '<div id="picnr6">+</div>';
	document.getElementById("picnr7x").innerHTML = '<div id="picnr7">+</div>';
	document.getElementById("picnr8x").innerHTML = '<div id="picnr8">+</div>';
	document.getElementById("picnr9x").innerHTML = '<div id="picnr9">+</div>';
	document.getElementById("picupx").innerHTML = '<div id="picup"><img src="programma/naviup-a.gif" name="up" width="13" height="13" id="up"></div>'; 
	document.getElementById("picdownx").innerHTML = '<div id="picdown"><img src="programma/navidown-a.gif" name="down" width="13" height="13" id="down"></div>'; 
}

function set_pic_e_sottotitolo() { 
	if (memoria_numero_attivo == 0) {
		if (editorial_it != "nulla") {
		document.getElementById("picsubtitles").innerHTML = "&nbsp;";
			if (language == "it") {
				if (editorial_it != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_it + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>Italian translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
			if (language == "fr") {
				if (editorial_fr != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_fr + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>French translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
			if (language == "en") {
				if (editorial_en != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_en + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>English translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
		} 
		else if (editorial_fr != "nulla") {
		document.getElementById("picsubtitles").innerHTML = "&nbsp;";
			if (language == "it") {
				if (editorial_it != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_it + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>Italian translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
			if (language == "fr") {
				if (editorial_fr != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_fr + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>French translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
			if (language == "en") {
				if (editorial_en != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_en + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>English translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
		} 
		else if (editorial_en != "nulla") {
		document.getElementById("picsubtitles").innerHTML = "&nbsp;";
			if (language == "it") {
				if (editorial_it != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_it + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>Italian translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
			if (language == "fr") {
				if (editorial_fr != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_fr + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>French translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
			if (language == "en") {
				if (editorial_en != "nulla") {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorial">' + editorial_en + '</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
				else {
				document.getElementById("picx").innerHTML = '<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="editorialred">editorial:<br>English translation coming soon</div></td></tr></table><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">'; } 
			} 
		} 
		else { memoria_numero_attivo = 1 }
	}
	if (memoria_numero_attivo == 1) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic1 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic1it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic1it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic1fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic1en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic1fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic1it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic1fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic1en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1en;
				document.getElementById("picsubtitles").style.color = "#999999"; 
				}  
			}
		}
		else if (sototitolo_di_pic1en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic1it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic1fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic1en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic1en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 2) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic2 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic2it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic2it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic2fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic2en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic2fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic2it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic2fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic2en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic2en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic2it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic2fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic2en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic2en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 3) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic3 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic3it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic3it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic3fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic3en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic3fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic3it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic3fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic3en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic3en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic3it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic3fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic3en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic3en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 4) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic4 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic4it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic4it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic4fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic4en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic4fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic4it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic4fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic4en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic4en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic4it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic4fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic4en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic4en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 5) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic5 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic5it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic5it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic5fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic5en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic5fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic5it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic5fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic5en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic5en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic5it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic5fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic5en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic5en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 6) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic6 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic6it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic6it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic6fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic6en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic6fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic6it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic6fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic6en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic6en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic6it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic6fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic6en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic6en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 7) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic7 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic7it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic7it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic7fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic7en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic7fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic7it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic7fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic7en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic7en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic7it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic7fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic7en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic7en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 8) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic8 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic8it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic8it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic8fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic8en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic8fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic8it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic8fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic8en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic8en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic8it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic8fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic8en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic8en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
	if (memoria_numero_attivo == 9) {
	document.getElementById("picx").innerHTML = '<img src="atualisazione/pics/' + nome_di_pic9 +'" title="" alt="loading image ..."><br><img src="programma/layout-nx.gif" width="300" height="10" border="0">';
		if (sototitolo_di_pic9it != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic9it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9it;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic9fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic9en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic9fr != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic9it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic9fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9fr;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "en") {
				if (sototitolo_di_pic9en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9en;
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else if (sototitolo_di_pic9en != "nulla") {
			if (language == "it") {
				if (sototitolo_di_pic9it == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "Italian translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9it; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
			if (language == "fr") {
				if (sototitolo_di_pic9fr == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "French translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9fr; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}		
			if (language == "en") {
				if (sototitolo_di_pic9en == "nulla") {
				document.getElementById("picsubtitles").innerHTML = "English translation coming soon"; 
				document.getElementById("picsubtitles").style.color = "#FF0000"; } 
				else {
				document.getElementById("picsubtitles").innerHTML = sototitolo_di_pic9en; 
				document.getElementById("picsubtitles").style.color = "#999999"; }  
			}
		}
		else { 	document.getElementById("picsubtitles").innerHTML = "&nbsp;"; } 
	}
}
