var tp =new Array("alaro;p;http://www.bubotes.com/fotos/pobles/alaro.html",
	"alaroCastell;p;http://www.bubotes.com/fotos/castell_alaro.html",
	"alcadena;f;'s','white','black','http://usuarios.lycos.es/bubotes/fotos/alaro_s_alcadena_t.jpg','Alaró - S’Alcadena','Tolo Adrover'",
	"aritges;p;http://www.bubotes.com/fotos/relats/aritges.html",
	"banyalbufar;p;http://www.bubotes.com/fotos/pobles/banyalbufar.html",
	"caloEstaca;f;'s','white','black','http://usuarios.lycos.es/bubotes/fotos/calo_s_estaca.jpg','Caló de s’Estaca','M.Vives'",
	"cingleNiuVoltor;p;http://www.bubotes.com/fotos/paisatges/cinglevoltor.html",
	"cura;p;http://www.bubotes.com/fotos/esglesies/cura.html",
	"esporles;p;http://www.bubotes.com/fotos/pobles/esporles.html",
	"felanitx;p;http://www.bubotes.com/fotos/pobles/felanitx.html",
	"gorgBlau;p;http://www.bubotes.com/fotos/paisatges/gorgblau.html",
	"gracia;p;http://www.bubotes.com/fotos/esglesies/gracia.html",
	"laVictoria;p;http://www.bubotes.com/fotos/esglesies/avictoria.html",
	"lloseta;p;http://www.bubotes.com/fotos/pobles/lloseta.html",
	"lluc;p;http://www.bubotes.com/fotos/esglesies/lluc.html",
	"molaEsclop;p;http://www.bubotes.com/fotos/excursions/excursions_esclop.html",
	"morroVacaCalobra;f;'s','white','black','http://usuarios.lycos.es/bubotes/torrent_pareis/pareis71.jpg','Morro de sa Vaca','M.Vives'",
	"pollenca;p;http://www.bubotes.com/fotos/pobles/pollenca.html",
	"santaMaria;p;http://www.bubotes.com/fotos/pobles/santamaria.html",
	"santHonorat;p;http://www.bubotes.com/fotos/esglesies/santhonorat.html",
	"soller;p;http://www.bubotes.com/fotos/pobles/soller.html",
	"valldemossa;p;http://www.bubotes.com/fotos/pobles/valldemossa.html",
	"deia;p;http://www.bubotes.com/fotos/pobles/deia.html",
	"bunyola;p;http://www.bubotes.com/fotos/pobles/bunyola.html")

function emetreInfo (content) {
  var txt =new Array();
  qcont = 0;
  txt = tp [qcont].split(";");
  while (txt[0].indexOf (content))
   {
    qcont = qcont + 1;
    txt = tp[qcont].split(";");
    }
    if ( txt[0] != content )  { alert ('No existe información ' + content + '/' + txt [0]) }
    else { if ( txt[1] == null | txt [1] == "" )  { alert ('información erronea') }
           else {if (txt [1] == "f") { eval ('escriureFoto(' + txt [2] + ')' )}
                 else                { document.location.href = txt [2] }
    }
  }
}

