//Giuseppe Castagno
// includere nei file con:
// <script type="text/javascript" src="js/helpers.js"></script>
// tenere conto del path relativo !

function printmail_en() {
var utente = "webmaster";
var dominio = "acca-esse.eu";
var posta = utente + "@" + dominio;
var messaggio = "Send mail to";
document.write(messaggio+" <a href=\"mailto:"+posta+"\"> "+posta+" </a>");
//document.write(messaggio+" <b>"+posta+"</b> ");
}

function printmail_en_ooohs() {
var utente = "ooo-hs";
var dominio = "acca-esse.eu";
var posta = utente + "@" + dominio;
var messaggio = "Send mail to";
document.write(messaggio+" <a href=\"mailto:"+posta+"?subject=OOoHs download page\"> "+posta+" </a>");
//document.write(messaggio+" <b>"+posta+"</b> ");
}

function printmail_it() {
var utente = "webmaster";
var dominio = "acca-esse.it";
var posta = utente + "@" + dominio;
var messaggio = "Mandare e-mail a";
document.write(messaggio+" <a href=\"mailto:"+posta+"\"> "+posta+" </a>");
//document.write(messaggio+" <b>"+posta+"</b> ");
}

//document.write("Copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno<br>VAT# IT07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte.<br>All rights reserved.");
function copyright_en2() {
	document.write("Web page textual content and written documentation are copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno. All rights reserved.<br>");
	document.write("Some written documentation can be under a different license.<br>");
	document.write("Acca Esse di Giuseppe Castagno<br>VAT# IT07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte.");
}

//	document.write("Copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno<br>P.IVA 07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte.<br>Tutti i diritti riservati.");
function copyright_it2() {
	document.write("Contenuto testuale delle pagine web e documentazione scritta sono copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno. Tutti i diritti riservati.<br>");
	document.write("L'uso di alcuni documenti può essere concesso in accordo a licenze differenti.<br>");
	document.write("Acca Esse di Giuseppe Castagno P.IVA 07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte.");
}

//document.write("Contenuto testuale delle pagine web e documentazione scritta concessi in licenza in accordo a <a title=\"Apre in una nuova pagina\" href=\"http://creativecommons.org/it\" target=\"_blank\">Creative Commons</a> <a  title=\"Apre in nuova pagina\" href=\"http://creativecommons.org/licenses/by-nd/2.5/it/\" target=\"_blank\">Attribuzione-Non opere derivate 2.5 Italia</a> (<a  title=\"Apre in nuova pagina\" href=\"http://creativecommons.org/licenses/by-nd/2.5/it/legalcode\" target=\"_blank\">licenza integrale</a>).<br>");
function copyright_it3() {
	document.write("Contenuto testuale delle pagine web e documentazione scritta sono copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno. Tutti i diritti riservati.<br>");
	document.write("L'uso di alcuni documenti può essere concesso in accordo a licenze differenti.<br>");
	document.write("Acca Esse di Giuseppe Castagno P.IVA 07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte.");
}

//	document.write("Copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno P.IVA 07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte. All rights reserved.");
function copyright_en3() {
	document.write("Web page textual content and written documentation are copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno. All rights reserved.<br>");
	document.write("Some written documentation can be under a different license.<br>");
	document.write("Acca Esse di Giuseppe Castagno VAT# IT07874520013 - REA TO-1045585 - AA 306617 Regione Piemonte.");
}

function copyright_en() {
	document.write("<b>Copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno VAT# IT07874520013, REA TO-1045585, AA 306617. All rights reserved.</b>");
}

function copyright_it() {
	document.write("<b>Copyright &copy 2006-2009 Acca Esse di Giuseppe Castagno P.IVA 07874520013, REA TO-1045585, AA 306617. Tutti i diritti riservati.</b>");
}

///
function issue_link(issuen) {
document.write(" <a href=\"http://qa.openoffice.org/issues/buglist.cgi?issue_id="+issuen+"\" target=\"blank\" title=\"Opens issuezilla in another window\" > "+issuen+" </a>");
}

///
function issue_linkx(issuen) {
	//var issuen = "56629";
	document.write(" <a href=\"http://qa.openoffice.org/issues/show_bug.cgi?id="+issuen+"\" target=\"blank\" title=\"Opens issuezilla in another window\"> "+issuen+" </a>");
//document.write(messaggio+" <b>"+posta+"</b> ");
}

