﻿var siteRoot = new String(); // <-- Contiene la "radice" del sito
var afterbitRoot = new String(); // contiene il percorso alle librerie...
siteRoot = document.location.href;
afterbitRoot = "";

if (siteRoot.indexOf("www.marchi-brevetti.com") != -1) {
    //sono in remoto
    siteRoot = siteRoot.substring(0, siteRoot.indexOf("www.marchi-brevetti.com") + 24);
    afterbitRoot = "http://www.afterbit.com/libraries/";
}
else {
    //sono in locale
    siteRoot = siteRoot.substring(0, siteRoot.indexOf("marchi-brevetti") + 16);
    afterbitRoot = "http://127.0.0.1/afterbit/libraries/";
}

//le librerie javascript che mi servono per il sito web
var js_lib_string = "\n <script type=\"text/JavaScript\" src=\"" + siteRoot + "scroll_lay.js\"></script> "
	+ "\n <script type=\"text/javascript\" src=\"" + afterbitRoot + "js_library/ajax_comp.js\"></script> "
	+ "\n <script type=\"text/JavaScript\" src=\"" + afterbitRoot + "js_library/checkBrowser.js\"></script> "
	+ "\n <script type=\"text/JavaScript\" src=\"" + afterbitRoot + "js_library/strings.js\"></script> "
	+ "\n <script type=\"text/JavaScript\" src=\"" + afterbitRoot + "js_library/system.js\"></script> "
	+ "\n <script type=\"text/JavaScript\" src=\"" + afterbitRoot + "js_library/gestioneLivelli.js\"></script> "
	+ "";
document.write(js_lib_string);

