/*
 * Author: Pawel Wieczorek
 * Show menu
 * param: menu
 * 02-11-2006
 */
function showMenu(menuArray)	{

	var menuItems = menuArray.length + menuArray.length % 2; // it is even

	document.write('<table width="100%" summary="71250.org menu"><tr>');

	for(i=0; i<menuItems; i++)	{

		if(menuItems >= 6 && i == menuItems/2) // new table line in the middle if there's more than 6 items
			document.write('</tr><tr>');
			
		var item = menuArray[i];
		var extraAttr = '';

		if(item)  {

			// define title
			if(item[2])
				extraAttr += 'title=\"' + item[2] + '\" ';
			else
				extraAttr += 'title=\"' + item[0] + '\" ';

			// define extra attributes ex. target="_blank"
			if(item[3])
				extraAttr += item[3];

			document.write('<td><a href=\"' + item[1] + '\" ' + extraAttr +'>' + item[0] + '</a></td>');
		}

	} 

	document.write('</tr></table>');	
}

/*
 * Author: Pawel Wieczorek
 * Show anty spam email link
 * 05-11-2006
 * Based on nospam-pl.net/obrona2.php
 */
function showInfoMail() {

	var user = "info";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showAndrzejMail() {

	var user = "andrzej.szczepan";
	var site = "gmail.com";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showGosiaMail() {

	var user = "gosia";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showElaMail() {

	var user = "ela";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');

}

function showPawelMail() {

	var user = "pawel";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showAniaMail() {

	var user = "ania";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showAgnieszkaMail() {

	var user = "agnieszka";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showTaizeMail() {

	var user = "spotkania";
	var site = "taize.fr";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showUlaMail() {

	var user = "urszula.wosicka";
	var site = "wspolnotaizrael.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showDSMail() {

	var user = "dniskupienia";
	var site = "wp.pl";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showAgaMail() {

	var user = "aga";
	var site = "71250.org";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showKubaMail() {

	var user = "rubinowski";
	var site = "op.pl";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showFathaRobertMail() {

	var user = "korbik";
	var site = "poczta.onet.pl";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

function showTaizePoznanInfoMail() {

	var user = "info";
	var site = "taize-poznan.pl";
	document.write('<a href=\"mai' + 'lt' + 'o:' + user + '&#64;' + site+'\" title="Kontakt">');
	document.write(user + '&#64;' + site + '<\/a>');
}

/*
 * Author: Pawel Wieczorek
 * Show footer
 * 05-11-2006
 */
function showFooter() {

  document.write("DM parafii Św. Wojciecha w Poznaniu");
	document.write("<br><b><a href=\"http://www.71250.org\" title=\"www.71250.org\">71250.org</a></b> | ");
	document.write("email: ");
	showInfoMail();
	/*document.write(" | telefon: &#54;&#57;&#54; &#52;&#50;&#49; &#56;&#54;&#51;");*/
}


/*
 * Menu definitions
 * Description Link Hidden_title ExtraAttributes
 */

/*
 * Base menu
 */
var BASE_MENU = [
	/*['71250.org', './index.html', 'Powrót do strony głównej'],*/
	/*['Poznań', './poznan/index.html'],*/
	/*['Bruksela', './bruksela08.html', 'Europejskie Spotkanie Młodych w Brukseli'],*/	
	['do Taizé', './o_taize/index.html'],
        /*['Wolontariat','./wolontariat.html'],*/
        ['Dni Skupienia', './dni_skupienia/index.html'],
	['71250 nadaje!','http://groups.google.pl/group/71250','Lista mailingowa googlegroups, z której możesz otrzymać najświeższe informacje',
        'target="_blank"'],
        /*['blog','http://www.taize.fr/pl_article9058.html','Blog na temat przygotowań do ESM w Poznaniu','target="_blank"'],*/
	['pomoc powodzianom', './chodlik/index.html'],	
	/*['Punkty przygotowań', './pktprzygotowan/index.html', 'Spotkanie prowadzących punkty przygotowań'],*/
	['Galeria', './galeria.html'],
	/*['Spotkania', './kalendarium.html', 'Kalendarium, czyli co gdzie, kiedy'],*/
	['Kontakt', './kontakt.html']
];

/*
 * Poznan menu
 */
var POZNAN_MENU = [
	['71250.org', '../index.html', 'Powrót do strony głównej'],
	['poznań', './index.html', 'Powrót do strony o tym co się dzieje w Poznaniu.'],
	['poznańska&nbsp;modlitwa<br>o jedność chrześcijan', './comiesieczna.html'],
	['modlitwy w&nbsp;parafiach', './modlitwy.html'],
  ['przygotowania', './przygotowania.html'],
  ['program', './program.html'],
	[''],
	['br. Alois w Poznaniu', '../190408/index.html', 'Czuwanie modlitewne z br. Aloisem']
];

/*
 * Przygotowania
 */
var PRZYGOTOWANIA_MENU = [
	['71250.org', '../index.html', 'Powrót do strony głównej'],
	['poznań', './index.html', 'Powrót do strony o tym co się dzieje w Poznaniu.'],
  ['przygotowania', './przygotowania.html'],
	['etapy', './etapy.html'],
  ['centrum<br>przygotowań', './centrum.html'],
	['parafialne grupy<br>przygotowań', './ekipy.html'],
	['noclegi', './noclegi.html'],
	/*['pomysly', './pomysly.html']*/
];

/*
 * 19/04/08
 */
var MENU_190408 = [
	['71250.org', '../index.html', 'Powrót do strony głównej'],
        ['poznań', '../poznan/index.html', 'Powrót do strony o tym co się dzieje w Poznaniu.'],
	['br. Alois w Poznaniu', './index.html', 'Czuwanie modlitewne z br. Aloisem'],
	['Brat Alois', './alois.html'],
	/*['Program', './program.html'],*/
	['Modlitwa', './modlitwa.html'],
	/*['Aktualności', './aktualnosci.html'],*/
	/*['Warsztaty', './warsztaty.html'],*/
	['Galeria', './galeria.html']
	/*['Zgłoszenia', './zapisy.html'],*/
	/*['Chór', './chor.html'],*/
];

/*
 * ESM menu
 */
var ESM_MENU = [
	['71250.org', './index.html', 'Powrót do strony głównej'],
	['Galeria', 'http://picasaweb.google.com/71250.org/ESMZagreb',
		'target="_blank"'],
	['Wrażenia', './wrazenia.html', 'Wrażenia uczestników ESM w Zagrzebiu'],
	['List z Kolkaty', './plletter.pdf', 'List br. Aloisa na rok 2007'],
	
];

/*
 * Spotkanie punktów przygotowań
 */
var PKT_MENU = [
	['71250.org', '../index.html', 'Powrót do strony głównej'],
	['Punkty przygotowań', './index.html'],
	['Program', './program_pkt.html'],
	['Szczegóły', './szczegoly_pkt.html'],
	['Dojazd', './dojazd_pkt.html'],
	['Warsztaty', './warsztaty_pkt.html'],
];

/*
 * O Taize
 */
var ABOUT_TAIZE_MENU = [
	['71250.org', '../index.html', 'Powrót do strony głównej'], 
	['O Taizé', '../o_taize/index.html'],
	['Wyjazdy', '../o_taize/wyjazdy.html'],
	['zgłoszenia i wpłaty', '../o_taize/zgloszenia.html'],
	['Spotkania', '../o_taize/spotkania.html'],
	['Film', '../o_taize/film.html'],
	['Modlitwa i cisza', '../o_taize/modlitwa.html'],
	['Ludzie', '../o_taize/ludzie.html'],
	['Zorganizuj grupę', '../o_taize/grupowo.html'],
	['taize.fr', 'http://www.taize.fr', "Oficjalana strona Braci z Taizé",
		'target="_blank"']

];
/*
 * Dni Skupienia
 */
var DNI_SKUPIENIA_MENU = [
	['71250.org', '../index.html'], 
	['Dni Skupienia', './index.html'],
	['Program', './program.html'], 
	['Zapisy', './zapisy.html'],
	/*['Dojazd', './dojazd.html'],*/
	['Modlitwa', './modlitwa.html'],
	['Ludzie', './ludzie.html'],
	['Galeria', './galeria.html', 'Poprzednie spotkania'],
	['Historia', './historia/index.html']
];
/*
 * Pomoc powodzianom
 */
var POMOC_POWODZIANOM_MENU = [
	['pomagamy', './index.html', 'Wstęp o możliwości pomocy w Wilkowie'], 
	['wyjazd', './wyjazd.html'],
	['jak pomóc?', './jak_pomoc.html'],
	['kto jedzie?', './kto.html'],
	['galeria', './galeria.html'],
	['cdm lublin', 'http://www.duch.lublin.pl/','Strona koordynatorów akcji na miejscu','target="_blank"']
	
];
/*
 * Historia Dni Skupienia
 */
var HISTORIA_DS_MENU = [
	['71250.org', '../../index.html', 'Powrót do strony głównej'], 
	['Dni&nbsp;Skupienia', '../index.html'],
	['Kościan', './koscian.html'],
	['Szamotuły', './szamotuly.html'],
	['Śrem', './srem.html'],
	['Wronki', './wronki.html'],
	['Nowy&nbsp;Tomyśl', './nowytomysl.html'],
	['Stęszew', './steszew.html'],
	['Mosina', './mosina.html'],
	['Leszno', './leszno.html'],
        ['Kostrzyn', './kostrzyn.html'],
	['Grodzisk', './grodzisk.html']
];

function showChangeLang() {
	document.write('<br>');
	//document.write('<a href=\"#\" title="English">[en]<\/a>');
	//document.write('<a href=\"http://71250.org/de/\" title="Deutsch"> [deutsch]<\/a>');
}
  