/////////////////////////////
function display_w3c_css_blue(relative) {
	document.write("<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img width=\"88\" height=\"31\" src=\""+relative+"images/vcss-blue\" alt=\"CSS Valido!\"></a>");
}

function display_w3c_blue(relative) {
	document.write("<a href=\"http://validator.w3.org/check?uri=referer\"><img src=\""+relative+"images/valid-html401-blue\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\"></a>");
}

function display_w3c_yellow(relative) {
	document.write("<a href=\"http://validator.w3.org/check?uri=referer\"><img src=\""+relative+"images/valid-html401\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\"></a>");
}

/////////////////////////////
function use_oo_en(relative) {
    document.write("We use <a href=\"http://www.openoffice.org\" target=\"_blank\"><img style=\"border: 0px solid ; width: 80px; height: 15px;\"");
    document.write("src=\""+relative+"images/ooo-80x15_3.png\" alt=\"Use OpenOffice.org\"title=\"Use OpenOffice.org (opens a new page)\" align=\"middle\"></a>&nbsp;");
    document.write("for our everyday office jobs.");
}

function use_oo_enI(relative) {
    document.write("I use <a href=\"http://www.openoffice.org\" target=\"_blank\"><img style=\"border: 0px solid ; width: 110px; height: 32px;\"");
    document.write("src=\""+relative+"images/110x32_3_suite.png\" alt=\"Use OpenOffice.org\"title=\"Use OpenOffice.org (opens a new page)\" align=\"middle\"></a>&nbsp;");
}

function use_oo_it(relative) {
//    document.write("Noi usiamo&nbsp;<a href=\"http://it.openoffice.org/\" target=\"_blank\"><img style=\"border: 0px solid ; width: 110px; height: 32px;\"");
    document.write("Noi usiamo&nbsp;<a href=\"http://it.openoffice.org/\" target=\"_blank\"><img style=\"border: 0px solid ; width: 80px; height: 15px;\"");
    document.write("src=\""+relative+"images/ooo-80x15_3.png\" alt=\"Usate OpenOffice.org\" title=\"Usate OpenOffice.org (apre in nuova pagina)\" align=\"middle\"></a>&nbsp;");
    document.write("per il nostro lavoro giornaliero d'ufficio.");
}

////////////////
function use_edt_css_en(relative) {
    document.write(" page made with a standard text editor, using the css library distributed by ");
     document.write("<a href=\"http://blueprintcss.org\" title=\"Opens a new page\" target=\"blank\">blueprintcss.org.</a>");
    document.write("");
}

function use_edt_css_it(relative) {
    document.write(" pagina creata con normale text editor, con la libreria di fogli di stile a cascata (css) distribuita da ");
     document.write("<a href=\"http://blueprintcss.org\" title=\"Apre in nuova pagina\" target=\"blank\">blueprintcss.org.</a>");
    document.write("");
}

//////////////////////77
function use_komp_en(relative) {
    document.write(" page&nbsp; made with KompoZer <a href=\"http://www.kompozer.net/\"><img title=\"Made with KompoZer\" style=\"border: 0px solid ; width: 80px; height: 15px;\"");
     document.write("src=\""+relative+"images/kompozer_80x15.png\"");
    document.write("name=\"immagini4\" alt=\"Made with KompoZer\" align=\"top\"></a>");
}

function use_komp_it(relative) {
    document.write(" Questa pagina &egrave;&nbsp; stata creata con KompoZer <a href=\"http://http://www.kompozer.net\"><img title=\"Creato con KompoZer\" style=\"border: 0px solid ; width: 80px; height: 15px;\"");
     document.write("src=\""+relative+"images/kompozer_80x15.png\"");
    document.write("name=\"immagini4\" alt=\"Creata con KompoZer\" align=\"top\"></a>");
}

function print_copyrt_ms_lnx_en_al2() {
    document.write("<h6 class=\"alt\">Linux is a registered trademark of Linus Torvalds.<br>");
    document.write("Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.</h6>");
}

function print_copyrt_ms_lnx_en() {
    document.write("<hr style=\"width: 100%; height: 2px;\">");
    document.write("Linux is a registered trademark of Linus Torvalds.<br>");
    document.write("Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.");
}

function print_copyrt_ms_lnx_it2() {
    document.write("<h6 class=\"alt\">Linux è un marchio registrato di Linus Torvalds.<br>");
    document.write("Microsoft e Windows sono marchi registrati o marchi di Microsoft Corporation negli Stati Uniti e/o in altri paesi.</h6>");
}
function print_copyrt_ms_lnx_it() {
    document.write("<hr style=\"width: 100%; height: 2px;\">");
    document.write("Linux è un marchio registrato di Linus Torvalds.<br>");
    document.write("Microsoft e Windows sono marchi registrati o marchi di Microsoft Corporation negli Stati Uniti e/o in altri paesi.");
}