function header(lang) {

    if (lang == "" || lang == undefined) {
        lang = "ita";
    }

    var BREVETTI = "BREVETTI";
    var MARCHI = "MARCHI";
    var COPYRIGHT = "COPYRIGHT";
    var PROTOTIPI = "PROTOTIPI";
    var CONSULENZE = "CONSULENZE";
    var RICERCHE = "RICERCHE<br />D'ANTERIORITA'";
    var SERVIZI = "SERVIZI";

    var industrializzazione_txt = "Lo Studio CELSUS, tramite professionisti residenti a Pechino (Cina) e Timisoara (Romania), con cui abbiamo stretto accordi commerciali, da a tutti i propri clienti l’opportunità di...";
    var inventor_txt = "Visita il sito dedicato all'Inventor Show, la straordinaria vetrina multimediale dove sono pubblicate le passate edizioni della fiera itinerante delle invenzioni e degli inventori, evento che...";
    var servizi_letterali_txt = "Esamina l'area dove si effettuano valutazioni ed editing degli inediti e, naturalmente, servizi per la loro tutela legale ed eventuale pubblicazione. A richiesta vengono anche pubblicizzati...";
    var sale_txt = "In questa pagina sono elencati i vari domini, di nostra proprietà, che abbiamo messo in vendita. (ma che possiamo anche affittare). Questi siti rappresentano una formidabile opportunità per...";
    var continua = "CONTINUA...";
    var cerca_txt = "cerca";
    
    var language = "";
    if (lang == "eng") {
        language = "inglese/";
        BREVETTI = "PATENT";
        MARCHI = "TRADEMARKS";
        COPYRIGHT = "COPYRIGHT";
        PROTOTIPI = "PROTOTYPES";
        CONSULENZE = "ADVISINGS";
        RICERCHE = "RESEARCHES<br />OF ANTERIORITY";
        SERVIZI = "SERVICE";

        industrializzazione_txt = "Lo Studio CELSUS, tramite professionisti residenti a Pechino (Cina) e Timisoara (Romania), con cui abbiamo stretto accordi commerciali, da a tutti i propri clienti l’opportunità di...";
        inventor_txt = "Visita il sito dedicato all'Inventor Show, la straordinaria vetrina multimediale dove sono pubblicate le passate edizioni della fiera itinerante delle invenzioni e degli inventori, evento che...";
        servizi_letterali_txt = "Esamina l'area dove si effettuano valutazioni ed editing degli inediti e, naturalmente, servizi per la loro tutela legale ed eventuale pubblicazione. A richiesta vengono anche pubblicizzati...";
        sale_txt = "In questa pagina sono elencati i vari domini, di nostra proprietà, che abbiamo messo in vendita. (ma che possiamo anche affittare). Questi siti rappresentano una formidabile opportunità per...";
        continua = "MORE...";
        cerca_txt = "search";
    }
    else if (lang == "fra") {
    language = "francese/";
    BREVETTI = "BREVETS";
    MARCHI = "MARQUES";
    COPYRIGHT = "COPYRIGHT";
    PROTOTIPI = "PROTOTYPES";
    CONSULENZE = "CONSULTATIONS";
    RICERCHE = "RECHERCHES<br />D'ANTÉRIORITÉ ";
    SERVIZI = "SERVICES";

    industrializzazione_txt = "Lo Studio CELSUS, tramite professionisti residenti a Pechino (Cina) e Timisoara (Romania), con cui abbiamo stretto accordi commerciali, da a tutti i propri clienti l’opportunità di...";
    inventor_txt = "Visita il sito dedicato all'Inventor Show, la straordinaria vetrina multimediale dove sono pubblicate le passate edizioni della fiera itinerante delle invenzioni e degli inventori, evento che...";
    servizi_letterali_txt = "Esamina l'area dove si effettuano valutazioni ed editing degli inediti e, naturalmente, servizi per la loro tutela legale ed eventuale pubblicazione. A richiesta vengono anche pubblicizzati...";
    sale_txt = "In questa pagina sono elencati i vari domini, di nostra proprietà, che abbiamo messo in vendita. (ma che possiamo anche affittare). Questi siti rappresentano una formidabile opportunità per...";
    continua = "PLUS...";
    cerca_txt = "recherche";
    }
    else {
        language = "";
    }

    document.write(
      "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-image: url(" + siteRoot + "images/bg_header.jpg); width: 1004px; height: 180px; margin-left: auto; margin-right: auto\">"
	+ "	<tr>"
	+ "		<td valign=\"top\">"
	+ "			<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-image: url(" + siteRoot + "images/bg_header.jpg); width: 1004px; height: 121px;\">"
	+ "				<tr>"
	+ "					<td valign=\"top\" style=\"width: 521px\">"
	+ "						<div><a href=\"" + siteRoot + language + "index.html\" title=\"\"><img src=\"" + siteRoot + "images/logo_" + lang + ".jpg\" alt=\"\" style=\"border:0px\" /></a></div>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"width: 482px\">"
	+ "						<div>"
	+ "							<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-image: url(" + siteRoot + "images/bg_header.jpg);width: 482px;\">"
	+ "								<tr>"
	+ "									<td style=\"text-align: right\">"
	+ "										<div style=\"margin-right: 14px; margin-top: 10px; margin-bottom: 20px\">"
	+ "											<a href=\"javascript:set_lang('ita')\" title=\"ITA\" style=\"color: #1B1B1B\">ITA</a> | <a href=\"javascript:set_lang('eng')\" title=\"ENG\" style=\"color: #1B1B1B\">ENG</a> | <a href=\"javascript:set_lang('fra')\" title=\"FRA\" style=\"color: #1B1B1B\">FRA</a></div>"
	+ "									</td>"
	+ "								</tr>"
	+ "								<tr>"
	+ "									<td style=\"background-image: url(" + siteRoot + "images/bg_form.jpg); height: 36px; width: 482px; text-align: right;\">"
	+ "										<div style=\"margin-right: 46px\">"
	+ "											<form action=\"" + siteRoot + "search.aspx?lang="+lang+"\" method=\"post\" style=\"margin: 0px; padding: 0px\">"
	+ "											<div>"
	+ "												"+cerca_txt+":"
	+ "												<input type=\"text\" value=\"\" id=\"s\" name=\"s\" class=\"inputField\" />"
	+ "												<input class=\"inputButton\" type=\"submit\" id=\"submit\" value=\"ok\" /></div>"
	+ "											</form>"
	+ "										</div>"
	+ "									</td>"
	+ "								</tr>"
	+ "							</table>"
	+ "						</div>"
	+ "					</td>"
	+ "				</tr>"
	+ "			</table>"
	+ "		</td>"
	+ "	</tr>"
	+ "	<tr>"
	+ "		<td valign=\"top\">"
	+ "			<div>"
	+ "				<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 993px; height: 59px;	margin-left: 11px\">"
	+ "					<tr>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_21.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "index.html\" title=\"HOME\" class=\"menu\">HOME</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_23.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "Brevetti/index.html\" title=\"" + BREVETTI + "\" class=\"menu\">" + BREVETTI + "</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_25.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "Marchi/index.html\" title=\"" + MARCHI + "\" class=\"menu\">" + MARCHI + "</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_27.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "Copyright/index.html\" title=\"" + COPYRIGHT + "\" class=\"menu\">" + COPYRIGHT + "</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_29.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "Prototipi/index.html\" title=\"" + PROTOTIPI + "\" class=\"menu\">" + PROTOTIPI + "</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_31.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "Consulenze/index.html\" title=\"" + CONSULENZE + "\" class=\"menu\">" + CONSULENZE + "</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_33.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div style=\"margin-top: 15px\">"
	+ "								<a href=\"" + siteRoot + language + "Anteriorita/index.html\" title=\"" + RICERCHE + "\" class=\"menu\">" + RICERCHE + "</a></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<img src=\"" + siteRoot + "images/menu_35.jpg\" alt=\"\" /></div>"
	+ "						</td>"
	+ "						<td valign=\"middle\">"
	+ "							<div>"
	+ "								<a href=\"" + siteRoot + language + "servizi/index.html\" title=\"" + SERVIZI + "\" class=\"menu\">" + SERVIZI + "</a></div>"
	+ "						</td>"
	+ "					</tr>"
	+ "				</table>"
	+ "			</div>"
	+ "		</td>"
	+ "	</tr>"
	+ "</table>"
	+ "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color: #201414;width: 1004px; height: 251px; margin-left: auto; margin-right: auto\">"
	+ "	<tr>"
	+ "		<td valign=\"top\">"
	+ "			<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-top: 10px; width: 1004px\">"
	+ "				<tr>"
	+ "					<td valign=\"top\" style=\"background-image: url(" + siteRoot + "images/bg_anteprima.jpg); background-repeat: no-repeat; width: 237px; height: 229px\">"
	+ "						<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div>"
	+ "										<a href=\"" + siteRoot + language + "Industrializzazione/index.html\" style=\"color:#ffffff\" title=\"" + industrializzazione_txt + "\"><img src=\"" + siteRoot + "images/industrializzazione_" + lang + ".jpg\" style=\"border:0px\" alt=\"\" /></a></div>"
	+ "								</td>"
	+ "							</tr>"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div style=\"margin-top: 18px; margin-left: 21px; margin-right: 21px; color: #BE9B92\"><b>" + industrializzazione_txt + "</b>"
	+ "									<div style=\"text-align:right; margin-top:5px\"><a href=\"" + siteRoot + language + "Industrializzazione/index.html\" style=\"color:#ffffff\" title=\"" + continua + "\">" + continua + "</a></div>"		
	+ "									</div>"
	+ "								</td>"
	+ "							</tr>"
	+ "						</table>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"width: 16px\">"
	+ "						<div>"
	+ "							<img src=\"" + siteRoot + "images/spacer.gif\" alt=\"\" style=\"width: 16px; height: 1px\" /></div>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"background-image: url(" + siteRoot + "images/bg_anteprima.jpg); background-repeat: no-repeat; width: 237px; height: 229px\">"
	+ "						<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div>"
	+ "										<a href=\"" + siteRoot + language + "Domini/index.html\" style=\"color:#ffffff\" title=\"" + sale_txt + "\"><img src=\"" + siteRoot + "images/sale_" + lang + ".jpg\" style=\"border:0px\" alt=\"\" /></a></div>"
	+ "								</td>"
	+ "							</tr>"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div style=\"margin-top: 11px; margin-left: 21px; margin-right: 21px; color: #BE9B92\"><b>" + sale_txt + "</b>"
	+ "									<div style=\"text-align:right; margin-top:5px\"><a href=\"" + siteRoot + language + "Domini/index.html\" style=\"color:#ffffff\" title=\"" + continua + "\">" + continua + "</a></div>"		
	+ "									</div>"
	+ "								</td>"
	+ "							</tr>"
	+ "						</table>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"width: 16px\">"
	+ "						<div>"
	+ "							<img src=\"" + siteRoot + "images/spacer.gif\" alt=\"\" style=\"width: 16px; height: 1px\" /></div>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"background-image: url(" + siteRoot + "images/bg_anteprima.jpg); background-repeat: no-repeat; width: 237px; height: 229px\">"
	+ "						<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div>"
	+ "										<a href=\"" + siteRoot + language + "Letterari/index.html\" style=\"color:#ffffff\" title=\"" + servizi_letterali_txt + "\"><img src=\"" + siteRoot + "images/servizi_letterali_" + lang + ".jpg\" style=\"border:0px\" alt=\"\" /></a></div>"
	+ "								</td>"
	+ "							</tr>"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div style=\"margin-top: 11px; margin-left: 21px; margin-right: 21px; color: #BE9B92\"><b>" + servizi_letterali_txt + "</b>"
	+ "									<div style=\"text-align:right; margin-top:5px\"><a href=\"" + siteRoot + language + "Letterari/index.html\" style=\"color:#ffffff\" title=\"" + continua + "\">" + continua + "</a></div>"		
	+ "									</div>"
	+ "								</td>"
	+ "							</tr>"
	+ "						</table>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"width: 16px\">"
	+ "						<div>"
	+ "							<img src=\"" + siteRoot + "images/spacer.gif\" alt=\"\" style=\"width: 16px; height: 1px\" /></div>"
	+ "					</td>"
	+ "					<td valign=\"top\" style=\"background-image: url(" + siteRoot + "images/bg_anteprima.jpg); background-repeat: no-repeat; width: 237px; height: 229px\">"
	+ "						<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div>"
	+ "										<a href=\"http://www.inventorshow.it\"  onclick=\"window.open(this.href); return false\" style=\"color:#ffffff\" title=\"" + servizi_letterali_txt + "\"><img src=\"" + siteRoot + "images/inventor_show_" + lang + ".jpg\" style=\"border:0px\" alt=\"\" /></a></div>"
	+ "								</td>"
	+ "							</tr>"
	+ "							<tr>"
	+ "								<td valign=\"top\">"
	+ "									<div style=\"margin-top: 11px; margin-left: 21px; margin-right: 21px; color: #BE9B92\"><b>" + inventor_txt + "</b>"
	+ "									<div style=\"text-align:right; margin-top:5px\"><a href=\"http://www.inventorshow.it\"  onclick=\"window.open(this.href); return false\" style=\"color:#ffffff\" title=\"" + continua + "\">" + continua + "</a></div>"		
	+ "									</div>"
	+ "								</td>"
	+ "							</tr>"
	+ "						</table>"
	+ "					</td>"
	+ "				</tr>"
	+ "			</table>"
	+ "		</td>"
	+ "	</tr>"
	+ "</table>"
	+ "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 1004px; margin-left: auto; margin-right: auto; border-bottom:1px solid #ffffff; background-color:#ffffff\">"
	+ " <tr>"
	+ "     <td valign=\"top\">"
	+ "         <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 1004px; margin-left: auto; margin-right: auto; border-bottom:1px solid #ffffff; background-color:#ffffff\">"
	+ "             <tr>"
	+ "             <td valign=\"top\">"
	+ "             <div style=\"margin-top:5px; margin-bottom:5px\"><marquee align=\"middle\" direction=\"left\" scrolldelay=\"100\"><span id=\"testoscorrevole_txt\" ></span></marquee></div>"
	+ "             </td>"
	+ "             </tr>"
	+ "             </table>"
	+ "     </td>"
	+ " </tr>"
	+ "</table>"
    );
    
}

function set_lang(lang) {
    var url = document.location.href;
    var language = "";
    if (lang == "eng") {
        language = "inglese/";
    }
    else if (lang == "fra") {
        language = "francese/";
    }
    else {
        language = "";
    }


    if ((url.indexOf("guestbook.aspx") != -1) || (url.indexOf("contatti.aspx") != -1) || (url.indexOf("search.aspx") != -1)) {
        if (url.indexOf("lang=") != -1) {
            url = url.replace("lang=ita", "lang=" + lang).replace("lang=eng", "lang=" + lang).replace("lang=fra", "lang=" + lang);
        }
        else {
            url = url + "?lang=" + lang;
        }

    }
    else {
        if (url.indexOf("lang=") != -1) {
            url = url.replace("lang=ita", "lang=" + lang).replace("lang=eng", "lang=" + lang).replace("lang=fra", "lang=" + lang);
        }
        else {

            if ((url.indexOf("/inglese/") != -1) || (url.indexOf("/francese/") != -1)) {

                url = url = url.replace("/inglese/", "/" + language);
                url = url.replace("/francese/", "/" + language);
            }
            else {
                url = url.replace(siteRoot, "");
                url = siteRoot + language + url;
            }
        }
    }
    document.location.href = url;
}

function footer(lang) {

    if (lang == "" || lang == undefined) {
        lang = "ita";
    }

    var BREVETTI = "BREVETTI";
    var MARCHI = "MARCHI";
    var COPYRIGHT = "COPYRIGHT";
    var PROTOTIPI = "PROTOTIPI";
    var CONSULENZE = "CONSULENZE";
    var RICERCHE = "RICERCHE D'ANTERIOTITA'";
    var SERVIZI = "SERVIZI";

    var language = "";
    if (lang == "eng") {
        language = "inglese/";
        BREVETTI = "PATENTS";
        MARCHI = "MARKS";
        COPYRIGHT = "COPYRIGHT";
        PROTOTIPI = "PROTOTYPES";
        CONSULENZE = "ADVISINGS";
        RICERCHE = "RESEARCHES OF ANTERIORITY";
        SERVIZI = "SERVICE";
    }
    else if (lang == "fra") {
        language = "francese/";
        BREVETTI = "BREVETS";
        MARCHI = "MARCS";
        COPYRIGHT = "COPYRIGHT";
        PROTOTIPI = "PROTOTYPES";
        CONSULENZE = "CONSULTATIONS";
        RICERCHE = "RECHERCHES D'ANTÉRIORITÉ ";
        SERVIZI = "SERVICES";
    }
    else {
        language = "";
    }
    document.write(
        "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:1004px; margin-left:auto; margin-right:auto; margin-top:10px\">"
    + "<tr>"
    + "<td style=\"height:51px; text-align:left; background-color:#E1DCD9;\"><div style=\"margin-left:10px; margin-right:10px\">(C) Copyright 2008 Studio Celsus - P.iva 01327960504 - Tutti i diritti riservati - <a style=\"color:#000000; font-weight:bold\" href=\"" + siteRoot + language + "Disclaimer/index.html\" title\"Disclaimer\" >Disclaimer</a> - E-mail : <a style=\"color:#000000; font-weight:bold\" href=\"mailto:info@marchi-brevetti.com\" title\"info@marchi-brevetti.com\" >info@marchi-brevetti.com</a></div></td>"
    + "</tr>"
    + "<tr>"
    + "<td style=\"text-align:center\">"
    + "<div style=\"font-size:10px; margin-top:10px; margin-bottom:10px; margin-left:10px; margin-right:10px\">"
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "index.html\" title=\"HOME\">HOME</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "Brevetti/index.html\" title=\"" + BREVETTI + "\">" + BREVETTI + "</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "Marchi/index.html\" title=\"" + MARCHI + "\">" + MARCHI + "</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "Copyright/index.html\" title=\"" + COPYRIGHT + "\">" + COPYRIGHT + "</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "Prototipi/index.html\" title=\"" + PROTOTIPI + "\">" + PROTOTIPI + "</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "Consulenze/index.html\" title=\"" + CONSULENZE + "\">" + CONSULENZE + "</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "Anteriorita/index.html\" title=\"" + RICERCHE + "\">" + RICERCHE + "</a>    |    "
    + "<a style=\"color:#000000\" href=\"" + siteRoot + language + "servizi/index.html\" title=\"" + SERVIZI + "\">" + SERVIZI + "</a></div>"
    + "</td>"
    + "</tr>"
    + "</table>"
    );
}