function print_copyrt_ms_lnx_it_al2() {
    document.write("<h6 class=\"alt\">Altera è un marchio di fabbrica di Altera Corporation.<br>");
    document.write("Linux è un marchio registrato di Linus Torvalds.<br>");
    document.write("Microsoft e Windows sono marchi registrati o marchi di Microsoft Corporation negli Stati Uniti e/o in altri paesi.</h6>");
}

function print_copyrt_ms_lnx_it_al() {
    document.write("<hr style=\"width: 100%; height: 2px;\">");
    document.write("Altera è un marchio di fabbrica di Altera Corporation.<br>");
    document.write("Linux è un marchio registrato di Linus Torvalds.<br>");
    document.write("Microsoft e Windows sono marchi registrati o marchi di Microsoft Corporation negli Stati Uniti e/o in altri paesi.");
}

//funzioni per gestione tabella estensioni OOo
function show_tbext_acell_head(cell, span) {
    document.write("<th class=\"span-"+span+"\" >"+cell+"</th>");
}

function show_tbext_acell_span(cell, span) {
    document.write("<td class=\"span-"+span+"\" >"+cell+"</td>");
}

function show_tbext_acell(cell) {
    document.write("<td>"+cell+"</td>");
}

function show_tbext_acell_link(extname) {
    document.write("<td class=\"border\" align=\"top\">");
    document.write("<a href=\"../../dwnld/ooohs/ext-www/"+extname.toLowerCase()+"/"+extname+".oxt\">"+extname+".oxt</a>");
    document.write("</td>");
}

function show_tbext_header_it() {
    document.write("<tr>");
    show_tbext_acell_head("Nome estensione","3");
    show_tbext_acell_head("Dimensione","4");
    show_tbext_acell_head("Descrizione","8");
    show_tbext_acell_head("Documentazione","5 last");
    document.write("</tr>");
}

function show_tbext_exportpdf() {
    var versione = "0.1.96";
    var data = "2008-03-22";
    
    document.write("<tr class=\"even\">");
    show_tbext_acell_link("EsportaPDF");
    show_tbext_acell("122k<br>versione "+versione+"<br>(agg. "+data+")","3");
    show_tbext_acell("EsportaPDF.<br>Esporta il documento corrente in PDF o PDF/A-1a, con un dialogo di richiesta per alcune preimpostazioni.<br>La password per i non PDF/A-1a viene impostata in modo <strong>pseudo casuale</strong>.<br>Contiene menu e toolbar con preimpostazioni definite, alcune di queste sono modificabili dall'utente e riutilizzabili.<br>Se richiesto, apre il file PDF al termine dell'esportazione.<br><br>L'aggiornamento avverrà via Internet.<br><br>Riavviare OOo dopo installazione o eventuale aggiornamento.<br><br>Versione minima di OOo: 2.3.","6");
    document.write("<td>");
    document.write("È disponibile una breve documentazione (con la descrizione storica delle modifiche):<br>");
    document.write("<a href=\"../../dwnld/ooohs/ext-www/esportapdf/brief-manual.pdfa.pdf\">brief-manual-pdfa.pdf</a><br>");
    document.write("(76kbyte)");
    document.write("</td>");
    document.write("</tr>");
}

function show_tbext_macrobeppe() {
    document.write("<tr class=\"even\">");
    show_tbext_acell_link("MacroBeppe");
    show_tbext_acell("100k");
    show_tbext_acell("Macro varie per uso di lavoro");
    document.write("</tr>");
}

function show_left_padding(rows) {
	document.write("<div class=\"span-4 prepend-1 border\"><p>");
	for(i = rows; i > 0; i--) {
		document.write("<br>");
	}
	document.write("</p></div>");	
}

function show_tbext_it() {
	//stampa elemento laterale, aggiustare dimensioni secondo necessità
	show_left_padding(21);
	document.write("<div class=\"span-19 last\">");
    document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
    document.write("<caption><em>Estensioni disponibili (con successivo aggiornamento automatico dal sito)</em></caption>");
    show_tbext_header_it();
    show_tbext_exportpdf();
//    show_tbext_macrobeppe();
    document.write("</table>");
	document.write("</div>");
}