// gestione marquee...
function get_marquee(lang) {
    // ricava e stampa l'elenco dei messaggi...
    xmlHttp = GetXmlHttpObject();
    if (xmlHttp == null) {
        // il browser non supporta xmlHttpRequest
        return;
    }
    else {
        var url = siteRoot + "servizio.aspx?lang=" + lang + "&sid=" + Math.random();

        xmlHttp.onreadystatechange = marquee;
        xmlHttp.open("GET", url, true);
        xmlHttp.send(null);
    }
}
function marquee() {
    if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
        var text = xmlHttp.responseText;
        document.getElementById("testoscorrevole_txt").innerHTML = text;

    }
}

// gestione messaggio promozionale...
function get_promotional(lang) {
    // ricava e stampa l'elenco dei messaggi...
    xmlHttp1 = GetXmlHttpObject();
    if (xmlHttp1 == null) {
        // il browser non supporta xmlHttpRequest
        return;
    }
    else {
        var url = siteRoot + "messaggio_promozionale.aspx?lang=" + lang + "&sid=" + Math.random();
        xmlHttp1.onreadystatechange = promotional;
        xmlHttp1.open("GET", url, true);
        xmlHttp1.send(null);
    }
}

function promotional() {
    if (xmlHttp1.readyState == 4 || xmlHttp.readyState == "complete") {
        var text = xmlHttp1.responseText;
        document.getElementById("messaggio_promozionale").innerHTML = text;
        showmsg();
    }
}

// muove il messaggio promozionale al centro della pagina....
function showmsg() {
    document.getElementById("messaggio_promozionale").style["position"] = "absolute";
    getPageSize();
    var layx = getLayWidth("messaggio_promozionale");
    var layy = getLayHeight("messaggio_promozionale");
    moveLayTo("messaggio_promozionale", 0, 0);
    var meta_pag_y = parseInt((page.Y - layy) / 2);
    window.setTimeout("show_lay('messaggio_promozionale')", 1000);
    for (var i = 0; i < meta_pag_y; i++) {
        window.setTimeout("moveLayTo('messaggio_promozionale', 0, " + i + ")", 1000 + (i * 10));
    }
    var meta_pag_x = parseInt((page.X - layx) / 2);
    for (var i2 = 0; i2 < meta_pag_x; i2++) {
        window.setTimeout("moveLayTo('messaggio_promozionale'," + i2 + ", " + i + ")", 1000 + (i * 10) + (i2 * 10));
    }
}	
